|
|
(self.webpackChunk=self.webpackChunk||[]).push([[1443],{65030:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(33885),i=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),m=n(49658),g=n(59301),v=n(54476),y=n(77900),_=n(8654);function b(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,s=r||{},a=s.className,o=s.content,u=i.x,c=void 0===u?0:u,d=i.y,h=void 0===d?0:d,f=g.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],y=m[0],_=m[1],b=v[0],x=v[1];y!==b&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=h,_!==x&&["l","r"].includes(_)?"l"===_?p.left=0:p.right=0:p.left=c}return g.createElement("div",{ref:f,className:l()("".concat(t,"-arrow"),a),style:p},o)}function x(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,s=e.motion;return i?g.createElement(y.default,(0,v.Z)({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}var w=g.memo((function(e){return e.children}),(function(e,t){return t.cache}));var E=g.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,m=e.fresh,E=e.onClick,A=e.mask,k=e.arrow,C=e.arrowPos,T=e.align,D=e.motion,S=e.maskMotion,P=e.forceRender,L=e.getPopupContainer,I=e.autoDestroy,N=e.portal,R=e.zIndex,M=e.onMouseEnter,O=e.onMouseLeave,F=e.onPointerEnter,j=e.onPointerDownCapture,B=e.ready,z=e.offsetX,H=e.offsetY,Z=e.offsetR,U=e.offsetB,Y=e.onAlign,X=e.onPrepare,G=e.stretch,W=e.targetWidth,K=e.targetHeight,V="function"==typeof n?n():n,Q=h||f,q=(null==L?void 0:L.length)>0,J=g.useState(!L||!q),$=(0,i.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",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(B||!h){var ie,se=T.points,ae=T.dynamicInset||(null===(ie=T._experimental)||void 0===ie?void 0:ie.dynamicInset),oe=ae&&"r"===se[0][1],le=ae&&"b"===se[0][0];oe?(re.right=Z,re.left=ne):(re.left=z,re.right=ne),le?(re.bottom=U,re.top=ne):(re.top=H,re.bottom=ne)}var ue={};return G&&(G.includes("height")&&K?ue.height=K:G.includes("minHeight")&&K&&(ue.minHeight=K),G.includes("width")&&W?ue.width=W:G.includes("minWidth")&&W&&(ue.minWidth=W)),h||(ue.pointerEvents="none"),g.createElement(N,{open:P||Q,getContainer:L&&function(){return L(c)},autoDestroy:I},g.createElement(x,{prefixCls:a,open:h,zIndex:R,mask:A,motion:S}),g.createElement(u.Z,{onResize:Y,disabled:!h},(function(e){return g.createElement(y.default,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:"".concat(a,"-hidden")},D,{onAppearPrepare:X,onEnterPrepare:X,visible:h,onVisibleChanged:function(e){var t;null==D||null===(t=D.onVisibleChanged)||void 0===t||t.call(D,e),d(e)}}),(function(n,i){var u=n.className,c=n.style,d=l()(a,u,s);return g.createElement("div",{ref:(0,_.sQ)(e,t,i),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},re),ue),c),{},{boxSizing:"border-box",zIndex:R},o),onMouseEnter:M,onMouseLeave:O,onPointerEnter:F,onClick:E,onPointerDownCapture:j},k&&g.createElement(b,{prefixCls:a,arrow:k,arrowPos:C,align:T}),g.createElement(w,{cache:!h&&!m},V))}))})))}));var A=g.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,_.Yr)(n),s=g.useCallback((function(e){(0,_.mH)(t,r?r(e):e)}),[r]),a=(0,_.x1)(s,(0,_.C4)(n));return i?g.cloneElement(n,{ref:a}):n})),k=g.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}function T(e,t,n,r){return g.useMemo((function(){var i=C(null!=n?n:t),s=C(null!=r?r:t),a=new Set(i),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,r])}var D=n(29194);function S(){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 P(e,t,n,r){for(var i=n.points,s=Object.keys(e),a=0;a<s.length;a+=1){var o,l=s[a];if(S(null===(o=e[l])||void 0===o?void 0:o.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function L(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=I(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function M(e){return R(parseFloat(e),0)}function O(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),r=t.overflow,i=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=M(s),m=M(a),g=M(o),v=M(l),y=R(Math.round(u.width/h*1e3)/1e3),_=R(Math.round(u.height/c*1e3)/1e3),b=(h-f-g-v)*y,x=(c-d-p-m)*_,w=p*_,E=m*_,A=g*y,k=v*y,C=0,T=0;if("clip"===r){var D=M(i);C=D*y,T=D*_}var S=u.x+A-C,P=u.y+w-T,L=S+u.width+2*C-A-k-b,N=P+u.height+2*T-w-E-x;n.left=Math.max(n.left,S),n.top=Math.max(n.top,P),n.right=Math.min(n.right,L),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),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function j(e,t){var n=t||[],r=(0,i.Z)(n,2),s=r[0],a=r[1];return[F(e.width,s),F(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function z(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function H(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}function Z(e,t,n,s,a,o,l){var u=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[s]||{}}),d=(0,i.Z)(u,2),f=d[0],m=d[1],v=g.useRef(0),y=g.useMemo((function(){return t?N(t):[]}),[t]),_=g.useRef({});e||(_.current={});var b=(0,h.Z)((function(){if(t&&n&&e){var u,d,h,f,p,g=t,v=g.ownerDocument,b=I(g),x=b.getComputedStyle(g).position,w=g.style.left,E=g.style.top,A=g.style.right,k=g.style.bottom,C=g.style.overflow,T=(0,r.Z)((0,r.Z)({},a[s]),o),S=v.createElement("div");if(null===(u=g.parentElement)||void 0===u||u.appendChild(S),S.style.left="".concat(g.offsetLeft,"px"),S.style.top="".concat(g.offsetTop,"px"),S.style.position=x,S.style.height="".concat(g.offsetHeight,"px"),S.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var P,L,N=n.getBoundingClientRect();N.x=null!==(P=N.x)&&void 0!==P?P:N.left,N.y=null!==(L=N.y)&&void 0!==L?L:N.top,p={x:N.x,y:N.y,width:N.width,height:N.height}}var M=g.getBoundingClientRect(),F=b.getComputedStyle(g),Z=F.height,U=F.width;M.x=null!==(d=M.x)&&void 0!==d?d:M.left,M.y=null!==(h=M.y)&&void 0!==h?h:M.top;var Y=v.documentElement,X=Y.clientWidth,G=Y.clientHeight,W=Y.scrollWidth,K=Y.scrollHeight,V=Y.scrollTop,Q=Y.scrollLeft,q=M.height,J=M.width,$=p.height,ee=p.width,te={left:0,top:0,right:X,bottom:G},ne={left:-Q,top:-V,right:W-Q,bottom:K-V},re=T.htmlRegion,ie="visible",se="visibleFirst";"scroll"!==re&&re!==se&&(re=ie);var ae=re===se,oe=O(ne,y),le=O(te,y),ue=re===ie?le:oe,ce=ae?le:ue;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var de=g.getBoundingClientRect();g.style.left=w,g.style.top=E,g.style.right=A,g.style.bottom=k,g.style.overflow=C,null===(f=g.parentElement)||void 0===f||f.removeChild(S);var he=R(Math.round(J/parseFloat(U)*1e3)/1e3),fe=R(Math.round(q/parseFloat(Z)*1e3)/1e3);if(0===he||0===fe||(0,c.Sh)(n)&&!(0,D.Z)(n))return;var pe=T.offset,me=T.targetOffset,ge=j(M,pe),ve=(0,i.Z)(ge,2),ye=ve[0],_e=ve[1],be=j(p,me),xe=(0,i.Z)(be,2),we=xe[0],Ee=xe[1];p.x-=we,p.y-=Ee;var Ae=T.points||[],ke=(0,i.Z)(Ae,2),Ce=ke[0],Te=B(ke[1]),De=B(Ce),Se=z(p,Te),Pe=z(M,De),Le=(0,r.Z)({},T),Ie=Se.x-Pe.x+ye,Ne=Se.y-Pe.y+_e;function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue,r=M.x+e,i=M.y+t,s=r+J,a=i+q,o=Math.max(r,n.left),l=Math.max(i,n.top),u=Math.min(s,n.right),c=Math.min(a,n.bottom);return Math.max(0,(u-o)*(c-l))}var Re,Me,Oe,Fe,je=Ct(Ie,Ne),Be=Ct(Ie,Ne,le),ze=z(p,["t","l"]),He=z(M,["t","l"]),Ze=z(p,["b","r"]),Ue=z(M,["b","r"]),Ye=T.overflow||{},Xe=Ye.adjustX,Ge=Ye.adjustY,We=Ye.shiftX,Ke=Ye.shiftY,Ve=function(e){return"boolean"==typeof e?e:e>=0};function Tt(){Re=M.y+Ne,Me=Re+q,Oe=M.x+Ie,Fe=Oe+J}Tt();var Qe=Ve(Ge),qe=De[0]===Te[0];if(Qe&&"t"===De[0]&&(Me>ce.bottom||_.current.bt)){var Je=Ne;qe?Je-=q-$:Je=ze.y-Ue.y-_e;var $e=Ct(Ie,Je),et=Ct(Ie,Je,le);$e>je||$e===je&&(!ae||et>=Be)?(_.current.bt=!0,Ne=Je,_e=-_e,Le.points=[H(De,0),H(Te,0)]):_.current.bt=!1}if(Qe&&"b"===De[0]&&(Re<ce.top||_.current.tb)){var tt=Ne;qe?tt+=q-$:tt=Ze.y-He.y-_e;var nt=Ct(Ie,tt),rt=Ct(Ie,tt,le);nt>je||nt===je&&(!ae||rt>=Be)?(_.current.tb=!0,Ne=tt,_e=-_e,Le.points=[H(De,0),H(Te,0)]):_.current.tb=!1}var it=Ve(Xe),st=De[1]===Te[1];if(it&&"l"===De[1]&&(Fe>ce.right||_.current.rl)){var at=Ie;st?at-=J-ee:at=ze.x-Ue.x-ye;var ot=Ct(at,Ne),lt=Ct(at,Ne,le);ot>je||ot===je&&(!ae||lt>=Be)?(_.current.rl=!0,Ie=at,ye=-ye,Le.points=[H(De,1),H(Te,1)]):_.current.rl=!1}if(it&&"r"===De[1]&&(Oe<ce.left||_.current.lr)){var ut=Ie;st?ut+=J-ee:ut=Ze.x-He.x-ye;var ct=Ct(ut,Ne),dt=Ct(ut,Ne,le);ct>je||ct===je&&(!ae||dt>=Be)?(_.current.lr=!0,Ie=ut,ye=-ye,Le.points=[H(De,1),H(Te,1)]):_.current.lr=!1}Tt();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===Ke?0:Ke;"number"==typeof ft&&(Re<le.top&&(Ne-=Re-le.top-_e,p.y+$<le.top+ft&&(Ne+=p.y-le.top+$-ft)),Me>le.bottom&&(Ne-=Me-le.bottom-_e,p.y>le.bottom-ft&&(Ne+=p.y-le.bottom+ft)));var pt=M.x+Ie,mt=pt+J,gt=M.y+Ne,vt=gt+q,yt=p.x,_t=yt+ee,bt=p.y,xt=bt+$,wt=(Math.max(pt,yt)+Math.min(mt,_t))/2-pt,Et=(Math.max(gt,bt)+Math.min(vt,xt))/2-gt;null==l||l(t,Le);var At=de.right-M.x-(Ie+M.width),kt=de.bottom-M.y-(Ne+M.height);1===he&&(Ie=Math.round(Ie),At=Math.round(At)),1===fe&&(Ne=Math.round(Ne),kt=Math.round(kt)),m({ready:!0,offsetX:Ie/he,offsetY:Ne/fe,offsetR:At/he,offsetB:kt/fe,arrowX:wt/he,arrowY:Et/fe,scaleX:he,scaleY:fe,align:Le})}})),x=function(){m((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,p.Z)(x,[s]),(0,p.Z)((function(){e||x()}),[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 U=n(94480);function Y(e,t,n,r,i){(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,U.Z)(a),(0,U.Z)(o)));function c(){r(),i()}return u.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),r(),function(){u.forEach((function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[e,t,n])}n(48736);function X(e,t,n,r,i,s,a,o){var l=g.useRef(e);l.current=e;var u=g.useRef(!1);return g.useEffect((function(){if(t&&r&&(!i||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(r);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,r,i,s]),function(){u.current=!0}}var G=["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=g.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,x=t.hideAction,w=t.popupVisible,C=t.defaultPopupVisible,D=t.onPopupVisibleChange,S=t.afterPopupVisibleChange,I=t.mouseEnterDelay,N=t.mouseLeaveDelay,R=void 0===N?.1:N,M=t.focusDelay,O=t.blurDelay,F=t.mask,j=t.maskClosable,B=void 0===j||j,z=t.getPopupContainer,H=t.forceRender,U=t.autoDestroy,W=t.destroyPopupOnHide,K=t.popup,V=t.popupClassName,Q=t.popupStyle,q=t.popupPlacement,J=t.builtinPlacements,$=void 0===J?{}:J,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,re=t.getPopupClassNameFromAlign,ie=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,me=t.className,ge=t.getTriggerDOMNode,ve=(0,s.Z)(t,G),ye=U||W||!1,_e=g.useState(!1),be=(0,i.Z)(_e,2),xe=be[0],we=be[1];(0,p.Z)((function(){we((0,m.Z)())}),[]);var Ee=g.useRef({}),Ae=g.useContext(k),ke=g.useMemo((function(){return{registerSubPopup:function(e,t){Ee.current[e]=t,null==Ae||Ae.registerSubPopup(e,t)}}}),[Ae]),Ce=(0,f.Z)(),Te=g.useState(null),De=(0,i.Z)(Te,2),Se=De[0],Pe=De[1],Le=g.useRef(null),Ie=(0,h.Z)((function(e){Le.current=e,(0,c.Sh)(e)&&Se!==e&&Pe(e),null==Ae||Ae.registerSubPopup(Ce,e)})),Ne=g.useState(null),Re=(0,i.Z)(Ne,2),Me=Re[0],Oe=Re[1],Fe=g.useRef(null),je=(0,h.Z)((function(e){(0,c.Sh)(e)&&Me!==e&&(Oe(e),Fe.current=e)})),Be=g.Children.only(v),ze=(null==Be?void 0:Be.props)||{},He={},Ze=(0,h.Z)((function(e){var t,n,r=Me;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Se?void 0:Se.contains(e))||(null===(n=(0,d.A)(Se))||void 0===n?void 0:n.host)===e||e===Se||Object.values(Ee.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ue=L(o,ue,he,de),Ye=L(o,ce,pe,fe),Xe=g.useState(C||!1),Ge=(0,i.Z)(Xe,2),We=Ge[0],Ke=Ge[1],Ve=null!=w?w:We,Qe=(0,h.Z)((function(e){void 0===w&&Ke(e)}));(0,p.Z)((function(){Ke(w||!1)}),[w]);var qe=g.useRef(Ve);qe.current=Ve;var Je=g.useRef([]);Je.current=[];var $e=(0,h.Z)((function(e){var t;Qe(e),(null!==(t=Je.current[Je.current.length-1])&&void 0!==t?t:Ve)!==e&&(Je.current.push(e),null==D||D(e))})),et=g.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)};g.useEffect((function(){return tt}),[]);var rt=g.useState(!1),it=(0,i.Z)(rt,2),st=it[0],at=it[1];(0,p.Z)((function(e){e&&!Ve||at(!0)}),[Ve]);var ot=g.useState(null),lt=(0,i.Z)(ot,2),ut=lt[0],ct=lt[1],dt=g.useState(null),ht=(0,i.Z)(dt,2),ft=ht[0],pt=ht[1],mt=function(e){pt([e.clientX,e.clientY])},gt=Z(Ve,Se,se&&null!==ft?ft:Me,q,$,ee,oe),vt=(0,i.Z)(gt,11),yt=vt[0],_t=vt[1],bt=vt[2],xt=vt[3],wt=vt[4],Et=vt[5],At=vt[6],kt=vt[7],Ct=vt[8],Tt=vt[9],Dt=vt[10],St=T(xe,_,b,x),Pt=(0,i.Z)(St,2),Lt=Pt[0],It=Pt[1],Nt=Lt.has("click"),Rt=It.has("click")||It.has("contextMenu"),Mt=(0,h.Z)((function(){st||Dt()}));Y(Ve,Me,Se,Mt,(function(){qe.current&&se&&Rt&&nt(!1)})),(0,p.Z)((function(){Mt()}),[ft,q]),(0,p.Z)((function(){!Ve||null!=$&&$[q]||Mt()}),[JSON.stringify(ee)]);var Ot=g.useMemo((function(){var e=P($,o,Tt,se);return l()(e,null==re?void 0:re(Tt))}),[Tt,re,$,o,se]);g.useImperativeHandle(n,(function(){return{nativeElement:Fe.current,popupElement:Le.current,forceAlign:Mt}}));var Ft=g.useState(0),jt=(0,i.Z)(Ft,2),Bt=jt[0],zt=jt[1],Ht=g.useState(0),Zt=(0,i.Z)(Ht,2),Ut=Zt[0],Yt=Zt[1],Xt=function(){if(ne&&Me){var e=Me.getBoundingClientRect();zt(e.width),Yt(e.height)}};function Gt(e,t,n,r){He[e]=function(i){var s;null==r||r(i),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=ze[e])||void 0===s||s.call.apply(s,[ze,i].concat(o))}}(0,p.Z)((function(){ut&&(Dt(),ut(),ct(null))}),[ut]),(Nt||Rt)&&(He.onClick=function(e){var t;qe.current&&Rt?nt(!1):!qe.current&&Nt&&(mt(e),nt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=ze.onClick)||void 0===t||t.call.apply(t,[ze,e].concat(r))});var Wt,Kt,Vt=X(Ve,Rt,Me,Se,F,B,Ze,nt),Qt=Lt.has("hover"),qt=It.has("hover");Qt&&(Gt("onMouseEnter",!0,I,(function(e){mt(e)})),Gt("onPointerEnter",!0,I,(function(e){mt(e)})),Wt=function(e){(Ve||st)&&null!=Se&&Se.contains(e.target)&&nt(!0,I)},se&&(He.onMouseMove=function(e){var t;null===(t=ze.onMouseMove)||void 0===t||t.call(ze,e)})),qt&&(Gt("onMouseLeave",!1,R),Gt("onPointerLeave",!1,R),Kt=function(){nt(!1,R)}),Lt.has("focus")&&Gt("onFocus",!0,M),It.has("focus")&&Gt("onBlur",!1,O),Lt.has("contextMenu")&&(He.onContextMenu=function(e){var t;qe.current&&It.has("contextMenu")?nt(!1):(mt(e),nt(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=ze.onContextMenu)||void 0===t||t.call.apply(t,[ze,e].concat(r))}),me&&(He.className=l()(ze.className,me));var Jt=g.useRef(!1);Jt.current||(Jt.current=H||Ve||st);var $t=(0,r.Z)((0,r.Z)({},ze),He),en={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ve[e]&&(en[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=$t[e])||void 0===t||t.call.apply(t,[$t].concat(r)),ve[e].apply(ve,r)})}));var tn=g.cloneElement(Be,(0,r.Z)((0,r.Z)({},$t),en)),nn={x:Et,y:At},rn=le?(0,r.Z)({},!0!==le?le:{}):null;return g.createElement(g.Fragment,null,g.createElement(u.Z,{disabled:!Ve,ref:je,onResize:function(){Xt(),Mt()}},g.createElement(A,{getTriggerDOMNode:ge},tn)),Jt.current&&g.createElement(k.Provider,{value:ke},g.createElement(E,{portal:e,ref:Ie,prefixCls:o,popup:K,className:l()(V,Ot),style:Q,target:Me,onMouseEnter:Wt,onMouseLeave:Kt,onPointerEnter:Wt,zIndex:te,open:Ve,keepDom:st,fresh:ie,onClick:ae,onPointerDownCapture:Vt,mask:F,motion:Ue,maskMotion:Ye,onVisibleChanged:function(e){at(!1),Dt(),null==S||S(e)},onPrepare:function(){return new Promise((function(e){Xt(),ct((function(){return e}))}))},forceRender:H,autoDestroy:ye,getPopupContainer:z,align:Tt,arrow:rn,arrowPos:nn,ready:yt,offsetX:_t,offsetY:bt,offsetR:xt,offsetB:wt,onAlign:Mt,stretch:ne,targetWidth:Bt/kt,targetHeight:Ut/Ct})))}));return t}(a.Z)},13767:function(e,t,n){"use strict";var r=n(82242),i=n.n(r),s=(n(59301),n(93314)),a=n(99571),o=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,r=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,m=e.imgStyles,g=e.loading,v=void 0!==g&&g,y=e.className,_=void 0===y?"":y;return(0,o.jsxs)("section",{className:"tc animated fadeIn ".concat(_),style:i()({color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"},u),children:[(0,o.jsx)("img",{src:t||s,style:i()(i()({},m),{},{pointerEvents:"none",userSelect:"none"})}),(0,o.jsx)("p",{className:"mt20 font14",children:c||"暂时还没有相关数据哦!"}),d&&(0,o.jsx)(a.ZP,i()(i()({className:f,onClick:h},r),{},{children:d})),p&&p]})}},32831:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(82242),i=n.n(r),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),m=n(92068),g=n(25399),v=n(83287),y=n(94280),_=n(13767),b=n(91689),x=n(8814),w=n(37712),E=function(e){var t,n,r,s,o,u,E=e.editOffice,A=void 0===E?"view":E,k=e.data,C=e.issaver,T=e.onSaver,D=(e.theme,e.type),S=e.filename,P=e.monacoEditor,L=e.className,I=e.style,N=e.close,R=e.onClose,M=e.hasMask,O=e.disabledDownload,F=e.onImgDimensions,j=e.showNodata,B=e.recordInfo,z=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),H=c()(z,2),Z=(H[0],H[1],(0,d.useState)("")),U=c()(Z,2),Y=(U[0],U[1]),X=(0,d.useState)(),G=c()(X,2),W=G[0],K=G[1],V="build"===window.ENV?"/react/build":"",Q=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,q=(0,d.useRef)();null!==(t=k)&&void 0!==t&&t.startsWith("/api")&&"txt"!==D&&(k=b.Z.API_SERVER+k);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&&(T(t.data.data),window.removeEventListener("message",J,!1)),console.log("mess---:",t.data);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}S&&P&&(P.filename=S),(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]&&Y(t[1])}))}),[]),(0,d.useEffect)((function(){var e;"office"===D&&(k.indexOf("bigfilescdn.")>-1||k.indexOf("bigfiles1")>-1?K({url:k,fileType:(e=k,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:k.indexOf("model=edit")?"edit":"view"}):ee())}),[D,k]);var ee=function(){var e=l()(a()().mark((function e(){var t,n,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",k),t=k,k.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,y.gJ)({attachment_id:n});case 6:(r=e.sent).url=Q+r.url,K(r);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(){k.startsWith("http")||k.startsWith("blob:")?ne():(0,v.Sv)(S||"educoder",k,S)},ne=function(){B&&(0,x.fc)({id:null==B?void 0:B.id,watch_type:1,course_id:null==B?void 0:B.course_id}),(0,v.Nd)(S||"educoder",decodeURIComponent(k))};return(0,w.jsxs)("div",{style:i()({},I||{}),className:"".concat(M&&h.bgBlack," ").concat(D?h.wrp:"hide"),children:[N&&(0,w.jsxs)("div",{className:h.close,ref:q,children:[!!F&&(0,w.jsx)(g.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return q.current},children:(0,w.jsx)("span",{onClick:function(){R(),F()},children:(0,w.jsx)("i",{className:"icon-yulanpizhu"})})}),!O&&(0,w.jsx)(g.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)(g.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)(g.Z,{title:"关闭",getPopupContainer:function(){return q.current},children:(0,w.jsx)("span",{className:"",onClick:function(){R()},children:(0,w.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,w.jsx)("div",{className:"".concat(h[L]," ").concat(L," ").concat(h.monaco," ").concat("txt"===D?"show":"hide"),children:"txt"===D&&(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(m.ZP,i()({},P))})}),"audio"===D&&(0,w.jsx)("audio",{src:"".concat((null===(n=k)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(r=k)||void 0===r?void 0:r.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(k),autoPlay:!0}),"video"===D&&(0,w.jsx)(w.Fragment,{children:(null===(s=k)||void 0===s?void 0:s.indexOf("http"))>-1?(0,w.jsx)("video",{controls:!0,src:"".concat(k),autoPlay:!0}):(0,w.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(k),autoPlay:!0})}),"office"===D&&W&&(0,w.jsx)("iframe",{src:"".concat(V,"/office.html?key=").concat(W.key,"&url=").concat(btoa(W.url),"&callbackUrl=").concat(Q+(W.callbackUrl||""),"&fileType=").concat(W.fileType,"&title=").concat(W.title||"","&model=").concat(A,"&officeServer=").concat(b.Z.ONLYOFFICE,"&disabledDownload=").concat(!!O)}),"html"===D&&(0,w.jsx)("iframe",{src:k+"&disposition=inline"}),"pdf"===D&&(0,w.jsx)("iframe",{id:"pdfiframe",src:"".concat(V,"/js/pdfview/index.html?filename=").concat(S||"educoder.pdf","&url=").concat(encodeURIComponent(k),"&disabledDownload=").concat(!!O,"&model=").concat(A)}),"image"===D&&(0,w.jsx)("img",{src:"".concat((null===(o=k)||void 0===o?void 0:o.indexOf("http://"))>-1||(null===(u=k)||void 0===u?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(k)}),("other"===D||"download"===D)&&(0,w.jsx)(w.Fragment,{children:j?(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"===D&&(0,w.jsx)("div",{className:"embed",children:(0,w.jsx)("iframe",{src:"/drawio/src/main/webapp/viewer.html?id=".concat(k||"","&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 D},Z:function(){return S}});var r=n(82242),i=n.n(r),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),m=n(83287),g=n(15342),v=n(77736),y=n(99571),_=n(1012),b=n(32831),x=n(37712),w=function(e){var t=e.html,n=(0,d.useRef)(null),r=(0,d.useRef)(null);return(0,d.useEffect)((function(){var e=n.current.attachShadow({mode:"open"});r.current=document.createElement("div"),r.current.className="markdown-body",r.current.innerHTML=t,e.appendChild(r.current);var i=document.createElement("style");return i.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(i),function(){e.innerHTML=""}}),[]),(0,d.useEffect)((function(){r.current&&(r.current.innerHTML=t)}),[t]),(0,x.jsx)("div",{ref:n})};var E="mdBody___raKXb",A="button___Ch5Pc",k="previewFlowChart___vY1dq",C="@▁@",T=/<pre[^>]*>/g;var D=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,r,i,s,a){var o=t||r||s,l=n||i||a||"?";return p.Z.API_SERVER+"/api/attachments/"+o+l+"&t="+(0,m.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,r,i,s,a){var o=t||r||s,l=n||i||a||"?";return p.Z.API_SERVER+"/attachments/download/"+o+l+"&t="+(0,m.Jn)(o,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(n,(function(e,t,n,r,i,s,a){var o=t||r||s,l=n||i||a||"?";return p.Z.API_SERVER+"/api/attachments/"+o+l+"&t="+(0,m.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,r,i){var s=t||r,a=n||i||"";return'"'+p.Z.API_SERVER+"/api/attachments/"+s+a+s+a+"&t="+(0,m.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,r,i){var s=t||r,a=n||i||"";return"("+p.Z.API_SERVER+"/files/uploads/"+s+a+s+a+"&t="+(0,m.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")},S=function(e){var t=e.value,n=void 0===t?"":t,r=e.edit,s=void 0!==r&&r,o=e.className,u=e.showTextOnly,m=e.showLines,D=e.style,S=void 0===D?{}:D,P=e.stylesPrev,L=void 0===P?{}:P,I=e.highlightKeywords,N=e.showProgramFill,R=(e.isProgramFill,e.disabledFill),M=void 0!==R&&R,O=e.programFillValue,F=e.openEditor,j=void 0===F?function(){}:F,B=e.onFillChange,z=void 0===B?function(e){}:B,H=e.onFillBlur,Z=void 0===H?function(){}:H,U=e.onFillFocus,Y=void 0===U?function(){}:U,X=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||"")),G=(0,d.useRef)(),W=(0,d.useRef)(),K=(0,d.useState)(""),V=c()(K,2),Q=V[0],q=V[1],J=(0,d.useState)("office"),$=c()(J,2),ee=$[0],te=$[1],ne=(0,d.useState)([]),re=c()(ne,2),ie=re[0],se=re[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(X)?e:e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),r=[];return n.map((function(e){""!=e&&r.push(".".concat(ae.current," ").concat(e))})),"<style>".concat(r.join("}"),"</style>")}))},ce=(0,d.useMemo)((function(){try{X=X.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"),G.current.style.display="none"}catch(e){}if(N){var e=-1;return X=X.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(t,n,r){var i;return function(e,t,n){var r=document.createElement(e===C?"input":"textarea");r.style.width="100%",r.style.height=e===C?"40px":"151px",r.rows=5,r.spellcheck=!1,r.name="edu-program-fill",r.placeholder="请输入",r.dataset.id=t;var i=Object.keys(oe).length;return oe[i]=r,'<span class="edu-program-fill-wrap '.concat(e===C?"":"show",'" style="width:').concat(e===C?"600px":"100%",'" title=').concat(n||"","><span>").concat(r.outerHTML,'<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>')}(t,++e,null==O||null===(i=O[e])||void 0===i?void 0:i.value.replaceAll("<","<").replaceAll(">",">"))})),'<pre style="background:#fff;padding:4px">'.concat(ue(X||""),"</pre>")}var t=ue(X);t=(0,h.ZP)(t);var n=(0,h.ez)();X.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 r=n[t],i=r.type,s=r.expression;return(0,g.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===i,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),(0,h.AL)();var r=document.createElement("div");return r.innerHTML=t,u?r.innerText:I?(pe(r,I.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),r.innerHTML):(setTimeout((function(){return ve()}),500),r.innerHTML)}),[X,I]);(0,d.useEffect)((function(){me.current&&me.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=de,e.onblur=he,e.onfocus=fe}))}),[ie]),(0,d.useEffect)((function(){if(null!=O&&O.length)try{var e,t=me.current.querySelectorAll(".edu-program-fill-score"),n=me.current.querySelectorAll('[name="edu-program-fill"]'),r=l()(n.entries());try{for(r.s();!(e=r.n()).done;){var i,s,a,o=c()(e.value,2),u=o[0],d=o[1];d.value=(null==O||null===(i=O[u])||void 0===i?void 0:i.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){r.e(e)}finally{r.f()}var h,f=l()(t.entries());try{for(f.s();!(h=f.n()).done;){var p,m,g=c()(h.value,2),v=g[0];g[1].innerHTML=null!=O&&null!==(p=O[v])&&void 0!==p&&p.score?"".concat(null==O||null===(m=O[v])||void 0===m?void 0:m.score,"分"):""}}catch(e){f.e(e)}finally{f.f()}se(O)}catch(e){console.log(e,"error")}}),[O]);var de=function(e){ie[e.target.dataset.id]=ie[e.target.dataset.id]||{},ie[e.target.dataset.id].value=e.target.value,se(a()(ie)),z(ie,e.target.dataset.id)},he=function(e){ie[e.target.dataset.id]=ie[e.target.dataset.id]||{},ie[e.target.dataset.id].value=e.target.value,se(a()(ie)),Z(ie,e.target.dataset.id)},fe=function(e){ie[e.target.dataset.id]=ie[e.target.dataset.id]||{},ie[e.target.dataset.id].value=e.target.value,se(a()(ie)),Y(ie,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 r=document.createElement("span");r.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(r)}}))}var me=(0,d.useRef)();function ge(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 r=document.getElementById(n.replace("#",""));r&&r.scrollIntoView(!0)}}}h.jb.WebkitLineClamp=m,m&&(S=i()(i()({},S),h.jb));var ve=function(){var e,t=null===(e=me.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(me.current&&ce&&ce.match(T)&&window.PR.prettyPrint(),me.current)return me.current.addEventListener("click",ge),function(){var e;null===(e=me.current)||void 0===e||e.removeEventListener("click",ge),(0,h.AL)(),(0,h.Iy)()}}),[ce,me.current,ge]);return(0,d.useEffect)((function(){var e,t=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=me.current)||void 0===e||e.addEventListener("copy",t),function(){var e;null===(e=me.current)||void 0===e||e.removeEventListener("copy",t)}}),[me.current]),(0,x.jsxs)("div",{style:{position:"relative"},onMouseLeave:function(){G.current.style.display="none"},children:[u&&(0,x.jsx)("div",{ref:me,className:"".concat(E," "),children:ce}),!u&&!le(ce)&&(0,x.jsx)("div",{ref:me,style:i()({},S),onMouseOver:function(e){"IMG"===e.target.nodeName&&e.target.className.indexOf("draw-flowchart")>-1?(G.current.style.zIndex=1,G.current.style.display="flex",G.current.style.width=e.target.clientWidth+"px",G.current.style.height=e.target.clientHeight+"px",G.current.style.top=e.target.offsetTop+"px",G.current.style.left=e.target.offsetLeft+"px",e.target.id&&(W.current=e.target.id)):G.current.style.display="none"},className:"".concat(o||""," ").concat(M?"disabled-fill":""," markdown-body ").concat(E," ").concat(ae.current),dangerouslySetInnerHTML:{__html:ce}}),!u&&le(ce)&&(0,x.jsx)(w,{html:ce}),(0,x.jsx)("div",{ref:G,className:"".concat(A," ").concat(s?"":k),children:(0,x.jsx)(v.Z,{children:(0,x.jsx)(y.ZP,{onClick:function(){s?j(W.current):(q(W.current),te("flowChart"))},children:s?"编辑":"预览"})})}),(0,x.jsx)(b.Z,{close:!0,data:Q,type:null!=Q&&Q.length?ee:"",style:i()({},L),onClose:function(){return q("")}})]})}},92068:function(e,t,n){"use strict";n.d(t,{SV:function(){return q},ZP:function(){return Q}});var r=n(82242),i=n.n(r),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),m=n(41498),g=n.n(m),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"]},x={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")}]},E={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join("\n")}]},A=n(53184),k=n.n(A),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"]}},T=function(e,t,n,r){e.languages.registerCompletionItemProvider(t,{provideCompletionItems:function(t,i){var s=t.getWordUntilPosition(i),o={startLineNumber:i.lineNumber,endLineNumber:i.lineNumber,startColumn:s.startColumn,endColumn:s.endColumn},l=t.getLineContent(i.lineNumber).substring(s.startColumn-2,s.endColumn),u=function(e,t,n,r){var i=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column});return Array.from(new Set(i.match(/\b\w{2,}\b/g)||[])).map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Text,insertText:t,range:r}}))}(e,t,i,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()(r.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}}))))}}})},D=n(82100),S=n.n(D),P=n(29186),L=n.n(P),I=n(85573),N=n.n(I),R=function(){function e(t,n,r){var i=this;S()(this,e),this.placeholder=t,this.editor=n,this.monaco=r,n.onDidChangeModelContent((function(){return i.onDidChangeModelContent()})),this.onDidChangeModelContent()}return L()(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()(R,"ID","editor.widget.placeholderHint");var M=R,O=n(96236),F=n(6767),j=n(25399),B=n(89392),z=n(70717),H=n(56102),Z=n(37712),U=["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 Y(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function X(){}var G={"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 r=G[e[n]];if(r)return r}return t[0]}return G[t]||t}var K=null,V=function(){var e=g()(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)}}(),Q=function(e){var t=e.width,r=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,m=e.style,A=void 0===m?{}:m,D=e.options,S=void 0===D?{}:D,P=e.overrideServices,L=void 0===P?{}:P,I=e.theme,N=void 0===I?"vs-dark":I,R=e.onEditBlur,G=e.isCopy,Q=void 0!==G&&G,q=e.onSave,J=e.autoHeight,$=void 0!==J&&J,ee=e.forbidCopy,te=void 0!==ee&&ee,ne=e.onChange,re=void 0===ne?X:ne,ie=e.editorDidMount,se=void 0===ie?X:ie,ae=e.onFocus,oe=void 0===ae?X:ae,le=e.onBreakPoint,ue=void 0===le?X:le,ce=e.breakPointValue,de=void 0===ce?[]:ce,he=e.filename,fe=void 0===he?"educoder.txt":he,pe=e.errorLine,me=e.errorContent,ge=void 0===me?"":me,ve=e.highlightLine,ye=e.openBreakPoint,_e=void 0!==ye&&ye,be=e.placeholder,xe=void 0===be?"":be,we=e.showMiniMap,Ee=void 0===we||we,Ae=(h()(e,U),(0,v.useRef)()),ke=(0,v.useRef)({}),Ce=(0,v.useRef)(),Te=(0,v.useRef)(),De=(0,v.useRef)([]),Se=(0,v.useRef)(!1),Pe=(0,v.useRef)(),Le=(0,v.useRef)(),Ie=(0,v.useRef)(!1),Ne=(0,v.useState)(!1),Re=c()(Ne,2),Me=Re[0],Oe=Re[1];(0,v.useEffect)((function(){var e=z.Z.subscribe("formatDocument",(function(e){var t,n=ke.current.instance;null==n||null===(t=n.getAction)||void 0===t||t.call(n,"editor.action.formatDocument").run()}));return window.updateMonacoValue=function(e){re(e)},e}),[]),(0,v.useEffect)((function(){var e,t=ke.current.instance;(Te.current&&clearTimeout(Te.current),Te.current=setTimeout((function(){!function(){var e=ke.current.instance;if(null!=u&&e&&Me){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,Me,ke.current]),(0,v.useEffect)((function(){if(pe&&ke.current&&ke.current.instance){var e=ke.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=ge,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,ke.current,Me]);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=ke.current.instance.getModel(),r=n.getLineTokens(t),i=!1,s=0;s<2;s++)1===r.getStandardTokenType(s)&&(i=!0);return i};function je(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=ke.current)||void 0===e?void 0:e.instance;if(t&&Me&&te){var n=t.onDidBlurEditorWidget((function(){Ie.current=!1})),r=t.onDidFocusEditorText((function(){Ie.current=!0}));return function(){n.dispose(),r.dispose()}}}),[ke.current,Me,te]),(0,v.useEffect)((function(){var e;if(null!==(e=ke.current)&&void 0!==e&&e.instance&&Me&&_e){var t=ke.current.instance,n=t.getModel();if(!n)return;!function(){var e,r=[],i=[],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)r.push(null==u||null===(o=u.range)||void 0===o?void 0:o.startLineNumber),i.push(null==u?void 0:u.id)}}catch(e){a.e(e)}finally{a.f()}if(ve!==r[0]){n.deltaDecorations(i,[]);var c=n.getLineCount();ve&&ve<=c&&(t.deltaDecorations([],[{range:new K.Range(ve,1,ve,n.getLineMaxColumn(ve)),options:{isWholeLine:!0,className:"highlighted-line"}}]),t.revealLineInCenter(ve))}}();var r=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=[],i=[],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)r.push(null==u||null===(o=u.range)||void 0===o?void 0:o.startLineNumber),i.push(null==u?void 0:u.id)}}catch(e){a.e(e)}finally{a.f()}if(t)return{lines:r,ids:i};ue(r)},i=function(){var e=g()(p()().mark((function e(t){var i;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={range:new K.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}},e.next=3,n.deltaDecorations([],[i]);case 3:r();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=g()(p()().mark((function e(i){var s,a,o,u,c;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=[],a=t.getLineDecorations(i),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:r();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(e){var n,r=t.getLineDecorations(e),i=l()(r);try{for(i.s();!(n=i.n()).done;){if("breakpoints-select"===n.value.options.linesDecorationsClassName)return!0}}catch(e){i.e(e)}finally{i.f()}return!1};if(!(0,B.isEqual)(de,r(!0).lines)){n.deltaDecorations(r(!0).ids,[]);var o=de.map((function(e){return{range:new K.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(Le.current),Le.current=setTimeout((function(){Fe(n.getLineContent(l),l)?s(l):a(l)?(s(l),i(l)):r()}),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 r=e.target.position.lineNumber;if(Fe(n.getLineContent(r),r))return;a(r)?s(r):i(r)}})),d=function(){De.current=t.deltaDecorations(De.current,[])},h=t.onMouseMove((function(e){var r;if(d(),e.target.detail&&null!==(r=e.target)&&void 0!==r&&null!==(r=r.element)&&void 0!==r&&null!==(r=r.className)&&void 0!==r&&r.includes("line-numbers")){var i=e.target.position.lineNumber;if(Fe(n.getLineContent(i),i))return;!function(e){var n={range:new K.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};De.current=t.deltaDecorations(De.current,[n])}(i)}})),f=t.onMouseLeave((function(){d()}));return function(){u.dispose(),c.dispose(),h.dispose(),f.dispose()}}}),[ke.current,Me,de,ve,_e,f]),(0,v.useEffect)((function(){var e;null!==(e=ke.current)&&void 0!==e&&e.instance&&_e&&ke.current.instance.setPosition({lineNumber:0,column:0})}),[ve]);var Be=function(){if($&&ke.current.instance){var e=ke.current.instance.getContentHeight();Ke(e<o?o:e)}else Ke(o)};var ze=function(e){if(Ie.current){var t=e.keyCode,n=e.ctrlKey,r=e.metaKey,i=e.target;return"paste"!==e.type&&(67!==t&&86!==t||!r&&!n)||"TEXTAREA"!==i.nodeName||(F.ZP.warning({content:decodeURIComponent("该任务关卡设置了禁止复制粘贴,请手动输入代码。"),key:"monaco-editor-tip"}),e.preventDefault()),!1}};function He(e,t){var n,r,i=window.URL||window.webkitURL||window,s=new Blob([t]),a=document.createElementNS("http://www.w3.org/1999/xhtml","a");a.href=i.createObjectURL(s),a.download=e,n=a,(r=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)}(0,v.useEffect)((function(){Be()}),[Be]),(0,v.useEffect)((function(){Ae.current&&!Me&&Promise.all([n.e(8909),n.e(5028)]).then(n.bind(n,71448)).then((function(e){try{K=e,ke.current.instance=K.editor.create(Ae.current,{value:u,language:W(f),theme:N,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ee||!1}},L);var t=ke.current.instance,n=O.BH._menuItems,r=a()(n).find((function(e){return"EditorContext"==e[0]._debugName}))[1];if(se(t,K),setTimeout((function(){Be(),ke.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){He(fe||"educoder.txt",t.getValue())}})}),500),ke.current.subscription=t.onDidChangeModelContent((function(e){Se.current?clearTimeout(Pe.current):(Be(),re(t.getValue(),e)),Pe.current=setTimeout((function(){Se.current=!1}),500)})),window.Monaco||function(e){C.languages.forEach((function(t){e.languages.registerDocumentFormattingEditProvider(t,{provideDocumentFormattingEdits:function(e){return g()(p()().mark((function t(){var n;return p()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=k()(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)})))()}})})),T(e,"java",b.keywords,b.quickKey),T(e,"cpp",x.keywords,x.quickKey),T(e,"c",_,[]),T(e,"python",w.keywords,w.quickKey),T(e,"scala",E.keywords,E.quickKey)}(K,W(f)),te&&(!function(e,t){var n=e._first;do{var r;t.includes(null===(r=n.element)||void 0===r||null===(r=r.command)||void 0===r?void 0:r.id)&&e._remove(n)}while(n=n.next)}(r,["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"]),Ae.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ze),window.removeEventListener("paste",ze),window.addEventListener("keydown",ze),window.addEventListener("paste",ze)),window.Monaco=K,R&&t.onDidBlurEditorWidget((function(){R(t.getValue())})),oe&&t.onDidFocusEditorText((function(){te&&V(),oe(t.getValue())})),te){V();try{t.onDidPaste((function(e){var n=t.getSelection(),r=ke.current.pastePos||{};new K.Range(r.startLineNumber||n.endLineNumber,r.startColumn||n.endColumn,r.endLineNumber||n.endLineNumber,r.endColumn||n.endColumn);t.executeEdits("",[{range:e.range,text:""}])}))}catch(e){}}var i=function(){var e;return Ae.current&&(e=new y.Z((function(e){var t,n=l()(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&ke.current.instance.layout()}}catch(e){n.e(e)}finally{n.f()}}))).observe(Ae.current),e}();return xe&&"string"==typeof xe&&new M(xe,t,K),Oe(!0),function(){var e=ke.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),ke.current.subscription&&ke.current.subscription.dispose(),i.unobserve(Ae.current)}}catch(e){}}))}),[]),(0,v.useEffect)((function(){if(ke.current.instance&&Me)return document.addEventListener("keydown",je,!1),function(){document.removeEventListener("keydown",je)}}),[q,Me]),(0,v.useEffect)((function(){var e=ke.current.instance;if(e&&Me){var t=W(f);K.editor.setModelLanguage(e.getModel(),t)}}),[f,Me]),(0,v.useEffect)((function(){ke.current.instance&&Me&&K.editor.setTheme(N)}),[N,Me]),(0,v.useEffect)((function(){var e=ke.current.instance;Ce.current=S,e&&Me&&(e.updateOptions(i()({},S)),setTimeout((function(){e.getModel().updateOptions(i()({},S))}),200))}),[JSON.stringify(S),Me]),(0,v.useEffect)((function(){var e=ke.current.instance;e&&Me&&e.layout()}),[r,o,Me]);var Ze=(0,v.useState)(Y(r)),Ue=c()(Ze,2),Ye=Ue[0],Xe=(Ue[1],(0,v.useState)(Y(o))),Ge=c()(Xe,2),We=Ge[0],Ke=Ge[1],Ve=i()(i()({},A),{},{width:Ye,height:We,position:"relative"});return(0,Z.jsx)("div",{className:"my-monaco-editor",ref:Ae,style:Ve,children:Q&&(0,Z.jsx)(H.CopyToClipboard,{text:u,onCopy:function(){return F.ZP.success("复制成功")},children:(0,Z.jsx)(j.Z,{title:"复制代码",children:(0,Z.jsxs)("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"},children:[(0,Z.jsx)("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," 复制代码"]})})})})};function q(e){var t=e.width,r=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)(),m=(0,v.useState)(null),g=c()(m,2),_=g[0],b=g[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=(K=e).editor.createDiffEditor(p.current,i()(i()({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,r=l()(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&e.layout()}}catch(e){r.e(e)}finally{r.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:K.editor.createModel(o,d),modified:K.editor.createModel(u,d)})}),[o,u,d,_]);var x={width:Y(r),height:Y(a)};return(0,Z.jsx)("div",{className:"my-diff-editor",ref:p,style:x})}},63599:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return fe}});var r=n(7557),i=n.n(r),s=n(41498),a=n.n(s),o=n(37205),l=n.n(o),u=n(82242),c=n.n(u),d=n(79800),h=n.n(d),f=n(59301),p=n(53260),m={flex_box_center:"flex_box_center___Tmtg1",flex_space_between:"flex_space_between___SRe3q",flex_box_vertical_center:"flex_box_vertical_center___ADnG9",flex_box_center_end:"flex_box_center_end___s78VI",flex_box_column:"flex_box_column___lyOC9",wrap:"wrap___SgpPV",bg:"bg___HRlov",head:"head___l1zw4",fanhui:"fanhui___sgNSf",title:"title___F6E4U",fenban:"fenban___XC6qn",fanwei:"fanwei___GyFnS",daochu:"daochu___tGDeW",content:"content___VVv5U",left:"left___qHcF4",left_top:"left_top___r9ESL",stats_container:"stats_container___mOSTP",stat_card:"stat_card___vZ2xB",icon_wrapper:"icon_wrapper___C7fZA",stat_content:"stat_content___iNQ5T",stat_label:"stat_label___UX_47",stat_value:"stat_value___NVdey",scores_container:"scores_container___ZNqR8",score_card:"score_card___pRbcf",score_title:"score_title___KBFjz",score_content:"score_content___kuMtE",score_value:"score_value___p5nEO",score_trend:"score_trend___ArCc9",score_compare:"score_compare___GKMhP",left_bottom:"left_bottom____WZRP",completion_card:"completion_card___c95if",card_header:"card_header___sZXGx",card_title:"card_title___QMCIa",card_value:"card_value___BDO7Z",trend:"trend___DKl5H",progress_list:"progress_list___R1QGk",progress_item:"progress_item___Ijh8Z",progress_label:"progress_label___fIKfz",progress_bar:"progress_bar___NZtaM",progress_inner:"progress_inner___TgWt8",zbdw_title:"zbdw_title___W30wC",zbdw_school:"zbdw_school___rxvRa",juesai:"juesai___tse7n",left_indicators:"left_indicators___egqRr",indicator_item:"indicator_item___LPZGf",dot:"dot___Caw5C",dot_inner:"dot_inner___HNlU9",indicator_content:"indicator_content___IAoZ7",value:"value___qLqTK",label:"label___ZSwSe",right_indicators:"right_indicators___TTju6",center_circle:"center_circle___WXKq6",outer_ring:"outer_ring___izm2Q",text:"text___XAIlf",inner_circle:"inner_circle___nF4I7",circle_value:"circle_value___KI5EF",circle_label:"circle_label___u5pE4",circle_sublabel:"circle_sublabel___ok0HU",daojishi:"daojishi___GECa9",daojishi_title:"daojishi_title___HK3mB",daojishi_text:"daojishi_text___nSgmR",tab_container:"tab_container___il98g",tab_list:"tab_list___OH2VU",tab_item:"tab_item___IUxO9",active:"active___y5gQK",tab_content:"tab_content___gRgOA"},g=n.p+"static/bg.290e4fe4.png",v=n.p+"static/biaoti.6620d35e.png",y=n(39647),_=n.n(y),b={title:"title___Dklbk",table_wrapper:"table_wrapper___DVU8L",table_scroll:"table_scroll___abaQs",table_content:"table_content___X1bvS",table_row:"table_row___tcYAy",table_cell:"table_cell___n8bJx",rate:"rate___fVEID",trend:"trend___YS2gb",flexbox:"flexbox___JvPUp",echart_wrapper:"echart_wrapper___TKhSs",chart_title_row:"chart_title_row___eXb5m",chart_title:"chart_title___llsTK",chart_legend:"chart_legend___uXfE0",legend_item:"legend_item___BkvW9",legend_dot:"legend_dot___ZzRvz",blue:"blue___mDPIr",orange:"orange___FOfHr",green:"green___vMYXu",purple:"purple___YN4cz",rank_wrapper:"rank_wrapper___gdcNQ",rank_title:"rank_title___GCXY7",rank_table:"rank_table___Go8He",rank_header:"rank_header___HKdZF",rank_cell:"rank_cell___GCkMz",rank_body:"rank_body___p5jDf",rank_row:"rank_row___pG3zu",rank_icon:"rank_icon___HEvJY",rank_1:"rank_1___olQW1",rank_2:"rank_2___CRK7u",rank_3:"rank_3___SKPCQ",content:"content___ufyXA",content_bottom:"content_bottom___ZLDuj",table_title:"table_title___JNWhx",suggestion:"suggestion___suR8p",head:"head___a3wrg",bianji:"bianji___LIaMP",no_data:"no_data___8W_K9",circle_sublabel:"circle_sublabel___emtGv",content_left:"content_left___B1eZE",content_right:"content_right____efGV",tooltip:"tooltip___s1rsK"},x=n(42441),w=n(9271),E=n(17400),A=n(6272),k=n(25399),C=n(29787),T=n(94171),D=n(74889),S=n(83287),P=n(37712),L=["shixunsDetail","globalSetting","loading","dispatch","paramsObj"],I=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading;var t,n,r,s,o,l,u,d,m,g,v,y,I,N=e.dispatch,R=e.paramsObj,M=(_()(e,L),(0,p.useParams)()),O=(0,p.useSearchParams)(),F=h()(O,1)[0],j=(0,f.useState)({}),B=h()(j,2),z=B[0],H=B[1],Z=(0,f.useState)(!1),U=h()(Z,2),Y=U[0],X=U[1];(0,f.useEffect)((function(){K()}),[R]);var G,W,K=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(null==M?void 0:M.coursesId,"/statistics/targets.json"),{method:"get",params:c()({},R)});case 3:0==(null==(t=e.sent)?void 0:t.status)&&H(null==t?void 0:t.data),X(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=["#05FF9A","#0374EA","#E17017","#E61B80","#03FEF8"];return(0,P.jsx)(C.Z,{spinning:Y,children:(0,P.jsxs)("div",{style:{color:"#fff"},children:[(0,P.jsxs)("div",{className:b.title,children:["所选时间课堂目标达成情况 ",(0,P.jsxs)("span",{style:{color:"#A4C8FC",fontSize:"0.12rem",fontWeight:"400",marginLeft:"0.1rem"},onClick:function(){return(0,S.xg)("/classrooms/".concat(M.coursesId,"/statistics/").concat(F.get("category_id"),"?tabs=3"))},children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑课程达成度"]})]}),(0,P.jsxs)("div",{className:b.content,children:[(0,P.jsxs)("div",{className:b.content_left,children:[(0,P.jsx)("div",{className:b.table_wrapper,children:(0,P.jsx)("div",{className:b.table_scroll,children:(0,P.jsxs)("div",{className:b.table_content,children:[(0,P.jsxs)("div",{className:b.table_row,style:{backgroundColor:"rgba(164,200,252,0.1)",color:"#A4C8FC",height:"0.4rem"},children:[(0,P.jsx)("div",{className:b.table_cell,style:{width:"1rem"},children:"整体达成度"}),null==z||null===(t=z.course_groups_target_list)||void 0===t?void 0:t.map((function(e,t){return(0,P.jsx)("div",{className:b.table_cell,style:{width:"1.3rem"},children:(0,P.jsx)(k.Z,{title:e.course_group_name,placement:"topLeft",children:e.course_group_name})})}))]}),(0,P.jsxs)("div",{className:"".concat(b.table_row," ").concat(b.flexbox),children:[(0,P.jsx)("div",{className:b.table_cell,style:{width:"1rem"},children:(0,P.jsxs)("span",{className:b.rate,children:[null==z||null===(n=z.course_targets)||void 0===n?void 0:n.course_target_rate,"%"]})}),null==z||null===(r=z.course_groups_target_list)||void 0===r?void 0:r.map((function(e,t){return(0,P.jsxs)("div",{className:b.table_cell,style:{width:"1.3rem"},children:[(0,P.jsxs)("span",{className:b.rate,children:[e.target_rate,"%"]}),(0,P.jsx)("span",{children:e.is_max?"(最高)":e.is_min?"(最低)":""})]})}))]})]})})}),(0,P.jsxs)("div",{className:b.echart_wrapper,children:[(0,P.jsx)("div",{className:b.chart_title_row,children:(0,P.jsx)("div",{className:b.chart_title,children:"班级维度达成度分析图"})}),(0,P.jsx)("div",{className:b.chart_content,children:(null==z?void 0:z.course_groups_target_list)&&(0,P.jsx)(x.Z,{option:{tooltip:{trigger:"item",axisPointer:{type:"shadow"},position:function(e,t,n,r,i){return[r.x-27,r.y-50]},backgroundColor:"transparent",borderWidth:0,formatter:function(e){return'<div class="'.concat(b.tooltip,'" style="background:rgba(4,106,216,0.4);color:rgba(4,106,216,0.4)">\n <span>').concat(parseFloat(e.value),"%</span>\n </div>")}},grid:{top:10,bottom:20,left:0,right:35,containLabel:!0},dataZoom:[c()(c()({type:"slider"},(null==z||null===(s=z.course_groups_target_list)||void 0===s?void 0:s.length)>10?{start:0,end:15}:{}),{},{show:(null==z||null===(o=z.course_groups_target_list)||void 0===o?void 0:o.length)>10,xAxisIndex:[0],bottom:0,height:10,borderColor:"transparent",backgroundColor:"rgba(164, 200, 252, 0.1)",fillerColor:"rgba(3, 116, 234, 0.3)",handleStyle:{color:"#0374EA",borderColor:"#0374EA"},moveHandleStyle:{color:"#0374EA"},selectedDataBackground:{lineStyle:{color:"#0374EA"},areaStyle:{color:"#0374EA"}},textStyle:{color:"#A4C8FC"}})],xAxis:{type:"category",data:null==z||null===(l=z.course_groups_target_list)||void 0===l?void 0:l.map((function(e){return e.course_group_name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",interval:0,formatter:function(e){return"".concat(e)},rich:{title:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:100,tooltip:{show:!0}}}}},yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:function(e){return parseFloat(e).toFixed(1)}}},series:[{data:(null==z||null===(u=z.course_groups_target_list)||void 0===u?void 0:u.map((function(e){return e.target_rate})))||[],type:"bar",barWidth:34,itemStyle:{color:"#0374EA"},markLine:{silent:!0,symbol:"none",label:{show:!0,formatter:"平均值",position:"insideEnd",color:"#03FEF8",fontSize:"0.12rem",distance:[0,0]},lineStyle:{color:"#03FEF8",type:"dashed",width:1},data:[{yAxis:null==z||null===(d=z.course_targets)||void 0===d?void 0:d.course_target_rate,name:"平均值"}]}}]},style:{height:"2.28rem"}})})]})]}),(0,P.jsxs)("div",{className:b.content_right,children:[(0,P.jsx)("div",{className:b.table_wrapper,children:(0,P.jsx)("div",{className:b.table_scroll,children:(0,P.jsxs)("div",{className:b.table_content,children:[(0,P.jsx)("div",{className:b.table_row,style:{backgroundColor:"rgba(164,200,252,0.1)",color:"#A4C8FC",height:"0.4rem"},children:null==z||null===(m=z.course_targets)||void 0===m||null===(m=m.list)||void 0===m?void 0:m.map((function(e,t){var n;return(0,P.jsx)("div",{className:b.table_cell,style:{width:"".concat(100/(null==z||null===(n=z.course_targets)||void 0===n||null===(n=n.list)||void 0===n?void 0:n.length),"%")},children:null==e?void 0:e.name})}))}),(0,P.jsx)("div",{className:b.table_row,children:null==z||null===(g=z.course_targets)||void 0===g||null===(g=g.list)||void 0===g?void 0:g.map((function(e,t){var n;return(0,P.jsxs)("div",{className:b.table_cell,style:{width:"".concat(100/(null==z||null===(n=z.course_targets)||void 0===n||null===(n=n.list)||void 0===n?void 0:n.length),"%")},children:[null==e?void 0:e.user_rate,"%"]})}))})]})})}),(0,P.jsxs)("div",{className:b.echart_wrapper,children:[(0,P.jsx)("div",{className:b.chart_title_row,children:(0,P.jsx)("div",{className:b.chart_title,children:"课堂维度达成度"})}),(0,P.jsx)("div",{className:b.chart_content,children:(null==z||null===(v=z.course_targets)||void 0===v||null===(v=v.list)||void 0===v?void 0:v.length)>0&&(0,P.jsx)(x.Z,{option:{tooltip:{trigger:"item",axisPointer:{type:"shadow"},position:function(e,t,n,r,i){return[r.x-21,r.y-50]},backgroundColor:"transparent",borderWidth:0,formatter:function(e){var t=["rgba(5,255,154,0.4)","rgba(3,127,254,0.4)","rgba(249,123,20,0.4)","rgba(254,28,137,0.4)","rgba(3,254,248,0.4)"][e.dataIndex];return'<div class="'.concat(b.tooltip,'" style="background:').concat(t,";color:").concat(t,'">\n <span style="color:#fff">').concat(parseFloat(e.value),"%</span>\n </div>")}},grid:{top:10,bottom:0,left:0,right:35,containLabel:!0},xAxis:{type:"category",data:null==z||null===(y=z.course_targets)||void 0===y||null===(y=y.list)||void 0===y?void 0:y.map((function(e){return null==e?void 0:e.name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:function(e,t){return V[t]},fontSize:"0.12rem",interval:0}},yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:function(e){return parseFloat(e).toFixed(1)}}},series:[{data:null==z||null===(I=z.course_targets)||void 0===I||null===(I=I.list)||void 0===I?void 0:I.map((function(e){return null==e?void 0:e.user_rate})),type:"bar",barWidth:50,itemStyle:{normal:{color:function(e){return["rgba(5,255,154,0.35)","rgba(3,127,254,0.35)","rgba(249,123,20,0.35)","rgba(254,28,137,0.35)","rgba(3,254,248,0.35)"][e.dataIndex]},borderColor:function(e){return["#05FF9A","#0374EA","#E17017","#E61B80","#03FEF8"][e.dataIndex]},borderWidth:1}}}]},style:{height:"2.28rem"}})})]})]}),(0,P.jsxs)("div",{className:b.content_bottom,children:[(0,P.jsx)("div",{children:(0,P.jsx)("div",{className:b.rank_wrapper,style:{width:"auto",height:"4.15rem",fontSize:"0.12rem"},children:(0,P.jsxs)("div",{className:b.rank_table,children:[(0,P.jsxs)("div",{className:b.rank_header,style:{height:"0.4rem"},children:[(0,P.jsx)("div",{className:b.rank_cell,style:{width:"0.5rem"},children:"排名"}),(0,P.jsx)("div",{className:b.rank_cell,style:{width:"1rem"},children:"分班名称"}),(0,P.jsx)("div",{className:b.rank_cell,style:{width:"0.7rem"},children:"达成度"}),((null==z||null===(G=z.course_targets)||void 0===G?void 0:G.list)||[]).map((function(e,t){return(0,P.jsx)("div",{className:b.rank_cell,style:{width:"1.6rem"},children:"".concat(null==e?void 0:e.name,"(占比:").concat(null==e?void 0:e.target_rate,"%)")})}))]}),(0,P.jsx)("div",{className:b.rank_body,style:{height:"3.7rem"},children:null==z||null===(W=z.course_groups_target_list)||void 0===W?void 0:W.map((function(e,t){var n,r;return 0===t&&(r=w.Z),1===t&&(r=E.Z),2===t&&(r=A.Z),(0,P.jsxs)("div",{className:b.rank_row,style:{height:"0.47rem"},children:[(0,P.jsx)("div",{className:b.rank_cell,style:{width:"0.5rem"},children:t<3?(0,P.jsx)("span",{className:b.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:t+1})}),(0,P.jsx)("div",{className:b.rank_cell,style:{width:"1rem"},children:(0,P.jsx)(k.Z,{title:e.course_group_name,placement:"topLeft",children:e.course_group_name})}),(0,P.jsx)("div",{className:b.rank_cell,style:{width:"0.7rem"},children:e.target_rate}),null==e||null===(n=e.target_list)||void 0===n?void 0:n.map((function(e,t){return(0,P.jsxs)("div",{className:b.rank_cell,style:{width:"1.6rem",color:e.user_target_rate<40&&"red"},children:[e.user_target_rate,"%"]})}))]},t)}))})]})})}),(0,P.jsxs)("div",{className:b.suggestion,style:{flex:"1",marginLeft:"0.4rem",height:"4.15rem",marginTop:0},children:[(0,P.jsxs)("div",{className:b.head,children:[(0,P.jsx)("div",{children:"总结建议"}),(0,P.jsx)("div",{children:(0,P.jsxs)("span",{onClick:function(){N({type:"classroomList/setActionTabs",payload:{key:"编辑总结",statis_type:"target",content:null==z?void 0:z.summary_recommendations}})},className:b.bianji,children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑"]})})]}),(0,P.jsx)("div",{className:b.content,style:{height:"3.78rem",marginTop:"0.2rem"},children:(0,P.jsx)(D.Z,{style:{color:"#fff"},value:null==z?void 0:z.summary_recommendations})})]})]})]})]})})})),N={title:"title___RJlTl",table_wrapper:"table_wrapper___yt2D4",table_scroll:"table_scroll___KpUJN",table_content:"table_content___SB0B6",table_row:"table_row___Qona9",table_cell:"table_cell___kff_T",rate:"rate____zjqG",trend:"trend___Lh0FB",flexbox:"flexbox___HFhIH",echart_wrapper:"echart_wrapper___LCfSP",chart_title_row:"chart_title_row___l2nW6",chart_title:"chart_title____kfuR",chart_legend:"chart_legend___foDpW",legend_item:"legend_item___iRz9H",legend_dot:"legend_dot___nVoFA",blue:"blue___i55JP",orange:"orange___U4Van",green:"green___QMtqH",purple:"purple___Z0Ngr",rank_wrapper:"rank_wrapper___jivgn",rank_title:"rank_title___OIZfP",rank_table:"rank_table___E5Wn7",rank_header:"rank_header___A0Z1_",rank_cell:"rank_cell___YfB6I",rank_body:"rank_body___p6rPz",rank_row:"rank_row___DehBP",rank_icon:"rank_icon___icjot",rank_1:"rank_1___M_RyB",rank_2:"rank_2___dVjHD",rank_3:"rank_3___FSN10",content:"content___riAc_",content_bottom:"content_bottom___hhxGV",table_title:"table_title___H7ucG",suggestion:"suggestion___ZkkUE",head:"head___uLnz5",bianji:"bianji___MTTxr",no_data:"no_data___A6RrC",content_left:"content_left___DIQqz",content_right:"content_right___v1WQ7",echart_wrapper_exam:"echart_wrapper_exam___XiFw8"},R="rank_wrapper___Du5kI",M="rank_table___rlUkF",O="rank_header___Mj7pA",F="rank_cell___kE94y",j="rank_body___OF_9X",B="rank_row___lWfjY",z=function(e){var t=e.columns,n=e.dataSource,r=e.wrapperStyle,i=e.headerStyle,s=e.bodyStyle,a=e.rowStyle;return(0,P.jsx)("div",{className:R,style:c()({},r),children:(0,P.jsxs)("div",{className:M,children:[(0,P.jsx)("div",{className:O,style:c()({},i),children:null==t?void 0:t.map((function(e,t){return(0,P.jsx)("div",{className:F,style:{minWidth:null==e?void 0:e.width,marginLeft:(null==e?void 0:e.marginLeft)||"0.1rem"},children:null==e?void 0:e.title},null==e?void 0:e.dataIndex)}))}),(0,P.jsx)("div",{className:j,style:c()({},s),children:null==n?void 0:n.map((function(e,n){return(0,P.jsx)("div",{className:B,style:c()({},a),children:null==t?void 0:t.map((function(t,r){return(0,P.jsx)(k.Z,{title:null!=t&&t.render?"":e[null==t?void 0:t.dataIndex],children:(0,P.jsx)("div",{className:F,style:c()({width:null==t?void 0:t.width,marginLeft:(null==t?void 0:t.marginLeft)||"0.1rem"},null==t?void 0:t.extraStyle),children:null!=t&&t.render?null==t?void 0:t.render(e[null==t?void 0:t.dataIndex],e,n):e[null==t?void 0:t.dataIndex]},"".concat(n,"-").concat(r))})}))},n)}))})]})})},H=function(e,t,n){return e?(0,P.jsx)(k.Z,{title:"较对比时间".concat(e>0?"增长":"下降").concat(Math.abs(e)).concat(t?"":"%"),placement:"top",color:n?e>0?"rgba(230,27,128,0.4)":"rgba(5,255,154,0.4)":e>0?"rgba(5,255,154,0.4)":"rgba(230,27,128,0.4)",children:(0,P.jsxs)("span",{style:{color:n?e>0?"#E61B80":"#05FF9A":e>0?"#05FF9A":"#E61B80",cursor:"pointer",fontSize:"0.12rem"},children:[e>0?(0,P.jsx)("i",{className:"iconfont icon-zengchang",style:{fontSize:"0.12rem"}}):(0,P.jsx)("i",{className:"iconfont icon-xiajiang1",style:{fontSize:"0.12rem"}}),Math.abs(e),t?"":"%"]})}):null},Z=["shixunsDetail","globalSetting","loading","dispatch","paramsObj"],U=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading;var t,n,r,s,o,l,u,d,m,g,v,y,b,S,L,I,R,M,O,F,j,B,U,Y=e.dispatch,X=e.paramsObj,G=(_()(e,Z),(0,p.useParams)()),W=(0,f.useState)(null),K=h()(W,2),V=K[0],Q=K[1],q=(0,f.useState)(!1),J=h()(q,2),$=J[0],ee=J[1];(0,f.useEffect)((function(){te()}),[X]);var te=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(null==G?void 0:G.coursesId,"/statistics/student_works.json"),{method:"get",params:c()({},X)});case 3:0==(null==(t=e.sent)?void 0:t.status)&&Q(null==t?void 0:t.data),ee(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=[{title:"排名",dataIndex:"number",width:"0.3rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:N.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}}],re=[{title:"排名",dataIndex:"number",width:"0.3rem",render:function(e,t,n){return(0,P.jsx)("span",{children:n+1})}}],ie=[{title:"姓名",dataIndex:"name",width:"0.5rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.7rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.7rem"},{title:"完成率",dataIndex:"finish_rate",width:"0.4rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"完成数",dataIndex:"finish_count",width:"0.48rem"},{title:"收到作业数",dataIndex:"homeworks_count",width:"0.7rem"},{title:"实训作业完成率",dataIndex:"shixun_finish_rate",width:"0.9rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"编程作业完成率",dataIndex:"hack_finish_rate",width:"0.9rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"图文作业完成率",dataIndex:"normal_finish_rate",width:"0.9rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"分组作业完成率",dataIndex:"group_finish_rate",width:"0.9rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}}],se=[{title:"排名",dataIndex:"number",width:"0.3rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:N.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}},{title:"姓名",dataIndex:"name",width:"0.5rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.7rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.7rem"},{title:"提升度",dataIndex:"finish_up_rate",width:"0.4rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"完成率",dataIndex:"finish_rate",width:"0.48rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"作业完成数",dataIndex:"finish_count",width:"0.7rem"},{title:"实训作业提升度",dataIndex:"shixun_finish_up_rate",width:"0.9rem",render:function(e,t){return e?H(e):"--"}},{title:"编程作业提升度",dataIndex:"hack_finish_up_rate",width:"0.9rem",render:function(e,t){return e?H(e):"--"}},{title:"图文作业提升度",dataIndex:"normal_finish_up_rate",width:"0.9rem",render:function(e,t){return e?H(e):"--"}},{title:"分组作业提升度",dataIndex:"group_finish_up_rate",width:"0.9rem",render:function(e,t){return e?H(e):"--"}}];return(0,P.jsx)(C.Z,{spinning:$,children:(0,P.jsxs)("div",{style:{color:"#fff"},children:[(0,P.jsx)("div",{className:N.title,children:"所选时间作业完成情况"}),(0,P.jsxs)("div",{className:N.content,children:[(0,P.jsxs)("div",{className:N.content_left,children:[(0,P.jsx)("div",{className:N.table_wrapper,children:(0,P.jsx)("div",{className:N.table_scroll,children:(0,P.jsxs)("div",{className:N.table_content,children:[(0,P.jsxs)("div",{className:N.table_row,style:{backgroundColor:"rgba(164,200,252,0.1)",color:"#A4C8FC",height:"0.4rem"},children:[(0,P.jsx)("div",{className:N.table_cell,style:{width:"1.2rem"},children:"作业平均完成率"}),null==V||null===(t=V.finish_rate)||void 0===t||null===(t=t.course_group_list)||void 0===t?void 0:t.map((function(e,t){return(0,P.jsx)("div",{className:N.table_cell,style:{width:"1.3rem"},children:(0,P.jsx)(k.Z,{title:e.course_group_name,placement:"topLeft",children:e.course_group_name})})}))]}),(0,P.jsxs)("div",{className:N.table_row,children:[(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1.2rem"},children:[(0,P.jsxs)("span",{className:N.rate,children:[null==V||null===(n=V.finish_rate)||void 0===n?void 0:n.average_finish_rate,"%"]}),H(null==V||null===(r=V.finish_rate)||void 0===r?void 0:r.average_finish_compare_rate)]}),null==V||null===(s=V.finish_rate)||void 0===s||null===(s=s.course_group_list)||void 0===s?void 0:s.map((function(e,t){return(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1.3rem"},children:[(0,P.jsxs)("span",{className:N.rate,style:{color:e.is_max?"#05FF9A":e.is_min?"#E61B80":"#fff"},children:[e.rate,"%",e.is_max?"(最高)":e.is_min?"(最低)":""]}),H(e.compare_rate)]})}))]})]})})}),(0,P.jsxs)("div",{className:N.echart_wrapper,children:[(0,P.jsx)("div",{className:N.chart_title_row,children:(0,P.jsx)("div",{className:N.chart_title,children:"班级作业完成率分析图"})}),(0,P.jsx)("div",{className:N.chart_content,children:(null==V?void 0:V.finish_rate)&&(0,P.jsx)(x.Z,{option:{grid:{top:20,bottom:0,left:0,right:35,containLabel:!0},xAxis:{type:"category",data:null==V||null===(o=V.finish_rate)||void 0===o||null===(o=o.course_group_list)||void 0===o?void 0:o.map((function(e){return e.course_group_name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",interval:0}},dataZoom:[c()(c()({type:"slider"},(null==V||null===(l=V.finish_rate)||void 0===l||null===(l=l.course_group_list)||void 0===l?void 0:l.length)>10?{start:0,end:15}:{}),{},{show:(null==V||null===(u=V.finish_rate)||void 0===u||null===(u=u.course_group_list)||void 0===u?void 0:u.length)>10,xAxisIndex:[0],bottom:0,height:10,borderColor:"transparent",backgroundColor:"rgba(164, 200, 252, 0.1)",fillerColor:"rgba(3, 116, 234, 0.3)",handleStyle:{color:"#0374EA",borderColor:"#0374EA"},moveHandleStyle:{color:"#0374EA"},selectedDataBackground:{lineStyle:{color:"#0374EA"},areaStyle:{color:"#0374EA"}},textStyle:{color:"#A4C8FC"}})],yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:"{value}%"}},series:[{data:null==V||null===(d=V.finish_rate)||void 0===d||null===(d=d.course_group_list)||void 0===d?void 0:d.map((function(e){return e.rate})),type:"bar",barWidth:34,itemStyle:{color:"#B200EE"},label:{show:!0,position:"top",color:"#B200EE",fontSize:"0.14rem",formatter:"{c}%"},markLine:{silent:!0,symbol:"none",label:{show:!0,formatter:"平均值",position:"insideEnd",color:"#03FEF8",fontSize:"0.12rem",distance:[5,0]},lineStyle:{color:"#03FEF8",type:"dashed",width:1},data:[{yAxis:null==V||null===(m=V.finish_rate)||void 0===m?void 0:m.average_finish_rate,name:"平均值"}]}}]},style:{height:"2.28rem"}})})]})]}),(0,P.jsxs)("div",{className:N.content_right,children:[(0,P.jsx)("div",{className:N.table_wrapper,children:(0,P.jsx)("div",{className:N.table_scroll,children:(0,P.jsxs)("div",{className:N.table_content,children:[(0,P.jsxs)("div",{className:N.table_row,style:{backgroundColor:"rgba(164,200,252,0.1)",color:"#A4C8FC",height:"0.4rem"},children:[(0,P.jsx)("div",{className:N.table_cell,style:{width:"1.32rem"},children:"课堂作业平均得分"}),null==V||null===(g=V.average_score)||void 0===g||null===(g=g.course_group_list)||void 0===g?void 0:g.map((function(e,t){return(0,P.jsx)("div",{className:N.table_cell,style:{width:"1.3rem"},children:(0,P.jsx)(k.Z,{title:e.course_group_name,placement:"topLeft",children:e.course_group_name})})}))]}),(0,P.jsxs)("div",{className:N.table_row,children:[(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1.32rem"},children:[(0,P.jsx)("span",{className:N.rate,children:null==V||null===(v=V.average_score)||void 0===v?void 0:v.average_score}),H(null==V||null===(y=V.average_score)||void 0===y?void 0:y.average_score_compare_rate,!0)]}),null==V||null===(b=V.average_score)||void 0===b||null===(b=b.course_group_list)||void 0===b?void 0:b.map((function(e,t){return(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1.3rem"},children:[null!=e&&e.compare_rate?(0,P.jsxs)("span",{className:N.rate,style:{color:e.is_max?"#05FF9A":e.is_min?"#E61B80":"#fff"},children:[e.average_score,e.is_max?"(最高)":e.is_min?"(最低)":""]}):"",null!=e&&e.compare_rate?H(e.compare_rate,!0):"--"]})}))]})]})})}),(0,P.jsxs)("div",{className:N.echart_wrapper,children:[(0,P.jsxs)("div",{className:N.chart_title_row,children:[(0,P.jsx)("div",{className:N.chart_title,children:"班级作业平均得分分析图"}),(0,P.jsxs)("div",{className:N.chart_legend,children:[(0,P.jsxs)("div",{className:N.legend_item,children:[(0,P.jsx)("div",{className:"".concat(N.legend_dot," ").concat(N.blue)}),(0,P.jsx)("span",{style:{color:"#0374EA"},children:"所选时间"})]}),(0,P.jsxs)("div",{className:N.legend_item,children:[(0,P.jsx)("div",{className:"".concat(N.legend_dot," ").concat(N.orange)}),(0,P.jsx)("span",{style:{color:"#FF8A01"},children:"对比时间"})]})]})]}),(0,P.jsx)("div",{className:N.chart_content,children:(null==V?void 0:V.average_score)&&(0,P.jsx)(x.Z,{option:{grid:{top:20,bottom:0,left:0,right:50,containLabel:!0},legend:{show:!1},xAxis:{type:"category",data:null==V||null===(S=V.average_score)||void 0===S||null===(S=S.course_group_list)||void 0===S?void 0:S.map((function(e){return e.course_group_name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",interval:0}},yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:"{value}"}},dataZoom:[c()(c()({type:"slider"},(null==V||null===(L=V.average_score)||void 0===L||null===(L=L.course_group_list)||void 0===L?void 0:L.length)>10?{start:0,end:15}:{}),{},{show:(null==V||null===(I=V.average_score)||void 0===I||null===(I=I.course_group_list)||void 0===I?void 0:I.length)>10,xAxisIndex:[0],bottom:0,height:10,borderColor:"transparent",backgroundColor:"rgba(164, 200, 252, 0.1)",fillerColor:"rgba(3, 116, 234, 0.3)",handleStyle:{color:"#0374EA",borderColor:"#0374EA"},moveHandleStyle:{color:"#0374EA"},selectedDataBackground:{lineStyle:{color:"#0374EA"},areaStyle:{color:"#0374EA"}},textStyle:{color:"#A4C8FC"}})],series:[{name:"所选时间",data:null==V||null===(R=V.average_score)||void 0===R||null===(R=R.course_group_list)||void 0===R?void 0:R.map((function(e){return e.average_score})),type:"bar",barWidth:20,itemStyle:{color:"#0374EA"},label:{show:!0,position:"top",color:"#0374EA",fontSize:"0.12rem",formatter:"{c}"},markLine:{silent:!0,symbol:"none",data:[{yAxis:null==V||null===(M=V.average_score)||void 0===M?void 0:M.last_month_average_score,lineStyle:{color:"#FF8A01",type:"dashed",width:1},label:{show:!0,position:"end",formatter:"对比平均",color:"#FF8A01",fontSize:"0.12rem",distance:[5,0]}},{yAxis:null==V||null===(O=V.average_score)||void 0===O?void 0:O.average_score,lineStyle:{color:"#0374EA",type:"dashed",width:1},label:{show:!0,position:"end",formatter:"所选平均",color:"#0374EA",fontSize:"0.12rem",distance:[5,0]}}]}},{name:"对比时间",data:null==V||null===(F=V.average_score)||void 0===F||null===(F=F.course_group_list)||void 0===F?void 0:F.map((function(e){return e.last_month_average_score})),type:"bar",barWidth:20,itemStyle:{color:"#FF8A01"},label:{show:!0,position:"top",color:"#FF8A01",fontSize:"0.12rem",formatter:"{c}"}}]},style:{height:"2.28rem"}})})]})]}),(0,P.jsxs)("div",{className:N.content_bottom,children:[(0,P.jsxs)("div",{className:N.finish_top5,children:[(0,P.jsx)("div",{className:N.table_title,style:{background:"rgba(3,116,234,0.6)",borderColor:"#0374EA",width:"1.38rem"},children:"作业完成度排名前5"}),(0,P.jsx)(z,{columns:ne.concat(ie),dataSource:null==V||null===(j=V.rank_list)||void 0===j?void 0:j.first_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:N.improve_top5,children:[(0,P.jsx)("div",{className:N.table_title,style:{background:"rgba(5,255,154,0.5)",borderColor:"#05FF9A",width:"1.62rem"},children:"作业完成度提升排名前5"}),(0,P.jsx)(z,{columns:se,dataSource:null==V||null===(B=V.rank_list)||void 0===B?void 0:B.up_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:N.finish_last5,style:{marginTop:"0.1rem"},children:[(0,P.jsx)("div",{className:N.table_title,style:{background:"rgba(230,27,128,0.6)",borderColor:"#E61B80",width:"1.38rem"},children:"作业完成度排名后5"}),(0,P.jsx)(z,{columns:re.concat(ie),dataSource:null==V||null===(U=V.rank_list)||void 0===U?void 0:U.last_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:N.suggestion,children:[(0,P.jsxs)("div",{className:N.head,children:[(0,P.jsx)("div",{children:"总结建议"}),(0,P.jsx)("div",{children:(0,P.jsxs)("span",{onClick:function(){Y({type:"classroomList/setActionTabs",payload:{key:"编辑总结",statis_type:"homework",content:null==V?void 0:V.summary_recommendations}})},className:N.bianji,children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑"]})})]}),(0,P.jsx)("div",{className:N.content,children:(0,P.jsx)(D.Z,{style:{color:"#fff"},value:null==V?void 0:V.summary_recommendations})})]})]})]})]})})})),Y=["shixunsDetail","globalSetting","loading","dispatch","paramsObj"],X=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading;var t,n,r,s,o,l,u,d,m,g,v,y,b,S,L,I,R,M,O,F,j,B,Z,U,X,G,W,K,V,Q,q=e.dispatch,J=e.paramsObj,$=(_()(e,Y),(0,p.useParams)()),ee=(0,f.useState)({}),te=h()(ee,2),ne=te[0],re=te[1],ie=(0,f.useState)(!1),se=h()(ie,2),ae=se[0],oe=se[1];(0,f.useEffect)((function(){le()}),[J]);var le=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(null==$?void 0:$.coursesId,"/statistics/exercises.json"),{method:"get",params:c()({},J)});case 3:0==(null==(t=e.sent)?void 0:t.status)&&re(null==t?void 0:t.data),oe(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ue=[{title:"排名",dataIndex:"number",width:"0.3rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:N.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}}],ce=[{title:"排名",dataIndex:"number",width:"0.3rem",render:function(e,t,n){return(0,P.jsx)("span",{children:n+1})}}],de=[{title:"姓名",dataIndex:"name",width:"0.7rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"平均分数",dataIndex:"average_score",width:"0.7rem"},{title:"参与考试场次",dataIndex:"join_exercise_count",width:"0.88rem"},{title:"最高成绩",dataIndex:"max_score",width:"0.7rem"},{title:"最低成绩",dataIndex:"min_score",width:"0.7rem"},{title:"作业完成率",dataIndex:"homework_finish_rate",width:"0.9rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"作业平均得分",dataIndex:"homework_average_score",width:"0.8rem"}],he=[{title:"排名",dataIndex:"number",width:"0.3rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:N.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}},{title:"姓名",dataIndex:"name",width:"0.7rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"提升分数",dataIndex:"up_score",width:"0.7rem"},{title:"平均分数",dataIndex:"average_score",width:"0.7rem"},{title:"参与考试场次",dataIndex:"join_exercise_count",width:"0.88rem"},{title:"作业完成率提升度",dataIndex:"homework_finish_up_rate",width:"1.2rem",render:function(e){return e?H(e):"--"}},{title:"作业平均分提升度",dataIndex:"homework_average_up_score",width:"1.2rem",render:function(e){return e?H(e,!0):"--"}}];return(0,P.jsx)(C.Z,{spinning:ae,children:(0,P.jsxs)("div",{style:{color:"#fff"},children:[(0,P.jsx)("div",{className:N.title,children:"所选范围在线考试情况"}),(0,P.jsxs)("div",{className:N.content,children:[(0,P.jsxs)("div",{className:N.content_left,children:[(0,P.jsx)("div",{className:N.table_wrapper,children:(0,P.jsx)("div",{className:N.table_scroll,children:(0,P.jsxs)("div",{className:"".concat(N.table_content," ").concat(N.table_content_exam),children:[(0,P.jsxs)("div",{className:N.table_row,style:{backgroundColor:"rgba(164,200,252,0.1)",color:"#A4C8FC",height:"0.4rem"},children:[(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"考试场次"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1.25rem"},children:"考试平均分"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"最高分"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"最低分"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"优秀率"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"良好率"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"及格率"}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:"不及格率"})]}),(0,P.jsxs)("div",{className:N.table_row,children:[(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:(0,P.jsx)("span",{className:N.rate,children:null==ne||null===(t=ne.exercises_info)||void 0===t?void 0:t.count})}),(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1.25rem"},children:[(0,P.jsx)("span",{className:N.rate,children:null==ne||null===(n=ne.exercises_info)||void 0===n?void 0:n.average_score}),H(null==ne||null===(r=ne.exercises_info)||void 0===r?void 0:r.average_score_compare_rate,!0)]}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:(0,P.jsx)("span",{className:N.rate,children:null==ne||null===(s=ne.exercises_info)||void 0===s?void 0:s.max_score})}),(0,P.jsx)("div",{className:N.table_cell,style:{width:"1rem"},children:(0,P.jsx)("span",{className:N.rate,children:null==ne||null===(o=ne.exercises_info)||void 0===o?void 0:o.min_score})}),(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1rem"},children:[(0,P.jsxs)("span",{className:N.rate,children:[null==ne||null===(l=ne.exercises_info)||void 0===l?void 0:l.best_rate,"%"]}),H(null==ne||null===(u=ne.exercises_info)||void 0===u?void 0:u.best_compare_rate)]}),(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1rem"},children:[(0,P.jsxs)("span",{className:N.rate,children:[null==ne||null===(d=ne.exercises_info)||void 0===d?void 0:d.good_rate,"%"]}),H(null==ne||null===(m=ne.exercises_info)||void 0===m?void 0:m.good_compare_rate)]}),(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1rem"},children:[(0,P.jsxs)("span",{className:N.rate,children:[null==ne||null===(g=ne.exercises_info)||void 0===g?void 0:g.pass_rate,"%"]}),H(null==ne||null===(v=ne.exercises_info)||void 0===v?void 0:v.pass_compare_rate)]}),(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1rem"},children:[(0,P.jsxs)("span",{className:N.rate,children:[null==ne||null===(y=ne.exercises_info)||void 0===y?void 0:y.fail_rate,"%"]}),H(null==ne||null===(b=ne.exercises_info)||void 0===b?void 0:b.fail_compare_rate,!1,!0)]})]})]})})}),(0,P.jsx)("div",{className:N.echart_wrapper_exam,children:(0,P.jsx)("div",{className:N.chart_content,children:(null==ne?void 0:ne.exercises_info)&&(0,P.jsx)(x.Z,{option:{tooltip:{trigger:"item"},legend:{orient:"vertical",right:"0%",top:"center",itemGap:24,itemWidth:8,itemHeight:8,icon:"circle",formatter:function(e){var t,n,r,i,s=[{name:"优秀率",value:null==ne||null===(t=ne.exercises_info)||void 0===t?void 0:t.best_rate},{name:"良好率",value:null==ne||null===(n=ne.exercises_info)||void 0===n?void 0:n.good_rate},{name:"及格率",value:null==ne||null===(r=ne.exercises_info)||void 0===r?void 0:r.pass_rate},{name:"不及格率",value:null==ne||null===(i=ne.exercises_info)||void 0===i?void 0:i.fail_rate}].find((function(t){return t.name===e}));return"".concat(e," ").concat(null==s?void 0:s.value,"%")},textStyle:{color:"#A4C8FC",fontSize:14,rich:{value:{color:"#fff",fontSize:14,fontWeight:400}}}},color:["#B200EE","#02CC8A","#0374EA","#FF8A01"],series:[{type:"pie",radius:["40%","80%"],center:["30%","50%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:[{value:null==ne||null===(S=ne.exercises_info)||void 0===S?void 0:S.best_rate,name:"优秀率"},{value:null==ne||null===(L=ne.exercises_info)||void 0===L?void 0:L.good_rate,name:"良好率"},{value:null==ne||null===(I=ne.exercises_info)||void 0===I?void 0:I.pass_rate,name:"及格率"},{value:null==ne||null===(R=ne.exercises_info)||void 0===R?void 0:R.fail_rate,name:"不及格率"}]}]},style:{height:"2.11rem"}})})})]}),(0,P.jsxs)("div",{className:N.content_right,children:[(0,P.jsx)("div",{className:N.table_wrapper,children:(0,P.jsx)("div",{className:N.table_scroll,children:(0,P.jsxs)("div",{className:N.table_content,children:[(0,P.jsx)("div",{className:N.table_row,style:{backgroundColor:"rgba(164,200,252,0.1)",color:"#A4C8FC",height:"0.4rem"},children:null==ne||null===(M=ne.course_group_score_list)||void 0===M?void 0:M.map((function(e,t){return(0,P.jsx)("div",{className:N.table_cell,style:{width:"1.3rem"},children:(0,P.jsx)(k.Z,{title:e.course_group_name,placement:"topLeft",children:e.course_group_name})})}))}),(0,P.jsx)("div",{className:N.table_row,children:null==ne||null===(O=ne.course_group_score_list)||void 0===O?void 0:O.map((function(e,t){return(0,P.jsxs)("div",{className:N.table_cell,style:{width:"1.3rem"},children:[(0,P.jsxs)("span",{className:N.rate,style:{color:e.is_max?"#05FF9A":e.is_min?"#E61B80":"#fff"},children:[e.score,e.is_max?"(最高)":e.is_min?"(最低)":""]}),H(e.compare_rate,!0)]})}))})]})})}),(0,P.jsxs)("div",{className:N.echart_wrapper,children:[(0,P.jsxs)("div",{className:N.chart_title_row,children:[(0,P.jsx)("div",{className:N.chart_title,children:"分班考试成绩分布情况"}),(0,P.jsxs)("div",{className:N.chart_legend,children:[(0,P.jsxs)("div",{className:N.legend_item,children:[(0,P.jsx)("div",{className:"".concat(N.legend_dot," ").concat(N.green)}),(0,P.jsx)("span",{style:{color:"#05FF9A"},children:"所选时间"})]}),(0,P.jsxs)("div",{className:N.legend_item,children:[(0,P.jsx)("div",{className:"".concat(N.legend_dot," ").concat(N.purple)}),(0,P.jsx)("span",{style:{color:"#A4C8FC"},children:"对比时间"})]})]})]}),(0,P.jsx)("div",{className:N.chart_content,children:(null==ne||null===(F=ne.course_group_score_list)||void 0===F?void 0:F.length)>0&&(0,P.jsx)(x.Z,{option:{grid:{top:10,bottom:0,left:0,right:50,containLabel:!0},legend:{show:!1},xAxis:{type:"category",data:null==ne||null===(j=ne.course_group_score_list)||void 0===j?void 0:j.map((function(e){return e.course_group_name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",interval:0}},dataZoom:[c()(c()({type:"slider"},(null==ne||null===(B=ne.course_group_score_list)||void 0===B?void 0:B.length)>10?{start:0,end:15}:{}),{},{show:(null==ne||null===(Z=ne.course_group_score_list)||void 0===Z?void 0:Z.length)>10,xAxisIndex:[0],bottom:0,height:10,borderColor:"transparent",backgroundColor:"rgba(164, 200, 252, 0.1)",fillerColor:"rgba(3, 116, 234, 0.3)",handleStyle:{color:"#0374EA",borderColor:"#0374EA"},moveHandleStyle:{color:"#0374EA"},selectedDataBackground:{lineStyle:{color:"#0374EA"},areaStyle:{color:"#0374EA"}},textStyle:{color:"#A4C8FC"}})],yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:"{value}%"}},series:[{name:"所选时间",data:null==ne||null===(U=ne.course_group_score_list)||void 0===U?void 0:U.map((function(e){return e.score})),type:"bar",barWidth:20,itemStyle:{color:"#05FF9A"},label:{show:!0,position:"top",color:"#05FF9A",fontSize:"0.14rem",formatter:"{c}"},markLine:{silent:!0,symbol:"none",data:[{yAxis:null==ne||null===(X=ne.exercises_info)||void 0===X?void 0:X.last_month_average_score,lineStyle:{color:"#A4C8FC",type:"dashed",width:1},label:{show:!0,position:"end",formatter:"对比平均",color:"#A4C8FC",fontSize:"0.12rem",distance:[5,0]}},{yAxis:null==ne||null===(G=ne.exercises_info)||void 0===G?void 0:G.average_score,lineStyle:{color:"#05FF9A",type:"dashed",width:1},label:{show:!0,position:"end",formatter:"所选平均",color:"#05FF9A",fontSize:"0.12rem",distance:[5,0]}}]}},{name:"对比时间",data:null==ne||null===(W=ne.course_group_score_list)||void 0===W?void 0:W.map((function(e){return e.last_month_score})),type:"bar",barWidth:20,itemStyle:{color:"#A4C8FC"},label:{show:!0,position:"top",color:"#A4C8FC",fontSize:"0.14rem",formatter:"{c}"}}]},style:{height:"2.28rem"}})})]})]}),(0,P.jsxs)("div",{className:N.content_bottom,children:[(0,P.jsxs)("div",{className:N.finish_top5,children:[(0,P.jsx)("div",{className:N.table_title,style:{background:"rgba(3,116,234,0.6)",borderColor:"#0374EA",width:"1.38rem"},children:"考试完成度排名前5"}),(0,P.jsx)(z,{columns:ue.concat(de),dataSource:null==ne||null===(K=ne.rank_list)||void 0===K?void 0:K.first_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:N.improve_top5,children:[(0,P.jsx)("div",{className:N.table_title,style:{background:"rgba(5,255,154,0.5)",borderColor:"#05FF9A",width:"1.62rem"},children:"考试完成度提升排名前5"}),(0,P.jsx)(z,{columns:he,dataSource:null==ne||null===(V=ne.rank_list)||void 0===V?void 0:V.up_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:N.finish_last5,style:{marginTop:"0.1rem"},children:[(0,P.jsx)("div",{className:N.table_title,style:{background:"rgba(230,27,128,0.6)",borderColor:"#E61B80",width:"1.38rem"},children:"考试完成度排名后5"}),(0,P.jsx)(z,{columns:ce.concat(de),dataSource:null==ne||null===(Q=ne.rank_list)||void 0===Q?void 0:Q.last_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:N.suggestion,children:[(0,P.jsxs)("div",{className:N.head,children:[(0,P.jsx)("div",{children:"总结建议"}),(0,P.jsx)("div",{children:(0,P.jsxs)("span",{onClick:function(){q({type:"classroomList/setActionTabs",payload:{key:"编辑总结",statis_type:"exercise",content:null==ne?void 0:ne.summary_recommendations}})},className:N.bianji,children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑"]})})]}),(0,P.jsx)("div",{className:N.content,children:(0,P.jsx)(D.Z,{style:{color:"#fff"},value:null==ne?void 0:ne.summary_recommendations})})]})]})]})]})})})),G={title:"title___AsxAu",table_wrapper:"table_wrapper___VYEe9",table_scroll:"table_scroll___Qafz1",table_content:"table_content___jdW2n",table_row:"table_row___ZSqsO",table_cell:"table_cell___L5X0h",rate:"rate___Rocle",trend:"trend___kt9fu",flexbox:"flexbox___qOn2X",echart_wrapper:"echart_wrapper___PWtnF",chart_title_row:"chart_title_row___hS7R3",chart_title:"chart_title___kEuNH",chart_legend:"chart_legend___dznBk",legend_item:"legend_item___ZvQri",legend_dot:"legend_dot___PwOa8",blue:"blue___T46Ek",orange:"orange___SO8ie",green:"green___I6z9Q",purple:"purple___R5ZeS",rank_wrapper:"rank_wrapper___crGVd",rank_title:"rank_title___aVpQ5",rank_table:"rank_table___aGk3i",rank_header:"rank_header___pZkPe",rank_cell:"rank_cell___f_dWR",rank_body:"rank_body___hBfvu",rank_row:"rank_row___Djwob",rank_icon:"rank_icon___rQz69",rank_1:"rank_1___LNjlJ",rank_2:"rank_2___u9nB9",rank_3:"rank_3___UO1F6",content:"content___wewVV",content_bottom:"content_bottom___eySUf",table_title:"table_title___BPvXa",suggestion:"suggestion___iV3g4",head:"head___XubKz",bianji:"bianji___CY8Ph",no_data:"no_data___usHRs",content_left:"content_left___KP7Dm",scores_container:"scores_container___dzV0Q",score_card:"score_card___VONV5",img_box:"img_box___l90lg",score_title:"score_title___pDQKv",score_content:"score_content___pt4Pz",score_value:"score_value___UNn3U",score_trend:"score_trend___x2IGU",score_compare:"score_compare___s4P2X",content_right:"content_right___bB37R",content_right_left:"content_right_left___kwCB7",content_right_left_title:"content_right_left_title___BMpgG",content_right_right:"content_right_right___LrmgP",content_right_right_title:"content_right_right_title___jjOXE",flex_box:"flex_box___BHNcX"},W=["shixunsDetail","globalSetting","loading","dispatch","paramsObj"],K=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading;var t,n,r,s,o,l,u,d,m,g,v,y,b=e.dispatch,x=e.paramsObj,S=(_()(e,W),(0,p.useParams)()),L=(0,f.useState)({}),I=h()(L,2),N=I[0],R=I[1],M=(0,f.useState)(!1),O=h()(M,2),F=O[0],j=O[1];(0,f.useEffect)((function(){B()}),[x]);var B=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(null==S?void 0:S.coursesId,"/statistics/studies.json"),{method:"get",params:c()({},x)});case 3:0==(null==(t=e.sent)?void 0:t.status)&&R(null==t?void 0:t.data),j(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=[{title:"",dataIndex:"course_group_name",width:"1rem",marginLeft:"0rem",extraStyle:{background:"rgba(164, 200, 252, 0.1)",height:"0.4rem",lineHeight:"0.4rem",paddingLeft:"0.3rem",marginLeft:0}},{title:"分班人数",dataIndex:"students_count",width:"1rem",marginLeft:"0.3rem"},{title:"视频完成度",dataIndex:"videos_finish_rate",width:"1rem",render:function(e,t){return(0,P.jsxs)("div",{className:G.flex_box,children:[(0,P.jsxs)("span",{children:[e,"%"]}),H(null==t?void 0:t.video_finish_compare_rate)]})}},{title:"视频上传数",dataIndex:"videos_count",width:"1rem"},{title:"观看人次",dataIndex:"video_watch_person_count",width:"0.8rem",render:function(e,t){return(0,P.jsxs)("div",{className:G.flex_box,children:[(0,P.jsx)("span",{className:G.rate,children:e}),H(null==t?void 0:t.videos_watch_person_count_compare_rate)]})}},{title:"观看总时长",dataIndex:"videos_watch_second",width:"1rem"},{title:"教学资料下载完成度",dataIndex:"files_download_rate",width:"1.5rem",render:function(e,t){return(0,P.jsxs)("div",{className:G.flex_box,children:[(0,P.jsxs)("span",{className:G.rate,children:[e,"%"]}),H(null==t?void 0:t.files_download_compare_rate)]})}},{title:"已发布资料数",dataIndex:"files_count",width:"1.1rem"},{title:"资料下载次数",dataIndex:"files_download_count",width:"1.1rem"},{title:"帖子互动率",dataIndex:"messages_reply_rate",width:"1rem",render:function(e,t){return(0,P.jsxs)("div",{className:G.flex_box,children:[(0,P.jsxs)("span",{className:G.rate,children:[e,"%"]}),H(null==t?void 0:t.messages_reply_compare_rate)]})}},{title:"帖子发布数",dataIndex:"messages_count",width:"1rem"},{title:"回复总数",dataIndex:"messages_reply_count",width:"0.7rem"}],U=[{title:"排名",dataIndex:"number",width:"0.45rem",marginLeft:"0.2rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:G.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}}],Y=[{title:"排名",dataIndex:"number",width:"0.45rem",marginLeft:"0.2rem",render:function(e,t,n){return(0,P.jsx)("span",{children:n+1})}}],X=[{title:"姓名",dataIndex:"name",width:"0.55rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.8rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e||"--",children:(0,P.jsx)("span",{children:e||"--"})})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.68rem"},{title:"视频完成度",dataIndex:"videos_finish_rate",width:"0.8rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"视频学习时长",dataIndex:"videos_watch_second",width:"0.9rem"},{title:"资料下载完成度",dataIndex:"files_download_rate",width:"1.05rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"资料下载次数",dataIndex:"files_download_count",width:"0.9rem"},{title:"互动占比",dataIndex:"messages_reply_rate",width:"0.6rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"互动数",dataIndex:"messages_reply_count",width:"0.55rem"}],K=[{title:"排名",dataIndex:"number",width:"0.45rem",marginLeft:"0.2rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:G.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}},{title:"姓名",dataIndex:"name",width:"0.55rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.8rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e||"--",children:(0,P.jsx)("span",{children:e||"--"})})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.68rem"},{title:"视频完成度提升",dataIndex:"videos_finish_up_rate",width:"0.85rem",render:function(e,t){return console.log("---视频完成度提升",e),e?H(e):"--"}},{title:"视频完成度",dataIndex:"videos_finish_rate",width:"0.7rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"资料下载完成度提升",dataIndex:"files_download_up_rate",width:"1.08rem",render:function(e,t){return e?H(e):"--"}},{title:"资料下载次数",dataIndex:"files_download_count",width:"0.8rem"},{title:"互动占比提升",dataIndex:"messages_reply_up_rate",width:"0.8rem",render:function(e,t){return H(e)}},{title:"互动数",dataIndex:"messages_reply_count",width:"0.55rem"}];return(0,P.jsx)(C.Z,{spinning:F,children:(0,P.jsxs)("div",{style:{color:"#fff"},children:[(0,P.jsx)("div",{className:G.title,children:"所选时间自主学习情况"}),(0,P.jsxs)("div",{className:G.content,children:[(0,P.jsx)("div",{className:G.content_left,children:(0,P.jsxs)("div",{className:G.scores_container,children:[(0,P.jsxs)("div",{className:G.score_card,style:{backgroundColor:"rgba(178,0,238,0.1)",border:"0.01rem solid #51093A"},children:[(0,P.jsx)("div",{className:G.img_box,children:(0,P.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABICAYAAABcBhM9AAAAAXNSR0IArs4c6QAAHxBJREFUeF7tfHuUZVV55/d9+3HOubeququq3/SDNzSMg5r2EUGhUQQFumlII4mMk5lx4h+TZTLjmiRrTEY0WZm1MmviDOpa8ZVoEg0SlCCGZZwVURB8ERCBbhARAe1XdVfR9bj3nLMf36xvn3u7q5vu249qMv6RTVN1H3ufs/fv/L5vf69dCADAt3K2U8NrNcEq50PbgvrW0t/EH8l3Oz7K69iEK8ADy3tSEIGBjQF2CAgRUD5HeW0AOKi7V/57nJDP9nyJL4md+Cp04EJsxioFQMjsEFEpAgKA6CNRi+uxXH0O344VM+OLX4N3+ek4igFkaJqmdCZK80j3JAXgA6hslCdHLld/jYi84+M7WkMXrfytakd0gGnMgXnL3WJvvqCizJjIQKBhmph+Hr645kbsNrc6ekO+ne3uSdjiOyGX5RNAJK041N37T3tf6wUZ+rOPlueSyl5DFfg6BJl3lImwQNdrSCATQL0IjJlRXxl/L07LVxNfcBvjpF7lq+BTfwZmGT+v9ce2zgL76D/d/4WN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ifYfWFB3ohd7Ofsfq2Tz5bx3n1kA9d0DSzZf7kmc6PWPWBR8ohc5if49nXXbkaoO51/uF/LPMPTLzhdaaHe8uMluqAEErEOqDY80/hcSMJmomBxfhr2vRqDLTkUN2VEWP8sQv7EJljw8v8pwENC/sID1J90U3i37ZQC8eKHlUf1rim8IwA+UsOfb/UK5E2Dj8Xb9/9tPasoyyM5XoM+LAGedSDGLzFw8NwJ4JoB/qoLqSan1OpkV/cIz7EiLkgqgnbDvrAh4OgAuIcAxSQ73GSgMkgxPBJ4E4L0E/NOVMP7MBjj6McTjBe//AaE0Ae2bBa81AAAAAElFTkSuQmCC",alt:""})}),(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:G.score_title,children:["视频完成度",(0,P.jsx)(k.Z,{title:"视频完成度=视频完成人数/发布人数",children:(0,P.jsx)("i",{className:"iconfont icon-wenhao1 current",style:{color:"#03FEF8",fontSize:"0.14rem",marginLeft:"0.05rem"}})})]}),(0,P.jsxs)("div",{className:G.score_content,children:[(0,P.jsxs)("span",{className:G.score_value,style:{color:"#B200EE"},children:[null==N||null===(t=N.finish_rate)||void 0===t||null===(t=t.videos)||void 0===t?void 0:t.rate,"%"]}),(0,P.jsx)("span",{className:G.score_trend,children:H(null==N||null===(n=N.finish_rate)||void 0===n||null===(n=n.videos)||void 0===n?void 0:n.compare_rate)})]}),(0,P.jsxs)("div",{className:G.score_compare,children:["对比时间平均视频完成度",null==N||null===(r=N.finish_rate)||void 0===r||null===(r=r.videos)||void 0===r?void 0:r.last_month_rate,"%"]})]})]}),(0,P.jsxs)("div",{className:G.score_card,style:{backgroundColor:"rgba(3,254,248,0.1)",border:"0.01rem solid #013F50"},children:[(0,P.jsx)("div",{className:G.img_box,children:(0,P.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABICAYAAABcBhM9AAAAAXNSR0IArs4c6QAAHnhJREFUeF7VnAm4ZVV15/9rD+fc+4Z6NbwawAKxirkscIrara3RL2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ZUeswG4V9n7InYVbIvoRobmCDiyCXp/D2h2AeNHolVkhJbUcNXOqwk+ZFHTZbhKzhutwxgZUczuu/rKMfDiZV14mTaPolc6LaeOpmFwi2hvHRsKsBXX5uJaOhHCmztd9bxHFs2HFShW9JOFrSiDVzNieyPabqH3qzKhlERiP4GZRKVm9K1cVkq/LTWLO7G2Q6HEiHpmLO50nPXFkHM/Yyqb+4O+ZZy2y/iVlysW02C7mLPf7xOG6PhdzHoxPNNZtUgfkS5x7P/s2ZKvB4dkivrckou7jzp3OlZT6+fdtLMsrj26ne1dsyvTbAvhKcTYrHf5sv3enx712vB76ePFKsPfGJ0J95E+qeCB1s+pCheX/s4yZpxkQK4dJ5UzafSMBmhifj1N++TpNJb3DeXFmHs6ySJxqy3kQwgerU39bsqbPhKMrzZmcbzkXmNxKteCweQTY55ilseCyuoblflORf/8YP/WixWeBPWGANkL2VzjxKYDUY3zn4plu/2yTKLba9Jzyw5kZmF2cNJrMs6maNCQa4RUK8cbUfukFzvRZ13qyD/r8BNthvzQC6tp5YT0VxgEDGBbRcw0Qw+tqy3cv/CPSA1PXtG4vRW344+O6yX4fW/zvn/wJDJuTEBJkVyQAAAABJRU5ErkJggg==",alt:""})}),(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:G.score_title,children:["教学资料下载完成度",(0,P.jsx)(k.Z,{title:"资料下载率=下载人数/发布人数",children:(0,P.jsx)("i",{className:"iconfont icon-wenhao1 current",style:{color:"#03FEF8",fontSize:"0.14rem",marginLeft:"0.05rem"}})})]}),(0,P.jsxs)("div",{className:G.score_content,children:[(0,P.jsxs)("span",{className:G.score_value,style:{color:"#03FEF8"},children:[null==N||null===(s=N.finish_rate)||void 0===s||null===(s=s.files)||void 0===s?void 0:s.rate,"%"]}),(0,P.jsx)("span",{className:G.score_trend,children:H(null==N||null===(o=N.finish_rate)||void 0===o||null===(o=o.files)||void 0===o?void 0:o.compare_rate)})]}),(0,P.jsxs)("div",{className:G.score_compare,children:["对比时间教学资料下载完成度",null==N||null===(l=N.finish_rate)||void 0===l||null===(l=l.files)||void 0===l?void 0:l.last_month_rate,"%"]})]})]}),(0,P.jsxs)("div",{className:G.score_card,style:{backgroundColor:"rgba(255,138,1,0.1)",border:"0.01rem solid #3C2C02"},children:[(0,P.jsx)("div",{className:G.img_box,children:(0,P.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABICAYAAABcBhM9AAAAAXNSR0IArs4c6QAAGV9JREFUeF7dnHuQZPV13z+/x310z3v2CSz7FAEMRhF6YGErAiwhEA+FcpXKkRzJf8h2JS6hSqJYjkslr00SPWwrBkeWiUxJkROHiitOFLmSVIL1lkAE81C0Ypc3q2Vh2d3Znpme7vv8/ZLzu93LzDA7swbDLLnQdE/3/d37u9/7Ped3zveci2LZ5vftjWlFFxDpsynNGNpFYZd68B+tffjbKQXyWrQZ0/yhBt/Xuvl98PXwxxfGA3rRj8Nxy487OOiSY5888OI5DD4vPl/pNUaDHu7XcsRRH68O0jl0jzrv5nw5Bqv9veSC/RO3nI9SfzugU9UO72o8LrzqgBgIYHX11znH+u1rLDg3uGkGFBplNcoZksQQbZ8innhAbbjxntOd5EnA/CO/fRmR30lZV7i6CmBpV1MKYIWn0h7jPF41DHutbMorhOnWKVSsiNA4bVDaoI2lPT2C3T2rtt74ldO5pACYf+SWC9HuEuoyp6grlCtxRU3tK3Rdk1Xga4/XnrT2lKdz6DNgH3EmmVEoAcsoUmGcMRhl0bHB64jYWNINY0TnPaXOvv7ba81a+Sf3pjh7Ha6oKPslVVVQVSVFXoOr0FVNIWANgLL1a4thlRFWEQCLjcJZA9oSJwZrI6yNiVoRIxdsRVf/Tm39wMKqPsw/sfcSymo3dV5Q1jlZv8CXJVVe0S9rVFlTZy6wqyjWugFn5u9xTGCZSTU+MrQig00sKopIWzGRSTCthI2XddWG6/7X6oA9fss76PVSfJbRz3J0kdPvVuRZiSpq+n2HrhxOe/IcosEqeWZC8+JZlU6RJKCdsEvTaml8bEj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5JgEWmNaY58+/6j5NfJbnzpW6DhdjtC655Fo3abAQCGivzuopq2HKncu7DVea5xkJWGCahBwtLkVxxSvGtoZV36DP/Yu7DFe7oWcsYMNJDzKCtwI/PWhYWYuga//eVFG/S4+7h41yaw9q9jjjATsJnCTsORdgOR/Ck2ynfjhrpasXPQsep+IACful1+t0QTrjfdhaF+JvJ1r18T9HgQ6AzOA5huYpxnhc/crL/783/l9fwsoHeT0mAgAAAABJRU5ErkJggg==",alt:""})}),(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:G.score_title,children:["帖子回复率",(0,P.jsx)(k.Z,{title:"帖子回复率=回复人数/帖子发布数",children:(0,P.jsx)("i",{className:"iconfont icon-wenhao1 current",style:{color:"#03FEF8",fontSize:"0.14rem",marginLeft:"0.05rem"}})})]}),(0,P.jsxs)("div",{className:G.score_content,children:[(0,P.jsxs)("span",{className:G.score_value,style:{color:"#FF8A01"},children:[null==N||null===(u=N.finish_rate)||void 0===u||null===(u=u.messages)||void 0===u?void 0:u.rate,"%"]}),(0,P.jsx)("span",{className:G.score_trend,children:H(null==N||null===(d=N.finish_rate)||void 0===d||null===(d=d.messages)||void 0===d?void 0:d.compare_rate)})]}),(0,P.jsxs)("div",{className:G.score_compare,children:["对比时间帖子回复率",null==N||null===(m=N.finish_rate)||void 0===m||null===(m=m.messages)||void 0===m?void 0:m.last_month_rate,"%"]})]})]})]})}),(0,P.jsx)("div",{className:G.content_right,children:(0,P.jsx)(z,{columns:Z,dataSource:null==N?void 0:N.course_group_list,wrapperStyle:{width:"13.9rem",height:"3.82rem",fontSize:"0.14rem"},headerStyle:{height:"0.55rem",borderBottom:"0.01rem solid rgba(164, 200, 252, 0.1)"},bodyStyle:{maxHeight:"3.2rem"},rowStyle:{height:"0.4rem"}})}),(0,P.jsxs)("div",{className:G.content_bottom,children:[(0,P.jsxs)("div",{className:G.finish_top5,children:[(0,P.jsx)("div",{className:G.table_title,style:{background:"rgba(3,116,234,0.6)",borderColor:"#0374EA",width:"1.34rem"},children:"自主学习排名前5"}),(0,P.jsx)(z,{columns:U.concat(X),dataSource:null==N||null===(g=N.rank_list)||void 0===g?void 0:g.first_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:G.improve_top5,children:[(0,P.jsx)("div",{className:G.table_title,style:{background:"rgba(5,255,154,0.5)",borderColor:"#05FF9A",width:"1.58rem"},children:"自主学习提升排名前5"}),(0,P.jsx)(z,{columns:K,dataSource:null==N||null===(v=N.rank_list)||void 0===v?void 0:v.up_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:G.finish_last5,style:{marginTop:"0.1rem"},children:[(0,P.jsx)("div",{className:G.table_title,style:{background:"rgba(230,27,128,0.6)",borderColor:"#E61B80",width:"1.34rem"},children:"自主学习排名后5"}),(0,P.jsx)(z,{columns:Y.concat(X),dataSource:null==N||null===(y=N.rank_list)||void 0===y?void 0:y.last_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:G.suggestion,children:[(0,P.jsxs)("div",{className:G.head,children:[(0,P.jsx)("div",{children:"总结建议"}),(0,P.jsx)("div",{children:(0,P.jsxs)("span",{onClick:function(){b({type:"classroomList/setActionTabs",payload:{key:"编辑总结",statis_type:"study",content:null==N?void 0:N.summary_recommendations}})},className:G.bianji,children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑"]})})]}),(0,P.jsx)("div",{className:G.content,children:(0,P.jsx)(D.Z,{style:{color:"#fff"},value:null==N?void 0:N.summary_recommendations})})]})]})]})]})})})),V={title:"title___isW3F",table_wrapper:"table_wrapper___JVXxi",table_scroll:"table_scroll___KAeqH",table_content:"table_content___SML6r",table_row:"table_row___mwEdV",table_cell:"table_cell___eGx8I",rate:"rate___LALdJ",trend:"trend___ATxJ7",flexbox:"flexbox___rTXlT",echart_wrapper:"echart_wrapper___yNRky",chart_title_row:"chart_title_row___Op8Ug",chart_title:"chart_title___jJhcf",chart_legend:"chart_legend___xrAia",legend_item:"legend_item___XiRI1",legend_dot:"legend_dot___EqflU",blue:"blue___VErpK",orange:"orange___kzPEk",green:"green___1CCZC",purple:"purple___YApgJ",rank_wrapper:"rank_wrapper___tgvTT",rank_title:"rank_title___YXQZx",rank_table:"rank_table___svYHG",rank_header:"rank_header___FKKaP",rank_cell:"rank_cell___x0l2a",rank_body:"rank_body___n1qzT",rank_row:"rank_row___XJ2xp",rank_icon:"rank_icon___rvAr9",rank_1:"rank_1___FPtlY",rank_2:"rank_2___XWmjo",rank_3:"rank_3___zn__W",content:"content___DmTfT",content_bottom:"content_bottom___xoVjn",table_title:"table_title___KkFTn",suggestion:"suggestion___v9kKH",head:"head___GJHqX",bianji:"bianji___Q7Kje",no_data:"no_data___g9C6d",content_left:"content_left___qNCKF",classinfo_container:"classinfo_container___exCqA",info_card:"info_card___Xy4nd",info_title:"info_title____2nZx",info_content:"info_content___UNtls",current_info:"current_info___QFdfa",value:"value___PWNZF",previous_info:"previous_info___sYxU9",content_middle:"content_middle___op809",content_right:"content_right___qgk6B",content_right_left:"content_right_left___KDCps",content_right_left_title:"content_right_left_title___ut2r1",content_right_right:"content_right_right___zAX8U",content_right_right_title:"content_right_right_title___ttpCS"},Q=["shixunsDetail","globalSetting","loading","dispatch","paramsObj"],q=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading;var t,n,r,s,o,l,u,d,m,g,v,y,b,L,I,N,R,M,O,F,j=e.dispatch,B=e.paramsObj,Z=(_()(e,Q),(0,p.useParams)()),U=(0,f.useState)({}),Y=h()(U,2),X=Y[0],G=Y[1],W=(0,f.useState)(!1),K=h()(W,2),q=K[0],J=K[1];(0,f.useEffect)((function(){$()}),[B]);var $=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return J(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(null==Z?void 0:Z.coursesId,"/statistics/attendances.json"),{method:"get",params:c()({},B)});case 3:0==(null==(t=e.sent)?void 0:t.status)&&G(null==t?void 0:t.data),J(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=[{title:"",dataIndex:"course_group_name",width:"0.82rem",marginLeft:"0rem",extraStyle:{background:"rgba(164, 200, 252, 0.1)",height:"0.4rem",lineHeight:"0.4rem",paddingLeft:"0.2rem",marginLeft:"0rem"}},{title:"签到次数",dataIndex:"attendances_count",width:"0.76rem",marginLeft:"0.2rem"},{title:"到课率",dataIndex:"normal_rate",width:"0.84rem",render:function(e,t){return(0,P.jsxs)("div",{className:V.flex_box,children:[(0,P.jsxs)("span",{children:[e,"%"]}),H(null==t?void 0:t.normal_rate_compare)]})}},{title:"旷课率",dataIndex:"absence_rate",width:"0.96rem",render:function(e,t){return(0,P.jsxs)("div",{className:V.flex_box,children:[(0,P.jsxs)("span",{children:[e,"%"]}),H(null==t?void 0:t.absence_rate_compare)]})}},{title:"请假率",dataIndex:"leave_rate",width:"0.96rem",render:function(e,t){return(0,P.jsxs)("div",{className:V.flex_box,children:[(0,P.jsxs)("span",{children:[e,"%"]}),H(null==t?void 0:t.leave_compare_rate)]})}}],te=[{title:"排名",dataIndex:"number",width:"0.45rem",marginLeft:"0.2rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:V.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}}],ne=[{title:"排名",dataIndex:"number",width:"0.45rem",render:function(e,t,n){return(0,P.jsx)("span",{children:n+1})}}],re=[{title:"姓名",dataIndex:"name",width:"0.6rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.8rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"签到率",dataIndex:"normal_rate",width:"0.8rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"签到次数",dataIndex:"normal_count",width:"0.9rem"},{title:"收到签到次数",dataIndex:"attendances_count",width:"1.05rem"},{title:"旷课率",dataIndex:"absence_rate",width:"0.6rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"请假率",dataIndex:"leave_rate",width:"0.6rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}}],ie=[{title:"排名",dataIndex:"number",width:"0.45rem",marginLeft:"0.2rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:V.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}},{title:"姓名",dataIndex:"name",width:"0.75rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.95rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.85rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"签到率提升度",dataIndex:"normal_compare_rate",width:"1rem",render:function(e,t){return 0==e?(0,P.jsxs)("span",{children:[e,"%"]}):H(e)}},{title:"签到率",dataIndex:"normal_rate",width:"0.55rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"签到次数",dataIndex:"normal_count",width:"0.65rem"},{title:"收到签到次数",dataIndex:"attendances_count",width:"1rem"},{title:"旷课率",dataIndex:"absence_rate",width:"0.5rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"请假率",dataIndex:"leave_rate",width:"0.5rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}}];return(0,f.useEffect)((function(){(0,S.Dk)("学院统计"),Z.id}),[Z.id]),(0,P.jsx)(C.Z,{spinning:q,children:(0,P.jsxs)("div",{style:{color:"#fff"},children:[(0,P.jsx)("div",{className:V.title,children:"所选时间课堂签到情况"}),(0,P.jsxs)("div",{className:V.content,children:[(0,P.jsx)("div",{className:V.content_left,children:(0,P.jsxs)("div",{className:V.classinfo_container,children:[(0,P.jsxs)("div",{className:V.info_card,style:{backgroundColor:"rgba(22,44,141,0.2)",borderColor:"#182561"},children:[(0,P.jsx)("div",{className:V.info_title,style:{borderBottomColor:"#182561"},children:"发起次数"}),(0,P.jsx)("div",{className:V.info_content,children:(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:V.current_info,children:[(0,P.jsx)("span",{className:V.value,style:{color:"#B200EE"},children:null==X||null===(t=X.attendances_info)||void 0===t||null===(t=t.total)||void 0===t?void 0:t.count}),H(null==X||null===(n=X.attendances_info)||void 0===n||null===(n=n.total)||void 0===n?void 0:n.compare_rate,!0)]}),(0,P.jsxs)("div",{className:V.previous_info,children:["对比时间发起签到次数",null==X||null===(r=X.attendances_info)||void 0===r||null===(r=r.total)||void 0===r?void 0:r.last_month_count]})]})})]}),(0,P.jsxs)("div",{className:V.info_card,style:{backgroundColor:"rgba(3,254,248,0.1)",borderColor:"#013F50"},children:[(0,P.jsx)("div",{className:V.info_title,style:{backgroundColor:"rgba(3,254,248,0.1)",borderBottomColor:"#013F50"},children:"平均到课率"}),(0,P.jsx)("div",{className:V.info_content,children:(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:V.current_info,children:[(0,P.jsxs)("span",{className:V.value,style:{color:"#B200EE"},children:[null==X||null===(s=X.attendances_info)||void 0===s||null===(s=s.normal)||void 0===s?void 0:s.rate,"%"]}),H(null==X||null===(o=X.attendances_info)||void 0===o||null===(o=o.normal)||void 0===o?void 0:o.compare_rate)]}),(0,P.jsxs)("div",{className:V.previous_info,children:["对比时间平均到课率",null==X||null===(l=X.attendances_info)||void 0===l||null===(l=l.normal)||void 0===l?void 0:l.last_month_rate,"%"]})]})})]}),(0,P.jsxs)("div",{className:V.info_card,style:{backgroundColor:"rgba(230,27,128,0.2)",borderColor:"#611838"},children:[(0,P.jsx)("div",{className:V.info_title,style:{backgroundColor:"rgba(230,27,128,0.2)",borderBottomColor:"#611838"},children:"平均旷课率"}),(0,P.jsx)("div",{className:V.info_content,children:(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:V.current_info,children:[(0,P.jsxs)("span",{className:V.value,style:{color:"#B200EE"},children:[null==X||null===(u=X.attendances_info)||void 0===u||null===(u=u.absence)||void 0===u?void 0:u.rate,"%"]}),H(null==X||null===(d=X.attendances_info)||void 0===d||null===(d=d.absence)||void 0===d?void 0:d.compare_rate,!1,!0)]}),(0,P.jsxs)("div",{className:V.previous_info,children:["对比时间平均旷课率",null==X||null===(m=X.attendances_info)||void 0===m||null===(m=m.absence)||void 0===m?void 0:m.last_month_rate,"%"]})]})})]}),(0,P.jsxs)("div",{className:V.info_card,style:{backgroundColor:"rgba(255,138,1,0.2)",borderColor:"#614518"},children:[(0,P.jsx)("div",{className:V.info_title,style:{backgroundColor:"rgba(255,138,1,0.2)",borderBottomColor:"#614518"},children:"平均请假率"}),(0,P.jsx)("div",{className:V.info_content,children:(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:V.current_info,children:[(0,P.jsxs)("span",{className:V.value,style:{color:"#B200EE"},children:[null==X||null===(g=X.attendances_info)||void 0===g||null===(g=g.leave)||void 0===g?void 0:g.rate,"%"]}),H(null==X||null===(v=X.attendances_info)||void 0===v||null===(v=v.leave)||void 0===v?void 0:v.compare_rate,!1,!0)]}),(0,P.jsxs)("div",{className:V.previous_info,children:["对比时间平均请假率",null==X||null===(y=X.attendances_info)||void 0===y||null===(y=y.leave)||void 0===y?void 0:y.last_month_rate,"%"]})]})})]})]})}),(0,P.jsx)("div",{className:V.content_middle,children:(0,P.jsxs)("div",{className:V.echart_wrapper,children:[(0,P.jsxs)("div",{className:V.chart_title_row,style:{marginTop:0},children:[(0,P.jsx)("div",{className:V.chart_title,children:"分班签到分布情况"}),(0,P.jsxs)("div",{className:V.chart_legend,children:[(0,P.jsxs)("div",{className:V.legend_item,children:[(0,P.jsx)("div",{className:V.legend_dot,style:{background:"#03FEF8"}}),(0,P.jsx)("span",{style:{color:"#03FEF8"},children:"到课率"})]}),(0,P.jsxs)("div",{className:V.legend_item,children:[(0,P.jsx)("div",{className:V.legend_dot,style:{background:"#E61B80"}}),(0,P.jsx)("span",{style:{color:"#E61B80"},children:"旷课率"})]}),(0,P.jsxs)("div",{className:V.legend_item,children:[(0,P.jsx)("div",{className:V.legend_dot,style:{background:"#FF8A01"}}),(0,P.jsx)("span",{style:{color:"#FF8A01"},children:"请假率"})]})]})]}),(0,P.jsx)("div",{className:V.chart_content,children:(null==X||null===(b=X.course_group_list)||void 0===b?void 0:b.length)>0&&(0,P.jsx)(x.Z,{option:{grid:{top:20,bottom:0,left:0,right:10,containLabel:!0},legend:{show:!1},xAxis:{type:"category",data:null==X||null===(L=X.course_group_list)||void 0===L?void 0:L.map((function(e){return null==e?void 0:e.course_group_name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",interval:0}},yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:"{value}%"}},series:[{name:"到课率",data:null==X||null===(I=X.course_group_list)||void 0===I?void 0:I.map((function(e){return null==e?void 0:e.normal_rate})),type:"bar",barWidth:14,itemStyle:{color:"#03FEF8"},label:{show:!0,position:"top",color:"#03FEF8",fontSize:"0.12rem"}},{name:"旷课率",data:null==X||null===(N=X.course_group_list)||void 0===N?void 0:N.map((function(e){return null==e?void 0:e.absence_rate})),type:"bar",barWidth:14,itemStyle:{color:"#E61B80"},label:{show:!0,position:"top",color:"#E61B80",fontSize:"0.12rem"}},{name:"请假率",data:null==X||null===(R=X.course_group_list)||void 0===R?void 0:R.map((function(e){return null==e?void 0:e.leave_rate})),type:"bar",barWidth:14,itemStyle:{color:"#FF8A01"},label:{show:!0,position:"top",color:"#FF8A01",fontSize:"0.12rem"}}]},style:{height:"3.44rem"}})})]})}),(0,P.jsx)("div",{className:V.content_right,children:(0,P.jsx)(z,{columns:ee,dataSource:null==X?void 0:X.course_group_list,wrapperStyle:{width:"13.9rem",height:"3.82rem",fontSize:"0.14rem"},headerStyle:{height:"0.55rem",borderBottom:"0.01rem solid rgba(164, 200, 252, 0.1)"},bodyStyle:{maxHeight:"3.2rem"},rowStyle:{height:"0.4rem"}})}),(0,P.jsxs)("div",{className:V.content_bottom,children:[(0,P.jsxs)("div",{className:V.finish_top5,children:[(0,P.jsx)("div",{className:V.table_title,style:{background:"rgba(3,116,234,0.6)",borderColor:"#0374EA",width:"1.34rem",paddingLeft:"0.28rem"},children:"签到排名前5"}),(0,P.jsx)(z,{columns:te.concat(re),dataSource:null==X||null===(M=X.rank_list)||void 0===M?void 0:M.first_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:V.improve_top5,children:[(0,P.jsx)("div",{className:V.table_title,style:{background:"rgba(5,255,154,0.5)",borderColor:"#05FF9A",width:"1.58rem",paddingLeft:"0.28rem"},children:"签到提升排名前5"}),(0,P.jsx)(z,{columns:ie,dataSource:null==X||null===(O=X.rank_list)||void 0===O?void 0:O.up_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:V.finish_last5,style:{marginTop:"0.1rem"},children:[(0,P.jsx)("div",{className:V.table_title,style:{background:"rgba(230,27,128,0.6)",borderColor:"#E61B80",width:"1.34rem",paddingLeft:"0.28rem"},children:"签到排名后5"}),(0,P.jsx)(z,{columns:ne.concat(re),dataSource:null==X||null===(F=X.rank_list)||void 0===F?void 0:F.last_list,wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:V.suggestion,children:[(0,P.jsxs)("div",{className:V.head,children:[(0,P.jsx)("div",{children:"总结建议"}),(0,P.jsx)("div",{children:(0,P.jsxs)("span",{onClick:function(){j({type:"classroomList/setActionTabs",payload:{key:"编辑总结",statis_type:"attendance",content:null==X?void 0:X.summary_recommendations}})},className:V.bianji,children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑"]})})]}),(0,P.jsx)("div",{className:V.content,children:(0,P.jsx)(D.Z,{style:{color:"#fff"},value:null==X?void 0:X.summary_recommendations})})]})]})]})]})})})),J={title:"title___AvCuk",table_wrapper:"table_wrapper___f4ZVh",table_scroll:"table_scroll___guARN",table_content:"table_content___QbIWP",table_row:"table_row___PAMfB",table_cell:"table_cell___zmWcw",rate:"rate___Jmkel",trend:"trend___ygi6F",flexbox:"flexbox___enLaH",echart_wrapper:"echart_wrapper___mgcGB",chart_title_row:"chart_title_row___hEtdJ",chart_title:"chart_title___UUeOU",chart_legend:"chart_legend___jUq3Y",legend_item:"legend_item___FZWrj",legend_dot:"legend_dot___oUcor",blue:"blue___mM_mK",orange:"orange___EBu6c",green:"green___TNriI",purple:"purple___JoRRP",rank_wrapper:"rank_wrapper___zAr_k",rank_title:"rank_title___ljwhB",rank_table:"rank_table___RpuOA",rank_header:"rank_header___efFnc",rank_cell:"rank_cell___tu7_v",rank_body:"rank_body___KhNLh",rank_row:"rank_row___jHcfq",rank_icon:"rank_icon___RfHY1",rank_1:"rank_1___hZpPz",rank_2:"rank_2___eRPqR",rank_3:"rank_3___IcEl7",content:"content___cwmzh",content_bottom:"content_bottom___B2B_3",table_title:"table_title___jvn7n",suggestion:"suggestion___tqjTR",head:"head___m5fRV",bianji:"bianji___V6KpC",no_data:"no_data___c65o2",content_left:"content_left___P20h6",scores_container:"scores_container___js4B4",score_card:"score_card___b1qAd",score_title:"score_title___FQrU5",score_content:"score_content___XiYxd",score_value:"score_value___GLSN0",score_trend:"score_trend___s9BRQ",score_compare:"score_compare___OGoGY",content_middle:"content_middle___wfGR3",content_right:"content_right___bWuQm",content_right_left:"content_right_left___v8HkT",content_right_left_title:"content_right_left_title___zF8m1",content_right_right:"content_right_right___Ve8RK",content_right_right_title:"content_right_right_title___VWucl","custom-table":"custom-table____FR2x",class_name:"class_name___oKsX4"},$=n(54172),ee=["shixunsDetail","globalSetting","loading","dispatch","paramsObj"],te=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading;var t,n,r,s,o,u,d,m,g,v,y,b,S,L,I,N,R,M,O,F,j,B=e.dispatch,Z=e.paramsObj,U=(_()(e,ee),(0,p.useParams)()),Y=(0,f.useState)({}),X=h()(Y,2),G=X[0],W=X[1],K=(0,f.useState)(!1),V=h()(K,2),Q=V[0],q=V[1];(0,f.useEffect)((function(){te()}),[Z]);var te=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(!0),(Z.course_group_ids||0===Z.course_group_ids)&&("all"===Z.course_group_ids?Z.course_group_ids=null:Z.course_group_ids=[Z.course_group_ids]),e.next=4,(0,T.ZP)("/api/courses/".concat(null==U?void 0:U.coursesId,"/statistics/knowledge.json"),{method:"get",params:c()({},Z)});case 4:0==(null==(t=e.sent)?void 0:t.status)&&W(null==t?void 0:t.data),q(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=[{title:"排名",dataIndex:"number",width:"1rem",marginLeft:"0.2rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:J.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}}],re=[{title:"排名",dataIndex:"number",width:"1rem",marginLeft:"0.2rem",render:function(e,t,n){return(0,P.jsx)("span",{children:n+1})}}],ie=[{title:"姓名",dataIndex:"name",width:"1rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"1.2rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"1rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"知识点掌握率",dataIndex:"have_rate",width:"1.1rem"},{title:"掌握知识点数",dataIndex:"have_knowledge_count",width:"1.1rem"},{title:"学习知识点数",dataIndex:"study_knowledge_count",width:"1.1rem"}],se=[{title:"排名",dataIndex:"number",width:"0.6rem",marginLeft:"0.2rem",render:function(e,t,n){var r=null;return 0===n&&(r=w.Z),1===n&&(r=E.Z),2===n&&(r=A.Z),n<3?(0,P.jsx)("span",{className:J.recordPrefix,children:(0,P.jsx)("img",{src:r})}):(0,P.jsx)("span",{children:n+1})}},{title:"姓名",dataIndex:"name",width:"0.6rem",render:function(e,t){return(0,P.jsx)(k.Z,{title:e,children:e||"--"})}},{title:"学号",dataIndex:"student_id",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"分班名称",dataIndex:"course_group_name",width:"0.9rem",render:function(e,t){return(0,P.jsx)("span",{children:e||"--"})}},{title:"知识点掌握提升度",dataIndex:"have_rate_compare",width:"1.2rem",render:function(e,t){return 0==e?(0,P.jsxs)("span",{children:[e,"%"]}):H(e)}},{title:"知识点掌握率",dataIndex:"have_rate",width:"1.1rem",render:function(e,t){return(0,P.jsxs)("span",{children:[e,"%"]})}},{title:"掌握知识点数",dataIndex:"have_knowledge_count",width:"1.1rem"},{title:"学习知识点数",dataIndex:"study_knowledge_count",width:"1.1rem"}];return(0,P.jsx)(C.Z,{spinning:Q,children:(0,P.jsxs)("div",{style:{color:"#fff"},children:[(0,P.jsxs)("div",{className:J.title,children:["所选时间知识点掌握情况",(0,P.jsx)("span",{style:{fontSize:"0.12rem",fontWeight:"400",marginLeft:"0.1rem"},children:"知识点为实训作业关卡标签和编程作业中编程题的知识点"})]}),(0,P.jsxs)("div",{className:J.content,children:[(0,P.jsx)("div",{className:J.content_left,children:(0,P.jsxs)("div",{className:J.scores_container,children:[(0,P.jsxs)("div",{className:J.score_card,style:{backgroundColor:"rgba(178,0,238,0.1)",border:"0.01rem solid #51093A"},children:[(0,P.jsx)("div",{className:J.score_title,children:"知识点数"}),(0,P.jsxs)("div",{className:J.score_content,children:[(0,P.jsx)("span",{className:J.score_value,style:{color:"#B200EE"},children:null==G||null===(t=G.knowledge_info)||void 0===t||null===(t=t.knowledge)||void 0===t?void 0:t.count}),H(null==G||null===(n=G.knowledge_info)||void 0===n||null===(n=n.knowledge)||void 0===n?void 0:n.compare_rate,!0)]}),(0,P.jsxs)("div",{className:J.score_compare,children:["对比时间知识点数",null==G||null===(r=G.knowledge_info)||void 0===r||null===(r=r.knowledge)||void 0===r?void 0:r.last_month_count]})]}),(0,P.jsxs)("div",{className:J.score_card,style:{backgroundColor:"rgba(3,254,248,0.1)",border:"0.01rem solid #013F50"},children:[(0,P.jsx)("div",{className:J.score_title,children:"知识点平均掌握率"}),(0,P.jsxs)("div",{className:J.score_content,children:[(0,P.jsxs)("span",{className:J.score_value,style:{color:"#03FEF8"},children:[null==G||null===(s=G.knowledge_info)||void 0===s||null===(s=s.have_rate)||void 0===s?void 0:s.rate,"%"]}),H(null==G||null===(o=G.knowledge_info)||void 0===o||null===(o=o.have_rate)||void 0===o?void 0:o.compare_rate)]}),(0,P.jsxs)("div",{className:J.score_compare,children:["对比时间知识点平均掌握率",null==G||null===(u=G.knowledge_info)||void 0===u||null===(u=u.have_rate)||void 0===u?void 0:u.last_month_rate,"%"]})]}),(0,P.jsxs)("div",{className:J.score_card,style:{backgroundColor:"rgba(255,138,1,0.1)",border:"0.01rem solid #3C2C02"},children:[(0,P.jsx)("div",{className:J.score_title,children:"掌握率低的知识点数"}),(0,P.jsxs)("div",{className:J.score_content,children:[(0,P.jsx)("span",{className:J.score_value,style:{color:"#FF8A01"},children:null==G||null===(d=G.knowledge_info)||void 0===d||null===(d=d.low_have_rate)||void 0===d?void 0:d.count}),H(null==G||null===(m=G.knowledge_info)||void 0===m||null===(m=m.low_have_rate)||void 0===m?void 0:m.compare_rate,!0)]}),(0,P.jsxs)("div",{className:J.score_compare,children:["对比时间掌握率低知识点数",null==G||null===(g=G.knowledge_info)||void 0===g||null===(g=g.low_have_rate)||void 0===g?void 0:g.last_month_count]})]})]})}),(0,P.jsx)("div",{className:J.content_middle,children:(0,P.jsxs)("div",{className:J.echart_wrapper,children:[(0,P.jsxs)("div",{className:J.chart_title_row,style:{marginTop:0},children:[(0,P.jsx)("div",{className:J.chart_title,children:"班级知识点平均掌握度"}),(0,P.jsxs)("div",{className:J.chart_legend,children:[(0,P.jsxs)("div",{className:J.legend_item,children:[(0,P.jsx)("div",{className:J.legend_dot,style:{background:"#0374EA"}}),(0,P.jsx)("span",{style:{color:"#0374EA"},children:"所选时间"})]}),(0,P.jsxs)("div",{className:J.legend_item,children:[(0,P.jsx)("div",{className:J.legend_dot,style:{background:"#B200EE"}}),(0,P.jsx)("span",{style:{color:"#B200EE"},children:"对比时间"})]})]})]}),(0,P.jsx)("div",{className:J.chart_content,children:(null==G||null===(v=G.course_group_list)||void 0===v?void 0:v.length)>0&&(0,P.jsx)(x.Z,{option:{grid:{top:20,bottom:0,left:0,right:50,containLabel:!0},legend:{show:!1},dataZoom:[c()(c()({type:"slider"},(null==G||null===(y=G.course_group_list)||void 0===y?void 0:y.length)>10?{start:0,end:15}:{}),{},{show:(null==G||null===(b=G.course_group_list)||void 0===b?void 0:b.length)>10,xAxisIndex:[0],bottom:0,height:10,borderColor:"transparent",backgroundColor:"rgba(164, 200, 252, 0.1)",fillerColor:"rgba(3, 116, 234, 0.3)",handleStyle:{color:"#0374EA",borderColor:"#0374EA"},moveHandleStyle:{color:"#0374EA"},selectedDataBackground:{lineStyle:{color:"#0374EA"},areaStyle:{color:"#0374EA"}},textStyle:{color:"#A4C8FC"}})],xAxis:{type:"category",data:null==G||null===(S=G.course_group_list)||void 0===S?void 0:S.map((function(e){return null==e?void 0:e.course_group_name})),axisLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisTick:{show:!1},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",interval:0}},yAxis:{type:"value",max:100,splitNumber:5,axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(164, 200, 252, 0.1)"}},axisLabel:{color:"#A4C8FC",fontSize:"0.12rem",formatter:"{value}%"}},series:[{name:"所选时间",data:null==G||null===(L=G.course_group_list)||void 0===L?void 0:L.map((function(e){return null==e?void 0:e.rate})),type:"bar",barWidth:20,itemStyle:{color:"#0374EA"},label:{show:!0,position:"top",color:"#0374EA",fontSize:"0.12rem"},markLine:{silent:!0,symbol:"none",data:[{yAxis:null==G||null===(I=G.knowledge_info)||void 0===I||null===(I=I.have_rate)||void 0===I?void 0:I.last_month_rate,lineStyle:{color:"#B200EE",type:"dashed",width:1},label:{show:!0,position:"end",formatter:"对比平均",color:"#B200EE",fontSize:"0.12rem",distance:[5,0]}},{yAxis:null==G||null===(N=G.knowledge_info)||void 0===N||null===(N=N.have_rate)||void 0===N?void 0:N.rate,lineStyle:{color:"#0374EA",type:"dashed",width:1},label:{show:!0,position:"end",formatter:"所选平均",color:"#0374EA",fontSize:"0.12rem",distance:[5,0]}}]}},{name:"对比时间",data:null==G||null===(R=G.course_group_list)||void 0===R?void 0:R.map((function(e){return null==e?void 0:e.last_month_rate})),type:"bar",barWidth:20,itemStyle:{color:"#B200EE"},label:{show:!0,position:"top",color:"#B200EE",fontSize:"0.12rem"}}]},style:{height:"3.44rem"}})})]})}),(0,P.jsxs)("div",{className:J.content_right,children:[(0,P.jsxs)("div",{className:J.content_right_left,children:[(0,P.jsx)("div",{className:J.content_right_left_title,children:"知识点掌握情况"}),(0,P.jsx)("div",{className:J.content_right_left_info,children:(null==G||null===(M=G.knowledge_list)||void 0===M?void 0:M.length)>0&&function(e){var t;console.log(e);var n=(null==e?void 0:e.length)>0?null===(t=e[0])||void 0===t?void 0:t.course_group_list:[];console.log(n);var r=[{title:"",dataIndex:"name",fixed:"left",width:"0.62rem",ellipsis:!0}].concat(l()(null==n?void 0:n.map((function(e,t){return{title:(0,P.jsx)(k.Z,{title:null==e?void 0:e.course_group_name,children:(0,P.jsx)("span",{className:J.class_name,children:e.course_group_name})}),dataIndex:"class".concat(t+1),width:"0.61rem",render:function(e){return e+"%"}}})))),i=null==e?void 0:e.map((function(e){var t=c()({},e);return e.course_group_list.forEach((function(e,n){t["class".concat(n+1)]=e.rate})),t}));return(0,P.jsx)($.Z,{className:J["custom-table"],columns:r,dataSource:i||[],pagination:!1,scroll:{x:"max-content",y:"3.04rem"},bordered:!1})}(null==G?void 0:G.knowledge_list)})]}),(0,P.jsxs)("div",{className:J.content_right_right,children:[(0,P.jsxs)("div",{className:J.content_right_right_title,children:["掌握率低的知识点数",(0,P.jsx)("span",{style:{fontSize:"0.12rem",fontWeight:"400"},children:"(掌握率低于60%)"})]}),(0,P.jsx)("div",{className:J.content_right_right_info,children:(0,P.jsx)(z,{columns:[{title:"知识点",dataIndex:"name",width:"0.7rem",marginLeft:"0.1rem"},{title:"学习人数",dataIndex:"study_students_count",width:"0.56rem",marginLeft:"0.2rem"},{title:"掌握人数",dataIndex:"have_students_counts",width:"0.56rem",marginLeft:"0.2rem"},{title:"掌握率",dataIndex:"rate",width:"0.42rem",marginLeft:"0.2rem"}],dataSource:null==G?void 0:G.knowledge_low_have_list,wrapperStyle:{width:"3.04rem",height:"3.48rem",fontSize:"0.14rem"},headerStyle:{height:"0.34rem"},bodyStyle:{maxHeight:"3.03rem"},rowStyle:{height:"0.38rem"}})})]})]}),(0,P.jsxs)("div",{className:J.content_bottom,children:[(0,P.jsxs)("div",{className:J.finish_top5,children:[(0,P.jsx)("div",{className:J.table_title,style:{background:"rgba(3,116,234,0.6)",borderColor:"#0374EA",width:"1.34rem"},children:"知识点掌握排名前5"}),(0,P.jsx)(z,{columns:ne.concat(ie),dataSource:(null==G||null===(O=G.rank_list)||void 0===O?void 0:O.first_list)||[],wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:J.improve_top5,children:[(0,P.jsx)("div",{className:J.table_title,style:{background:"rgba(5,255,154,0.5)",borderColor:"#05FF9A",width:"1.58rem"},children:"知识点掌握提升排名前5"}),(0,P.jsx)(z,{columns:se,dataSource:(null==G||null===(F=G.rank_list)||void 0===F?void 0:F.up_list)||[],wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:J.finish_last5,style:{marginTop:"0.1rem"},children:[(0,P.jsx)("div",{className:J.table_title,style:{background:"rgba(230,27,128,0.6)",borderColor:"#E61B80",width:"1.34rem"},children:"知识点掌握排名后5"}),(0,P.jsx)(z,{columns:re.concat(ie),dataSource:(null==G||null===(j=G.rank_list)||void 0===j?void 0:j.last_list)||[],wrapperStyle:{fontSize:"0.12rem"}})]}),(0,P.jsxs)("div",{className:J.suggestion,children:[(0,P.jsxs)("div",{className:J.head,children:[(0,P.jsx)("div",{children:"总结建议"}),(0,P.jsx)("div",{children:(0,P.jsxs)("span",{onClick:function(){B({type:"classroomList/setActionTabs",payload:{key:"编辑总结",statis_type:"knowledge",content:null==G?void 0:G.summary_recommendations}})},className:J.bianji,children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑"]})})]}),(0,P.jsx)("div",{className:J.content,children:(0,P.jsx)(D.Z,{style:{color:"#fff"},value:null==G?void 0:G.summary_recommendations})})]})]})]})]})})})),ne=n(16326),re=n(82326),ie=n(6767),se=n(60242),ae=n(62957),oe=n(56656),le=n.n(oe),ue=n(37568),ce=["classroomList","dispatch","getData","paramsObj"],de=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,r=e.getData,s=e.paramsObj,o=(_()(e,ce),(0,p.useParams)()),l=(0,f.useState)(!1),u=h()(l,2),c=u[0],d=u[1],m=(0,f.useState)(),g=h()(m,2),v=g[0],y=g[1];(0,f.useEffect)((function(){y(t.actionTabs.content)}),[t.actionTabs.content]);var b=function(){var e=a()(i()().mark((function e(){var a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(o.coursesId,"/statistics/summary_recommendations.json"),{method:"PUT",body:{start_at:s.start_at,statis_type:t.actionTabs.statis_type,summary_recommendations:v}});case 3:a=e.sent,d(!1),0===a.status&&(r(t.actionTabs.statis_type),n({type:"classroomList/setActionTabs",payload:{}}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsx)(ae.Z,{width:600,confirmLoading:c,centered:!0,title:"编辑总结",open:"编辑总结"===t.actionTabs.key,okText:"确认",cancelText:"取消",onOk:b,onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsx)(ue.Z.TextArea,{rows:8,value:v,onChange:function(e){y(e.target.value)}})})})),he=ne.default.RangePicker,fe=(0,p.connect)((function(e){var t=e.homePage,n=e.loading,r=e.globalSetting,i=e.user,s=e.classroomList;return{homePage:t,globalSetting:r,loading:n.models.homePage,user:i,classroomList:s}}))((function(e){e.homePage,e.globalSetting;var t,n,r,s,o,u,d,y,_,b,x,w,E,A,C,D,L,N,R,M,O,F,j,B,z,Z,Y,G,W,V,Q,J,$,ee,ne,oe,ue,ce,fe,pe,me,ge,ve,ye,_e,be,xe,we,Ee,Ae,ke,Ce,Te,De,Se,Pe,Le,Ie,Ne,Re,Me,Oe,Fe,je,Be,ze,He,Ze,Ue,Ye,Xe,Ge,We,Ke,Ve,Qe,qe,Je,$e,et,tt,nt,rt,it,st=e.classroomList,at=(e.user,e.loading,e.dispatch);(0,f.useEffect)((function(){at({type:"globalSetting/headerFooterToggle",payload:!1})}),[]),(0,f.useEffect)((function(){function e(){var e=document.documentElement,t=e.clientWidth/1920;t=100*(t>2?2:t<.6?.6:t),e.style.fontSize=t+"px"}return window.addEventListener("resize",e),e(),function(){document.documentElement.removeAttribute("style"),window.removeEventListener("resize",e)}}),[]);var ot=(0,p.useParams)(),lt=(0,p.useSearchParams)(),ut=h()(lt,1)[0],ct=(0,f.useState)({}),dt=h()(ct,2),ht=dt[0],ft=dt[1],pt=(0,f.useState)(null),mt=h()(pt,2),gt=mt[0],vt=mt[1],yt=(0,f.useState)("all"),_t=h()(yt,2),bt=_t[0],xt=_t[1],wt=(0,f.useState)([le()().startOf("month").format("YYYY-MM-DD"),le()().format("YYYY-MM-DD")]),Et=h()(wt,2),At=Et[0],kt=Et[1],Ct=(0,f.useState)([le()().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),le()().subtract(1,"month").endOf("month").format("YYYY-MM-DD")]),Tt=h()(Ct,2),Dt=Tt[0],St=Tt[1],Pt=(0,f.useState)({start_at:le()().startOf("month").format("YYYY-MM-DD"),end_at:le()().format("YYYY-MM-DD"),compare_start_at:le()().subtract(1,"month").startOf("month").format("YYYY-MM-DD"),compare_end_at:le()().subtract(1,"month").endOf("month").format("YYYY-MM-DD"),course_group_ids:""}),Lt=h()(Pt,2),It=Lt[0],Nt=Lt[1],Rt=(0,f.useState)(c()({},It)),Mt=h()(Rt,2),Ot=Mt[0],Ft=Mt[1],jt=(0,f.useState)(!1),Bt=h()(jt,2),zt=Bt[0],Ht=Bt[1],Zt=(0,f.useState)(0),Ut=h()(Zt,2),Yt=Ut[0],Xt=Ut[1],Gt=(0,f.useState)(2),Wt=h()(Gt,2),Kt=Wt[0],Vt=Wt[1],Qt=(st.detailAnnouncementList,st.allCourseGroups),qt=[{value:"all",label:"全部分班"}].concat(l()((null==Qt||null===(t=Qt.course_groups)||void 0===t?void 0:t.map((function(e){return{value:e.id,label:e.name}})))||[]));(0,f.useEffect)((function(){Jt()}),[bt]),(0,f.useEffect)((function(){at({type:"classroomList/getAllCourseGroup",payload:c()({},ot)})}),[]);var Jt=function(){var e=a()(i()().mark((function e(){var t,n,r,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(null==ot?void 0:ot.coursesId,"/statistics/overview.json"),{method:"get",params:{start_at:At[0],end_at:At[1],compare_start_at:Dt[0],compare_end_at:Dt[1],course_group_ids:"all"==bt?"":[bt]}});case 2:0==(null==(t=e.sent)?void 0:t.status)&&(null!=t&&null!==(n=t.data)&&void 0!==n&&null!==(n=n.course_targets)&&void 0!==n&&null!==(n=n.list)&&void 0!==n&&n.length||Vt(1),ft(null==t?void 0:t.data),vt({total:null==t||null===(r=t.data)||void 0===r||null===(r=r.course_targets)||void 0===r?void 0:r.course_target_rate,detail:null==t||null===(s=t.data)||void 0===s||null===(s=s.course_targets)||void 0===s||null===(s=s.list)||void 0===s?void 0:s.map((function(e){return{name:e.name,rate:e.user_rate}}))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsxs)("div",{className:m.wrap,children:[(0,P.jsxs)("div",{className:m.bg,style:{background:"url(".concat(g,")"),backgroundSize:"100% 10.8rem",backgroundRepeat:"no-repeat"},children:[(0,P.jsxs)("div",{className:m.head,style:{background:"url(".concat(v,")"),backgroundSize:"100% 100%"},children:[(0,P.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginLeft:"0.67rem"},children:[(0,P.jsxs)("div",{className:m.fanhui,onClick:function(){return p.history.push("/classrooms/".concat(ot.coursesId,"/statistics/").concat(ut.get("category_id")))},children:[(0,P.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAiCAYAAAAtZZsLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAIgAAAAAwVn4NAAANOElEQVRYCaVYaWxc13U+9963zZt9hjPDmdFCieJQCy3a2uDErpWgWxC0kNA/SRDEgeUfSW1JppImTuTIlZqgdVoELRq0qY0C/WHUsh07lpEitmoHSmL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/2EmPxEkX0YgU37Eek/KDeUZvjxj8nMbdP1Ma6Pf5zIkZeIaAp1fA8GQ89J9cP77/H1EjphlWY7Nf/fvF6S8d1DK9MI+nM9KsrlsYd//ALBFEIRezV8jAAAAAElFTkSuQmCC",style:{width:"0.2rem",marginRight:"0.05rem"}}),(0,P.jsx)("span",{children:"返回"})]}),(0,P.jsxs)("div",{className:m.fenban,style:{background:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnwAAABMCAYAAAD3CGrSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQuUZVdZ5t7nnPu+t579qKp+JJ3uJJ3udEwgPARjEhIYFBEVO6IgSxw0awRZDEtweMyk4iyHQVk4CAtnkBGQ5YCJKDpoFIVEwBE0kdBJV7qrq7urX/W+91bVfT/O2cO/H+ees8+pOnW7qh/V/Z+V9D519+v///34v/Pvvf9NCT4oAZQASgAlgBJACaAEUALXtAToNc0dMocSQAmgBFACKAGUAEoAJUA6gI8x8U4pQ7mgBFACKAGUAEoAJYASuC4kAPjn0Ufp6A+YHX3kEXat4iAO8g4ffswkB4lZzs/Qlw0WWqOjjzAy+ij9AecS/P3gncA7hCEPl5L8H6K1v0d/8Lf6n0drf+vpA3/rVQbqi6BXp2d1cqHFkX9sf+z/OP5x/uNzL87/qP+uff3/FLkhTiYJuSV+yP70yFdtgX+uLQMYB3CMMfq2Rz+XmDppmpVYyyh+51xjLDXMSG2axx8gB8gYGeOheMb4ryIkBNIeqE1TnifsgXI85ZGxYUYOTFMe8grkO4SeksNrI8QtS9an6oYwSF0wPefLS496V/Rr8cg/tj/2fxz/OP/h/I/679rU/6+5/8b4UGx3sra7mCwXF5vP/d9j5fOJ5RZ5arR9LVk4XYsdgL6HH/1qamz8XKI56xhn5ifrs4URZy3MjmxfplOzPQxCSG/M9jBn+zKFEP5W7xCGlafyQgjxO3cRcv6cCHn+5jI14j0MQvhbTz+yPUOnZisMQpFjmhAyLMNgep0GnX69/CgZIP/Y/tj/cfzj/I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1iUY5r/DR4KKVx8Hnd94TMqbylOTXr3M1qwLwKuVQpoN/wdgPCEASY3USJyl3FmiVuU/knhS2czyxIwPOvAz4f+ooEraTlrmq5B4irBEKsPB1CxPVSaJdJaVSZnEnSwjJUV7iZRLhMTTOd9vTfjb+5xfJok0Y41WLyMEoBchyWwfS+cIKxQ6CfP8dYIMpvZxm1p5wGPrm4FfZkl2cLtb9lLTE38e4vk/5HuVnW6a1HZIM0GyN+xj5CjEjpH+mw648c98+hmSG3mxh96nyH2P3Cdseo8K2kYf8dTDWyQI9vivPqbxD5QASgAlgBK4WiSwyvy8GrK+DORf4erXyuHoDz4yVk4b8fGx1ko2KN3Ro49TIgzi5ODhw1zCRx8XOvrg4dBF+4uuGT6kRGZZ4Qol6fUeJY9TyHGYCPou5nmIPE4Pyvxr5c9NN3ZxcgCr14YAnq4QE0980XK6GNlG5emK/KjCMB4lgBJACaAEUAIoAZQASuDqk8D/B+Iurs6e1Wg3AAAAAElFTkSuQmCC",")"),backgroundSize:"100% 100%"},children:[(0,P.jsx)("div",{style:{marginLeft:"0.9rem",marginBottom:"0.1rem"},children:"分班:"}),(0,P.jsx)(re.default,{value:bt,onChange:function(e){Nt(c()(c()({},It),{},{course_group_ids:e})),xt(e)},options:qt,className:m.customSelect})]})]}),(0,P.jsx)("div",{className:m.title,children:"课堂成效概览统计"}),(0,P.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,P.jsxs)("div",{className:m.daochu,style:{background:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATIAAAA4CAYAAAB+KnQXAAAAAXNSR0IArs4c6QAAFd9JREFUeF7tXX10XMV1v3fe27e7kmVLi41jjAGDTQwGt9DSUL4s2RjbslPCIeHUBU6T5oQWDpyStgkN9EM9TSHglIZyCKUnPbTkxDkmYAwmBpuSgKEEY4M/ZLCNLfkDf2HJsmVZsrTafdO89/br3Xneu0/alfwx759ZaebNmzv3zm/u3LlzB0E/ugd0D+geOM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yQyt+doAQbIMZ0vw1JZVxxIFKWfiQ6BscY9X3aHg4IiYZGrucKCDah6fdtpmj+Z2UwGLS0/BePEAx+m2uR8W9GLJh58y3RCRdeaCJgN6L82r/eEXstu6R3+//+53rvl4CPO7eBfPh/q/o/eudt13+MAgU/w6jm/hCbNM78kwt3kGmg/yQBqT7sZgFnxQhfH9cjnAZDNx80/Vk7pOa/GsFY0a9Cb34Vl8eTVf7jVXGc/dUF1phx452LotrREPP+7Xbrg2x/+Nwv7v+f5J/ZCP8Jtm00f/Be+v03V6Sp35AS1oMzXnLjnOQr3yPhx9TqwgFFyOYo4c40/SQirOZ/ceN1SIHT8u/303NWRDWj6mDOgjsitXWjEQTuQpSzn7gztrWwaxXP/nuf6/sa2PgzABnZsm6N/c7ypbZ7N98JHmUXTwmr4w/TErBi92lg1IFVuZ4trMZGygfoiz6Nj2qEnBxq+skupuZ/zprtapQkjJGW/+IrEDr+E2PG4pwFXxfVI2oQhdhoiMicH93pd4b1LS0Lq7/n2f45CPYSAIhnbUROvup1T885cneTsvaConebsq6mXOQEfnPc18v87KjpLzQbhOdPuP4LX//gzBya/6p2VBicVgnhpdiXqbI6mPGPb9eMiNz86G3o3hUSxNlApeO+Z/uvt0G+atv2yEyUaqUcG8GGiUqt3vZefANOiWASMur1YNurzqZM+HVNf9Go5Jr/5Ngh68NIIiCdKfIv8EVzrHX7k43ohRILA2Tckkrn6x7QPaB74GTpgf8H7OR8udNzcTkAAAAASUVORK5CYII=",")"),backgroundSize:"100% 100%"},onClick:function(){return ie.ZP.info("功能开发中")},children:[(0,P.jsx)("i",{className:"iconfont icon-daochu",style:{fontSize:"0.16rem"}}),(0,P.jsx)("span",{style:{color:"rgba(255, 255, 255, 0.85)",fontSize:"0.12rem"},children:"导出word报告"})]}),(0,P.jsxs)("div",{className:m.fanwei,style:{background:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAq4AAABMCAYAAACs7DWmAAAAAXNSR0IArs4c6QAAIABJREFUeF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Ll7CAwF1D4TrIjwUHniA9fQ8T8lQhCs8/Lqkv8YHoi6EmxPSsg4sQd5xg6qJ08/rUAdH5IQK64K1lAKo1QHzVPDV180LqNXAyWE4L0P5DGrgV1W4JPKiBjVwtLK4I2rCz+XxTKxcZp0lg3cLetmdBWjtDCqVClrH8auVlipsgIVnH4fKxQRase0EXCNTkG6JA8SBlTmw7z7h7NsNzvQSiOGv3OkPDQ0tpz6jZScWvcY366ZYjdkUGMbrjmXzKoAcv8bH+61newE0Vm6qEibxrfFcBmzLpzdE42I/woilp9GjXgOWN3LskrfzIxqkJyqnAHvaFYvRP8qjcWCvcXwke/zJ7LQG+JuXK0VFLDpr+bsAAAFqSURBVLQMZ+wbG5tm66Zojozs85OjyfI3ALRNTerncUDeIK2e9w80Xb1YhvnpiRXa3wd9OvXCnHqxWZyfSUkv33D0pW6snytWMkyL/VFOo4/Z9RvAMpSW3MbLVTxJ/IXAvB9UHPTy2Lg6IHzLimXPzasXrsbVvjLDU8hUFpBGej7ztMLNC539qqCKM0/bMoofKTeqV2wFUQ5/l6HY2q5WrLlGmnpbQyF2Duag2NYhYBY/Uak0LSZ+xuSZgdb2LkkH3bnHrml8hk+nob9lm1xLJ2SCCWjr7lt2tRyHcYAxgNaefgEwCgv9gwKkUpe6ZmsgdubBG/4K+BeLekCUbwRcV55SFEscIA4QB4gD54YDGfvPWb7lnJu6Lk/1Aqnmcg24wKv/fPd2ZnnrCqrOmljzpjwzG3YeJThrtpxHbaCqEAeIA8QB4gBxgDhAHCAOvAA4QMD1BdDJ1ETiAHGAOEAcIA4QB4gDFwMH/j+RuWqveHQhKgAAAABJRU5ErkJggg==",")"),backgroundSize:"100% 100%"},onClick:function(){Ht(!0)},children:[(0,P.jsx)("div",{style:{marginLeft:"0.8rem",marginBottom:"0.1rem",width:"0.6rem"},children:"范围:"}),(0,P.jsxs)("span",{children:[It.start_at,"-",It.end_at]}),(0,P.jsx)("i",{className:"iconfont icon-bianji current"})]})]})]}),(0,P.jsxs)("div",{className:m.content,children:[(0,P.jsxs)("div",{className:m.left,children:[(0,P.jsxs)("div",{className:m.left_top,children:[(0,P.jsxs)("div",{className:m.stats_container,children:[(0,P.jsxs)("div",{className:m.stat_card,children:[(0,P.jsx)("div",{className:m.icon_wrapper,style:{background:"#B200EE"},children:(0,P.jsx)("i",{className:"iconfont icon-fenban3",style:{fontSize:"0.24rem"}})}),(0,P.jsx)("div",{className:m.stat_content,style:{background:"rgba(178, 0, 238, 0.3)"},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:m.stat_label,children:"分班数"}),(0,P.jsx)("div",{className:m.stat_value,children:null==ht||null===(n=ht.course_info)||void 0===n?void 0:n.course_groups_count})]})})]}),(0,P.jsxs)("div",{className:m.stat_card,children:[(0,P.jsx)("div",{className:m.icon_wrapper,style:{background:"#0089FD"},children:(0,P.jsx)("i",{className:"iconfont icon-xuesheng2",style:{fontSize:"0.24rem"}})}),(0,P.jsx)("div",{className:m.stat_content,style:{background:"rgb(0, 137, 253,0.3)"},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:m.stat_label,children:"学生数"}),(0,P.jsx)("div",{className:m.stat_value,children:null==ht||null===(r=ht.course_info)||void 0===r?void 0:r.students_count})]})})]}),(0,P.jsxs)("div",{className:m.stat_card,children:[(0,P.jsx)("div",{className:m.icon_wrapper,style:{background:"#FF8F00"},children:(0,P.jsx)("i",{className:"iconfont icon-jiaoshi",style:{fontSize:"0.3rem"}})}),(0,P.jsx)("div",{className:m.stat_content,style:{background:"rgb(255, 143, 0,0.3)"},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:m.stat_label,children:"教师数"}),(0,P.jsx)("div",{className:m.stat_value,children:null==ht||null===(s=ht.course_info)||void 0===s?void 0:s.teachers_count})]})})]})]}),(0,P.jsxs)("div",{className:m.scores_container,children:[(0,P.jsxs)("div",{className:m.score_card,children:[(0,P.jsx)("div",{className:m.score_title,children:"考试平均得分"}),(0,P.jsxs)("div",{className:m.score_content,children:[(0,P.jsx)("span",{className:m.score_value,style:{color:"#0089FD"},children:null==ht||null===(o=ht.average_score)||void 0===o?void 0:o.exercise_average_score}),H(null==ht||null===(u=ht.average_score)||void 0===u?void 0:u.exercise_average_score_compare,!0)]}),(0,P.jsxs)("div",{className:m.score_compare,children:["对比时间考试平均得分为",null==ht||null===(d=ht.average_score)||void 0===d?void 0:d.exercise_average_score_last_month]})]}),(0,P.jsxs)("div",{className:m.score_card,children:[(0,P.jsx)("div",{className:m.score_title,children:"作业平均得分"}),(0,P.jsxs)("div",{className:m.score_content,children:[(0,P.jsx)("span",{className:m.score_value,style:{color:"#FFCA00"},children:null==ht||null===(y=ht.average_score)||void 0===y?void 0:y.student_works_average_score}),H(null==ht||null===(_=ht.average_score)||void 0===_?void 0:_.student_works_average_score_compare,!0)]}),(0,P.jsxs)("div",{className:m.score_compare,children:["对比时间作业平均得分为",null==ht||null===(b=ht.average_score)||void 0===b?void 0:b.student_works_average_score_last_month]})]})]})]}),(0,P.jsx)("div",{className:m.left_bottom,children:(0,P.jsxs)("div",{className:m.completion_card,children:[(0,P.jsxs)("div",{className:m.card_header,children:[(0,P.jsx)("div",{className:m.card_title,children:"作业完成率"}),(0,P.jsxs)("div",{className:m.card_value,children:[null==ht||null===(x=ht.homework_finish_info)||void 0===x?void 0:x.homework_finish_rate,"%",H(null==ht||null===(w=ht.homework_finish_info)||void 0===w?void 0:w.homework_finish_rate_compare)]})]}),(0,P.jsxs)("div",{className:m.progress_list,children:[(0,P.jsx)(k.Z,{title:"完成率".concat(null==ht||null===(E=ht.homework_finish_info)||void 0===E?void 0:E.shixun_finish_rate,"%"),children:(0,P.jsxs)("div",{className:m.progress_item,children:[(0,P.jsxs)("div",{className:m.progress_label,children:[(0,P.jsx)("span",{children:"实训作业"}),(0,P.jsx)("span",{children:null==ht||null===(A=ht.homework_finish_info)||void 0===A?void 0:A.shixun_count})]}),(0,P.jsx)("div",{className:m.progress_bar,children:(0,P.jsx)("div",{className:m.progress_inner,style:{width:"".concat(null==ht||null===(C=ht.homework_finish_info)||void 0===C?void 0:C.shixun_finish_rate,"%"),background:"#00A8FF"}})})]})}),(0,P.jsx)(k.Z,{title:"完成率".concat(null==ht||null===(D=ht.homework_finish_info)||void 0===D?void 0:D.hack_finish_count,"%"),children:(0,P.jsxs)("div",{className:m.progress_item,children:[(0,P.jsxs)("div",{className:m.progress_label,children:[(0,P.jsx)("span",{children:"编程作业"}),(0,P.jsx)("span",{children:null==ht||null===(L=ht.homework_finish_info)||void 0===L?void 0:L.hack_count})]}),(0,P.jsx)("div",{className:m.progress_bar,children:(0,P.jsx)("div",{className:m.progress_inner,style:{width:"".concat(null==ht||null===(N=ht.homework_finish_info)||void 0===N?void 0:N.hack_finish_rate,"%"),background:"#00E4A4"}})})]})}),(0,P.jsx)(k.Z,{title:"完成率".concat(null==ht||null===(R=ht.homework_finish_info)||void 0===R?void 0:R.normal_finish_rate,"%"),children:(0,P.jsxs)("div",{className:m.progress_item,children:[(0,P.jsxs)("div",{className:m.progress_label,children:[(0,P.jsx)("span",{children:"图文作业"}),(0,P.jsx)("span",{children:null==ht||null===(M=ht.homework_finish_info)||void 0===M?void 0:M.normal_count})]}),(0,P.jsx)("div",{className:m.progress_bar,children:(0,P.jsx)("div",{className:m.progress_inner,style:{width:"".concat(null==ht||null===(O=ht.homework_finish_info)||void 0===O?void 0:O.normal_finish_rate,"%"),background:"#B200EE"}})})]})}),(0,P.jsx)(k.Z,{title:"完成率".concat(null==ht||null===(F=ht.homework_finish_info)||void 0===F?void 0:F.group_finish_rate,"%"),children:(0,P.jsxs)("div",{className:m.progress_item,children:[(0,P.jsxs)("div",{className:m.progress_label,children:[(0,P.jsx)("span",{children:"分组作业"}),(0,P.jsx)("span",{children:null==ht||null===(j=ht.homework_finish_info)||void 0===j?void 0:j.group_count})]}),(0,P.jsx)("div",{className:m.progress_bar,children:(0,P.jsx)("div",{className:m.progress_inner,style:{width:"".concat(null==ht||null===(B=ht.homework_finish_info)||void 0===B?void 0:B.group_finish_rate,"%"),background:"#00F0FF"}})})]})})]})]})})]}),(0,P.jsxs)("div",{className:m.juesai,children:[(0,P.jsxs)("div",{className:m.left_indicators,children:[(0,P.jsxs)("div",{className:m.indicator_item,style:{marginLeft:"1.5rem"},children:[(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(z=ht.course_rate)||void 0===z?void 0:z.message_reply_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"帖子回复率"})]}),(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginLeft:"0.4rem"},children:[(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(Z=ht.course_rate)||void 0===Z?void 0:Z.attendance_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"平均到课率"})]}),(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginLeft:"-0.4rem"},children:[(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(Y=ht.course_rate)||void 0===Y?void 0:Y.files_download_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"教学资源下载率"})]}),(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginLeft:"0.4rem"},children:[(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(G=ht.course_rate)||void 0===G?void 0:G.videos_finish_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"视频完成度"})]}),(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginLeft:"1.4rem"},children:[(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(W=ht.course_rate)||void 0===W?void 0:W.knowledge_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"知识点掌握率"})]}),(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})})]})]}),(0,P.jsxs)("div",{className:m.center_circle,children:[5==(null==gt||null===(V=gt.detail)||void 0===V?void 0:V.length)&&(0,P.jsxs)("div",{className:m.outer_ring,children:[(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(-54deg)"},type:"dashboard",percent:null==gt||null===(Q=gt.detail[0])||void 0===Q?void 0:Q.rate,strokeColor:"#FFCA00",strokeWidth:2,gapDegree:308,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"30%",right:"-4%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FFCA00"},children:[null==gt||null===(J=gt.detail[0])||void 0===J?void 0:J.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===($=gt.detail[0])||void 0===$?void 0:$.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(18deg)"},type:"dashboard",percent:null==gt||null===(ee=gt.detail[1])||void 0===ee?void 0:ee.rate,strokeColor:"#DD00FF",strokeWidth:2,gapDegree:308,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{bottom:"4%",left:"73%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#DD00FF"},children:[null==gt||null===(ne=gt.detail[1])||void 0===ne?void 0:ne.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(oe=gt.detail[1])||void 0===oe?void 0:oe.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(90deg)"},type:"dashboard",percent:null==gt||null===(ue=gt.detail[2])||void 0===ue?void 0:ue.rate,strokeColor:"#0089FD",strokeWidth:2,gapDegree:308,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{bottom:"4%",left:"11%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#0089FD"},children:[null==gt||null===(ce=gt.detail[2])||void 0===ce?void 0:ce.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(fe=gt.detail[2])||void 0===fe?void 0:fe.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(162deg)"},type:"dashboard",percent:null==gt||null===(pe=gt.detail[3])||void 0===pe?void 0:pe.rate,strokeColor:"#FF005C",strokeWidth:2,gapDegree:308,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"30%",left:"-4%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FF005C"},children:[null==gt||null===(me=gt.detail[3])||void 0===me?void 0:me.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(ge=gt.detail[3])||void 0===ge?void 0:ge.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(234deg)"},type:"dashboard",percent:null==gt||null===(ve=gt.detail[4])||void 0===ve?void 0:ve.rate,strokeColor:"#FF005C",strokeWidth:2,gapDegree:308,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"-3%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FF005C"},children:[null==gt||null===(ye=gt.detail[4])||void 0===ye?void 0:ye.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(_e=gt.detail[4])||void 0===_e?void 0:_e.name})]})]})]}),4==(null==gt||null===(be=gt.detail)||void 0===be?void 0:be.length)&&(0,P.jsxs)("div",{className:m.outer_ring,children:[(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(-45deg)"},type:"dashboard",percent:null==gt||null===(xe=gt.detail[0])||void 0===xe?void 0:xe.rate,strokeColor:"#FFCA00",strokeWidth:2,gapDegree:290,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"44%",right:"-6%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FFCA00"},children:[null==gt||null===(we=gt.detail[0])||void 0===we?void 0:we.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Ee=gt.detail[0])||void 0===Ee?void 0:Ee.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(45deg)"},type:"dashboard",percent:null==gt||null===(Ae=gt.detail[1])||void 0===Ae?void 0:Ae.rate,strokeColor:"#DD00FF",strokeWidth:2,gapDegree:290,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{bottom:"-3%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#DD00FF"},children:[null==gt||null===(ke=gt.detail[1])||void 0===ke?void 0:ke.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Ce=gt.detail[1])||void 0===Ce?void 0:Ce.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(45deg)"},type:"dashboard",percent:null==gt||null===(Te=gt.detail[2])||void 0===Te?void 0:Te.rate,strokeColor:"#0089FD",strokeWidth:2,gapDegree:290,gapPosition:"top",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"44%",left:"-6%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#0089FD"},children:[null==gt||null===(De=gt.detail[2])||void 0===De?void 0:De.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Se=gt.detail[2])||void 0===Se?void 0:Se.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(45deg)"},type:"dashboard",percent:null==gt||null===(Pe=gt.detail[3])||void 0===Pe?void 0:Pe.rate,strokeColor:"#FF005C",strokeWidth:2,gapDegree:290,gapPosition:"right",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"-3%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FF005C"},children:[null==gt||null===(Le=gt.detail[3])||void 0===Le?void 0:Le.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Ie=gt.detail[3])||void 0===Ie?void 0:Ie.name})]})]})]}),3==(null==gt||null===(Ne=gt.detail)||void 0===Ne?void 0:Ne.length)&&(0,P.jsxs)("div",{className:m.outer_ring,children:[(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(-30deg)"},type:"dashboard",percent:null==gt||null===(Re=gt.detail[0])||void 0===Re?void 0:Re.rate,strokeColor:"#FFCA00",strokeWidth:2,gapDegree:260,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{bottom:"20%",right:"-2%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FFCA00"},children:[null==gt||null===(Me=gt.detail[0])||void 0===Me?void 0:Me.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Oe=gt.detail[0])||void 0===Oe?void 0:Oe.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(90deg)"},type:"dashboard",percent:null==gt||null===(Fe=gt.detail[1])||void 0===Fe?void 0:Fe.rate,strokeColor:"#DD00FF",strokeWidth:2,gapDegree:260,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{bottom:"20%",left:"-2%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#DD00FF"},children:[null==gt||null===(je=gt.detail[1])||void 0===je?void 0:je.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Be=gt.detail[1])||void 0===Be?void 0:Be.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(210deg)"},type:"dashboard",percent:null==gt||null===(ze=gt.detail[2])||void 0===ze?void 0:ze.rate,strokeColor:"#0089FD",strokeWidth:2,gapDegree:260,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"-4%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#0089FD"},children:[null==gt||null===(He=gt.detail[2])||void 0===He?void 0:He.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Ze=gt.detail[2])||void 0===Ze?void 0:Ze.name})]})]})]}),2==(null==gt||null===(Ue=gt.detail)||void 0===Ue?void 0:Ue.length)&&(0,P.jsxs)("div",{className:m.outer_ring,children:[(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(0deg)"},type:"dashboard",percent:null==gt||null===(Ye=gt.detail[0])||void 0===Ye?void 0:Ye.rate,strokeColor:"#FFCA00",strokeWidth:2,gapDegree:200,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{bottom:"-5%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FFCA00"},children:[null==gt||null===(Xe=gt.detail[0])||void 0===Xe?void 0:Xe.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Ge=gt.detail[0])||void 0===Ge?void 0:Ge.name})]})]}),(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(180deg)"},type:"dashboard",percent:null==gt||null===(We=gt.detail[1])||void 0===We?void 0:We.rate,strokeColor:"#DD00FF",strokeWidth:2,gapDegree:200,gapPosition:"left",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"-3%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#DD00FF"},children:[null==gt||null===(Ke=gt.detail[1])||void 0===Ke?void 0:Ke.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===(Ve=gt.detail[1])||void 0===Ve?void 0:Ve.name})]})]})]}),1==(null==gt||null===(Qe=gt.detail)||void 0===Qe?void 0:Qe.length)&&(0,P.jsx)("div",{className:m.outer_ring,children:(0,P.jsxs)("div",{className:m.progress_item,style:{},children:[(0,P.jsx)(se.Z,{style:{transform:"rotate(0deg)"},type:"dashboard",percent:null==gt||null===(qe=gt.detail[0])||void 0===qe?void 0:qe.rate,strokeColor:"#FFCA00",strokeWidth:2,gapDegree:20,gapPosition:"top",trailColor:"rgba(255, 255, 255, 0.2)",size:600,format:function(){return""}}),(0,P.jsxs)("div",{className:m.progress_label,style:{top:"-5%",left:"42%"},children:[(0,P.jsxs)("span",{className:m.value,style:{color:"#FFCA00"},children:[null==gt||null===(Je=gt.detail[0])||void 0===Je?void 0:Je.rate,"%"]}),(0,P.jsx)("span",{className:m.text,children:null==gt||null===($e=gt.detail[0])||void 0===$e?void 0:$e.name})]})]})}),(0,P.jsx)(se.Z,{type:"circle",percent:75,showInfo:!1,strokeColor:"#03FEF8",trailColor:"rgba(255, 255, 255, 0.3)",style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},size:250}),(0,P.jsxs)("div",{className:m.inner_circle,children:[1===Kt&&(0,P.jsx)("div",{style:{color:"#fff"},children:"未设置课堂达成度"}),2===Kt&&(0,P.jsxs)("div",{className:m.circle_value,children:[null==gt?void 0:gt.total,"%"]}),(0,P.jsx)("div",{className:m.circle_label,children:"课堂目标达成度"}),(0,P.jsxs)("div",{className:m.circle_sublabel,onClick:function(){return(0,S.xg)("/classrooms/".concat(ot.coursesId,"/statistics/").concat(ut.get("category_id"),"?tabs=3"))},children:[(0,P.jsx)("i",{className:"iconfont icon-bianji15 font12"}),"编辑课程达成度"]})]})]}),(0,P.jsxs)("div",{className:m.right_indicators,children:[(0,P.jsxs)("div",{className:m.indicator_item,style:{marginRight:"1.5rem"},children:[(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})}),(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(et=ht.homework_finish_info)||void 0===et?void 0:et.shixun_finish_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"实训作业完成率"})]})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginRight:"0.4rem"},children:[(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})}),(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(tt=ht.homework_finish_info)||void 0===tt?void 0:tt.hack_finish_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"编程作业完成率"})]})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginRight:"-0.4rem"},children:[(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})}),(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(nt=ht.homework_finish_info)||void 0===nt?void 0:nt.normal_finish_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"图文作业完成率"})]})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginRight:"0.4rem"},children:[(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})}),(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(rt=ht.homework_finish_info)||void 0===rt?void 0:rt.group_finish_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"分组作业完成率"})]})]}),(0,P.jsxs)("div",{className:m.indicator_item,style:{marginRight:"1.4rem"},children:[(0,P.jsx)("span",{className:m.dot,children:(0,P.jsx)("span",{className:m.dot_inner})}),(0,P.jsxs)("div",{className:m.indicator_content,children:[(0,P.jsxs)("div",{className:m.value,children:[null==ht||null===(it=ht.course_rate)||void 0===it?void 0:it.exercise_pass_rate,"%"]}),(0,P.jsx)("div",{className:m.label,children:"在线考试得分率超过60%"})]})]})]})]})]}),(0,P.jsxs)("div",{className:m.tab_container,children:[(0,P.jsx)("div",{className:m.tab_list,style:{background:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADeYAAABkCAYAAABZhgFvAAAAAXNSR0IArs4c6QAAIABJREFUeF7svV+MJEl+3/eL+l9d3dPdM9vbO3Ozd3vLvTuy9wQ/rADi+A9DU7RFwrSe5gA92E+29GQ9CBB0FM/YXpsyaEkQ/OIH2jD0YsHAzYNBELAgSIBHpihahhcyoJsheTfcnbubm9m+mpmenurq+l/h+cYvfpmRUVmVlTN15C75CwwmIjMjIiOzsrIyI+LTH/PgycX16cTUJ3U7qc3m09nczjuW7Dlp0DOgZ0DPgJ4BPQN6BvQM6BnQM6BnQM+AngE9A3oG9AzoGdAzoGdAz4CeAT0Degb0DOgZ0DOgZ0DPgJ4BPQN6B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07PW8mwyt6EWOv41ilUyN+u2xwdblz/eTtHMi0ZCdtUkgxh1P2/+8l/XyFq9bXvPuz49/k5u5om+/nr96/tfP//081+///T7X+9/9P4vf/+97f3ied+vnnd92x7PtvnPu73nXd+2x7Nt/vNu73nXt+3xbJv/vNt73vVtezzb5j/v9p53fdsez7b5z7u9513ftsezbf7zbu9517ft8Wyb/7zbe971bXs82+Y/7/aed33bHs+2+c+7vedd37bHs23+827vede37fFsm/+823ve9W17PNvmP+/2nnd92x7PtvnPu73nXd+2x7Nt/vNu73nXt+3xbJv/vNt73vVtezzb5j/v9p53fdsez7b5z7u9513ftsezbf7zbu9517ft8Wyb/7zbe971bXs82+Y/7/aed33bHs+2+c+7vedd37bHs23+827vede37fFsm/+823ve9W17PNvmP+/2nnd92x7PtvnPu73nXd+2x7Nt/vNu73nXt+3xbJv/vNt73vVtezzb5j/v9p53fdsez7b5z7u9513ftsezbf7zbu9517ft8Wyb/7zbe9714XjaycL0Bp3GxQvUutw37cHl5smv/pXuHz7vROKbh7Y1m77/LSsyjU3qapvG6Hd+8eJXNslblufm4W+3Vst/+zOADN328FezvAjPgORpzo3B/N5uh+xS0ihQAeeV7ExeB2xCOsuynenOlW91LQA0SXNd29fDbWFzHlfhAb0wxnph/krS5XBebM6rf4WqAb3Ylhc2Jqu30pgXH5MrEhj9PIAoIN7KW+5iqK7Mmsd757pCQE+gvNgbWAXqMaQngN7UAMoLbXkhMwd8Tng8lxamTii9ft9BeQLk1Z/5MEdozIPzZntbHtfGUJ6AeM6Wt+hbwHirRZZOs65pZGzLW87JYN2mxwVLXjI/c29jWPNQrgzOw/qcMc8b8rAetrzZgk154PmQBnC3bI/NbEEuXQXixe1EXhjyAOZJmvNUgHShLa/koMWcl4F4azR5ZeWdKU9C7LPbDM5DaQB6rhYx5rE6L7Xlhda8stdOjHliwKuy5TGgx4helofIGfOgN5o8NimU5xi80Ja3y4BeCZyHnKExbz45NevhPIB5CALqZUcFKG/eYXMewDsweKk1D9lCGs+De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x5APMkHcqsAem0La/moMWcV4J4GzR5dfXZlCch9dm1g/NQG4AetyLGvKDOK2x52ppX99mJMU8MeOtseQHQC4ieduixMY+IAOYVUB4zeNqWdy0AejVwHkpqY95s/NRthvMA5iEIqFceFaC8WT+Y8wDegcErrHkopmm8COrpLAHxEKN4CeGtT9cZ8wDnoT5DeUgDxkMQ5m4FzsPKSuaKLW+zOS8CegzlHRAdH9PZXrDlsTXv7NgB1gOoJ2cr4HfiyJN0FcQTCA8x6jWb8yKIByAPIdryQpoYzgOYh0Ux59VdkyEvteXdjHlhrZjzUktexZzHTF4w5QU+L7jzsCSg3vrtb17z6jn5Asq7VCOA9KgA9ESGV2vL+0o06qXUHk7ru+1/k+t3U4x55AooTyi8FselAT1AeQD1BM7T1RWPF7LFnIc4BpjzeFb0JQv/F5qKyYL9M3udAAAAAElFTkSuQmCC",")"),backgroundSize:"100% 100%"},children:["课堂达成度","作业完成情况","考试完成情况","自主学习情况","在线签到情况","知识点掌握情况"].map((function(e,t){return(0,P.jsx)("div",{className:"".concat(m.tab_item," ").concat(Yt===t?m.active:""),onClick:function(){return Xt(t)},style:Yt===t?{background:"url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdwAAABoCAYAAABbj0EiAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQmYHUW1/6mqXu46WzLZQVZRIqCggKAPUBFx1yfI5gIq7iiK+B5PeYMbCoKKPhX1KT5QFBQUFHAFVFQUFPEPCAZkTUgms96tt6r6c6q7k7nVN+m5k0kyE6q/5Dt9p6pOndrOr08tpwiYx9SAqQFTA6YGTA2YGtjqNUC2eg4mA1MDpgZMDZgaMDVgagAU4Lp7v//oQsH6wIKBym0RF5OeF0VeGIVhyLngHIQEAVLOCJwpAAgAQIpP+o50Vh5CpJINKT7p+ybkzZWnS355ZcjNL49BXniX8ubK0yW/PPFy88tjkBfepby58nTJL0+83PzyGOSFdylvrjxd8ssTLze/PAZ54V3KmytPl/zyxMvNL49BXniX8ubK0y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+X4yFWtF0iAH4mQP1JviN8SydSezplYtrn6pUt9lVuWLvnlyadclgsgpSo5yLJpyX5tceXQFNeZufLMowg7LOB++heyt1EPHhRcjgkBc2xqIvb8HrtIVzZv6i59E12n2/gxG8agH+8MYIy97pxX2r/bkn55+R+jUziQ/wGQhS3hY9KaGtixaoB4DOS7jz/Y6toiG/qRvzeX8mdcqLtEx2M90OmZ2fifu/XcqTwAlgV7Sgqv/sSrC9fNXdm3TLIdFnCxWoZ+5L+OE3nkVLdmmS1TmS177QscmfUHfQeztmU5z8uUfiZJ5683Z97HZOYIwZTyUEImnzhp+5ktmULesu5lUpsaMDWwuRr45I/l4gDC/wCAUqd4WzL+Fb/MbJ72hzmk/wjItUOvcs/ekXvMDg24O3LDmbKZGjA1YGrA1MD8qoH/D0h8/2F+4s2mAAAAAElFTkSuQmCC",")"),backgroundSize:"100% 100%"}:{},children:e},e)}))}),(0,P.jsxs)("div",{className:m.tab_content,children:[0===Yt&&(0,P.jsx)(I,{paramsObj:It}),1===Yt&&(0,P.jsx)(U,{paramsObj:It}),2===Yt&&(0,P.jsx)(X,{paramsObj:It}),3===Yt&&(0,P.jsx)(K,{paramsObj:It}),4===Yt&&(0,P.jsx)(q,{paramsObj:It}),5===Yt&&(0,P.jsx)(te,{paramsObj:It})]})]})]}),(0,P.jsx)(de,{paramsObj:It,getData:function(e){Nt(c()(c()({},It),{},{type:e}))}}),(0,P.jsxs)(ae.Z,{width:500,centered:!0,title:"范围选择",open:zt,okText:"确认",cancelText:"取消",onOk:function(){Nt(c()({},Ot)),Jt(),Ht(!1)},onCancel:function(){Ht(!1)},children:[(0,P.jsx)("div",{className:"mb20",children:"需要查看的时间范围"}),(0,P.jsx)(he,{style:{width:400},size:"large",value:[At[0]?le()(At[0]):null,At[1]?le()(At[1]):null],onChange:function(e,t){var n=h()(t,2),r=n[0],i=n[1];Ft(c()(c()({},Ot),{},{start_at:r,end_at:i})),kt(t)},format:"YYYY-MM-DD"}),(0,P.jsx)("div",{className:"mt20 mb20",children:"进行对比的时间范围"}),(0,P.jsx)(he,{style:{width:400},size:"large",value:[Dt[0]?le()(Dt[0]):null,Dt[1]?le()(Dt[1]):null],onChange:function(e,t){var n=h()(t,2),r=n[0],i=n[1];Ft(c()(c()({},Ot),{},{compare_start_at:r,compare_end_at:i})),St(t)},format:"YYYY-MM-DD"})]})]})}))},75359:function(e,t,n){"use strict";n.d(t,{AL:function(){return E},Iy:function(){return f},Qv:function(){return g},ez:function(){return w},jb:function(){return p}});var r=n(79800),i=n.n(r),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 m(e,t,n,r){if(t>=e.length||e[t].level<=n)return t;var i=e[t];r.push("<li><a href='#"+l+i.anchor+"'>"+i.text+"</a>");var s=[];return t=m(e,++t,i.level,s),s.length>0&&(r.push("<ul>"),s.forEach((function(e){r.push(e)})),r.push("</ul>")),r.push("</li>"),t=m(e,t,n,r)}function g(){return m(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],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:i()(t,1)[0].length>=r.length?e.slice(r.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=r;r=a,x[a]={type:"block",expression:o}}return{type:"code",raw:n,lang:s,text:r}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,_=0,b=function(){return"__special_katext_id_".concat(_++,"__")},x={};function w(){return x}function E(){_=0,x={}}function A(e){return e=e.replace(y,(function(e,t){var n=b();return x[n]={type:"inline",expression:t},n}))}var k=d.listitem;d.listitem=function(e){return k(A(e))};var C=d.paragraph;d.paragraph=function(e){return C(A(e))};var T=d.tablecell;d.tablecell=function(e,t){return T(A(e),t)},d.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];return r?["latex","katex","math"].indexOf(r)>=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 r=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return u.push({anchor:r,level:t,text:e}),"<h"+t+' id="'+l+r+'">'+e+"</h"+t+">"},a().setOptions({silent:!0,gfm:!0,pedantic:!1}),a().use({tokenizer:v,renderer:d}),t.ZP=a()},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+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyL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MTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},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"],r=[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"],i=[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",m="lit",g="pun",v="pln",y="atv";function _(e,t,n,r,i){if(n){var s={sourceNode:e,pre:1,langExtension:null,numberLines:null,sourceCode:n,spans:null,basePos:t,decorations:null};r(s),i.push.apply(i,s.decorations)}}var b=/\S/;function x(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var r=n.nodeType;t=1===r?t?e:n:3===r&&b.test(n.nodeValue)?e:t}return t===e?void 0:t}function w(e,t){var n,r={};!function(){for(var i=e.concat(t),s=[],a={},o=0,l=i.length;o<l;++o){var u=i[o],c=u[3];if(c)for(var d=c.length;--d>=0;)r[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,r=!1,i=0,s=e.length;i<s;++i)if((h=e[i]).ignoreCase)r=!0;else if(/[a-z]/i.test(h.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){n=!0,r=!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=[],r="^"===t[0],i=["["];r&&i.push("^");for(var s=r?1:0,a=t.length;s<a;++s){var u=t[s];if(/\\[bdsw]/i.test(u))i.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];i.push(l(p[0])),p[1]>p[0]&&(p[1]+1>p[0]&&i.push("-"),i.push(l(p[1])))}return i.push("]"),i.join("")}function c(e){for(var r=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")),i=r.length,s=[],a=0,o=0;a<i;++a)"("===(d=r[a])?++o:"\\"===d.charAt(0)&&(c=+d.substring(1))&&(c<=o?s[c]=-1:r[a]=l(c));for(a=1;a<s.length;++a)-1===s[a]&&(s[a]=++t);for(a=0,o=0;a<i;++a)if("("===(d=r[a]))s[++o]||(r[a]="(?:");else if("\\"===d.charAt(0)){var c;(c=+d.substring(1))&&c<=o&&(r[a]="\\"+s[c])}for(a=0;a<i;++a)"^"===r[a]&&"^"!==r[a+1]&&(r[a]="");if(e.ignoreCase&&n)for(a=0;a<i;++a){var d,h=(d=r[a]).charAt(0);d.length>=2&&"["===h?r[a]=u(d):"\\"!==h&&(r[a]=d.replace(/[a-zA-Z]/g,(function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"})))}return r.join("")}var d=[];for(i=0,s=e.length;i<s;++i){var h;if((h=e[i]).global||h.multiline)throw new Error(""+h);d.push("(?:"+c(h)+")")}return new RegExp(d.join("|"),r?"gi":"g")}(s)}();var i=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 m,g=d[f],y=h[g],b=void 0;if("string"==typeof y)m=!1;else{var x=r[g.charAt(0)];if(x)b=g.match(x[1]),y=x[0];else{for(var w=0;w<i;++w)if(x=t[w],b=g.match(x[1])){y=x[0];break}b||(y=v)}!(m=y.length>=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(m=!1,y="src"),m||(h[g]=y)}var E=c;if(c+=g.length,m){var A=b[1],k=g.indexOf(A),C=k+A.length;b[2]&&(k=(C=g.length-b[2].length)-A.length);var T=y.substring(5);_(l,o+E,g.substring(0,k),s,u),_(l,o+E+k,A,D(T,A),u),_(l,o+E+C,g.substring(C),s,u)}else u.push(o+E,y)}e.decorations=u};return s}function E(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 r=e.hashComments;r&&(e.cStyleComments?(r>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 i=e.regexLiterals;if(i){var s=i>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([m,/^@[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],[m,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[g,new RegExp(c),null]),w(t,n)}var A=E({keywords:[r,s,i,a,o,l,u,c],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function k(e,t,n){for(var r=/(?:^|\s)nocode(?:\s|$)/,i=/\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||r.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,o=a.match(i);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 r=n?t.cloneNode(!1):t,i=t.parentNode;if(i){var s=e(i,1),a=t.nextSibling;s.appendChild(r);for(var o=a;o;o=a)a=o.nextSibling,s.appendChild(o)}return r}(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 T(t,n){for(var r=n.length;--r>=0;){var i=n[r];C.hasOwnProperty(i)?e.console&&console.warn("cannot override language handler %s",i):C[i]=t}}function D(e,t){return e&&C.hasOwnProperty(e)||(e=/^\s*</.test(t)?"default-markup":"default-code"),C[e]}function S(t){var n,r,i,s,a,o,l,u=t.langExtension;try{var c=(n=t.sourceNode,r=t.pre,i=/(?:^|\s)nocode(?:\s|$)/,s=[],a=0,o=[],l=0,function e(t){var n=t.nodeType;if(1==n){if(i.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=r?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,D(u,d)(t),function(e){var t=/\bMSIE\s(\d+)/.exec(navigator.userAgent);t=t&&+t[1]<=8;var n,r,i=/\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,r=n=0;r<h;)d[r]!==d[r+2]?(d[n++]=d[r++],d[n++]=d[r++]):r+=2;for(h=n,r=n=0;r<h;){for(var p=d[r],m=d[r+1],g=r+2;g+2<=h&&d[g+1]===m;)g+=2;d[n++]=p,d[n++]=m,r=g}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,x=d[f+2]||a,w=(g=Math.min(b,x),l[c+1]);if(1!==w.nodeType&&(_=s.substring(o,g))){t&&(_=_.replace(i,"\r")),w.nodeValue=_;var E=w.ownerDocument,A=E.createElement("span");A.className=d[f+1];var k=w.parentNode;k.replaceChild(A,w),A.appendChild(w),o<b&&(l[c+1]=w=E.createTextNode(s.substring(g,b)),k.insertBefore(w,A.nextSibling))}(o=g)>=b&&(c+=2),o>=x&&(f+=2)}}finally{v&&(v.style.display=y)}}(t)}catch(t){e.console&&console.log(t&&t.stack||t)}}function P(e,t,n){var r=n||!1,i=t||null,s=document.createElement("div");return s.innerHTML="<pre>"+e+"</pre>",s=s.firstChild,r&&k(s,r,!0),S({langExtension:i,numberLines:r,sourceNode:s,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),s.innerHTML}function L(t,n){var r=n||document.body,i=r.ownerDocument||document;function s(e){return r.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/,m=/\bprettyprinted\b/,g=/pre|xmp/i,v=/^code$/i,y=/^(?:pre|code|xmp)$/i,_={};!function n(){for(var r=e.PR_SHOULD_USE_CONTINUATION?d.now()+250:1/0;h<o.length&&d.now()<r;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))&&!m.test(b)){for(var w=!1,E=s.parentNode;E;E=E.parentNode){var A=E.tagName;if(y.test(A)&&E.className&&p.test(E.className)){w=!0;break}}if(!w){s.className+=" prettyprinted";var C,T,D=a.lang;if(!D)!(D=b.match(f))&&(C=x(s))&&v.test(C.tagName)&&(D=C.className.match(f)),D&&(D=D[1]);if(g.test(s.tagName))T=1;else{var P=s.currentStyle,L=i.defaultView,I=P?P.whiteSpace:L&&L.getComputedStyle?L.getComputedStyle(s,null).getPropertyValue("white-space"):0;T=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&&k(s,N,T),S({langExtension:D,sourceNode:s,numberLines:N,pre:T,sourceCode:null,basePos:null,spans:null,decorations:null})}}}h<o.length?e.setTimeout(n,250):"function"==typeof t&&t()}()}T(A,["default-code"]),T(w([],[[v,/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],[f,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[g,/^(?:<[%?]|[%?]>)/],["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"]),T(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)))/],[g,/^[=<>\/]+/],["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"]),T(w([],[[y,/^[\s\S]+/]]),["uq.val"]),T(E({keywords:r,hashComments:!0,cStyleComments:!0,types:d}),["c","cc","cpp","cxx","cyc","m"]),T(E({keywords:"null,true,false"}),["json"]),T(E({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:d}),["cs"]),T(E({keywords:i,cStyleComments:!0}),["java"]),T(E({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),T(E({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),T(E({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),T(E({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),T(E({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),T(E({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"]),T(w([],[[h,/^[\s\S]+/]]),["regex"]);var I=e.PR={createSimpleLexer:w,registerLangHandler:T,sourceDecorator:E,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:f,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:m,PR_NOCODE:"nocode",PR_PLAIN:v,PR_PUNCTUATION:g,PR_SOURCE:"src",PR_STRING:h,PR_TAG:"tag",PR_TYPE:p,prettyPrintOne:P,prettyPrint:L},N=e.define;"function"==typeof N&&N.amd&&N("google-code-prettify",[],(function(){return I}))}()},25769:function(e,t,n){"use strict";var r=n(98040),i={"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=r(),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(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=i[t.format]||i.default;window.clipboardData.setData(s,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),o.selectNodeContents(u),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),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}},97774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(59301),a=d(s),o=d(n(12708)),l=d(n(53291)),u=n(47242),c=n(65429);function d(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getEchartsInstance=function(){return n.echartsLib.getInstanceByDom(n.echartsElement)||n.echartsLib.init(n.echartsElement,n.props.theme,n.props.opts)},n.dispose=function(){if(n.echartsElement){try{(0,u.clear)(n.echartsElement)}catch(e){console.warn(e)}n.echartsLib.dispose(n.echartsElement)}},n.rerender=function(){var e=n.props,t=e.onEvents,r=e.onChartReady,i=n.renderEchartDom();n.bindEvents(i,t||{}),"function"==typeof r&&n.props.onChartReady(i),n.echartsElement&&(0,u.bind)(n.echartsElement,(function(){try{i.resize()}catch(e){console.warn(e)}}))},n.bindEvents=function(e,t){var n=function(t,n){"string"==typeof t&&"function"==typeof n&&e.on(t,(function(t){n(t,e)}))};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r,t[r])},n.renderEchartDom=function(){var e=n.getEchartsInstance();return e.setOption(n.props.option,n.props.notMerge||!1,n.props.lazyUpdate||!1),n.props.showLoading?e.showLoading(n.props.loadingOption||null):e.hideLoading(),e},n.echartsLib=e.echarts,n.echartsElement=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(e){if("function"!=typeof this.props.shouldSetOption||this.props.shouldSetOption(e,this.props)){if(!(0,l.default)(e.theme,this.props.theme)||!(0,l.default)(e.opts,this.props.opts)||!(0,l.default)(e.onEvents,this.props.onEvents))return this.dispose(),void this.rerender();var t=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,l.default)((0,c.pick)(this.props,t),(0,c.pick)(e,t))){var n=this.renderEchartDom();if(!(0,l.default)(e.style,this.props.style)||!(0,l.default)(e.className,this.props.className))try{n.resize()}catch(e){console.warn(e)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var e=this,t=this.props,n=t.style,i=t.className,s=r({height:300},n);return a.default.createElement("div",{ref:function(t){e.echartsElement=t},style:s,className:"echarts-for-react "+i})}}]),t}(s.Component);t.default=h,h.propTypes={option:o.default.object.isRequired,echarts:o.default.object,notMerge:o.default.bool,lazyUpdate:o.default.bool,style:o.default.object,className:o.default.string,theme:o.default.oneOfType([o.default.string,o.default.object]),onChartReady:o.default.func,showLoading:o.default.bool,loadingOption:o.default.object,onEvents:o.default.object,opts:o.default.shape({devicePixelRatio:o.default.number,renderer:o.default.oneOf(["canvas","svg"]),width:o.default.oneOfType([o.default.number,o.default.oneOf([null,void 0,"auto"])]),height:o.default.oneOfType([o.default.number,o.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:o.default.func},h.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(e,t,n){"use strict";t.Z=void 0;var r=i(n(76411));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.echartsLib=r.default,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i(n(97774)).default);t.Z=s},65429:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.pick=function(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}},53291:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty;e.exports=function e(i,s){if(i===s)return!0;if(i&&s&&"object"==typeof i&&"object"==typeof s){var a,o,l,u=t(i),c=t(s);if(u&&c){if((o=i.length)!=s.length)return!1;for(a=o;0!=a--;)if(!e(i[a],s[a]))return!1;return!0}if(u!=c)return!1;var d=i instanceof Date,h=s instanceof Date;if(d!=h)return!1;if(d&&h)return i.getTime()==s.getTime();var f=i instanceof RegExp,p=s instanceof RegExp;if(f!=p)return!1;if(f&&p)return i.toString()==s.toString();var m=n(i);if((o=m.length)!==n(s).length)return!1;for(a=o;0!=a--;)if(!r.call(s,m[a]))return!1;for(a=o;0!=a--;)if(!e(i[l=m[a]],s[l]))return!1;return!0}return i!=i&&s!=s}},53184:function(e,t,n){"use strict";var r,i;r=[n(58553),n(87804),n(40998)],void 0===(i=function(e,t,n){return function(e,t,n){var r=function(t,n){return e.js_beautify(t,n)};return r.js=e.js_beautify,r.css=t.css_beautify,r.html=n.html_beautify,r.js_beautify=e.js_beautify,r.css_beautify=t.css_beautify,r.html_beautify=n.html_beautify,r}(e,t,n)}.apply(t,r))||(e.exports=i)},87804:function(e,t){var n;!function(){var r;!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 r(e,r){this.__indent_cache=new n(e,r),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)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.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},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.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)},r.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},r.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()},r.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(" "))},r.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()},r.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},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},,,,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,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(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],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},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],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.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 r[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 r=this._get_array(e,n);if(!this._is_valid_selection(r,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 r},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=r,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 r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},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 r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},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 r=n(16).Beautifier,i=n(17).Options;e.exports=function(e,t){return new r(e,t).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){var r=n(17).Options,i=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 r(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 i(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r,f,p=0,m=!1,g=!1,v=!1,y=!1,_=!1,b=this._ch,x=!1;r=""!==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),E=a.get_directives(w);E&&"start"===E.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(r),this.print_string(this._ch);var A=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);A.match(/[ :]$/)&&(A=this.eatString(": ").replace(/\s+$/,""),this.print_string(A),this._output.space_before_token=!0),0===p&&-1!==A.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(r),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{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(":")?(g=!0,this.indent()):k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==p||g||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),y=!1,v?(v=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&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),g&&(this.outdent(),g=!1),this.print_string(this._ch),m=!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])){x=!0;break}!m&&!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(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var T='"'===f||"'"===f;this.preserveSingleSpace(T||r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)x=!1,0===p?(g&&(this.outdent(),g=!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 D=!1;this._input.lookBack("with")&&(D=!0),this.preserveSingleSpace(r||D),this.print_string(this._ch),g&&"$"===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||g&&!_||0!==p||y?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(r),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 S='"'===f||"'"===f;this.preserveSingleSpace(S||r),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&x&&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 r=n(6).Options;function i(e){r.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 i=0;i<n.length;i++)"expand"!==n[i]?this.brace_style="collapse":this.brace_style=n[i]}i.prototype=new r,e.exports.Options=i}],t={};var n=function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}(15);r=n}();var i=r;void 0===(n=function(){return{css_beautify:i}}.apply(t,[]))||(e.exports=n)}()},40998:function(e,t,n){var r,i;!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 r(e,r){this.__indent_cache=new n(e,r),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)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.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},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.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)},r.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},r.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()},r.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(" "))},r.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()},r.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},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},function(e){e.exports.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",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,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(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],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},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],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.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 r[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 r=this._get_array(e,n);if(!this._is_valid_selection(r,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 r},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=r,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 r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},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 r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},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 r=n(8).InputScanner,i=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 r(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 i(o.START,""),n=null,r=[],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)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.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 i(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 r=n(12).Pattern;function i(e,t){r.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=""}i.prototype=new r,i.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+"]")},i.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},i.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],i=e.exec(t);i;)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=i},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 r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),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 r(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 r,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 i)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 r=n(19).Beautifier,i=n(20).Options;e.exports=function(e,t,n,i){return new r(e,t,n,i).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){var r=n(20).Options,i=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 i(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,r=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?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):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,i){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null;var s=new r(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],r={text:"",type:""},i=new m(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?i=h=this._handle_tag_open(c,p,i,r,d):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!i.tag_complete?h=this._handle_inside_tag(c,p,i,r):p.type===a.TAG_CLOSE?h=this._handle_tag_close(c,p,i):p.type===a.TEXT?h=this._handle_text(c,p,i):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),r=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 r={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(),r},p.prototype._handle_inside_tag=function(e,t,n,r){var i=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),i=i||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(r.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),i=!0)),e.print_token(t),i=i||e.previous_token_wrapped(),n.has_wrapped_attrs=i),s},p.prototype._handle_text=function(e,t,n){var r={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)),r},p.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var i,s=t.text,a=1,o="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===n.custom_beautifier_name&&(i=function(e,t){return new p(e,t,r._js_beautify,r._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(i){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=i(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,r,i){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,r),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=i.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 m=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 r;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(r=n.text.match(/^<([^\s>]*)/),this.tag_check=r?r[1]:""):(r=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=r?r[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 i=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(i=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(i)))}else this.tag_complete=!0};p.prototype._get_tag_open_token=function(e){var t=new m(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,r,i){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&&i.type===a.TAG_CLOSE&&r.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&&!(r.is_inline_element||r.is_unformatted)&&!(i.type===a.TAG_CLOSE&&n.start_tag_token===r)&&"TK_CONTENT"!==i.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"===i.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 g=["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!==g.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 r=n(6).Options;function i(e){r.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"])}i.prototype=new r,e.exports.Options=i},function(e,t,n){var r=n(9).Tokenizer,i=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:i.START,RAW:i.RAW,EOF:i.EOF},u=new s(/<\!--/,/-->/),c=function(e,t){r.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),i=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:i.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),handlebars_open:i.until(/[\n\r\t }]/),handlebars_raw_close:i.until(/}}/),comment:i.starting_with(/<!--/).until_after(/-->/),cdata:i.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:i.starting_with(/<!\[/).until_after(/]>/),processing:i.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=i.matching(s).until_after(s)}};(c.prototype=new r)._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 r=this._input.peek();return null===r?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(r,t))||this._read_attribute(r,e,t))||this._read_close(r,t))||this._read_script_and_style(r,e))||this._read_control_flows(r,t))||this._read_raw_content(r,e,t))||this._read_content_word(r,t))||this._read_comment_or_cdata(r))||this._read_processing(r))||this._read_open(r,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(r=u.get_directives(n))&&"start"===r.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=r));return t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var r=this._input.peek(1);"!"!==r&&"?"!==r||(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,r=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(),r=this._create_token(l.TAG_OPEN,n)),r},c.prototype._read_open_handlebars=function(e,t){var n=null,r=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(),r=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(l.TAG_OPEN,n))),r},c.prototype._read_control_flows=function(e,t){var n="",r=null;if(!this._options.templating.includes("angular"))return r;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return r;for(var i=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||i!==s;){var a=this._input.next();if(null===a)break;"("===a?i++:")"===a&&s++,n+=a}r=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),r=this._create_token(l.CONTROL_FLOW_CLOSE,n));return r},c.prototype._read_close=function(e,t){var n=null,r=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()),r=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},c.prototype._read_attribute=function(e,t,n){var r=null,i="";if(n&&"<"===n.text[0])if("="===e)r=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(),r=this._create_token(l.VALUE,s)}else(i=this.__patterns.attribute.read())&&(r=t.type===l.EQUALS?this._create_token(l.VALUE,i):this._create_token(l.ATTRIBUTE,i));return r},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 r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(i)&&(r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(l.TEXT,r):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 r=this._read_comment_or_cdata(e);if(r)return r.type=l.TEXT,r;var i=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig"));if(i)return this._create_token(l.TEXT,i)}}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(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}(18);s=n}();var a=s;r=[n,n(58553),n(87804)],i=function(e){var t=n(58553),r=n(87804);return{html_beautify:function(e,n){return a(e,n,t.js_beautify,r.css_beautify)}}}.apply(t,r),void 0===i||(e.exports=i)}()},58553:function(e,t){var n;!function(){var r;!function(){"use strict";var e=[function(e,t,n){var r=n(1).Beautifier,i=n(5).Options;e.exports=function(e,t){return new r(e,t).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){var r=n(2).Output,i=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"],m=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"]),g=[m.before_newline,m.preserve_newline],v="BlockStatement",y="Statement",_="ObjectLiteral",b="ArrayLiteral",x="ForInitializer",w="Conditional",E="Expression";function A(e,t){t.multiline_frame||t.mode===x||t.mode===w||e.remove_indent(t.start_line_index)}function k(e){return e===b}function C(e){return d(e,[E,x,w])}function T(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)}T.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 i(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}},T.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(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},T.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)},T.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))},T.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&k(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(r)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 D=["async","break","continue","return","throw","yield"];T.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 r=d(this._flags.last_token.text,u)&&d(this._options.operator_position,g)||d(e.text,u);n=n&&r}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(f(this._flags.last_token,D))return;this._output.set_wrap_point()}}},T.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)},T.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||k(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))},T.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)}},T.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},T.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))},T.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)},T.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&&A(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},T.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"]))},T.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,D)&&!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===x||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)},T.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=E;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,k(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=x):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 r=this._tokens.peek(-4);f(n,["async","function"])||"*"===n.text&&f(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===_?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==r.text&&","!==r.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()},T.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&&k(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(),A(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===w&&(this._previous_flags.mode=E,this._flags.do_block=!1,this._flags.do_while=!1)},T.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 r=!t.comments_before&&"}"===t.text,i=r&&"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&&(i||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):(!k(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(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},T.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||(k(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)},T.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,D)||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)&&!k(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&&k(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))},T.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)},T.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)},T.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},T.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)},T.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 r=!t;this.handle_whitespace_and_comments(e,r)}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,g)&&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 i=!0,s=!0,a=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!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 m.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 m.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 m.preserve_newline:return _||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||_),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!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),i=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),i=!1,s=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var x=f(this._flags.last_token,p)&&e.newlines;x&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(x,!0)}";"===this._flags.last_token.text&&C(this._flags.mode)&&(i=!0),this._flags.last_token.type===c.RESERVED?i=!0:this._flags.last_token.type===c.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===c.OPERATOR&&(i=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||i,this.print_token(e),this._output.space_before_token=s}else this.print_token(e);else this.print_token(e)},T.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))},T.prototype.print_block_commment=function(e,t){var n,r=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),i=!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(r[0]),this.print_newline(!1,t),r.length>1){for(i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].trim().charAt(0)!==t)return!1;return!0}(r=r.slice(1),"*"),a=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if((n=e[r])&&0!==n.indexOf(t))return!1;return!0}(r,o),i&&(this._flags.alignment=1),n=0;n<r.length;n++)i?(this.print_token_line_indentation(e),this._output.add_token(r[n].replace(/^\s+/g,""))):a&&r[n]?(this.print_token_line_indentation(e),this._output.add_token(r[n].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(r[n])),this.print_newline(!1,t);this._flags.alignment=0}},T.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)},T.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)},T.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},T.prototype.handle_eof=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e)},e.exports.Beautifier=T},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 r(e,r){this.__indent_cache=new n(e,r),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)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.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},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.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)},r.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},r.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()},r.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(" "))},r.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()},r.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},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var r=this.__lines.length-2;r>=0;){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},e.exports.Output=r},function(e){e.exports.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",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",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\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"+r+"])",o="(?:"+s+"|["+n+r+i+"])*";t.identifier=new RegExp(a+o,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+s+"|["+n+r+i+"])+");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 r=n(6).Options,i=["before-newline","after-newline","preserve-newline"];function s(e){r.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",i),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}s.prototype=new r,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,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(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],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},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],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.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 r[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 r=this._get_array(e,n);if(!this._is_valid_selection(r,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 r},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=r,e.exports.mergeOpts=n},function(e,t,n){var r=n(8).InputScanner,i=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]/,m=/[^\d\.]/,g=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".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(","),x=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),w=new RegExp("^(?:"+x.join("|")+")$"),E=function(e,t){i.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),r=new u(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.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:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};(E.prototype=new i)._is_comment=function(e){return e.type===d.COMMENT||e.type===d.BLOCK_COMMENT||e.type===d.UNKNOWN},E.prototype._is_opening=function(e){return e.type===d.START_BLOCK||e.type===d.START_EXPR},E.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)},E.prototype._reset=function(){y=!1},E.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(d.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(r))||this._read_string(r))||this._read_pair(r,this._input.peek(1)))||this._read_word(e))||this._read_singles(r))||this._read_comment(r))||this._read_regexp(r,e))||this._read_xml(r,e))||this._read_punctuation())||this._create_token(d.UNKNOWN,this._input.next())},E.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},E.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&&m.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},E.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},E.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)},E.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},E.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=h.get_directives(n);r&&"start"===r.ignore&&(n+=h.readIgnored(this._input)),n=n.replace(o.allLineBreaks,"\n"),(t=this._create_token(d.BLOCK_COMMENT,n)).directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(d.COMMENT,n))}return t},E.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,i=new r(e),s=null;for(;i.hasNext();)if((s=i.match(/([\s]|[^\\]|\\\\)+/g))&&(t+=s[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())s=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){t+="\\",i.hasNext()&&(t+=i.next());continue}(s=i.match(/u([0-9A-Fa-f]{4})/g))||(s=i.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},E.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])},E.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),r=!1,i=!1;this._input.hasNext()&&(r||i||this._input.peek()!==e)&&!this._input.testChar(o.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!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},E.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){for(var i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===i.indexOf("{"),a=0;r;){var l=!!r[1],u=r[2];if(!(!!r[r.length-1]||"![CDATA["===u.slice(0,8))&&(u===i||s&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(o.allLineBreaks,"\n"),this._create_token(d.STRING,n)}}return null},E.prototype._read_string_recursive=function(e,t,n){var r,i;"'"===e?i=this.__patterns.single_quote:'"'===e?i=this.__patterns.double_quote:"`"===e?i=this.__patterns.template_text:"}"===e&&(i=this.__patterns.template_expression);for(var s=i.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"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\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+=i.read()}return s},e.exports.Tokenizer=E,e.exports.TOKEN=d,e.exports.positionable_operators=g.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 r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},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 r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},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 r=n(8).InputScanner,i=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 r(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 i(o.START,""),n=null,r=[],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)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.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 i(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 r=n(12).Pattern;function i(e,t){r.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=""}i.prototype=new r,i.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+"]")},i.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},i.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],i=e.exec(t);i;)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=i},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 r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),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 r(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 r,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 i)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(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}(0);r=n}();var i=r;void 0===(n=function(){return{js_beautify:i}}.apply(t,[]))||(e.exports=n)}()},32834:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function n(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}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={"&":"&","<":"<",">":">",'"':""","'":"'"},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 m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(m,(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,r){return r=(r=r.source||r).replace(v,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var _=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(e,t,n){if(e){var r;try{r=decodeURIComponent(g(n)).replace(_,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.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={},E=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(e,t){w[" "+e]||(E.test(e)?w[" "+e]=e+"/":w[" "+e]=S(e,"/",!0));var n=-1===(e=w[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(A,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(k,"$1")+t:e+t}function T(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function D(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function S(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var s=e.charAt(r-i-1);if(s!==t||n){if(s===t||!n)break;i++}else i++}return e.substr(0,r-i)}function P(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&--r<0)return i;return-1}function L(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:g,edit:y,cleanUrl:x,resolveUrl:C,noopTest:{exec:function(){}},merge:T,splitCells:D,rtrim:S,findClosingBracket:P,checkSanitizeDeprecation:L,repeatString:I},R=s.exports.defaults,M=N.rtrim,O=N.splitCells,F=N.escape,j=N.findClosingBracket;function B(e,t,n){var r=t.href,i=t.title?F(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:s}:{type:"image",raw:n,href:r,title:i,text:F(s)}}function z(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}var H=function(){function e(e){this.options=e||R}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:M(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=z(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=M(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.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 r,i=n.align.length;for(r=0;r<i;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=O(n.cells[r],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,r,i,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:[]},m=t[0].match(this.rules.block.item),g=!1,v=m.length;i=this.rules.block.listItemStart.exec(m[0]);for(var y=0;y<v;y++){if(d=n=m[y],this.options.pedantic||(c=n.match(new RegExp("\\n\\s*\\n {0,"+(i[0].length-1)+"}\\S")))&&(a=n.length-c.index+m.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(m[y+1]),this.options.pedantic?s[1].length>i[1].length:s[1].length>=i[0].length||s[1].length>3){m.splice(y,2,m[y]+(!this.options.pedantic&&s[1].length<i[0].length&&!m[y].match(/\n$/)?"":"\n")+m[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=m.slice(y+1).join("\n").length,p.raw=p.raw.substring(0,p.raw.length-a),y=v-1),i=s}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+r+"}","gm"),"")),n=M(n,"\n"),y!==v-1&&(d+="\n"),o=g||/\n\n(?!\s*$)/.test(d),y!==v-1&&(g="\n\n"===d.slice(-2),o||(o=g)),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 r,i=n.align.length;for(r=0;r<i;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=O(n.cells[r].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 r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):F(r[0]):r[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 r=M(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=j(t[2],"()");if(i>-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),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)),B(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 r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return B(n,r,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[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\u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A9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\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 i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var s,a,o=r[0].length-1,l=o,u=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=c.exec(t));)if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=s.length,r[3]||r[4])l+=a;else if(!((r[5]||r[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+r.index+a+1),text:e.slice(1,o+r.index+a)}:{type:"strong",raw:e.slice(0,o+r.index+a+1),text:e.slice(2,o+r.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," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(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,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=F(this.options.mangle?t(i[1]):i[1])):n=F(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=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]);r=F(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,i=this.rules.inline.text.exec(e);if(i)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):F(i[0]):i[0]:F(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},e}(),Z=N.noopTest,U=N.edit,Y=N.merge,X={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:Z,table:Z,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?'|\([^()]*\))/};X.def=U(X.def).replace("label",X._label).replace("title",X._title).getRegex(),X.bullet=/(?:[*+-]|\d{1,9}[.)])/,X.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,X.item=U(X.item,"gm").replace(/bull/g,X.bullet).getRegex(),X.listItemStart=U(/^( *)(bull) */).replace("bull",X.bullet).getRegex(),X.list=U(X.list).replace(/bull/g,X.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+X.def.source+")").getRegex(),X._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",X._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,X.html=U(X.html,"i").replace("comment",X._comment).replace("tag",X._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),X.paragraph=U(X._paragraph).replace("hr",X.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",X._tag).getRegex(),X.blockquote=U(X.blockquote).replace("paragraph",X.paragraph).getRegex(),X.normal=Y({},X),X.gfm=Y({},X.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*|$)"}),X.gfm.nptable=U(X.gfm.nptable).replace("hr",X.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",X._tag).getRegex(),X.gfm.table=U(X.gfm.table).replace("hr",X.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",X._tag).getRegex(),X.pedantic=Y({},X.normal,{html:U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",X._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:Z,paragraph:U(X.normal._paragraph).replace("hr",X.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",X.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var G={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Z,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:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};G.punctuation=U(G.punctuation).replace(/punctuation/g,G._punctuation).getRegex(),G.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,G.escapedEmSt=/\\\*|\\_/g,G._comment=U(X._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),G.emStrong.lDelim=U(G.emStrong.lDelim).replace(/punct/g,G._punctuation).getRegex(),G.emStrong.rDelimAst=U(G.emStrong.rDelimAst,"g").replace(/punct/g,G._punctuation).getRegex(),G.emStrong.rDelimUnd=U(G.emStrong.rDelimUnd,"g").replace(/punct/g,G._punctuation).getRegex(),G._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,G._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,G._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])?)+(?![-_])/,G.autolink=U(G.autolink).replace("scheme",G._scheme).replace("email",G._email).getRegex(),G._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,G.tag=U(G.tag).replace("comment",G._comment).replace("attribute",G._attribute).getRegex(),G._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,G._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,G._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,G.link=U(G.link).replace("label",G._label).replace("href",G._href).replace("title",G._title).getRegex(),G.reflink=U(G.reflink).replace("label",G._label).getRegex(),G.reflinkSearch=U(G.reflinkSearch,"g").replace("reflink",G.reflink).replace("nolink",G.nolink).getRegex(),G.normal=Y({},G),G.pedantic=Y({},G.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:U(/^!?\[(label)\]\((.*?)\)/).replace("label",G._label).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G._label).getRegex()}),G.gfm=Y({},G.normal,{escape:U(G.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),G.gfm.url=U(G.gfm.url,"i").replace("email",G.gfm._extended_email).getRegex(),G.breaks=Y({},G.gfm,{br:U(G.br).replace("{2,}","*").getRegex(),text:U(G.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var W={block:X,inline:G},K=H,V=s.exports.defaults,Q=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,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var te=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||V,this.options.tokenizer=this.options.tokenizer||new K,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:Q.normal,inline:q.normal};this.options.pedantic?(t.block=Q.pedantic,t.inline=q.pedantic):this.options.gfm&&(t.block=Q.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 r,i,s,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+r.raw,a.text+="\n"+r.text):t.push(r);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),s=r.items.length,i=0;i<s;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);t.push(r)}else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.def(e)))e=e.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.paragraph(e)))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(a=t[t.length-1])&&"text"===a.type?(a.raw+="\n"+r.raw,a.text+="\n"+r.text):t.push(r);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,r,i,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:[]},i=a.header.length,n=0;n<i;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(i=a.cells.length,n=0;n<i;n++)for(s=a.cells[n],a.tokens.cells[n]=[],r=0;r<s.length;r++)a.tokens.cells[n][r]=[],this.inlineTokens(s[r],a.tokens.cells[n][r]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,n=0;n<i;n++)this.inline(a.items[n].tokens)}return e},n.inlineTokens=function(e,t,n,r){var i,s;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!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,i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e,n,r)){e=e.substring(i.raw.length),n=i.inLink,r=i.inRawBlock;var d=t[t.length-1];d&&"text"===i.type&&"text"===d.type?(d.raw+=i.raw,d.text+=i.text):t.push(i)}else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length);var h=t[t.length-1];"link"===i.type?(i.tokens=this.inlineTokens(i.text,[],!0,r),t.push(i)):h&&"text"===i.type&&"text"===h.type?(h.raw+=i.raw,h.text+=i.text):t.push(i)}else if(i=this.tokenizer.emStrong(e,u,l))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.autolink(e,ee))e=e.substring(i.raw.length),t.push(i);else if(n||!(i=this.tokenizer.url(e,ee))){if(i=this.tokenizer.inlineText(e,r,$))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),o=!0,(s=t[t.length-1])&&"text"===s.type?(s.raw+=i.raw,s.text+=i.text):t.push(i);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(i.raw.length),t.push(i);return t},t(e,null,[{key:"rules",get:function(){return{block:Q,inline:q}}}]),e}(),ne=s.exports.defaults,re=N.cleanUrl,ie=N.escape,se=function(){function e(e){this.options=e||ne}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+ie(r,!0)+'">'+(n?e:ie(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ie(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,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.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 r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\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=re(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+ie(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=re(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=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,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,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,r,i,s,a,o,l,u,c,d,h,f,p,m,g,v,y,_,b="",x=e.length;for(n=0;n<x;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,r=0;r<s;r++)l+=this.renderer.tablecell(this.parseInline(d.tokens.header[r]),{header:!0,align:d.align[r]});for(u+=this.renderer.tablerow(l),c="",s=d.cells.length,r=0;r<s;r++){for(l="",a=(o=d.tokens.cells[r]).length,i=0;i<a;i++)l+=this.renderer.tablecell(this.parseInline(o[i]),{header:!1,align:d.align[i]});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="",r=0;r<s;r++)v=(g=d.items[r]).checked,y=g.task,m="",g.task&&(_=this.renderer.checkbox(v),p?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=_+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=_+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:_}):m+=_),m+=this.parse(g.tokens,p),c+=this.renderer.listitem(m,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<x&&"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,r,i="",s=e.length;for(n=0;n<s;n++)switch((r=e[n]).type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:var a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return i},e}(),me=H,ge=se,ve=ae,ye=oe,_e=N.merge,be=N.checkSanitizeDeprecation,xe=N.escape,we=s.exports.getDefaults,Ee=s.exports.changeDefaults,Ae=s.exports.defaults;function ke(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({},ke.defaults,t||{}),be(t),n){var r,i=t.highlight;try{r=fe.lex(e,t)}catch(e){return n(e)}var s=function(e){var s;if(!e)try{t.walkTokens&&ke.walkTokens(r,t.walkTokens),s=pe.parse(r,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,s)};if(!i||i.length<3)return s();if(delete t.highlight,!r.length)return s();var a=0;return ke.walkTokens(r,(function(e){"code"===e.type&&(a++,setTimeout((function(){i(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&&ke.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>"+xe(e.message+"",!0)+"</pre>";throw e}}return ke.options=ke.setOptions=function(e){return _e(ke.defaults,e),Ee(ke.defaults),ke},ke.getDefaults=we,ke.defaults=Ae,ke.use=function(e){var t=_e({},e);if(e.renderer&&function(){var n=ke.defaults.renderer||new ge,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var o=e.renderer[t].apply(n,s);return!1===o&&(o=r.apply(n,s)),o}};for(var i in e.renderer)r(i);t.renderer=n}(),e.tokenizer&&function(){var n=ke.defaults.tokenizer||new me,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var o=e.tokenizer[t].apply(n,s);return!1===o&&(o=r.apply(n,s)),o}};for(var i in e.tokenizer)r(i);t.tokenizer=n}(),e.walkTokens){var n=ke.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}ke.setOptions(t)},ke.walkTokens=function(e,t){for(var n,r=i(e);!(n=r()).done;){var s=n.value;switch(t(s),s.type){case"table":for(var a,o=i(s.tokens.header);!(a=o()).done;){var l=a.value;ke.walkTokens(l,t)}for(var u,c=i(s.tokens.cells);!(u=c()).done;)for(var d,h=i(u.value);!(d=h()).done;){var f=d.value;ke.walkTokens(f,t)}break;case"list":ke.walkTokens(s.items,t);break;default:s.tokens&&ke.walkTokens(s.tokens,t)}}},ke.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({},ke.defaults,t||{}),be(t);try{var n=fe.lexInline(e,t);return t.walkTokens&&ke.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>"+xe(e.message+"",!0)+"</pre>";throw e}},ke.Parser=pe,ke.parser=pe.parse,ke.Renderer=ge,ke.TextRenderer=ve,ke.Lexer=fe,ke.lexer=fe.lex,ke.Tokenizer=me,ke.Slugger=ye,ke.parse=ke,ke}()},11690:function(e){const t=/[&<>"']/,n=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},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]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function g(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(m,"$1")+t:e+t}function v(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s!==t||n){if(s===t||!n)break;i++}else i++}return e.substr(0,r-i)}e.exports={escape:function(e,s){if(s){if(t.test(e))return e.replace(n,a)}else if(r.test(e))return e.replace(i,a);return e},unescape:l,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(u,"$1"),e=e.replace(t,r),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=g(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:g,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],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 r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:v,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;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 r=n(4348),i=n(69323),s=n(13268),a=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};class o extends i.JT{constructor(e,t="",n="",i=!0,s){super(),this._onDidChange=this._register(new r.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,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 i.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new r.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new r.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,r){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=e,this.label=t,this.class=r,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 r(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}n.d(t,{ok:function(){return r}})},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 r=n(4348);const i=new class{constructor(){this._icons=new Map,this._onDidRegister=new r.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=i;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,i.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 r=t.exec(e.id);if(!r)return n(l.error);let[,i,s]=r;const a=["codicon","codicon-"+i];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 i},ri:function(){return a}});const r=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 i(e){l(e)||r.onUnexpectedError(e)}function s(e){l(e)||r.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 r}});var r,i=n(79881),s=n(69323),a=n(34502),o=n(95830);!function(e){function t(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function n(e,t){return o(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)))}function r(e,t){return o(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)))}function i(e,t){return o(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)))}function a(e,t,r){let i=r;return n(e,(e=>(i=t(i,e),i)))}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,r=!1,i){let s,a,o,l=0;const c=new u({leakWarningThreshold:i,onFirstListenerAdd(){s=e((e=>{l++,a=t(a,e),r&&!o&&(c.fire(a),a=void 0),clearTimeout(o),o=setTimeout((()=>{const e=a;a=void 0,o=void 0,(!r||l>1)&&c.fire(e),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return c.event}function c(e,t=((e,t)=>e===t)){let n,r=!0;return i(e,(e=>{const i=r||!t(e,n);return r=!1,n=e,i}))}e.None=()=>s.JT.None,e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>(0,s.F8)(...e.map((e=>e((e=>t.call(n,e)),null,r))))},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 r=n.slice(),i=e((e=>{r?r.push(e):a.fire(e)}));const s=()=>{r&&r.forEach((e=>a.fire(e))),r=null},a=new u({onFirstListenerAdd(){i||(i=e((e=>a.fire(e))))},onFirstListenerDidAdd(){r&&(t?setTimeout(s):s())},onLastListenerRemove(){i&&i.dispose(),i=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(r(this.event,e))}filter(e){return new d(i(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,r){return new d(l(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new u({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(r||(r={}));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 r;this._listeners||(this._listeners=new a.S);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(r=this._leakageMon)||void 0===r?void 0:r.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,i.dL)(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,r,i;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(r=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===r||r.call(n),null===(i=this._leakageMon)||void 0===i||i.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,r)=>e((e=>{const r=this.buffers[this.buffers.length-1];r?r.push((()=>t.call(n,e))):t.call(n,e)}),void 0,r)}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=r.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 r(e){const t=this;let n,r=!1;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}n.d(t,{I:function(){return r}})},88226:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return r}}),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 r of e)yield t(r,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 r=n;for(const n of e)r=t(r,n);return r},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 r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator](){return i}}]},e.equals=function(e,t,n=((e,t)=>e===t)){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=r.next(),t=i.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(r||(r={}))},69323:function(e,t,n){"use strict";n.d(t,{B9:function(){return h},F8:function(){return f},JT:function(){return g},Jz:function(){return y},OF:function(){return p},SL:function(){return m},Wf:function(){return d},XK:function(){return v},dk:function(){return u}});var r=n(17845),i=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(i.$.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,r.I)((()=>{o(t),e()}))});return t}class m{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?m.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}}m.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new m,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)}}g.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 i}});class r{constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}r.Undefined=new r(void 0);class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.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 i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},23345:function(e,t,n){"use strict";n.d(t,{$L:function(){return k},ED:function(){return x},IJ:function(){return E},OS:function(){return S},WE:function(){return T},dz:function(){return w},gn:function(){return C},li:function(){return v},r:function(){return I},tY:function(){return A},xS:function(){return D}});var r,i=n(97671);const s="en";let a,o,l=!1,u=!1,c=!1,d=!1,h=!1,f=!1,p=!1,m=null,g=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!==i&&(y=i);const _="string"==typeof(null===(r=null==y?void 0:y.versions)||void 0===r?void 0:r.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,m=s;const e=y.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];a=t.locale,m=n||s,g=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,m=a;let b=0;u?b=1:l?b=3:c&&(b=2);const x=l,w=u,E=c,A=h,k=f,C=p,T=o,D=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,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),v.postMessage({vscodeSetImmediateId:r},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const e=Promise.resolve();return t=>e.then(t)}(),S=u||p?2:l?1:3;let P=!0,L=!1;function I(){if(!L){L=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);P=513===t[0]}return P}},95830:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var r=n(23345);const i=r.li.performance&&"function"==typeof r.li.performance.now;class s{constructor(e){this._highResolution=i&&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?r.li.performance.now():Date.now()}}},82983:function(e,t,n){"use strict";function r(e){return!e||"string"!=typeof e||0===e.trim().length}n.d(t,{$i:function(){return Z},C8:function(){return W},GF:function(){return f},HO:function(){return O},IO:function(){return p},K7:function(){return G},Kw:function(){return Q},LC:function(){return v},Mh:function(){return D},P1:function(){return S},PJ:function(){return q},Qe:function(){return U},R1:function(){return h},RP:function(){return z},S6:function(){return J},TT:function(){return x},Ut:function(){return j},V8:function(){return y},WU:function(){return s},YK:function(){return L},YU:function(){return a},ZG:function(){return P},ZH:function(){return N},ab:function(){return Y},c1:function(){return K},df:function(){return k},ec:function(){return o},fi:function(){return $},fy:function(){return l},j3:function(){return u},j_:function(){return E},m5:function(){return r},mK:function(){return A},mr:function(){return m},oH:function(){return te},oL:function(){return c},ok:function(){return T},ow:function(){return _},qq:function(){return C},qu:function(){return b},rL:function(){return I},uS:function(){return V},un:function(){return d},uq:function(){return g},vH:function(){return M},xe:function(){return X},zY:function(){return w}});const i=/{(\d+)}/g;function s(e,...t){return 0===t.length?e:e.replace(i,(function(e,n){const r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";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 r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function c(e,t){if(!e||!t)return e;const n=t.length,r=e.length;if(0===n||0===r)return e;let i=r,s=-1;for(;s=e.lastIndexOf(t,i-1),-1!==s&&s+n===i;){if(0===s)return"";i=s}return e.substring(0,i)}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 r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function p(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function m(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function g(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 r=t;r<n;r++){const n=e.charCodeAt(r);if(32!==n&&9!==n)return e.substring(t,r)}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 x(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let r=e.charCodeAt(n),s=t.charCodeAt(i);if(r<s)return-1;if(r>s)return 1}const a=r-n,o=s-i;return a<o?-1:a>o?1:0}function w(e,t){return E(e,t,0,e.length,0,t.length)}function E(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let a=e.charCodeAt(n),o=t.charCodeAt(i);if(a===o)continue;if(a>=128||o>=128)return x(e.toLowerCase(),t.toLowerCase(),n,r,i,s);A(a)&&(a-=32),A(o)&&(o-=32);const l=a-o;if(0!==l)return l}const a=r-n,o=s-i;return a<o?-1:a>o?1:0}function A(e){return e>=97&&e<=122}function k(e){return e>=65&&e<=90}function C(e,t){return e.length===t.length&&0===E(e,t)}function T(e,t){const n=t.length;return!(t.length>e.length)&&0===E(e,t,0,n)}function D(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r}function S(e,t){let n,r=Math.min(e.length,t.length);const i=e.length-1,s=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(s-n))return n;return r}function P(e){return 55296<=e&&e<=56319}function L(e){return 56320<=e&&e<=57343}function I(e,t){return t-56320+(e-55296<<10)+65536}function N(e,t,n){const r=e.charCodeAt(n);if(P(r)&&n+1<t){const t=e.charCodeAt(n+1);if(L(t))return I(r,t)}return r}function R(e,t){const n=e.charCodeAt(t-1);if(L(n)&&t>1){const r=e.charCodeAt(t-2);if(P(r))return I(r,n)}return n}function M(e,t){const n=ee.getInstance(),r=t,i=e.length,s=N(e,i,t);t+=s>=65536?2:1;let a=n.getGraphemeBreakType(s);for(;t<i;){const r=N(e,i,t),s=n.getGraphemeBreakType(r);if($(a,s))break;t+=r>=65536?2:1,a=s}return t-r}function O(e,t){const n=ee.getInstance(),r=t,i=R(e,t);t-=i>=65536?2:1;let s=n.getGraphemeBreakType(i);for(;t>0;){const r=R(e,t),i=n.getGraphemeBreakType(r);if($(i,s))break;t-=r>=65536?2:1,s=i}return r-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 j(e){return F.test(e)}const B=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function z(e){return B.test(e)}const H=/^[\t\n\r\x20-\x7E]*$/;function Z(e){return H.test(e)}const U=/[\u2028\u2029]/;function Y(e){return U.test(e)}function X(e){for(let t=0,n=e.length;t<n;t++)if(G(e.charCodeAt(t)))return!0;return!1}function G(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 K=String.fromCharCode(65279);function V(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function Q(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 r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}function te(e,t){if(0===e)return 0;const n=function(e,t){let n=R(t,e);e-=ne(n);for(;re(n)||65039===n||8419===n;){if(0===e)return;n=R(t,e),e-=ne(n)}if(!W(n))return;if(e>=0){const n=R(t,e);8205===n&&(e-=ne(n))}return e}(e,t);if(void 0!==n)return n;return e-=ne(R(t,e))}function ne(e){return e>=65536?2:1}function re(e){return 127995<=e&&e<=127999}ee._INSTANCE=null},72999:function(e,t,n){"use strict";function r(e){return Array.isArray(e)}function i(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 r=0;r<n;r++)m(e[r],t[r])}function m(e,t){if(i(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 g(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 r={};for(const t of e)r[t]=n(t);return r}function y(e){return null===e?void 0:e}function _(e,t="Unreachable"){throw new Error(t)}n.d(t,{$E:function(){return g},$K:function(){return u},D8:function(){return p},HD:function(){return i},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 r},mf:function(){return f},o8:function(){return l},p_:function(){return d},vE:function(){return _}})},13268:function(e,t,n){"use strict";function r(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const r=n[0];return void 0!==t[r]?t[r]:e})),n}(t,n)}n.d(t,{N:function(){return r}})},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 g},vr:function(){return m}});var r=n(75918),i=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,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){return function(n,r){t(n,r,e)}};function m(e){return void 0!==e.command}class g{constructor(e){this.id=g._idPool++,this._debugName=e}}g._idPool=0,g.CommandPalette=new g("CommandPalette"),g.EditorContext=new g("EditorContext"),g.SimpleEditorContext=new g("SimpleEditorContext"),g.EditorContextCopy=new g("EditorContextCopy"),g.EditorContextPeek=new g("EditorContextPeek"),g.MenubarEditMenu=new g("MenubarEditMenu"),g.MenubarCopy=new g("MenubarCopy"),g.MenubarGoMenu=new g("MenubarGoMenu"),g.MenubarSelectionMenu=new g("MenubarSelectionMenu"),g.InlineCompletionsActions=new g("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===g.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:r,item:i}of e){let e=this._menuItems.get(r);e||(e=new l.S,this._menuItems.set(r,e)),n.push(e.push(i)),t.add(r)}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===g.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)m(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach(((n,r)=>{t.has(r)||e.push({command:n})}))}};class _ extends r.wY{constructor(e,t,n,r){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=r}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 r.Z0));return e.length&&e.pop(),e}}let b=class e{constructor(t,n,r,s,a){var o,l;if(this._commandService=a,this.id=t.id,this.label=(null==r?void 0:r.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,r,s,a):void 0,this._options=r,h.kS.isThemeIcon(t.icon)&&(this.class=i.dT.asClassName(t.icon))}dispose(){}run(...e){var t,n;let r=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(r=[...r,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(r=[...r,...e]),this._commandService.executeCommand(this.id,...r)}};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 r=n(4348),i=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 r.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,...r){return(0,o.D8)(r,t),n(e,...r)}}const{id:n}=e;let r=this._commands.get(n);r||(r=new a.S,this._commands.set(n,r));let i=r.unshift(e),l=(0,s.OF)((()=>{i();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 i.$.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 M},i6:function(){return L},uy:function(){return P}});var r=n(23345),i=n(82983),s=n(16925);let a=r.WE||"";const o=new Map;o.set("false",!1),o.set("true",!0),o.set("isMac",r.dz),o.set("isLinux",r.IJ),o.set("isWindows",r.ED),o.set("isWeb",r.$L),o.set("isMacNative",r.dz&&!r.$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 m.create(e,t)}static regex(e,t){return k.create(e,t)}static not(e){return _.create(e)}static and(...e){return D.create(e,null)}static or(...e){return S.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 S.create(n.map((e=>this._deserializeAndExpression(e,t))),null,!0)}static _deserializeAndExpression(e,t){let n=e.split("&&");return D.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 m.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return k.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return g.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 x.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const t=e.split("<=");return A.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const t=e.split("<");return E.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,i.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("/"),r=e.lastIndexOf("/");if(n===r||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,r),a="i"===e[r+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,r=t?t.substituteConstants():void 0;return!n&&!r||!(!n||!r)&&n.equals(r)}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 m{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 r=o.get(e);if("boolean"==typeof r){return t===(r?"true":"false")?f.INSTANCE:h.INSTANCE}return new m(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:R(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 g{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new g(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:R(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 r=o.get(e);if("boolean"==typeof r){return t===(r?"true":"false")?h.INSTANCE:f.INSTANCE}return new y(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:R(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=m.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 x{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 x(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:R(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=A.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:R(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 E{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 E(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:R(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 A{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 A(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:R(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 k{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new k(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 T(e){let t=null;for(let n=0,r=e.length;n<r;n++){const r=e[n].substituteConstants();if(e[n]!==r&&null===t){t=[];for(let r=0;r<n;r++)t[r]=e[r]}null!==t&&(t[n]=r)}return null===t?e:t}class D{constructor(e,t){this.expr=e,this.negated=t,this.type=6}static create(e,t){return D._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=T(this.expr);return e===this.expr?this:D.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 r=!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 r=!0;if(0===n.length&&r)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(),r=0===n.length,i=S.create(e.expr.map((e=>D.create([e,t],null))),null,r);i&&(n.push(i),n.sort(d))}return 1===n.length?n[0]:new D(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=S.create(e,this,!0)}return this.negated}}class S{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,n){return S._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=T(this.expr);return e===this.expr?this:S.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 r=[],i=!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?r.push(n):r=r.concat(n.expr)}else i=!0}if(0===r.length&&i)return h.INSTANCE;r.sort(d)}if(0!==r.length){if(1===r.length)return r[0];for(let e=1;e<r.length;e++)r[e-1].equals(r[e])&&(r.splice(e,1),e--);if(1===r.length)return r[0];if(n){for(let e=0;e<r.length;e++)for(let t=e+1;t<r.length;t++)M(r[e],r[t])&&(r.splice(t,1),t--);if(1===r.length)return r[0]}return new S(r,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(),r=[];for(const e of O(t))for(const t of O(n))r.push(D.create([e,t],null));const i=0===e.length;e.unshift(S.create(r,null,i))}this.negated=e[0]}return this.negated}}class P extends p{constructor(e,t,n){super(e,null),this._defaultValue=t,"object"==typeof n?P._info.push(Object.assign(Object.assign({},n),{key:e})):!0!==n&&P._info.push({key:e,description:n,type:null!=t?typeof t:void 0})}static all(){return P._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 m.create(this.key,e)}}P._info=[];const L=(0,s.yh)("contextKeyService"),I="setContext";function N(e,t){return e<t?-1:e>t?1:0}function R(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:t>r?1:0}function M(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 r=e+1;r<n.length;r++){const e=n[r];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 r;n.d(t,{I8:function(){return r},TG:function(){return i},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]||[]}}(r||(r={}));const i=a("instantiationService");function s(e,t,n,i){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[r.DI_TARGET]=t)}function a(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(t,e,r,!1)};return t.toString=()=>e,r.serviceIds.set(e,t),t}function o(e){return function(t,n,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(e,t,r,!0)}}},44650:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(76068),i=n(72999);const s=new class{constructor(){this.data=new Map}add(e,t){r.ok(i.HD(e)),r.ok(i.Kn(t)),r.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 r;n.d(t,{e:function(){return r}}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST="hc"}(r||(r={}))},49055:function(e,t,n){"use strict";n.d(t,{EN:function(){return h},IP:function(){return p},Ic:function(){return g},XE:function(){return u},bB:function(){return v},kS:function(){return d},m6:function(){return f}});var r=n(52615),i=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(`^\\$\\((${r.dT.iconNameExpression}(?:${r.dT.iconModifierExpression})?)\\)$`);e.fromString=function(e){const n=t.exec(e);if(!n)return;let[,r]=n;return{id:r}},e.modify=function(e,t){let n=e.id;const r=n.lastIndexOf("~");return-1!==r&&(n=n.substring(0,r)),t&&(n=`${n}~${t}`),{id:n}},e.isEqual=function(e,t){var n,r;return e.id===t.id&&(null===(n=e.color)||void 0===n?void 0:n.id)===(null===(r=t.color)||void 0===r?void 0:r.id)},e.asThemeIcon=function(e,t){return{id:e.id,color:t?h(t):void 0}},e.asClassNameArray=r.dT.asClassNameArray,e.asClassName=r.dT.asClassName,e.asCSSSelector=r.dT.asCSSSelector}(d||(d={}));const p={ThemingContribution:"base.contributions.theming"};let m=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new i.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 g(e){return m.onColorThemeChange(e)}o.B.add(p.ThemingContribution,m);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(){}}},16632:function(e,t,n){"use strict";var r=n(54476),i=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,m=e.checked,g=e.disabled,v=e.defaultChecked,y=void 0!==v&&v,_=e.type,b=void 0===_?"checkbox":_,x=e.title,w=e.onChange,E=(0,o.Z)(e,h),A=(0,d.useRef)(null),k=(0,d.useRef)(null),C=(0,c.Z)(y,{value:m}),T=(0,a.Z)(C,2),D=T[0],S=T[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=A.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},input:A.current,nativeElement:k.current}}));var P=u()(l,f,(0,s.Z)((0,s.Z)({},"".concat(l,"-checked"),D),"".concat(l,"-disabled"),g));return d.createElement("span",{className:P,title:x,style:p,ref:k},d.createElement("input",(0,r.Z)({},E,{className:"".concat(l,"-input"),ref:A,onChange:function(t){g||("checked"in e||S(t.target.checked),null==w||w({target:(0,i.Z)((0,i.Z)({},e),{},{type:b,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:g,checked:!!D,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 r=n(54476),i=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,m=h.Z.TAB;var g=(0,d.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,i=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,r&&d.createElement("div",{className:"".concat(i,"-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 x(e,t){var n,l=e.arrow,h=void 0!==l&&l,v=e.prefixCls,y=void 0===v?"rc-dropdown":v,x=e.transitionName,w=e.animation,E=e.align,A=e.placement,k=void 0===A?"bottomLeft":A,C=e.placements,T=void 0===C?_:C,D=e.getPopupContainer,S=e.showAction,P=e.hideAction,L=e.overlayClassName,I=e.overlayStyle,N=e.visible,R=e.trigger,M=void 0===R?["hover"]:R,O=e.autoFocus,F=e.overlay,j=e.children,B=e.onVisibleChange,z=(0,a.Z)(e,b),H=d.useState(),Z=(0,s.Z)(H,2),U=Z[0],Y=Z[1],X="visible"in e?N:U,G=d.useRef(null),W=d.useRef(null),K=d.useRef(null);d.useImperativeHandle(t,(function(){return G.current}));var V=function(e){Y(e),null==B||B(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,s=e.overlayRef,a=d.useRef(!1),o=function(){var e,i;t&&(null===(e=n.current)||void 0===e||null===(i=e.focus)||void 0===i||i.call(e),null==r||r(!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 m:var t=!1;a.current||(t=l()),t?e.preventDefault():o()}};d.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&(0,f.Z)(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[t])}({visible:X,triggerRef:K,onVisibleChange:V,autoFocus:O,overlayRef:W});var Q,q,J,$=function(){return d.createElement(g,{ref:W,overlay:F,prefixCls:y,arrow:h})},ee=d.cloneElement(j,{className:u()(null===(n=j.props)||void 0===n?void 0:n.className,X&&(Q=e.openClassName,void 0!==Q?Q:"".concat(y,"-open"))),ref:(0,c.Yr)(j)?(0,c.sQ)(K,(0,c.C4)(j)):void 0}),te=P;return te||-1===M.indexOf("contextMenu")||(te=["click"]),d.createElement(o.Z,(0,r.Z)({builtinPlacements:T},z,{prefixCls:y,ref:G,popupClassName:u()(L,(0,i.Z)({},"".concat(y,"-show-arrow"),h)),popupStyle:I,action:M,showAction:S,hideAction:te,popupPlacement:k,popupAlign:E,popupTransitionName:x,popupAnimation:w,popupVisible:X,stretch:(q=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?q:!J)?"minWidth":""),popup:"function"==typeof F?$:$(),onPopupVisibleChange:V,onPopupClick:function(t){var n=e.onOverlayClick;Y(!1),n&&n(t)},getPopupContainer:D}),ee)}var w=d.forwardRef(x)},66003:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(75931),i=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,i.Z)((0,i.Z)({},n),e),l=a.show,u=(0,r.Z)(a,o);return(0,i.Z)((0,i.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 r=n(33885),i=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,m=e.prefix,g=e.suffix,v=e.addonBefore,y=e.addonAfter,_=e.className,b=e.style,x=e.disabled,w=e.readOnly,E=e.focused,A=e.triggerFocus,k=e.allowClear,C=e.value,T=e.handleReset,D=e.hidden,S=e.classes,P=e.classNames,L=e.dataAttrs,I=e.styles,N=e.components,R=e.onClear,M=null!=f?f:h,O=(null==N?void 0:N.affixWrapper)||"span",F=(null==N?void 0:N.groupWrapper)||"span",j=(null==N?void 0:N.wrapper)||"span",B=(null==N?void 0:N.groupAddon)||"span",z=(0,u.useRef)(null),H=(0,c.X3)(e),Z=(0,u.cloneElement)(M,{value:C,className:l()(null===(n=M.props)||void 0===n?void 0:n.className,!H&&(null==P?void 0:P.variant))||null}),U=(0,u.useRef)(null);if(u.useImperativeHandle(t,(function(){return{nativeElement:U.current||z.current}})),H){var Y=null;if(k){var X=!x&&!w&&C,G="".concat(p,"-clear-icon"),W="object"===(0,a.Z)(k)&&null!=k&&k.clearIcon?k.clearIcon:"✖";Y=u.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==T||T(e),null==R||R()},onMouseDown:function(e){return e.preventDefault()},className:l()(G,(0,s.Z)((0,s.Z)({},"".concat(G,"-hidden"),!X),"".concat(G,"-has-suffix"),!!g))},W)}var K="".concat(p,"-affix-wrapper"),V=l()(K,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(p,"-disabled"),x),"".concat(K,"-disabled"),x),"".concat(K,"-focused"),E),"".concat(K,"-readonly"),w),"".concat(K,"-input-with-clear-btn"),g&&k&&C),null==S?void 0:S.affixWrapper,null==P?void 0:P.affixWrapper,null==P?void 0:P.variant),Q=(g||k)&&u.createElement("span",{className:l()("".concat(p,"-suffix"),null==P?void 0:P.suffix),style:null==I?void 0:I.suffix},Y,g);Z=u.createElement(O,(0,i.Z)({className:V,style:null==I?void 0:I.affixWrapper,onClick:function(e){var t;null!==(t=z.current)&&void 0!==t&&t.contains(e.target)&&(null==A||A())}},null==L?void 0:L.affixWrapper,{ref:z}),m&&u.createElement("span",{className:l()("".concat(p,"-prefix"),null==P?void 0:P.prefix),style:null==I?void 0:I.prefix},m),Z,Q)}if((0,c.He)(e)){var q="".concat(p,"-group"),J="".concat(q,"-addon"),$="".concat(q,"-wrapper"),ee=l()("".concat(p,"-wrapper"),q,null==S?void 0:S.wrapper,null==P?void 0:P.wrapper),te=l()($,(0,s.Z)({},"".concat($,"-disabled"),x),null==S?void 0:S.group,null==P?void 0:P.groupWrapper);Z=u.createElement(F,{className:te,ref:U},u.createElement(j,{className:ee},v&&u.createElement(B,{className:J},v),Z,y&&u.createElement(B,{className:J},y)))}return u.cloneElement(Z,{className:l()(null===(o=Z.props)||void 0===o?void 0:o.className,_)||null,style:(0,r.Z)((0,r.Z)({},null===(d=Z.props)||void 0===d?void 0:d.style),b),hidden:D})})),h=n(94480),f=n(42978),p=n(75931),m=n(18929),g=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,x=e.onKeyDown,w=e.onKeyUp,E=e.prefixCls,A=void 0===E?"rc-input":E,k=e.disabled,C=e.htmlSize,T=e.className,D=e.maxLength,S=e.suffix,P=e.showCount,L=e.count,I=e.type,N=void 0===I?"text":I,R=e.classes,M=e.classNames,O=e.styles,F=e.onCompositionStart,j=e.onCompositionEnd,B=(0,p.Z)(e,y),z=(0,u.useState)(!1),H=(0,f.Z)(z,2),Z=H[0],U=H[1],Y=(0,u.useRef)(!1),X=(0,u.useRef)(!1),G=(0,u.useRef)(null),W=(0,u.useRef)(null),K=function(e){G.current&&(0,c.nH)(G.current,e)},V=(0,m.Z)(e.defaultValue,{value:e.value}),Q=(0,f.Z)(V,2),q=Q[0],J=Q[1],$=null==q?"":String(q),ee=(0,u.useState)(null),te=(0,f.Z)(ee,2),ne=te[0],re=te[1],ie=(0,v.Z)(L,P),se=ie.max||D,ae=ie.strategy($),oe=!!se&&ae>se;(0,u.useImperativeHandle)(t,(function(){var e;return{focus:K,blur:function(){var e;null===(e=G.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=G.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=G.current)||void 0===e||e.select()},input:G.current,nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||G.current}})),(0,u.useEffect)((function(){X.current&&(X.current=!1),U((function(e){return(!e||!k)&&e}))}),[k]);var le=function(e,t,n){var r,i,s=t;if(!Y.current&&ie.exceedFormatter&&ie.max&&ie.strategy(t)>ie.max)t!==(s=ie.exceedFormatter(t,{max:ie.max}))&&re([(null===(r=G.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=G.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;J(s),G.current&&(0,c.rJ)(G.current,e,a,s)};(0,u.useEffect)((function(){var e;ne&&(null===(e=G.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){Y.current=!1,le(e,e.currentTarget.value,{source:"compositionEnd"}),null==j||j(e)},he=function(e){b&&"Enter"===e.key&&!X.current&&(X.current=!0,b(e)),null==x||x(e)},fe=function(e){"Enter"===e.key&&(X.current=!1),null==w||w(e)},pe=function(e){U(!0),null==o||o(e)},me=function(e){X.current&&(X.current=!1),U(!1),null==_||_(e)},ge=oe&&"".concat(A,"-out-of-range");return u.createElement(d,(0,i.Z)({},B,{prefixCls:A,className:l()(T,ge),handleReset:function(e){J(""),K(),G.current&&(0,c.rJ)(G.current,e,a)},value:$,focused:Z,triggerFocus:K,suffix:function(){var e=Number(se)>0;if(S||ie.show){var t=ie.showFormatter?ie.showFormatter({value:$,count:ae,maxLength:se}):"".concat(ae).concat(e?" / ".concat(se):"");return u.createElement(u.Fragment,null,ie.show&&u.createElement("span",{className:l()("".concat(A,"-show-count-suffix"),(0,s.Z)({},"".concat(A,"-show-count-has-suffix"),!!S),null==M?void 0:M.count),style:(0,r.Z)({},null==O?void 0:O.count)},t),S)}return null}(),disabled:k,classes:R,classNames:M,styles:O}),(ue=(0,g.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),u.createElement("input",(0,i.Z)({autoComplete:n},ue,{onChange:ce,onFocus:pe,onBlur:me,onKeyDown:he,onKeyUp:fe,className:l()(A,(0,s.Z)({},"".concat(A,"-disabled"),k),null==M?void 0:M.input),style:null==O?void 0:O.input,ref:G,size:C,type:N,onCompositionStart:function(e){Y.current=!0,null==F||F(e)},onCompositionEnd:de}))))}))},30292:function(e,t,n){"use strict";function r(e){return!(!e.addonBefore&&!e.addonAfter)}function i(e){return!!(e.prefix||e.suffix||e.allowClear)}function s(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function a(e,t,n,r){if(n){var i=t;"click"!==t.type?"file"===e.type||void 0===r?n(i):n(i=s(t,e,r)):n(i=s(t,e,""))}}function o(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}n.d(t,{He:function(){return r},X3:function(){return i},nH:function(){return o},rJ:function(){return a}})},28321:function(e,t,n){"use strict";n.d(t,{iz:function(){return ze},ck:function(){return _e},BW:function(){return Ue},sN:function(){return _e},Wd:function(){return je},ZP:function(){return qe},Xl:function(){return D}});var r=n(54476),i=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),m=n(59301),g=n(4676),v=m.createContext(null);function y(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function _(e){return y(m.useContext(v),e)}var b=n(80547),x=["children","locked"],w=m.createContext(null);function E(e){var t=e.children,n=e.locked,r=(0,l.Z)(e,x),i=m.useContext(w),a=(0,b.Z)((function(){return e=i,t=r,n=(0,s.Z)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,r],(function(e,t){return!(n||e[0]===t[0]&&(0,f.Z)(e[1],t[1],!0))}));return m.createElement(w.Provider,{value:a},t)}var A=[],k=m.createContext(null);function C(){return m.useContext(k)}var T=m.createContext(A);function D(e){var t=m.useContext(T);return m.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var S=m.createContext(null),P=m.createContext({}),L=n(29194);function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,L.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i),a=null;return i&&!Number.isNaN(s)?a=s:r&&null===a&&(a=0),r&&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 R=n(10228),M=n(16089),O=R.Z.LEFT,F=R.Z.RIGHT,j=R.Z.UP,B=R.Z.DOWN,z=R.Z.ENTER,H=R.Z.ESC,Z=R.Z.HOME,U=R.Z.END,Y=[j,B,O,F];function X(e,t){return N(e,!0).filter((function(e){return t.has(e)}))}function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=X(e,t),s=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=s-1:a-=1:r>0&&(a+=1),i[a=(a+s)%s]}var W=function(e,t){var n=new Set,r=new Map,i=new Map;return e.forEach((function(e){var s=document.querySelector("[data-menu-id='".concat(y(t,e),"']"));s&&(n.add(s),i.set(s,e),r.set(e,s))})),{elements:n,key2element:r,element2key:i}};function K(e,t,n,r,s,a,o,l,u,c){var d=m.useRef(),h=m.useRef();h.current=t;var f=function(){M.Z.cancel(d.current)};return m.useEffect((function(){return function(){f()}}),[]),function(p){var m=p.which;if([].concat(Y,[z,H,Z,U]).includes(m)){var g=a(),v=W(g,r),y=v,_=y.elements,b=y.key2element,x=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),_),E=x.get(w),A=function(e,t,n,r){var s,a="prev",o="next",l="children",u="parent";if("inline"===e&&r===z)return{inlineTrigger:!0};var c=(0,i.Z)((0,i.Z)({},j,a),B,o),d=(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},O,n?o:a),F,n?a:o),B,l),z,l),h=(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},j,a),B,o),z,l),H,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[r]){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(E,!0).length,n,m);if(!A&&m!==Z&&m!==U)return;(Y.includes(m)||[Z,U].includes(m))&&p.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);l(r),f(),d.current=(0,M.Z)((function(){h.current===r&&t.focus()}))}};if([Z,U].includes(m)||A.sibling||!w){var C,T,D=X(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,_);T=m===Z?D[0]:m===U?D[D.length-1]:G(C,_,w,A.offset),k(T)}else if(A.inlineTrigger)u(E);else if(A.offset>0)u(E,!0),f(),d.current=(0,M.Z)((function(){v=W(g,r);var e=w.getAttribute("aria-controls"),t=G(document.getElementById(e),v.elements);k(t)}),5);else if(A.offset<0){var S=o(E,!0),P=S[S.length-2],L=b.get(P);u(P,!1),k(L)}}null==c||c(p)}}var V="__RC_UTIL_PATH_SPLIT__",Q=function(e){return e.join(V)},q="rc-menu-more";function J(){var e=m.useState({}),t=(0,o.Z)(e,2)[1],n=(0,m.useRef)(new Map),r=(0,m.useRef)(new Map),i=m.useState([]),s=(0,o.Z)(i,2),l=s[0],u=s[1],c=(0,m.useRef)(0),d=(0,m.useRef)(!1),h=(0,m.useCallback)((function(e,i){var s=Q(i);r.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,m.useCallback)((function(e,t){var i=Q(t);r.current.delete(i),n.current.delete(e)}),[]),p=(0,m.useCallback)((function(e){u(e)}),[]),g=(0,m.useCallback)((function(e,t){var r=n.current.get(e)||"",i=r.split(V);return t&&l.includes(i[0])&&i.unshift(q),i}),[l]),v=(0,m.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return g(e,!0).includes(t)}))}),[g]),y=(0,m.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(V),i=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&i.add(r.current.get(e))})),i}),[]);return m.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:h,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:g,getKeys:function(){var e=(0,a.Z)(n.current.keys());return l.length&&e.push(q),e},getSubPathKeys:y}}function $(e){var t=m.useRef(e);t.current=e;var n=m.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var ee=Math.random().toFixed(5).toString().slice(2),te=0;var ne=n(67732),re=n(83652),ie=n(42403),se=n(158),ae=n(2738),oe=n(8654);function le(e,t,n,r){var i=m.useContext(w),s=i.activeKey,a=i.onActive,o=i.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==r||r({key:e,domEvent:t}),o(e)}),l}function ue(e){var t=m.useContext(w),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function ce(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"==typeof n?t=m.createElement(n,(0,s.Z)({},r)):"boolean"!=typeof n&&(t=n),t||i||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"],me=["active"],ge=function(e){(0,ie.Z)(n,e);var t=(0,se.Z)(n);function n(){return(0,ne.Z)(this,n),t.apply(this,arguments)}return(0,re.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,i=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."),m.createElement(d.Z.Item,(0,r.Z)({},n,{title:"string"==typeof t?t:void 0},a,{ref:i}))}}]),n}(m.Component),ve=m.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,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onClick,b=e.onKeyDown,x=e.onFocus,E=(0,l.Z)(e,pe),A=_(u),k=m.useContext(w),C=k.prefixCls,T=k.onItemClick,S=k.disabled,L=k.overflowDisabled,I=k.itemIcon,N=k.selectedKeys,M=k.onActive,O=m.useContext(P)._internalRenderMenuItem,F="".concat(C,"-item"),j=m.useRef(),B=m.useRef(),z=S||d,H=(0,oe.x1)(t,B),Z=D(u);var U=function(e){return{key:u,keyPath:(0,a.Z)(Z).reverse(),item:j.current,domEvent:e}},Y=h||I,X=le(u,z,g,v),G=X.active,W=(0,l.Z)(X,me),K=N.includes(u),V=ue(Z.length),Q={};"option"===e.role&&(Q["aria-selected"]=K);var q=m.createElement(ge,(0,r.Z)({ref:j,elementRef:H,role:null===p?"none":p||"menuitem",tabIndex:d?null:-1,"data-menu-id":L&&A?null:A},(0,ae.Z)(E,["extra"]),W,Q,{component:"li","aria-disabled":d,style:(0,s.Z)((0,s.Z)({},V),n),className:c()(F,(0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(F,"-active"),G),"".concat(F,"-selected"),K),"".concat(F,"-disabled"),z),o),onClick:function(e){if(!z){var t=U(e);null==y||y(he(t)),T(t)}},onKeyDown:function(e){if(null==b||b(e),e.which===R.Z.ENTER){var t=U(e);null==y||y(he(t)),T(t)}},onFocus:function(e){M(u),null==x||x(e)}}),f,m.createElement(ce,{props:(0,s.Z)((0,s.Z)({},e),{},{isSelected:K}),icon:Y}));return O&&(q=O(q,e,{selected:K})),q}));function ye(e,t){var n=e.eventKey,i=C(),s=D(n);return m.useEffect((function(){if(i)return i.registerPath(n,s),function(){i.unregisterPath(n,s)}}),[s]),i?null:m.createElement(ve,(0,r.Z)({},e,{ref:t}))}var _e=m.forwardRef(ye),be=["className","children"],xe=function(e,t){var n=e.className,i=e.children,s=(0,l.Z)(e,be),a=m.useContext(w),o=a.prefixCls,u=a.mode,d=a.rtl;return m.createElement("ul",(0,r.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}),i)},we=m.forwardRef(xe);we.displayName="SubMenuList";var Ee=we,Ae=n(11592);function ke(e,t){return(0,Ae.Z)(e).map((function(e,n){if(m.isValidElement(e)){var r,i,s=e.key,o=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:s;null==o&&(o="tmp_key-".concat([].concat((0,a.Z)(t),[n]).join("-")));var l={key:o,eventKey:o};return m.cloneElement(e,l)}return e}))}var Ce=n(65030),Te={adjustX:1,adjustY:1},De={topLeft:{points:["bl","tl"],overflow:Te},topRight:{points:["br","tr"],overflow:Te},bottomLeft:{points:["tl","bl"],overflow:Te},bottomRight:{points:["tr","br"],overflow:Te},leftTop:{points:["tr","tl"],overflow:Te},leftBottom:{points:["br","bl"],overflow:Te},rightTop:{points:["tl","tr"],overflow:Te},rightBottom:{points:["bl","br"],overflow:Te}},Se={topLeft:{points:["bl","tl"],overflow:Te},topRight:{points:["br","tr"],overflow:Te},bottomLeft:{points:["tl","bl"],overflow:Te},bottomRight:{points:["tr","br"],overflow:Te},rightTop:{points:["tr","tl"],overflow:Te},rightBottom:{points:["br","bl"],overflow:Te},leftTop:{points:["tl","tr"],overflow:Te},leftBottom:{points:["bl","br"],overflow:Te}};function Pe(e,t,n){return t||(n?n[e]||n.other:void 0)}var Le={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ie(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,l=e.popupStyle,u=e.popupClassName,d=e.popupOffset,h=e.disabled,f=e.mode,p=e.onVisibleChange,g=m.useContext(w),v=g.getPopupContainer,y=g.rtl,_=g.subMenuOpenDelay,b=g.subMenuCloseDelay,x=g.builtinPlacements,E=g.triggerSubMenuAction,A=g.forceSubMenuRender,k=g.rootClassName,C=g.motion,T=g.defaultMotions,D=m.useState(!1),S=(0,o.Z)(D,2),P=S[0],L=S[1],I=y?(0,s.Z)((0,s.Z)({},Se),x):(0,s.Z)((0,s.Z)({},De),x),N=Le[f],R=Pe(f,C,T),O=m.useRef(R);"inline"!==f&&(O.current=R);var F=(0,s.Z)((0,s.Z)({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),j=m.useRef();return m.useEffect((function(){return j.current=(0,M.Z)((function(){L(n)})),function(){M.Z.cancel(j.current)}}),[n]),m.createElement(Ce.Z,{prefixCls:t,popupClassName:c()("".concat(t,"-popup"),(0,i.Z)({},"".concat(t,"-rtl"),y),u,k),stretch:"horizontal"===f?"minWidth":null,getPopupContainer:v,builtinPlacements:I,popupPlacement:N,popupVisible:P,popup:a,popupStyle:l,popupAlign:d&&{offset:d},action:h?[]:[E],mouseEnterDelay:_,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:A,popupMotion:F,fresh:!0},r)}var Ne=n(77900);function Re(e){var t=e.id,n=e.open,i=e.keyPath,a=e.children,l="inline",u=m.useContext(w),c=u.prefixCls,d=u.forceSubMenuRender,h=u.motion,f=u.defaultMotions,p=u.mode,g=m.useRef(!1);g.current=p===l;var v=m.useState(!g.current),y=(0,o.Z)(v,2),_=y[0],b=y[1],x=!!g.current&&n;m.useEffect((function(){g.current&&b(!1)}),[p]);var A=(0,s.Z)({},Pe(l,h,f));i.length>1&&(A.motionAppear=!1);var k=A.onVisibleChanged;return A.onVisibleChanged=function(e){return g.current||e||b(!0),null==k?void 0:k(e)},_?null:m.createElement(E,{mode:l,locked:!g.current},m.createElement(Ne.default,(0,r.Z)({visible:x},A,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,r=e.style;return m.createElement(Ee,{id:t,className:n,style:r},a)})))}var Me=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Oe=["active"],Fe=m.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,g=e.children,v=e.itemIcon,y=e.expandIcon,b=e.popupClassName,x=e.popupOffset,A=e.popupStyle,k=e.onClick,C=e.onMouseEnter,T=e.onMouseLeave,L=e.onTitleClick,I=e.onTitleMouseEnter,N=e.onTitleMouseLeave,R=(0,l.Z)(e,Me),M=_(h),O=m.useContext(w),F=O.prefixCls,j=O.mode,B=O.openKeys,z=O.disabled,H=O.overflowDisabled,Z=O.activeKey,U=O.selectedKeys,Y=O.itemIcon,X=O.expandIcon,G=O.onItemClick,W=O.onOpenChange,K=O.onActive,V=m.useContext(P)._internalRenderSubMenuItem,Q=m.useContext(S).isSubPathKey,q=D(),J="".concat(F,"-submenu"),ee=z||f,te=m.useRef(),ne=m.useRef();var re=null!=v?v:Y,ie=null!=y?y:X,se=B.includes(h),ae=!H&&se,oe=Q(U,h),de=le(h,ee,I,N),fe=de.active,pe=(0,l.Z)(de,Oe),me=m.useState(!1),ge=(0,o.Z)(me,2),ve=ge[0],ye=ge[1],_e=function(e){ee||ye(e)},be=m.useMemo((function(){return fe||"inline"!==j&&(ve||Q([Z],h))}),[j,fe,Z,ve,h,Q]),xe=ue(q.length),we=$((function(e){null==k||k(he(e)),G(e)})),Ae=M&&"".concat(M,"-popup"),ke=m.useMemo((function(){return m.createElement(ce,{icon:"horizontal"!==j?ie:void 0,props:(0,s.Z)((0,s.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},m.createElement("i",{className:"".concat(J,"-arrow")}))}),[j,ie,e,ae,J]),Ce=m.createElement("div",(0,r.Z)({role:"menuitem",style:xe,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof u?u:null,"data-menu-id":H&&M?null:M,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":ee,onClick:function(e){ee||(null==L||L({key:h,domEvent:e}),"inline"===j&&W(h,!se))},onFocus:function(){K(h)}},pe),u,ke),Te=m.useRef(j);if("inline"!==j&&q.length>1?Te.current="vertical":Te.current=j,!H){var De=Te.current;Ce=m.createElement(Ie,{mode:De,prefixCls:J,visible:!p&&ae&&"inline"!==j,popupClassName:b,popupOffset:x,popupStyle:A,popup:m.createElement(E,{mode:"horizontal"===De?"vertical":De},m.createElement(Ee,{id:Ae,ref:ne},g)),disabled:ee,onVisibleChange:function(e){"inline"!==j&&W(h,e)}},Ce)}var Se=m.createElement(d.Z.Item,(0,r.Z)({ref:t,role:"none"},R,{component:"li",style:n,className:c()(J,"".concat(J,"-").concat(j),a,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.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==T||T({key:h,domEvent:e})}}),Ce,!H&&m.createElement(Re,{id:Ae,open:ae,keyPath:q},g));return V&&(Se=V(Se,e,{selected:oe,active:be,open:ae,disabled:ee})),m.createElement(E,{onItemClick:we,mode:"horizontal"===j?"vertical":j,itemIcon:re,expandIcon:ie},Se)}));var je=m.forwardRef((function(e,t){var n,i=e.eventKey,s=e.children,a=D(i),o=ke(s,a),l=C();return m.useEffect((function(){if(l)return l.registerPath(i,a),function(){l.unregisterPath(i,a)}}),[a]),n=l?o:m.createElement(Fe,(0,r.Z)({ref:t},e),o),m.createElement(T.Provider,{value:a},n)})),Be=n(76190);function ze(e){var t=e.className,n=e.style,r=m.useContext(w).prefixCls;return C()?null:m.createElement("li",{role:"separator",className:c()("".concat(r,"-item-divider"),t),style:n})}var He=["className","title","eventKey","children"],Ze=m.forwardRef((function(e,t){var n=e.className,i=e.title,s=(e.eventKey,e.children),a=(0,l.Z)(e,He),o=m.useContext(w).prefixCls,u="".concat(o,"-item-group");return m.createElement("li",(0,r.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:c()(u,n)}),m.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof i?i:void 0},i),m.createElement("ul",{role:"group",className:"".concat(u,"-list")},s))}));var Ue=m.forwardRef((function(e,t){var n=e.eventKey,i=ke(e.children,D(n));return C()?i:m.createElement(Ze,(0,r.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),i)})),Ye=["label","children","key","type","extra"];function Xe(e,t,n){var i=t.item,s=t.group,a=t.submenu,o=t.divider;return(e||[]).map((function(e,u){if(e&&"object"===(0,Be.Z)(e)){var c=e,d=c.label,h=c.children,f=c.key,p=c.type,g=c.extra,v=(0,l.Z)(c,Ye),y=null!=f?f:"tmp-".concat(u);return h||"group"===p?"group"===p?m.createElement(s,(0,r.Z)({key:y},v,{title:d}),Xe(h,t,n)):m.createElement(a,(0,r.Z)({key:y},v,{title:d}),Xe(h,t,n)):"divider"===p?m.createElement(o,(0,r.Z)({key:y},v)):m.createElement(i,(0,r.Z)({key:y},v,{extra:g}),d,(!!g||0===g)&&m.createElement("span",{className:"".concat(n,"-item-extra")},g))}return null})).filter((function(e){return e}))}function Ge(e,t,n,r,i){var a=e,o=(0,s.Z)({divider:ze,item:_e,group:Ue,submenu:je},r);return t&&(a=Xe(t,o,i)),ke(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"],Ke=[],Ve=m.forwardRef((function(e,t){var n,u=e,p=u.prefixCls,y=void 0===p?"rc-menu":p,_=u.rootClassName,b=u.style,x=u.className,w=u.tabIndex,A=void 0===w?0:w,C=u.items,T=u.children,D=u.direction,L=u.id,I=u.mode,N=void 0===I?"vertical":I,R=u.inlineCollapsed,M=u.disabled,O=u.disabledOverflow,F=u.subMenuOpenDelay,j=void 0===F?.1:F,B=u.subMenuCloseDelay,z=void 0===B?.1:B,H=u.forceSubMenuRender,Z=u.defaultOpenKeys,U=u.openKeys,Y=u.activeKey,G=u.defaultActiveFirst,V=u.selectable,Q=void 0===V||V,ne=u.multiple,re=void 0!==ne&&ne,ie=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,me=u.builtinPlacements,ge=u.itemIcon,ve=u.expandIcon,ye=u.overflowedIndicator,be=void 0===ye?"...":ye,xe=u.overflowedIndicatorPopupClassName,we=u.getPopupContainer,Ee=u.onClick,Ae=u.onOpenChange,ke=u.onKeyDown,Ce=(u.openAnimation,u.openTransitionName,u._internalRenderMenuItem),Te=u._internalRenderSubMenuItem,De=u._internalComponents,Se=(0,l.Z)(u,We),Pe=m.useMemo((function(){return[Ge(T,C,Ke,De,y),Ge(T,C,Ke,{},y)]}),[T,C,De]),Le=(0,o.Z)(Pe,2),Ie=Le[0],Ne=Le[1],Re=m.useState(!1),Me=(0,o.Z)(Re,2),Oe=Me[0],Fe=Me[1],Be=m.useRef(),ze=function(e){var t=(0,h.Z)(e,{value:e}),n=(0,o.Z)(t,2),r=n[0],i=n[1];return m.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);i("rc-menu-uuid-".concat(e))}),[]),r}(L),He="rtl"===D;var Ze=(0,h.Z)(Z,{value:U,postState:function(e){return e||Ke}}),Ue=(0,o.Z)(Ze,2),Ye=Ue[0],Xe=Ue[1],Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){Xe(e),null==Ae||Ae(e)}t?(0,g.flushSync)(n):n()},Qe=m.useState(Ye),qe=(0,o.Z)(Qe,2),Je=qe[0],$e=qe[1],et=m.useRef(!1),tt=m.useMemo((function(){return"inline"!==N&&"vertical"!==N||!R?[N,!1]:["vertical",R]}),[N,R]),nt=(0,o.Z)(tt,2),rt=nt[0],it=nt[1],st="inline"===rt,at=m.useState(rt),ot=(0,o.Z)(at,2),lt=ot[0],ut=ot[1],ct=m.useState(it),dt=(0,o.Z)(ct,2),ht=dt[0],ft=dt[1];m.useEffect((function(){ut(rt),ft(it),et.current&&(st?Xe(Je):Ve(Ke))}),[rt,it]);var pt=m.useState(0),mt=(0,o.Z)(pt,2),gt=mt[0],vt=mt[1],yt=gt>=Ie.length-1||"horizontal"!==lt||O;m.useEffect((function(){st&&$e(Ye)}),[Ye]),m.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var _t=J(),bt=_t.registerPath,xt=_t.unregisterPath,wt=_t.refreshOverflowKeys,Et=_t.isSubPathKey,At=_t.getKeyPath,kt=_t.getKeys,Ct=_t.getSubPathKeys,Tt=m.useMemo((function(){return{registerPath:bt,unregisterPath:xt}}),[bt,xt]),Dt=m.useMemo((function(){return{isSubPathKey:Et}}),[Et]);m.useEffect((function(){wt(yt?Ke:Ie.slice(gt+1).map((function(e){return e.key})))}),[gt,yt]);var St=(0,h.Z)(Y||G&&(null===(n=Ie[0])||void 0===n?void 0:n.key),{value:Y}),Pt=(0,o.Z)(St,2),Lt=Pt[0],It=Pt[1],Nt=$((function(e){It(e)})),Rt=$((function(){It(void 0)}));(0,m.useImperativeHandle)(t,(function(){return{list:Be.current,focus:function(e){var t,n,r=kt(),i=W(r,ze),s=i.elements,a=i.key2element,o=i.element2key,l=X(Be.current,s),u=null!=Lt?Lt: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 Mt=(0,h.Z)(ie||[],{value:se,postState:function(e){return Array.isArray(e)?e:null==e?Ke:[e]}}),Ot=(0,o.Z)(Mt,2),Ft=Ot[0],jt=Ot[1],Bt=$((function(e){null==Ee||Ee(he(e)),function(e){if(Q){var t,n=e.key,r=Ft.includes(n);t=re?r?Ft.filter((function(e){return e!==n})):[].concat((0,a.Z)(Ft),[n]):[n],jt(t);var i=(0,s.Z)((0,s.Z)({},e),{},{selectedKeys:t});r?null==oe||oe(i):null==ae||ae(i)}!re&&Ye.length&&"inline"!==lt&&Ve(Ke)}(e)})),zt=$((function(e,t){var n=Ye.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==lt){var r=Ct(e);n=n.filter((function(e){return!r.has(e)}))}(0,f.Z)(Ye,n,!0)||Ve(n,!0)})),Ht=K(lt,Lt,He,ze,Be,kt,At,It,(function(e,t){var n=null!=t?t:!Ye.includes(e);zt(e,n)}),ke);m.useEffect((function(){Fe(!0)}),[]);var Zt=m.useMemo((function(){return{_internalRenderMenuItem:Ce,_internalRenderSubMenuItem:Te}}),[Ce,Te]),Ut="horizontal"!==lt||O?Ie:Ie.map((function(e,t){return m.createElement(E,{key:e.key,overflowDisabled:t>gt},e)})),Yt=m.createElement(d.Z,(0,r.Z)({id:L,ref:Be,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:_e,className:c()(y,"".concat(y,"-root"),"".concat(y,"-").concat(lt),x,(0,i.Z)((0,i.Z)({},"".concat(y,"-inline-collapsed"),ht),"".concat(y,"-rtl"),He),_),dir:D,style:b,role:"menu",tabIndex:A,data:Ut,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Ie.slice(-t):null;return m.createElement(je,{eventKey:q,title:be,disabled:yt,internalPopupClose:0===t,popupClassName:xe},n)},maxCount:"horizontal"!==lt||O?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){vt(e)},onKeyDown:Ht},Se));return m.createElement(P.Provider,{value:Zt},m.createElement(v.Provider,{value:ze},m.createElement(E,{prefixCls:y,rootClassName:_,mode:lt,openKeys:Ye,rtl:He,disabled:M,motion:Oe?ce:null,defaultMotions:Oe?de:null,activeKey:Lt,onActive:Nt,onInactive:Rt,selectedKeys:Ft,inlineIndent:ue,subMenuOpenDelay:j,subMenuCloseDelay:z,forceSubMenuRender:H,builtinPlacements:me,triggerSubMenuAction:pe,getPopupContainer:we,itemIcon:ge,expandIcon:ve,onItemClick:Bt,onOpenChange:zt},m.createElement(S.Provider,{value:Dt},Yt),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(k.Provider,{value:Tt},Ne)))))})),Qe=Ve;Qe.Item=_e,Qe.SubMenu=je,Qe.ItemGroup=Ue,Qe.Divider=ze;var qe=Qe},11780:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(54476),i=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,m=e.responsiveDisabled,g=e.registerSize,v=e.itemKey,y=e.className,_=e.style,b=e.children,x=e.display,w=e.order,E=e.component,A=void 0===E?"div":E,k=(0,a.Z)(e,h),C=p&&!x;function T(e){g(v,e)}o.useEffect((function(){return function(){T(null)}}),[]);var D,S=d&&l!==f?d(l,{index:w}):b;s||(D={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 P={};C&&(P["aria-hidden"]=!0);var L=o.createElement(A,(0,r.Z)({className:u()(!s&&n,y),style:(0,i.Z)((0,i.Z)({},D),_)},P,k,{ref:t}),S);return p&&(L=o.createElement(c.Z,{onResize:function(e){T(e.offsetWidth)},disabled:m},L)),L}var m=o.forwardRef(p);m.displayName="Item";var g=m,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 x(e,t){var n=o.useState(t),r=(0,s.Z)(n,2),i=r[0],a=r[1];return[i,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var w=o.createContext(null),E=["component"],A=["className"],k=["className"],C=function(e,t){var n=o.useContext(w);if(!n){var i=e.component,s=void 0===i?"div":i,l=(0,a.Z)(e,E);return o.createElement(s,(0,r.Z)({},l,{ref:t}))}var c=n.className,d=(0,a.Z)(n,A),h=e.className,f=(0,a.Z)(e,k);return o.createElement(w.Provider,{value:null},o.createElement(g,(0,r.Z)({ref:t,className:u()(c,h)},d,f)))},T=o.forwardRef(C);T.displayName="RawItem";var D=T,S=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],P="responsive",L="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,m=e.renderRawItem,v=e.itemKey,y=e.itemWidth,_=void 0===y?10:y,E=e.ssr,A=e.style,k=e.className,C=e.maxCount,T=e.renderRest,D=e.renderRawRest,N=e.suffix,R=e.component,M=void 0===R?"div":R,O=e.itemComponent,F=e.onVisibleChange,j=(0,a.Z)(e,S),B="full"===E,z=b(),H=x(z,null),Z=(0,s.Z)(H,2),U=Z[0],Y=Z[1],X=U||0,G=x(z,new Map),W=(0,s.Z)(G,2),K=W[0],V=W[1],Q=x(z,0),q=(0,s.Z)(Q,2),J=q[0],$=q[1],ee=x(z,0),te=(0,s.Z)(ee,2),ne=te[0],re=te[1],ie=x(z,0),se=(0,s.Z)(ie,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],me=fe[1],ge=o.useMemo((function(){return null===pe&&B?Number.MAX_SAFE_INTEGER:pe||0}),[pe,U]),ve=(0,o.useState)(!1),ye=(0,s.Z)(ve,2),_e=ye[0],be=ye[1],xe="".concat(l,"-item"),we=Math.max(J,ne),Ee=C===P,Ae=f.length&&Ee,ke=C===L,Ce=Ae||"number"==typeof C&&f.length>C,Te=(0,o.useMemo)((function(){var e=f;return Ae?e=null===U&&B?f:f.slice(0,Math.min(f.length,X/_)):"number"==typeof C&&(e=f.slice(0,C)),e}),[f,_,U,C,Ae]),De=(0,o.useMemo)((function(){return Ae?f.slice(ge+1):f.slice(Te.length)}),[f,Te,Ae,ge]),Se=(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]),Pe=(0,o.useCallback)(p||function(e){return e},[p]);function Le(e,t,n){(pe!==e||void 0!==t&&t!==ce)&&(me(e),n||(be(e<f.length-1),null==F||F(e)),void 0!==t&&de(t))}function Ie(e,t){V((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Ne(e){return K.get(Se(Te[e],e))}(0,d.Z)((function(){if(X&&"number"==typeof we&&Te){var e=ae,t=Te.length,n=t-1;if(!t)return void Le(0,null);for(var r=0;r<t;r+=1){var i=Ne(r);if(B&&(i=i||0),void 0===i){Le(r-1,void 0,!0);break}if(e+=i,0===n&&e<=X||r===n-1&&e+Ne(n)<=X){Le(n,null);break}if(e+we>X){Le(r-1,e-i-ae+ne);break}}N&&Ne(0)+ae>X&&de(null)}}),[X,K,ne,ae,Se,Te]);var Re=_e&&!!De.length,Me={};null!==ce&&Ae&&(Me={position:"absolute",left:ce,top:0});var Oe={prefixCls:xe,responsive:Ae,component:O,invalidate:ke},Fe=m?function(e,t){var n=Se(e,t);return o.createElement(w.Provider,{key:n,value:(0,i.Z)((0,i.Z)({},Oe),{},{order:t,item:e,itemKey:n,registerSize:Ie,display:t<=ge})},m(e,t))}:function(e,t){var n=Se(e,t);return o.createElement(g,(0,r.Z)({},Oe,{order:t,key:n,item:e,renderItem:Pe,itemKey:n,registerSize:Ie,display:t<=ge}))},je={order:Re?ge:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:function(e,t){re(t),$(ne)},display:Re},Be=T||I,ze=D?o.createElement(w.Provider,{value:(0,i.Z)((0,i.Z)({},Oe),je)},D(De)):o.createElement(g,(0,r.Z)({},Oe,je),"function"==typeof Be?Be(De):Be),He=o.createElement(M,(0,r.Z)({className:u()(!ke&&l,k),style:A,ref:t},j),Te.map(Fe),Ce?ze:null,N&&o.createElement(g,(0,r.Z)({},Oe,{responsive:Ee,responsiveDisabled:!Ae,order:ge,className:"".concat(xe,"-suffix"),registerSize:function(e,t){oe(t)},display:!0,style:Me}),N));return Ee?o.createElement(c.Z,{onResize:function(e,t){Y(t.clientWidth)},disabled:!Ae},He):He}var R=o.forwardRef(N);R.displayName="Overflow",R.Item=D,R.RESPONSIVE=P,R.INVALIDATE=L;var M=R},23425:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(20068),i=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),m=[10,20,50,100];var g=function(e){var t=e.pageSizeOptions,n=void 0===t?m:t,r=e.locale,i=e.changeSize,s=e.pageSize,a=e.goButton,l=e.quickGo,u=e.rootPrefixCls,c=e.disabled,h=e.buildOptionText,p=e.showSizeChanger,g=e.sizeChangerRender,v=f.useState(""),y=(0,o.Z)(v,2),_=y[0],b=y[1],x=function(){return!_||Number.isNaN(_)?void 0:Number(_)},w="function"==typeof h?h:function(e){return"".concat(e," ").concat(r.items_per_page)},E=function(e){""!==_&&(e.keyCode!==d.Z.ENTER&&"click"!==e.type||(b(""),null==l||l(x())))},A="".concat(u,"-options");if(!p&&!l)return null;var k=null,C=null,T=null;return p&&g&&(k=g({disabled:c,size:s,onSizeChange:function(e){null==i||i(Number(e))},"aria-label":r.page_size,className:"".concat(A,"-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&&(T="boolean"==typeof a?f.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:c,className:"".concat(A,"-quick-jumper-button")},r.jump_to_confirm):f.createElement("span",{onClick:E,onKeyUp:E},a)),C=f.createElement("div",{className:"".concat(A,"-quick-jumper")},r.jump_to,f.createElement("input",{disabled:c,type:"text",value:_,onChange:function(e){b(e.target.value)},onKeyUp:E,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(x()))},"aria-label":r.page}),r.page,T)),f.createElement("li",{className:A},k,C)};var v=function(e){var t=e.rootPrefixCls,n=e.page,i=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,r.Z)((0,r.Z)({},"".concat(d,"-active"),i),"".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 x(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var w=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,l=e.selectPrefixCls,m=void 0===l?"rc-select":l,w=e.className,E=e.current,A=e.defaultCurrent,k=void 0===A?1:A,C=e.total,T=void 0===C?0:C,D=e.pageSize,S=e.defaultPageSize,P=void 0===S?10:S,L=e.onChange,I=void 0===L?_:L,N=e.hideOnSinglePage,R=e.align,M=e.showPrevNextJumpers,O=void 0===M||M,F=e.showQuickJumper,j=e.showLessItems,B=e.showTitle,z=void 0===B||B,H=e.onShowSizeChange,Z=void 0===H?_:H,U=e.locale,Y=void 0===U?p.Z:U,X=e.style,G=e.totalBoundaryShowSizeChanger,W=void 0===G?50:G,K=e.disabled,V=e.simple,Q=e.showTotal,q=e.showSizeChanger,J=void 0===q?T>W:q,$=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?y:te,re=e.jumpPrevIcon,ie=e.jumpNextIcon,se=e.prevIcon,ae=e.nextIcon,oe=f.useRef(null),le=(0,c.Z)(10,{value:D,defaultValue:P}),ue=(0,o.Z)(le,2),ce=ue[0],de=ue[1],he=(0,c.Z)(1,{value:E,defaultValue:k,postState:function(e){return Math.max(1,Math.min(e,x(void 0,ce,T)))}}),fe=(0,o.Z)(he,2),pe=fe[0],me=fe[1],ge=f.useState(pe),ve=(0,o.Z)(ge,2),ye=ve[0],_e=ve[1];(0,f.useEffect)((function(){_e(pe)}),[pe]);var be=Math.max(1,pe-(j?3:5)),xe=Math.min(x(void 0,ce,T),pe+(j?3:5));function we(t,r){var i=t||f.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(i=f.createElement(t,(0,a.Z)({},e))),i}function Ee(e){var t=e.target.value,n=x(void 0,ce,T);return""===t?t:Number.isNaN(Number(t))?ye:t>=n?n:Number(t)}var Ae=T>ce&&F;function ke(e){var t=Ee(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(T)&&T>0}(e)&&!K){var t=x(void 0,ce,T),n=e;return e>t?n=t:e<1&&(n=1),n!==ye&&_e(n),me(n),null==I||I(n,ce),n}return pe}var Te=pe>1,De=pe<x(void 0,ce,T);function Se(){Te&&Ce(pe-1)}function Pe(){De&&Ce(pe+1)}function Le(){Ce(be)}function Ie(){Ce(xe)}function Ne(e,t){if("Enter"===e.key||e.charCode===d.Z.ENTER||e.keyCode===d.Z.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t.apply(void 0,r)}}function Re(e){"click"!==e.type&&e.keyCode!==d.Z.ENTER||Ce(ye)}var Me=null,Oe=(0,h.Z)(e,{aria:!0,data:!0}),Fe=Q&&f.createElement("li",{className:"".concat(n,"-total-text")},Q(T,[0===T?0:(pe-1)*ce+1,pe*ce>T?T:pe*ce])),je=null,Be=x(void 0,ce,T);if(N&&T<=ce)return null;var ze=[],He={rootPrefixCls:n,onClick:Ce,onKeyPress:Ne,showTitle:z,itemRender:ne,page:-1},Ze=pe-1>0?pe-1:0,Ue=pe+1<Be?pe+1:Be,Ye=F&&F.goButton,Xe="object"===(0,s.Z)(V)?V.readOnly:!V,Ge=Ye,We=null;V&&(Ye&&(Ge="boolean"==typeof Ye?f.createElement("button",{type:"button",onClick:Re,onKeyUp:Re},Y.jump_to_confirm):f.createElement("span",{onClick:Re,onKeyUp:Re},Ye),Ge=f.createElement("li",{title:z?"".concat(Y.jump_to).concat(pe,"/").concat(Be):null,className:"".concat(n,"-simple-pager")},Ge)),We=f.createElement("li",{title:z?"".concat(pe,"/").concat(Be):null,className:"".concat(n,"-simple-pager")},Xe?ye:f.createElement("input",{type:"text","aria-label":Y.jump_to,value:ye,disabled:K,onKeyDown:function(e){e.keyCode!==d.Z.UP&&e.keyCode!==d.Z.DOWN||e.preventDefault()},onKeyUp:ke,onChange:ke,onBlur:function(e){Ce(Ee(e))},size:3}),f.createElement("span",{className:"".concat(n,"-slash")},"/"),Be));var Ke=j?1:2;if(Be<=3+2*Ke){Be||ze.push(f.createElement(v,(0,i.Z)({},He,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Ve=1;Ve<=Be;Ve+=1)ze.push(f.createElement(v,(0,i.Z)({},He,{key:Ve,page:Ve,active:pe===Ve})))}else{var Qe=j?Y.prev_3:Y.prev_5,qe=j?Y.next_3:Y.next_5,Je=ne(be,"jump-prev",we(re,"prev page")),$e=ne(xe,"jump-next",we(ie,"next page"));O&&(Me=Je?f.createElement("li",{title:z?Qe:null,key:"prev",onClick:Le,tabIndex:0,onKeyDown:function(e){Ne(e,Le)},className:u()("".concat(n,"-jump-prev"),(0,r.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!re))},Je):null,je=$e?f.createElement("li",{title:z?qe:null,key:"next",onClick:Ie,tabIndex:0,onKeyDown:function(e){Ne(e,Ie)},className:u()("".concat(n,"-jump-next"),(0,r.Z)({},"".concat(n,"-jump-next-custom-icon"),!!ie))},$e):null);var et=Math.max(1,pe-Ke),tt=Math.min(pe+Ke,Be);pe-1<=Ke&&(tt=1+2*Ke),Be-pe<=Ke&&(et=Be-2*Ke);for(var nt=et;nt<=tt;nt+=1)ze.push(f.createElement(v,(0,i.Z)({},He,{key:nt,page:nt,active:pe===nt})));if(pe-1>=2*Ke&&3!==pe&&(ze[0]=f.cloneElement(ze[0],{className:u()("".concat(n,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(Me)),Be-pe>=2*Ke&&pe!==Be-2){var rt=ze[ze.length-1];ze[ze.length-1]=f.cloneElement(rt,{className:u()("".concat(n,"-item-before-jump-next"),rt.props.className)}),ze.push(je)}1!==et&&ze.unshift(f.createElement(v,(0,i.Z)({},He,{key:1,page:1}))),tt!==Be&&ze.push(f.createElement(v,(0,i.Z)({},He,{key:Be,page:Be})))}var it=function(e){var t=ne(e,"prev",we(se,"prev page"));return f.isValidElement(t)?f.cloneElement(t,{disabled:!Te}):t}(Ze);if(it){var st=!Te||!Be;it=f.createElement("li",{title:z?Y.prev_page:null,onClick:Se,tabIndex:st?null:0,onKeyDown:function(e){Ne(e,Se)},className:u()("".concat(n,"-prev"),(0,r.Z)({},"".concat(n,"-disabled"),st)),"aria-disabled":st},it)}var at,ot,lt=function(e){var t=ne(e,"next",we(ae,"next page"));return f.isValidElement(t)?f.cloneElement(t,{disabled:!De}):t}(Ue);lt&&(V?(at=!De,ot=Te?0:null):ot=(at=!De||!Be)?null:0,lt=f.createElement("li",{title:z?Y.next_page:null,onClick:Pe,tabIndex:ot,onKeyDown:function(e){Ne(e,Pe)},className:u()("".concat(n,"-next"),(0,r.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},lt));var ut=u()(n,w,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(n,"-start"),"start"===R),"".concat(n,"-center"),"center"===R),"".concat(n,"-end"),"end"===R),"".concat(n,"-simple"),V),"".concat(n,"-disabled"),K));return f.createElement("ul",(0,i.Z)({className:ut,style:X,ref:oe},Oe),Fe,it,V?We:ze,lt,f.createElement(g,{locale:Y,rootPrefixCls:n,disabled:K,selectPrefixCls:m,changeSize:function(e){var t=x(e,ce,T),n=pe>t&&0!==t?t:pe;de(e),_e(n),null==Z||Z(pe,e),me(n),null==I||I(n,e)},pageSize:ce,pageSizeOptions:ee,quickGo:Ae?Ce:null,goButton:Ge,showSizeChanger:J,sizeChangerRender:$}))}},48365:function(e,t,n){"use strict";var r=n(56656),i=n.n(r),s=n(27112),a=n.n(s),o=n(54449),l=n.n(o),u=n(53501),c=n.n(u),d=n(36867),h=n.n(d),f=n(71912),p=n.n(f),m=n(48228),g=n.n(m);i().extend(g()),i().extend(p()),i().extend(a()),i().extend(l()),i().extend(c()),i().extend(h()),i().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var v={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},y=function(e){return v[e]||e.split("_")[0]},_={getNow:function(){var e=i()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return i()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return i()().locale(y(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(y(e)).weekday(0)},getWeek:function(e,t){return t.locale(y(e)).week()},getShortWeekDays:function(e){return i()().locale(y(e)).localeData().weekdaysMin()},getShortMonths:function(e){return i()().locale(y(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(y(e)).format(n)},parse:function(e,t,n){for(var r=y(e),s=0;s<n.length;s+=1){var a=n[s],o=t;if(a.includes("wo")||a.includes("Wo")){for(var l=o.split("-")[0],u=o.split("-")[1],c=i()(l,"YYYY").startOf("year").locale(r),d=0;d<=52;d+=1){var h=c.add(d,"week");if(h.format("Wo")===u)return h}return null}var f=i()(o,a,!0).locale(r);if(f.isValid())return f}return null}}};t.Z=_},8571:function(e,t,n){"use strict";n.d(t,{Sq:function(){return pt},ZP:function(){return xt}});var r=n(54476),i=n(94480),s=n(33885),a=n(42978),o=n(70425),l=n(34280),u=n(2738),c=n(26112),d=n(48736),h=n(59301),f=n(20068),p=n(65030),m=n(92310),g=n.n(m);var v=h.createContext(null),y={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var _=function(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,s=e.transitionName,a=e.getPopupContainer,o=e.children,l=e.range,u=e.placement,c=e.builtinPlacements,d=void 0===c?y:c,m=e.direction,_=e.visible,b=e.onClose,x=h.useContext(v).prefixCls,w="".concat(x,"-dropdown"),E=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(u,"rtl"===m);return h.createElement(p.Z,{showAction:[],hideAction:["click"],popupPlacement:E,builtinPlacements:d,prefixCls:w,popupTransitionName:s,popup:t,popupAlign:i,popupVisible:_,popupClassName:g()(r,(0,f.Z)((0,f.Z)({},"".concat(w,"-range"),l),"".concat(w,"-rtl"),"rtl"===m)),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(e){e||b()}},o)};function b(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function x(e){return null==e?[]:Array.isArray(e)?e:[e]}function w(e,t,n){var r=(0,i.Z)(e);return r[t]=n,r}function E(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function A(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function k(e,t,n){var r=void 0!==n?n:t[t.length-1],i=t.find((function(t){return e[t]}));return r!==i?e[i]:void 0}function C(e){return E(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function T(e,t,n,r){var i=h.useMemo((function(){return e||function(e,r){var i=e;return t&&"date"===r.type?t(i,r.today):n&&"month"===r.type?n(i,r.locale):r.originNode}}),[e,n,t]);return h.useCallback((function(e,t){return i(e,(0,s.Z)((0,s.Z)({},t),{},{range:r}))}),[i,r])}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=h.useState([!1,!1]),i=(0,a.Z)(r,2),s=i[0],o=i[1],l=function(e,t){o((function(n){return w(n,t,e)}))},u=h.useMemo((function(){return s.map((function(r,i){if(r)return!0;var s=e[i];return!!s&&(!n[i]&&!s||!(!s||!t(s,{activeIndex:i})))}))}),[e,s,t,n]);return[u,l]}function S(e,t,n,r,i){var s="",a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),s=a.join(":"),r&&(s+=".SSS"),i&&(s+=" A"),s}function P(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,a=t.showMillisecond,o=t.use12Hours;return h.useMemo((function(){return function(e,t,n,r,i,a){var o=e.fieldDateTimeFormat,l=e.fieldDateFormat,u=e.fieldTimeFormat,c=e.fieldMonthFormat,d=e.fieldYearFormat,h=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,_=S(t,n,r,i,a);return(0,s.Z)((0,s.Z)({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(_),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:u||_,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}(e,n,r,i,a,o)}),[e,n,r,i,a,o])}var L=n(76190);function I(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var N=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function R(e){return e&&"string"==typeof e}function M(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function O(e,t,n,r,i){var s=t,a=n,o=r;if(e||s||a||o||i){if(e){var l,u,c,d=[s,a,o].some((function(e){return!1===e})),h=[s,a,o].some((function(e){return!0===e})),f=!!d||!h;s=null!==(l=s)&&void 0!==l?l:f,a=null!==(u=a)&&void 0!==u?u:f,o=null!==(c=o)&&void 0!==c?c:f}}else s=!0,a=!0,o=!0;return[s,a,o,i]}function F(e){var t=e.showTime,n=function(e){var t=E(e,N),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i="object"===(0,L.Z)(i)?i.format:i),"time"===r&&(t.format=i),[t,i]}(e),r=(0,a.Z)(n,2),i=r[0],o=r[1],l=t&&"object"===(0,L.Z)(t)?t:{},u=(0,s.Z)((0,s.Z)({defaultOpenValue:l.defaultOpenValue||l.defaultValue},i),l),c=u.showMillisecond,d=u.showHour,h=u.showMinute,f=u.showSecond,p=O(M(d,h,f,c),d,h,f,c),m=(0,a.Z)(p,3);return d=m[0],h=m[1],f=m[2],[u,(0,s.Z)((0,s.Z)({},u),{},{showHour:d,showMinute:h,showSecond:f,showMillisecond:c}),u.format,o]}function j(e,t,n,r,i){if("datetime"===e||"time"===e){for(var o=r,l=A(e,i,null),u=[t,n],c=0;c<u.length;c+=1){var d=x(u[c])[0];if(R(d)){l=d;break}}var h=o.showHour,f=o.showMinute,p=o.showSecond,m=o.showMillisecond,g=I(l,["a","A","LT","LLL","LTS"],o.use12Hours),v=M(h,f,p,m);v||(h=I(l,["H","h","k","LT","LLL"]),f=I(l,["m","LT","LLL"]),p=I(l,["s","LTS"]),m=I(l,["SSS"]));var y=O(v,h,f,p,m),_=(0,a.Z)(y,3);h=_[0],f=_[1],p=_[2];var b=t||S(h,f,p,m,g);return(0,s.Z)((0,s.Z)({},o),{},{format:b,showHour:h,showMinute:f,showSecond:p,showMillisecond:m,use12Hours:g})}return null}function B(e,t,n){return!1===t?null:(t&&"object"===(0,L.Z)(t)?t:{}).clearIcon||n||h.createElement("span",{className:"".concat(e,"-clear-btn")})}function z(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function H(e,t,n){return z(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function Z(e,t,n){return z(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function U(e,t){return Math.floor(e.getMonth(t)/3)+1}function Y(e,t,n){return z(t,n,(function(){return Z(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function X(e,t,n){return z(t,n,(function(){return Z(e,t,n)&&Y(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function G(e,t,n){return z(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function W(e,t,n){return z(t,n,(function(){return X(e,t,n)&&G(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function K(e,t,n,r){return z(n,r,(function(){var i=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return Z(e,i,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function V(e,t,n,r,i){switch(i){case"date":return X(e,n,r);case"week":return K(e,t.locale,n,r);case"month":return Y(e,n,r);case"quarter":return function(e,t,n){return z(t,n,(function(){return Z(e,t,n)&&U(e,t)===U(e,n)}))}(e,n,r);case"year":return Z(e,n,r);case"decade":return H(e,n,r);case"time":return G(e,n,r);default:return W(e,n,r)}}function Q(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function q(e,t,n,r,i){return!!V(e,t,n,r,i)||e.isAfter(n,r)}function J(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?"function"==typeof i?i(e):n.locale.format(r.locale,e,i):""}function $(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,s){r=n?e[t](r,e[i[s]](n)):e[t](r,0)})),r}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=h.useMemo((function(){var n=e?x(e):e;return t&&n&&(n[1]=n[1]||n[0]),n}),[e,t]);return n}function te(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,l=void 0===i?"date":i,u=e.prefixCls,c=void 0===u?"rc-picker":u,d=e.styles,f=void 0===d?{}:d,p=e.classNames,m=void 0===p?{}:p,g=e.order,v=void 0===g||g,y=e.components,_=void 0===y?{}:y,b=e.inputRender,w=e.allowClear,E=e.clearIcon,k=e.needConfirm,C=e.multiple,T=e.format,D=e.inputReadOnly,S=e.disabledDate,I=e.minDate,N=e.maxDate,R=e.showTime,M=e.value,O=e.defaultValue,z=e.pickerValue,H=e.defaultPickerValue,Z=ee(M),U=ee(O),Y=ee(z),X=ee(H),G="date"===l&&R?"datetime":l,W="time"===G||"datetime"===G,K=W||C,Q=null!=k?k:W,q=F(e),J=(0,a.Z)(q,4),$=J[0],te=J[1],ne=J[2],re=J[3],ie=P(r,te),se=h.useMemo((function(){return j(G,ne,re,$,ie)}),[G,ne,re,$,ie]);var ae=h.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{prefixCls:c,locale:ie,picker:l,styles:f,classNames:m,order:v,components:(0,s.Z)({input:b},_),clearIcon:B(c,w,E),showTime:se,value:Z,defaultValue:U,pickerValue:Y,defaultPickerValue:X},null==t?void 0:t())}),[e]),oe=function(e,t,n){return h.useMemo((function(){var r=x(A(e,t,n)),i=r[0],s="object"===(0,L.Z)(i)&&"mask"===i.type?i.format:null;return[r.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),s]}),[e,t,n])}(G,ie,T),le=(0,a.Z)(oe,2),ue=le[0],ce=le[1],de=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(ue,D,C),he=function(e,t,n,r,i){return(0,o.zX)((function(s,a){return!(!n||!n(s,a))||!(!r||!e.isAfter(r,s)||V(e,t,r,s,a.type))||!(!i||!e.isAfter(s,i)||V(e,t,i,s,a.type))}))}(n,r,S,I,N),fe=function(e,t,n,r){return(0,o.zX)((function(i,a){var o=(0,s.Z)({type:t},a);if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if(("date"===t||"time"===t)&&r){var l,u=a&&1===a.activeIndex?"end":"start",c=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,i,u,{from:o.from}))||{},d=c.disabledHours,h=c.disabledMinutes,f=c.disabledSeconds,p=c.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,v=r.disabledSeconds,y=d||m,_=h||g,b=f||v,x=e.getHour(i),w=e.getMinute(i),E=e.getSecond(i),A=e.getMillisecond(i);if(y&&y().includes(x))return!0;if(_&&_(x).includes(w))return!0;if(b&&b(x,w).includes(E))return!0;if(p&&p(x,w,E).includes(A))return!0}return!1}))}(n,l,he,se);return[h.useMemo((function(){return(0,s.Z)((0,s.Z)({},ae),{},{needConfirm:Q,inputReadOnly:de,disabledDate:he})}),[ae,Q,de,he]),G,K,ue,ce,fe]}var ne=n(16089);function re(e,t,n){var r=(0,o.C8)(t,{value:e}),i=(0,a.Z)(r,2),s=i[0],l=i[1],u=h.useRef(e),c=h.useRef(),d=function(){ne.Z.cancel(c.current)},f=(0,o.zX)((function(){l(u.current),n&&s!==u.current&&n(u.current)})),p=(0,o.zX)((function(e,t){d(),u.current=e,e||t?f():c.current=(0,ne.Z)(f)}));return h.useEffect((function(){return d}),[]),[s,p]}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=!n.every((function(e){return e}))&&e,s=re(i,t||!1,r),o=(0,a.Z)(s,2),l=o[0],u=o[1];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!l||u(e,t.force)}return[l,c]}function se(e){var t=h.useRef();return h.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}})),t}function ae(e,t){return h.useMemo((function(){return e||(t?((0,d.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map((function(e){var t=(0,a.Z)(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,t])}function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=h.useRef(t);r.current=t,(0,l.o)((function(){if(!e){var t=(0,ne.Z)((function(){r.current(e)}),n);return function(){ne.Z.cancel(t)}}r.current(e)}),[e])}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h.useState(0),i=(0,a.Z)(r,2),s=i[0],o=i[1],l=h.useState(!1),u=(0,a.Z)(l,2),c=u[0],d=u[1],f=h.useRef([]),p=h.useRef(null),m=h.useRef(null),g=function(e){p.current=e},v=function(e){return p.current===e},y=function(e){d(e)},_=function(e){return e&&(m.current=e),m.current},b=function(n){var r=f.current,i=new Set(r.filter((function(e){return n[e]||t[e]}))),s=0===r[r.length-1]?1:0;return i.size>=2||e[s]?null:s};return oe(c||n,(function(){c||(f.current=[],g(null))})),h.useEffect((function(){c&&f.current.push(s)}),[c,s]),[c,y,_,s,o,b,f.current,g,v]}function ue(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ce=[];function de(e,t,n,r,i,s,u,c){var d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ce,f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:ce,p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ce,m=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,v=arguments.length>13?arguments[13]:void 0,y="time"===u,_=s||0,b=function(t){var r=e.getNow();return y&&(r=$(e,r)),d[t]||n[t]||r},x=(0,a.Z)(f,2),w=x[0],E=x[1],A=(0,o.C8)((function(){return b(0)}),{value:w}),k=(0,a.Z)(A,2),C=k[0],T=k[1],D=(0,o.C8)((function(){return b(1)}),{value:E}),S=(0,a.Z)(D,2),P=S[0],L=S[1],I=h.useMemo((function(){var t=[C,P][_];return y?t:$(e,t,p[_])}),[y,C,P,_,e,p]),N=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel",s=[T,L][_];s(n);var a=[C,P];a[_]=n,!m||V(e,t,C,a[0],u)&&V(e,t,P,a[1],u)||m(a,{source:i,range:1===_?"end":"start",mode:r})},R=function(n,r){if(c){var i={date:"month",week:"month",month:"year",quarter:"year"}[u];if(i&&!V(e,t,n,r,i))return ue(e,u,r,-1);if("year"===u&&n)if(Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return ue(e,u,r,-1)}return r},M=h.useRef(null);return(0,l.Z)((function(){if(i&&!d[_]){var t=y?null:e.getNow();if(null!==M.current&&M.current!==_?t=[C,P][1^_]:n[_]?t=0===_?n[0]:R(n[0],n[1]):n[1^_]&&(t=n[1^_]),t){g&&e.isAfter(g,t)&&(t=g);var r=c?ue(e,u,t,1):t;v&&e.isAfter(r,v)&&(t=c?ue(e,u,v,-1):v),N(t,"reset")}}}),[i,_,n[_]]),h.useEffect((function(){M.current=i?_:null}),[i,_]),(0,l.Z)((function(){i&&d&&d[_]&&N(d[_],"reset")}),[i,_]),[I,N]}function he(e,t){var n=h.useRef(e),r=h.useState({}),i=(0,a.Z)(r,2)[1],s=function(e){return e&&void 0!==t?t:n.current};return[s,function(e){n.current=e,i({})},s(!0)]}var fe=[];function pe(e,t,n){return[function(r){return r.map((function(r){return J(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),i=-1,s=0;s<r;s+=1){var a=t[s]||null,o=n[s]||null;if(a!==o&&!W(e,a,o)){i=s;break}}return[i<0,0!==i]}]}function me(e,t){return(0,i.Z)(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function ge(e,t,n,r,s,l,u,c,d){var f=(0,o.C8)(l,{value:u}),p=(0,a.Z)(f,2),m=p[0],g=p[1],v=m||fe,y=function(e){var t=he(e),n=(0,a.Z)(t,2),r=n[0],i=n[1],s=(0,o.zX)((function(){i(e)}));return h.useEffect((function(){s()}),[e]),[r,i]}(v),_=(0,a.Z)(y,2),b=_[0],x=_[1],w=pe(e,t,n),E=(0,a.Z)(w,2),A=E[0],k=E[1],C=(0,o.zX)((function(t){var n=(0,i.Z)(t);if(r)for(var o=0;o<2;o+=1)n[o]=n[o]||null;else s&&(n=me(n.filter((function(e){return e})),e));var l=k(b(),n),u=(0,a.Z)(l,2),d=u[0],h=u[1];if(!d&&(x(n),c)){var f=A(n);c(n,f,{range:h?"end":"start"})}}));return[v,g,b,C,function(){d&&d(b())}]}function ve(e,t,n,r,s,l,u,c,d,f){var p=e.generateConfig,m=e.locale,g=e.picker,v=e.onChange,y=e.allowEmpty,_=e.order,b=!l.some((function(e){return e}))&&_,x=pe(p,m,u),E=(0,a.Z)(x,2),A=E[0],k=E[1],C=he(t),T=(0,a.Z)(C,2),D=T[0],S=T[1],P=(0,o.zX)((function(){S(t)}));h.useEffect((function(){P()}),[t]);var L=(0,o.zX)((function(e){var r=null===e,o=(0,i.Z)(e||D());if(r)for(var u=Math.max(l.length,o.length),c=0;c<u;c+=1)l[c]||(o[c]=null);b&&o[0]&&o[1]&&(o=me(o,p)),s(o);var d=o,h=(0,a.Z)(d,2),x=h[0],w=h[1],E=!x,C=!w,T=!y||(!E||y[0])&&(!C||y[1]),S=!_||E||C||V(p,m,x,w,g)||p.isAfter(w,x),P=(l[0]||!x||!f(x,{activeIndex:0}))&&(l[1]||!w||!f(w,{from:x,activeIndex:1})),L=r||T&&S&&P;if(L){n(o);var I=k(o,t),N=(0,a.Z)(I,1)[0];v&&!N&&v(r&&o.every((function(e){return!e}))?null:o,A(o))}return L})),I=(0,o.zX)((function(e,t){var n=w(D(),e,r()[e]);S(n),t&&L()})),N=!c&&!d;return oe(!N,(function(){N&&(L(),s(t),P())}),2),[I,L]}function ye(e,t,n,r,i){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!i&&("date"===e||"time"===e))}var _e=n(29301);function be(e,t,n,r,s,a){var o=e;function l(e,t,n){var r=a[e](o),s=n.find((function(e){return e.value===r}));if(!s||s.disabled){var l=n.filter((function(e){return!e.disabled})),u=(0,i.Z)(l).reverse().find((function(e){return e.value<=r}))||l[0];u&&(r=u.value,o=a[t](o,r))}return r}var u=l("getHour","setHour",t()),c=l("getMinute","setMinute",n(u)),d=l("getSecond","setSecond",r(u,c));return l("getMillisecond","setMillisecond",s(u,c,d)),o}function xe(){return[]}function we(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],o=n>=1?0|n:1,l=e;l<=t;l+=o){var u=i.includes(l);u&&r||a.push({label:b(l,s),value:l,disabled:u})}return a}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,o=r.hourStep,l=void 0===o?1:o,u=r.minuteStep,c=void 0===u?1:u,d=r.secondStep,f=void 0===d?1:d,p=r.millisecondStep,m=void 0===p?100:p,g=r.hideDisabledOptions,v=r.disabledTime,y=r.disabledHours,_=r.disabledMinutes,x=r.disabledSeconds,w=h.useMemo((function(){return n||e.getNow()}),[n,e]),E=h.useCallback((function(e){var t=(null==v?void 0:v(e))||{};return[t.disabledHours||y||xe,t.disabledMinutes||_||xe,t.disabledSeconds||x||xe,t.disabledMilliseconds||xe]}),[v,y,_,x]),A=h.useMemo((function(){return E(w)}),[w,E]),k=(0,a.Z)(A,4),C=k[0],T=k[1],D=k[2],S=k[3],P=h.useCallback((function(e,t,n,r){var a=we(0,23,l,g,e());return[i?a.map((function(e){return(0,s.Z)((0,s.Z)({},e),{},{label:b(e.value%12||12,2)})})):a,function(e){return we(0,59,c,g,t(e))},function(e,t){return we(0,59,f,g,n(e,t))},function(e,t,n){return we(0,999,m,g,r(e,t,n),3)}]}),[g,l,i,m,c,f]),L=h.useMemo((function(){return P(C,T,D,S)}),[P,C,T,D,S]),I=(0,a.Z)(L,4),N=I[0],R=I[1],M=I[2],O=I[3],F=function(t,n){var r=function(){return N},i=R,s=M,o=O;if(n){var l=E(n),u=(0,a.Z)(l,4),c=u[0],d=u[1],h=u[2],f=u[3],p=P(c,d,h,f),m=(0,a.Z)(p,4),g=m[0];r=function(){return g},i=m[1],s=m[2],o=m[3]}return be(t,r,i,s,o,e)};return[F,N,R,M,O]}function Ae(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,s=e.showTime,o=e.onSubmit,l=e.onNow,u=e.invalid,c=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=h.useContext(v),m=p.prefixCls,y=p.locale,_=p.button,b=void 0===_?"button":_,x=d.getNow(),w=Ee(d,s,x),E=(0,a.Z)(w,1)[0],A=null==r?void 0:r(t),k=f(x,{type:t}),C="".concat(m,"-now"),T="".concat(C,"-btn"),D=i&&h.createElement("li",{className:C},h.createElement("a",{className:g()(T,k&&"".concat(T,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=E(x);l(e)}}},"date"===n?y.today:y.now)),S=c&&h.createElement("li",{className:"".concat(m,"-ok")},h.createElement(b,{disabled:u,onClick:o},y.ok)),P=(D||S)&&h.createElement("ul",{className:"".concat(m,"-ranges")},D,S);return A||P?h.createElement("div",{className:"".concat(m,"-footer")},A&&h.createElement("div",{className:"".concat(m,"-footer-extra")},A),P):null}function ke(e,t,n){return function(r,s){var a=r.findIndex((function(r){return V(e,t,r,s,n)}));if(-1===a)return[].concat((0,i.Z)(r),[s]);var o=(0,i.Z)(r);return o.splice(a,1),o}}var Ce=h.createContext(null);function Te(){return h.useContext(Ce)}function De(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,s=e.disabledDate,a=e.minDate,o=e.maxDate,l=e.cellRender,u=e.hoverValue,c=e.hoverRangeValue,d=e.onHover,h=e.values,f=e.pickerValue,p=e.onSelect,m=e.prevIcon,g=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,_=r.getNow();return[{now:_,values:h,pickerValue:f,prefixCls:n,disabledDate:s,minDate:a,maxDate:o,cellRender:l,hoverValue:u,hoverRangeValue:c,onHover:d,locale:i,generateConfig:r,onSelect:p,panelType:t,prevIcon:m,nextIcon:g,superPrevIcon:v,superNextIcon:y},_]}var Se=h.createContext({});function Pe(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,o=e.prefixColumn,l=e.rowClassName,u=e.titleFormat,c=e.getCellText,d=e.getCellClassName,p=e.headerCells,m=e.cellSelection,v=void 0===m||m,y=e.disabledDate,_=Te(),b=_.prefixCls,x=_.panelType,w=_.now,E=_.disabledDate,A=_.cellRender,k=_.onHover,C=_.hoverValue,T=_.hoverRangeValue,D=_.generateConfig,S=_.values,P=_.locale,L=_.onSelect,I=y||E,N="".concat(b,"-cell"),R=h.useContext(Se).onCellDblClick,M=[],O=0;O<t;O+=1){for(var F=[],j=void 0,B=function(){var e=i(r,O*n+z),t=null==I?void 0:I(e,{type:x});0===z&&(j=e,o&&F.push(o(j)));var l=!1,p=!1,m=!1;if(v&&T){var y=(0,a.Z)(T,2),_=y[0],E=y[1];l=Q(D,_,E,e),p=V(D,P,e,_,x),m=V(D,P,e,E,x)}var M,B=u?J(e,{locale:P,format:u,generateConfig:D}):void 0,H=h.createElement("div",{className:"".concat(N,"-inner")},c(e));F.push(h.createElement("td",{key:z,title:B,className:g()(N,(0,s.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(N,"-disabled"),t),"".concat(N,"-hover"),(C||[]).some((function(t){return V(D,P,e,t,x)}))),"".concat(N,"-in-range"),l&&!p&&!m),"".concat(N,"-range-start"),p),"".concat(N,"-range-end"),m),"".concat(b,"-cell-selected"),!T&&"week"!==x&&(M=e,S.some((function(e){return e&&V(D,P,M,e,x)})))),d(e))),onClick:function(){t||L(e)},onDoubleClick:function(){!t&&R&&R()},onMouseEnter:function(){t||null==k||k(e)},onMouseLeave:function(){t||null==k||k(null)}},A?A(e,{prefixCls:b,originNode:H,today:w,type:x,locale:P}):H))},z=0;z<n;z+=1)B();M.push(h.createElement("tr",{key:O,className:null==l?void 0:l(j)},F))}return h.createElement("div",{className:"".concat(b,"-body")},h.createElement("table",{className:"".concat(b,"-content")},p&&h.createElement("thead",null,h.createElement("tr",null,p)),h.createElement("tbody",null,M)))}var Le={visibility:"hidden"};var Ie=function(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,s=e.getEnd,a=e.children,o=Te(),l=o.prefixCls,u=o.prevIcon,c=void 0===u?"‹":u,d=o.nextIcon,f=void 0===d?"›":d,p=o.superPrevIcon,m=void 0===p?"«":p,v=o.superNextIcon,y=void 0===v?"»":v,_=o.minDate,b=o.maxDate,x=o.generateConfig,w=o.locale,E=o.pickerValue,A=o.panelType,k="".concat(l,"-header"),C=h.useContext(Se),T=C.hidePrev,D=C.hideNext,S=C.hideHeader,P=h.useMemo((function(){if(!_||!t||!s)return!1;var e=s(t(-1,E));return!q(x,w,e,_,A)}),[_,t,E,s,x,w,A]),L=h.useMemo((function(){if(!_||!n||!s)return!1;var e=s(n(-1,E));return!q(x,w,e,_,A)}),[_,n,E,s,x,w,A]),I=h.useMemo((function(){if(!b||!t||!i)return!1;var e=i(t(1,E));return!q(x,w,b,e,A)}),[b,t,E,i,x,w,A]),N=h.useMemo((function(){if(!b||!n||!i)return!1;var e=i(n(1,E));return!q(x,w,b,e,A)}),[b,n,E,i,x,w,A]),R=function(e){t&&r(t(e,E))},M=function(e){n&&r(n(e,E))};if(S)return null;var O="".concat(k,"-prev-btn"),F="".concat(k,"-next-btn"),j="".concat(k,"-super-prev-btn"),B="".concat(k,"-super-next-btn");return h.createElement("div",{className:k},n&&h.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return M(-1)},tabIndex:-1,className:g()(j,L&&"".concat(j,"-disabled")),disabled:L,style:T?Le:{}},m),t&&h.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return R(-1)},tabIndex:-1,className:g()(O,P&&"".concat(O,"-disabled")),disabled:P,style:T?Le:{}},c),h.createElement("div",{className:"".concat(k,"-view")},a),t&&h.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return R(1)},tabIndex:-1,className:g()(F,I&&"".concat(F,"-disabled")),disabled:I,style:D?Le:{}},f),n&&h.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return M(1)},tabIndex:-1,className:g()(B,N&&"".concat(B,"-disabled")),disabled:N,style:D?Le:{}},y))};function Ne(e){var t=e.prefixCls,n=e.panelName,i=void 0===n?"date":n,s=e.locale,o=e.generateConfig,l=e.pickerValue,u=e.onPickerValueChange,c=e.onModeChange,d=e.mode,p=void 0===d?"date":d,m=e.disabledDate,v=e.onSelect,y=e.onHover,_=e.showWeek,b="".concat(t,"-").concat(i,"-panel"),x="".concat(t,"-cell"),w="week"===p,E=De(e,p),A=(0,a.Z)(E,2),k=A[0],C=A[1],T=o.locale.getWeekFirstDay(s.locale),D=o.setDate(l,1),S=function(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),s=t.getWeekDay(i),a=t.addDate(i,r-s);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(s.locale,o,D),P=o.getMonth(l),L=(void 0===_?w:_)?function(e){var t=null==m?void 0:m(e,{type:"week"});return h.createElement("td",{key:"week",className:g()(x,"".concat(x,"-week"),(0,f.Z)({},"".concat(x,"-disabled"),t)),onClick:function(){t||v(e)},onMouseEnter:function(){t||null==y||y(e)},onMouseLeave:function(){t||null==y||y(null)}},h.createElement("div",{className:"".concat(x,"-inner")},o.locale.getWeek(s.locale,e)))}:null,I=[],N=s.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(s.locale):[]);L&&I.push(h.createElement("th",{key:"empty"},h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},s.week)));for(var R=0;R<7;R+=1)I.push(h.createElement("th",{key:R},N[(R+T)%7]));var M=s.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(s.locale):[]),O=h.createElement("button",{type:"button","aria-label":s.yearSelect,key:"year",onClick:function(){c("year",l)},tabIndex:-1,className:"".concat(t,"-year-btn")},J(l,{locale:s,format:s.yearFormat,generateConfig:o})),F=h.createElement("button",{type:"button","aria-label":s.monthSelect,key:"month",onClick:function(){c("month",l)},tabIndex:-1,className:"".concat(t,"-month-btn")},s.monthFormat?J(l,{locale:s,format:s.monthFormat,generateConfig:o}):M[P]),j=s.monthBeforeYear?[F,O]:[O,F];return h.createElement(Ce.Provider,{value:k},h.createElement("div",{className:g()(b,_&&"".concat(b,"-show-week"))},h.createElement(Ie,{offset:function(e){return o.addMonth(l,e)},superOffset:function(e){return o.addYear(l,e)},onChange:u,getStart:function(e){return o.setDate(e,1)},getEnd:function(e){var t=o.setDate(e,1);return t=o.addMonth(t,1),o.addDate(t,-1)}},j),h.createElement(Pe,(0,r.Z)({titleFormat:s.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:I,getCellDate:function(e,t){return o.addDate(e,t)},getCellText:function(e){return J(e,{locale:s,format:s.cellDateFormat,generateConfig:o})},getCellClassName:function(e){return(0,f.Z)((0,f.Z)({},"".concat(t,"-cell-in-view"),Y(o,e,l)),"".concat(t,"-cell-today"),X(o,e,C))},prefixColumn:L,cellSelection:!w}))))}var Re=n(29194);function Me(e){return e.map((function(e){return[e.value,e.label,e.disabled].join(",")})).join(";")}function Oe(e){var t=e.units,n=e.value,r=e.optionalValue,s=e.type,u=e.onChange,c=e.onHover,d=e.onDblClick,p=e.changeOnScroll,m=Te(),v=m.prefixCls,y=m.cellRender,_=m.now,b=m.locale,x="".concat(v,"-time-panel"),w="".concat(v,"-time-panel-cell"),E=h.useRef(null),A=h.useRef(),k=function(){clearTimeout(A.current)},C=function(e,t){var n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),s=function(){ne.Z.cancel(r.current),n.current=!1},a=h.useRef();return[(0,o.zX)((function(){var o=e.current;if(i.current=null,a.current=0,o){var l=o.querySelector('[data-value="'.concat(t,'"]')),u=o.querySelector("li");l&&u&&function e(){s(),n.current=!0,a.current+=1;var t=o.scrollTop,c=u.offsetTop,d=l.offsetTop,h=d-c;if(0===d&&l!==u||!(0,Re.Z)(o))a.current<=5&&(r.current=(0,ne.Z)(e));else{var f=t+.3333333333333333*(h-t),p=Math.abs(h-f);if(null!==i.current&&i.current<p)s();else{if(i.current=p,p<=1)return o.scrollTop=h,void s();o.scrollTop=f,r.current=(0,ne.Z)(e)}}}()}})),s,function(){return n.current}]}(E,null!=n?n:r),T=(0,a.Z)(C,3),D=T[0],S=T[1],P=T[2];(0,l.Z)((function(){return D(),k(),function(){S(),k()}}),[n,r,Me(t)]);var L="".concat(x,"-column");return h.createElement("ul",{className:L,ref:E,"data-type":s,onScroll:function(e){k();var n=e.target;!P()&&p&&(A.current=setTimeout((function(){var e=E.current,r=e.querySelector("li").offsetTop,s=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})).map((function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)})),a=Math.min.apply(Math,(0,i.Z)(s)),o=s.findIndex((function(e){return e===a})),l=t[o];l&&!l.disabled&&u(l.value)}),300))}},t.map((function(e){var t=e.label,r=e.value,i=e.disabled,a=h.createElement("div",{className:"".concat(w,"-inner")},t);return h.createElement("li",{key:r,className:g()(w,(0,f.Z)((0,f.Z)({},"".concat(w,"-selected"),n===r),"".concat(w,"-disabled"),i)),onClick:function(){i||u(r)},onDoubleClick:function(){!i&&d&&d()},onMouseEnter:function(){c(r)},onMouseLeave:function(){c(null)},"data-value":r},y?y(r,{prefixCls:v,originNode:a,today:_,type:"time",subType:s,locale:b}):a)})))}function Fe(e){return e<12}function je(e){var t=e.showHour,n=e.showMinute,i=e.showSecond,s=e.showMillisecond,o=e.use12Hours,l=e.changeOnScroll,u=Te(),c=u.prefixCls,d=u.values,f=u.generateConfig,p=u.locale,m=u.onSelect,g=u.onHover,v=void 0===g?function(){}:g,y=u.pickerValue,_=(null==d?void 0:d[0])||null,b=h.useContext(Se).onCellDblClick,x=Ee(f,e,_),w=(0,a.Z)(x,5),E=w[0],A=w[1],k=w[2],C=w[3],T=w[4],D=function(e){return[_&&f[e](_),y&&f[e](y)]},S=D("getHour"),P=(0,a.Z)(S,2),L=P[0],I=P[1],N=D("getMinute"),R=(0,a.Z)(N,2),M=R[0],O=R[1],F=D("getSecond"),j=(0,a.Z)(F,2),B=j[0],z=j[1],H=D("getMillisecond"),Z=(0,a.Z)(H,2),U=Z[0],Y=Z[1],X=null===L?null:Fe(L)?"am":"pm",G=h.useMemo((function(){return o?Fe(L)?A.filter((function(e){return Fe(e.value)})):A.filter((function(e){return!Fe(e.value)})):A}),[L,A,o]),W=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},K=W(A,L),V=h.useMemo((function(){return k(K)}),[k,K]),Q=W(V,M),q=h.useMemo((function(){return C(K,Q)}),[C,K,Q]),$=W(q,B),ee=h.useMemo((function(){return T(K,Q,$)}),[T,K,Q,$]),te=W(ee,U),ne=h.useMemo((function(){if(!o)return[];var e=f.getNow(),t=f.setHour(e,6),n=f.setHour(e,18),r=function(e,t){var n=p.cellMeridiemFormat;return n?J(e,{generateConfig:f,locale:p,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:A.every((function(e){return e.disabled||!Fe(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:A.every((function(e){return e.disabled||Fe(e.value)}))}]}),[A,o,f,p]),re=function(e){var t=E(e);m(t)},ie=h.useMemo((function(){var e=_||y||f.getNow(),t=function(e){return null!=e};return t(L)?(e=f.setHour(e,L),e=f.setMinute(e,M),e=f.setSecond(e,B),e=f.setMillisecond(e,U)):t(I)?(e=f.setHour(e,I),e=f.setMinute(e,O),e=f.setSecond(e,z),e=f.setMillisecond(e,Y)):t(K)&&(e=f.setHour(e,K),e=f.setMinute(e,Q),e=f.setSecond(e,$),e=f.setMillisecond(e,te)),e}),[_,y,L,M,B,U,K,Q,$,te,I,O,z,Y,f]),se=function(e,t){return null===e?null:f[t](ie,e)},ae=function(e){return se(e,"setHour")},oe=function(e){return se(e,"setMinute")},le=function(e){return se(e,"setSecond")},ue=function(e){return se(e,"setMillisecond")},ce=function(e){return null===e?null:"am"!==e||Fe(L)?"pm"===e&&Fe(L)?f.setHour(ie,L+12):ie:f.setHour(ie,L-12)},de={onDblClick:b,changeOnScroll:l};return h.createElement("div",{className:"".concat(c,"-content")},t&&h.createElement(Oe,(0,r.Z)({units:G,value:L,optionalValue:I,type:"hour",onChange:function(e){re(ae(e))},onHover:function(e){v(ae(e))}},de)),n&&h.createElement(Oe,(0,r.Z)({units:V,value:M,optionalValue:O,type:"minute",onChange:function(e){re(oe(e))},onHover:function(e){v(oe(e))}},de)),i&&h.createElement(Oe,(0,r.Z)({units:q,value:B,optionalValue:z,type:"second",onChange:function(e){re(le(e))},onHover:function(e){v(le(e))}},de)),s&&h.createElement(Oe,(0,r.Z)({units:ee,value:U,optionalValue:Y,type:"millisecond",onChange:function(e){re(ue(e))},onHover:function(e){v(ue(e))}},de)),o&&h.createElement(Oe,(0,r.Z)({units:ne,value:X,type:"meridiem",onChange:function(e){re(ce(e))},onHover:function(e){v(ce(e))}},de)))}function Be(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,s=e.showTime,o=(s||{}).format,l="".concat(t,"-time-panel"),u=De(e,"time"),c=(0,a.Z)(u,1)[0];return h.createElement(Ce.Provider,{value:c},h.createElement("div",{className:g()(l)},h.createElement(Ie,null,n?J(n,{locale:r,format:o,generateConfig:i}):" "),h.createElement(je,s)))}var ze={date:Ne,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,i=e.showTime,s=e.onSelect,o=e.value,l=e.pickerValue,u=e.onHover,c="".concat(t,"-datetime-panel"),d=Ee(n,i),f=(0,a.Z)(d,1)[0],p=function(e){return $(n,e,o||l)};return h.createElement("div",{className:c},h.createElement(Ne,(0,r.Z)({},e,{onSelect:function(e){var t=p(e);s(f(t,t))},onHover:function(e){null==u||u(e?p(e):e)}})),h.createElement(Be,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,i=e.locale,s=e.value,o=e.hoverValue,l=e.hoverRangeValue,u=i.locale,c="".concat(t,"-week-panel-row");return h.createElement(Ne,(0,r.Z)({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var r=(0,a.Z)(l,2),i=r[0],d=r[1],h=K(n,u,i,e),p=K(n,u,d,e);t["".concat(c,"-range-start")]=h,t["".concat(c,"-range-end")]=p,t["".concat(c,"-range-hover")]=!h&&!p&&Q(n,i,d,e)}return o&&(t["".concat(c,"-hover")]=o.some((function(t){return K(n,u,e,t)}))),g()(c,(0,f.Z)({},"".concat(c,"-selected"),!l&&K(n,u,s,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,s=e.pickerValue,o=e.disabledDate,l=e.onPickerValueChange,u=e.onModeChange,c="".concat(t,"-month-panel"),d=De(e,"month"),p=(0,a.Z)(d,1)[0],m=i.setMonth(s,0),g=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),v=o?function(e,t){var n=i.setDate(e,1),r=i.setMonth(n,i.getMonth(n)+1),s=i.addDate(r,-1);return o(n,t)&&o(s,t)}:null,y=h.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},J(s,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ce.Provider,{value:p},h.createElement("div",{className:c},h.createElement(Ie,{superOffset:function(e){return i.addYear(s,e)},onChange:l,getStart:function(e){return i.setMonth(e,0)},getEnd:function(e){return i.setMonth(e,11)}},y),h.createElement(Pe,(0,r.Z)({},e,{disabledDate:v,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(e,t){return i.addMonth(e,t)},getCellText:function(e){var t=i.getMonth(e);return n.monthFormat?J(e,{locale:n,format:n.monthFormat,generateConfig:i}):g[t]},getCellClassName:function(){return(0,f.Z)({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,s=e.pickerValue,o=e.onPickerValueChange,l=e.onModeChange,u="".concat(t,"-quarter-panel"),c=De(e,"quarter"),d=(0,a.Z)(c,1)[0],p=i.setMonth(s,0),m=h.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},J(s,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ce.Provider,{value:d},h.createElement("div",{className:u},h.createElement(Ie,{superOffset:function(e){return i.addYear(s,e)},onChange:o,getStart:function(e){return i.setMonth(e,0)},getEnd:function(e){return i.setMonth(e,11)}},m),h.createElement(Pe,(0,r.Z)({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:p,getCellDate:function(e,t){return i.addMonth(e,3*t)},getCellText:function(e){return J(e,{locale:n,format:n.cellQuarterFormat,generateConfig:i})},getCellClassName:function(){return(0,f.Z)({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,s=e.pickerValue,o=e.disabledDate,l=e.onPickerValueChange,u=e.onModeChange,c="".concat(t,"-year-panel"),d=De(e,"year"),p=(0,a.Z)(d,1)[0],m=function(e){var t=10*Math.floor(i.getYear(e)/10);return i.setYear(e,t)},g=function(e){var t=m(e);return i.addYear(t,9)},v=m(s),y=g(s),_=i.addYear(v,-1),b=o?function(e,t){var n=i.setMonth(e,0),r=i.setDate(n,1),s=i.addYear(r,1),a=i.addDate(s,-1);return o(r,t)&&o(a,t)}:null,x=h.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},J(v,{locale:n,format:n.yearFormat,generateConfig:i}),"-",J(y,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ce.Provider,{value:p},h.createElement("div",{className:c},h.createElement(Ie,{superOffset:function(e){return i.addYear(s,10*e)},onChange:l,getStart:m,getEnd:g},x),h.createElement(Pe,(0,r.Z)({},e,{disabledDate:b,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:_,getCellDate:function(e,t){return i.addYear(e,t)},getCellText:function(e){return J(e,{locale:n,format:n.cellYearFormat,generateConfig:i})},getCellClassName:function(e){return(0,f.Z)({},"".concat(t,"-cell-in-view"),Z(i,e,v)||Z(i,e,y)||Q(i,v,y,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,i=e.generateConfig,s=e.pickerValue,o=e.disabledDate,l=e.onPickerValueChange,u="".concat(t,"-decade-panel"),c=De(e,"decade"),d=(0,a.Z)(c,1)[0],p=function(e){var t=100*Math.floor(i.getYear(e)/100);return i.setYear(e,t)},m=function(e){var t=p(e);return i.addYear(t,99)},g=p(s),v=m(s),y=i.addYear(g,-10),_=o?function(e,t){var n=i.setDate(e,1),r=i.setMonth(n,0),s=i.setYear(r,10*Math.floor(i.getYear(r)/10)),a=i.addYear(s,10),l=i.addDate(a,-1);return o(s,t)&&o(l,t)}:null,b="".concat(J(g,{locale:n,format:n.yearFormat,generateConfig:i}),"-").concat(J(v,{locale:n,format:n.yearFormat,generateConfig:i}));return h.createElement(Ce.Provider,{value:d},h.createElement("div",{className:u},h.createElement(Ie,{superOffset:function(e){return i.addYear(s,100*e)},onChange:l,getStart:p,getEnd:m},b),h.createElement(Pe,(0,r.Z)({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:y,getCellDate:function(e,t){return i.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,r=J(e,{locale:n,format:t,generateConfig:i}),s=J(i.addYear(e,9),{locale:n,format:t,generateConfig:i});return"".concat(r,"-").concat(s)},getCellClassName:function(e){return(0,f.Z)({},"".concat(t,"-cell-in-view"),H(i,e,g)||H(i,e,v)||Q(i,g,v,e))}}))))},time:Be};function He(e,t){var n,l=e.locale,u=e.generateConfig,c=e.direction,d=e.prefixCls,p=e.tabIndex,m=void 0===p?0:p,y=e.multiple,_=e.defaultValue,b=e.value,w=e.onChange,A=e.onSelect,k=e.defaultPickerValue,C=e.pickerValue,D=e.onPickerValueChange,S=e.mode,L=e.onPanelChange,I=e.picker,N=void 0===I?"date":I,R=e.showTime,M=e.hoverValue,O=e.hoverRangeValue,B=e.cellRender,z=e.dateRender,H=e.monthCellRender,Z=e.components,U=void 0===Z?{}:Z,Y=e.hideHeader,X=(null===(n=h.useContext(v))||void 0===n?void 0:n.prefixCls)||d||"rc-picker",G=h.useRef();h.useImperativeHandle(t,(function(){return{nativeElement:G.current}}));var W=F(e),K=(0,a.Z)(W,4),Q=K[0],q=K[1],J=K[2],$=K[3],ee=P(l,q),te="date"===N&&R?"datetime":N,ne=h.useMemo((function(){return j(te,J,$,Q,ee)}),[te,J,$,Q,ee]),re=u.getNow(),ie=(0,o.C8)(N,{value:S,postState:function(e){return e||"date"}}),se=(0,a.Z)(ie,2),ae=se[0],oe=se[1],le="date"===ae&&ne?"datetime":ae,ue=ke(u,l,te),ce=(0,o.C8)(_,{value:b}),de=(0,a.Z)(ce,2),he=de[0],fe=de[1],pe=h.useMemo((function(){var e=x(he).filter((function(e){return e}));return y?e:e.slice(0,1)}),[he,y]),me=(0,o.zX)((function(e){fe(e),w&&(null===e||pe.length!==e.length||pe.some((function(t,n){return!V(u,l,t,e[n],te)})))&&(null==w||w(y?e:e[0]))})),ge=(0,o.zX)((function(e){if(null==A||A(e),ae===N){var t=y?ue(pe,e):[e];me(t)}})),ve=(0,o.C8)(k||pe[0]||re,{value:C}),ye=(0,a.Z)(ve,2),_e=ye[0],be=ye[1];h.useEffect((function(){pe[0]&&!C&&be(pe[0])}),[pe[0]]);var xe=function(e,t){null==L||L(e||C,t||ae)},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];be(e),null==D||D(e),t&&xe(e)},Ee=function(e,t){oe(e),t&&we(t),xe(t,e)},Ae=h.useMemo((function(){var e,t;if(Array.isArray(O)){var n=(0,a.Z)(O,2);e=n[0],t=n[1]}else e=O;return e||t?(e=e||t,t=t||e,u.isAfter(e,t)?[t,e]:[e,t]):null}),[O,u]),Ce=T(B,z,H),Te=U[le]||ze[le]||Ne,De=h.useContext(Se),Pe=h.useMemo((function(){return(0,s.Z)((0,s.Z)({},De),{},{hideHeader:Y})}),[De,Y]);var Le="".concat(X,"-panel"),Ie=E(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return h.createElement(Se.Provider,{value:Pe},h.createElement("div",{ref:G,tabIndex:m,className:g()(Le,(0,f.Z)({},"".concat(Le,"-rtl"),"rtl"===c))},h.createElement(Te,(0,r.Z)({},Ie,{showTime:ne,prefixCls:X,locale:ee,generateConfig:u,onModeChange:Ee,pickerValue:_e,onPickerValueChange:function(e){we(e,!0)},value:pe[0],onSelect:function(e){if(ge(e),we(e),ae!==N){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat((0,i.Z)(n),["week"]),date:[].concat((0,i.Z)(n),["date"])}[N]||n,s=r.indexOf(ae),a=r[s+1];a&&Ee(a,e)}},values:pe,cellRender:Ce,hoverRangeValue:Ae,hoverValue:M}))))}var Ze=h.memo(h.forwardRef(He));function Ue(e){var t=e.picker,n=e.multiplePanel,i=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,l=e.onSubmit,u=e.range,c=e.hoverValue,d=h.useContext(v),f=d.prefixCls,p=d.generateConfig,m=h.useCallback((function(e,n){return ue(p,t,e,n)}),[p,t]),g=h.useMemo((function(){return m(i,1)}),[i,m]),y={onCellDblClick:function(){o&&l()}},_="time"===t,b=(0,s.Z)((0,s.Z)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:_});return u?b.hoverRangeValue=c:b.hoverValue=c,n?h.createElement("div",{className:"".concat(f,"-panels")},h.createElement(Se.Provider,{value:(0,s.Z)((0,s.Z)({},y),{},{hideNext:!0})},h.createElement(Ze,b)),h.createElement(Se.Provider,{value:(0,s.Z)((0,s.Z)({},y),{},{hidePrev:!0})},h.createElement(Ze,(0,r.Z)({},b,{pickerValue:g,onPickerValueChange:function(e){a(m(e,-1))}})))):h.createElement(Se.Provider,{value:(0,s.Z)({},y)},h.createElement(Ze,b))}function Ye(e){return"function"==typeof e?e():e}function Xe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?h.createElement("div",{className:"".concat(t,"-presets")},h.createElement("ul",null,n.map((function(e,t){var n=e.label,s=e.value;return h.createElement("li",{key:t,onClick:function(){r(Ye(s))},onMouseEnter:function(){i(Ye(s))},onMouseLeave:function(){i(null)}},n)})))):null}function Ge(e){var t=e.panelRender,n=e.internalMode,i=e.picker,s=e.showNow,o=e.range,l=e.multiple,u=e.activeInfo,c=void 0===u?[0,0,0]:u,d=e.presets,p=e.onPresetHover,m=e.onPresetSubmit,y=e.onFocus,_=e.onBlur,b=e.onPanelMouseDown,w=e.direction,E=e.value,A=e.onSelect,k=e.isInvalid,C=e.defaultOpenValue,T=e.onOk,D=e.onSubmit,S=h.useContext(v).prefixCls,P="".concat(S,"-panel"),L="rtl"===w,I=h.useRef(null),N=h.useRef(null),R=h.useState(0),M=(0,a.Z)(R,2),O=M[0],F=M[1],j=h.useState(0),B=(0,a.Z)(j,2),z=B[0],H=B[1],Z=h.useState(0),U=(0,a.Z)(Z,2),Y=U[0],X=U[1],G=(0,a.Z)(c,3),W=G[0],K=G[1],V=G[2],Q=h.useState(0),q=(0,a.Z)(Q,2),J=q[0],$=q[1];function ee(e){return e.filter((function(e){return e}))}h.useEffect((function(){$(10)}),[W]),h.useEffect((function(){if(o&&N.current){var e,t=(null===(e=I.current)||void 0===e?void 0:e.offsetWidth)||0,n=N.current.getBoundingClientRect();if(!n.height||n.right<0)return void $((function(e){return Math.max(0,e-1)}));var r=(L?K-t:W)-n.left;if(X(r),O&&O<V){var i=L?n.right-(K-t+O):W+t-n.left-O,s=Math.max(0,i);H(s)}else H(0)}}),[J,L,O,W,K,V,o]);var te=h.useMemo((function(){return ee(x(E))}),[E]),ne="time"===i&&!te.length,re=h.useMemo((function(){return ne?ee([C]):te}),[ne,te,C]),ie=ne?C:te,se=h.useMemo((function(){return!re.length||re.some((function(e){return k(e)}))}),[re,k]),ae=h.createElement("div",{className:"".concat(S,"-panel-layout")},h.createElement(Xe,{prefixCls:S,presets:d,onClick:m,onHover:p}),h.createElement("div",null,h.createElement(Ue,(0,r.Z)({},e,{value:ie})),h.createElement(Ae,(0,r.Z)({},e,{showNow:!l&&s,invalid:se,onSubmit:function(){ne&&A(C),T(),D()}}))));t&&(ae=t(ae));var oe="".concat(P,"-container"),le="marginLeft",ue="marginRight",ce=h.createElement("div",{onMouseDown:b,tabIndex:-1,className:g()(oe,"".concat(S,"-").concat(n,"-panel-container")),style:(0,f.Z)((0,f.Z)({},L?ue:le,z),L?le:ue,"auto"),onFocus:y,onBlur:_},ae);return o&&(ce=h.createElement("div",{onMouseDown:b,ref:N,className:g()("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(i,"-range-wrapper"))},h.createElement("div",{ref:I,className:"".concat(S,"-range-arrow"),style:{left:Y}}),h.createElement(_e.Z,{onResize:function(e){e.width&&F(e.width)}},ce))),ce}var We=n(75931);function Ke(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,o=e.preserveInvalidOnBlur,l=e.inputReadOnly,u=e.required,d=e["aria-required"],f=e.onSubmit,p=e.onFocus,m=e.onBlur,g=e.onInputChange,v=e.onInvalid,y=e.open,_=e.onOpenChange,b=e.onKeyDown,x=e.onChange,w=e.activeHelp,E=e.name,A=e.autoComplete,k=e.id,C=e.value,T=e.invalid,D=e.placeholder,S=e.disabled,P=e.activeIndex,L=e.allHelp,I=e.picker,N=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},R=n[0],M=h.useCallback((function(e){return J(e,{locale:a,format:R,generateConfig:i})}),[a,i,R]),O=h.useMemo((function(){return C.map(M)}),[C,M]),F=h.useMemo((function(){var e="time"===I?8:10,t="function"==typeof R?R(i.getNow()).length:R.length;return Math.max(e,t)+2}),[R,I,i]),j=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"==typeof r){var i=N(e,r);if(i)return i}}return!1};return[function(n){function i(e){return void 0!==n?e[n]:e}var a=(0,c.Z)(e,{aria:!0,data:!0}),h=(0,s.Z)((0,s.Z)({},a),{},{format:r,validateFormat:function(e){return!!j(e)},preserveInvalidOnBlur:o,readOnly:l,required:u,"aria-required":d,name:E,autoComplete:A,size:F,id:i(k),value:i(O)||"",invalid:i(T),placeholder:i(D),active:P===n,helped:L||w&&P===n,disabled:i(S),onFocus:function(e){p(e,n)},onBlur:function(e){m(e,n)},onSubmit:f,onChange:function(e){g();var t=j(e);if(t)return v(!1,n),void x(t,n);v(!!e,n)},onHelp:function(){_(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null==b||b(e,(function(){t=!0})),!e.defaultPrevented&&!t)switch(e.key){case"Escape":_(!1,{index:n});break;case"Enter":y||_(!0)}}},null==t?void 0:t({valueTexts:O}));return Object.keys(h).forEach((function(e){void 0===h[e]&&delete h[e]})),h},M]}var Ve=["onMouseEnter","onMouseLeave"];function Qe(e){return h.useMemo((function(){return E(e,Ve)}),[e])}var qe=["icon","type"],Je=["onClear"];function $e(e){var t=e.icon,n=e.type,i=(0,We.Z)(e,qe),s=h.useContext(v).prefixCls;return t?h.createElement("span",(0,r.Z)({className:"".concat(s,"-").concat(n)},i),t):null}function et(e){var t=e.onClear,n=(0,We.Z)(e,Je);return h.createElement($e,(0,r.Z)({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var tt=n(67732),nt=n(83652),rt=["YYYY","MM","DD","HH","mm","ss","SSS"],it=function(){function e(t){(0,tt.Z)(this,e),(0,f.Z)(this,"format",void 0),(0,f.Z)(this,"maskFormat",void 0),(0,f.Z)(this,"cells",void 0),(0,f.Z)(this,"maskCells",void 0),this.format=t;var n=rt.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var i=new RegExp("(".concat(rt.join("|"),")")),s=(t.split(i)||[]).filter((function(e){return e})),a=0;this.cells=s.map((function(e){var t=rt.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return(0,nt.Z)(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var i=this.maskCells[r],s=i.start,a=i.end;if(e>=s&&e<=a)return r;var o=Math.min(Math.abs(e-s),Math.abs(e-a));o<t&&(t=o,n=r)}return n}}]),e}();var st=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];var at=h.forwardRef((function(e,t){var n=e.active,i=e.showActiveCls,s=void 0===i||i,u=e.suffixIcon,c=e.format,d=e.validateFormat,p=e.onChange,m=(e.onInput,e.helped),y=e.onHelp,_=e.onSubmit,x=e.onKeyDown,w=e.preserveInvalidOnBlur,E=void 0!==w&&w,A=e.invalid,k=e.clearIcon,C=(0,We.Z)(e,st),T=e.value,D=e.onFocus,S=e.onBlur,P=e.onMouseUp,L=h.useContext(v),I=L.prefixCls,N=L.input,R=void 0===N?"input":N,M="".concat(I,"-input"),O=h.useState(!1),F=(0,a.Z)(O,2),j=F[0],B=F[1],z=h.useState(T),H=(0,a.Z)(z,2),Z=H[0],U=H[1],Y=h.useState(""),X=(0,a.Z)(Y,2),G=X[0],W=X[1],K=h.useState(null),V=(0,a.Z)(K,2),Q=V[0],q=V[1],J=h.useState(null),$=(0,a.Z)(J,2),ee=$[0],te=$[1],re=Z||"";h.useEffect((function(){U(T)}),[T]);var ie=h.useRef(),se=h.useRef();h.useImperativeHandle(t,(function(){return{nativeElement:ie.current,inputElement:se.current,focus:function(e){se.current.focus(e)},blur:function(){se.current.blur()}}}));var ae=h.useMemo((function(){return new it(c||"")}),[c]),le=h.useMemo((function(){return m?[0,0]:ae.getSelection(Q)}),[ae,Q,m]),ue=(0,a.Z)(le,2),ce=ue[0],de=ue[1],he=function(e){e&&e!==c&&e!==T&&y()},fe=(0,o.zX)((function(e){d(e)&&p(e),U(e),he(e)})),pe=h.useRef(!1),me=function(e){S(e)};oe(n,(function(){n||E||U(T)}));var ge=function(e){"Enter"===e.key&&d(re)&&_(),null==x||x(e)},ve=h.useRef();(0,l.Z)((function(){if(j&&c&&!pe.current){if(ae.match(re))return se.current.setSelectionRange(ce,de),ve.current=(0,ne.Z)((function(){se.current.setSelectionRange(ce,de)})),function(){ne.Z.cancel(ve.current)};fe(c)}}),[ae,c,j,re,Q,ce,de,ee,fe]);var ye=c?{onFocus:function(e){B(!0),q(0),W(""),D(e)},onBlur:function(e){B(!1),me(e)},onKeyDown:function(e){ge(e);var t=e.key,n=null,r=null,i=de-ce,s=c.slice(ce,de),o=function(e){q((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,ae.size()-1)}))},l=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(s),n=(0,a.Z)(t,3),r=n[0],i=n[1],o=n[2],l=re.slice(ce,de),u=Number(l);if(isNaN(u))return String(o||(e>0?r:i));var c=i-r+1;return String(r+(c+(u+e)-r)%c)};switch(t){case"Backspace":case"Delete":n="",r=s;break;case"ArrowLeft":n="",o(-1);break;case"ArrowRight":n="",o(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(t))||(r=n=G+t)}if(null!==n&&(W(n),n.length>=i&&(o(1),W(""))),null!==r){var u=re.slice(0,ce)+b(r,i)+re.slice(de);fe(u.slice(0,c.length))}te({})},onMouseDown:function(){pe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=ae.getMaskCellIndex(t);q(n),te({}),null==P||P(e),pe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");d(t)&&fe(t)}}:{};return h.createElement("div",{ref:ie,className:g()(M,(0,f.Z)((0,f.Z)({},"".concat(M,"-active"),n&&s),"".concat(M,"-placeholder"),m))},h.createElement(R,(0,r.Z)({ref:se,"aria-invalid":A,autoComplete:"off"},C,{onKeyDown:ge,onBlur:me},ye,{value:re,onChange:function(e){if(!c){var t=e.target.value;he(t),U(t),p(t)}}})),h.createElement($e,{type:"suffix",icon:u}),k)})),ot=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],lt=["index"];function ut(e,t){var n=e.id,i=e.prefix,l=e.clearIcon,u=e.suffixIcon,c=e.separator,d=void 0===c?"~":c,p=e.activeIndex,m=(e.activeHelp,e.allHelp,e.focused),y=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),_=e.className,b=e.style,x=e.onClick,w=e.onClear,E=e.value,A=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),k=e.invalid,C=(e.inputReadOnly,e.direction),T=(e.onOpenChange,e.onActiveInfo),D=(e.placement,e.onMouseDown),S=(e.required,e["aria-required"],e.autoFocus),P=e.tabIndex,I=(0,We.Z)(e,ot),N="rtl"===C,R=h.useContext(v).prefixCls,M=h.useMemo((function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]}),[n]),O=h.useRef(),F=h.useRef(),j=h.useRef(),B=function(e){var t;return null===(t=[F,j][e])||void 0===t?void 0:t.current};h.useImperativeHandle(t,(function(){return{nativeElement:O.current,focus:function(e){if("object"===(0,L.Z)(e)){var t,n=e||{},r=n.index,i=void 0===r?0:r,s=(0,We.Z)(n,lt);null===(t=B(i))||void 0===t||t.focus(s)}else{var a;null===(a=B(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=B(0))||void 0===e||e.blur(),null===(t=B(1))||void 0===t||t.blur()}}}));var z=Qe(I),H=h.useMemo((function(){return Array.isArray(y)?y:[y,y]}),[y]),Z=Ke((0,s.Z)((0,s.Z)({},e),{},{id:M,placeholder:H})),U=(0,a.Z)(Z,1)[0],Y=h.useState({position:"absolute",width:0}),X=(0,a.Z)(Y,2),G=X[0],W=X[1],K=(0,o.zX)((function(){var e=B(p);if(e){var t=e.nativeElement.getBoundingClientRect(),n=O.current.getBoundingClientRect(),r=t.left-n.left;W((function(e){return(0,s.Z)((0,s.Z)({},e),{},{width:t.width,left:r})})),T([t.left,t.right,n.width])}}));h.useEffect((function(){K()}),[p]);var V=l&&(E[0]&&!A[0]||E[1]&&!A[1]),Q=S&&!A[0],q=S&&!Q&&!A[1];return h.createElement(_e.Z,{onResize:K},h.createElement("div",(0,r.Z)({},z,{className:g()(R,"".concat(R,"-range"),(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(R,"-focused"),m),"".concat(R,"-disabled"),A.every((function(e){return e}))),"".concat(R,"-invalid"),k.some((function(e){return e}))),"".concat(R,"-rtl"),N),_),style:b,ref:O,onClick:x,onMouseDown:function(e){var t=e.target;t!==F.current.inputElement&&t!==j.current.inputElement&&e.preventDefault(),null==D||D(e)}}),i&&h.createElement("div",{className:"".concat(R,"-prefix")},i),h.createElement(at,(0,r.Z)({ref:F},U(0),{autoFocus:Q,tabIndex:P,"date-range":"start"})),h.createElement("div",{className:"".concat(R,"-range-separator")},d),h.createElement(at,(0,r.Z)({ref:j},U(1),{autoFocus:q,tabIndex:P,"date-range":"end"})),h.createElement("div",{className:"".concat(R,"-active-bar"),style:G}),h.createElement($e,{type:"suffix",icon:u}),V&&h.createElement(et,{icon:l,onClear:w})))}var ct=h.forwardRef(ut);function dt(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function ht(e){return 1===e?"end":"start"}function ft(e,t){var n=te(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:dt(t,!1),allowEmpty:dt(n,!1)}})),d=(0,a.Z)(n,6),f=d[0],p=d[1],m=d[2],g=d[3],y=d[4],b=d[5],E=f.prefixCls,A=f.styles,S=f.classNames,P=f.defaultValue,L=f.value,I=f.needConfirm,N=f.onKeyDown,R=f.disabled,M=f.allowEmpty,O=f.disabledDate,F=f.minDate,j=f.maxDate,B=f.defaultOpen,z=f.open,H=f.onOpenChange,Z=f.locale,U=f.generateConfig,Y=f.picker,X=f.showNow,G=f.showToday,W=f.showTime,K=f.mode,Q=f.onPanelChange,q=f.onCalendarChange,J=f.onOk,$=f.defaultPickerValue,ee=f.pickerValue,ne=f.onPickerValueChange,re=f.inputReadOnly,oe=f.suffixIcon,ue=f.onFocus,ce=f.onBlur,he=f.presets,fe=f.ranges,pe=f.components,me=f.cellRender,_e=f.dateRender,be=f.monthCellRender,xe=f.onClick,we=se(t),Ee=ie(z,B,R,H),Ae=(0,a.Z)(Ee,2),ke=Ae[0],Ce=Ae[1],Te=function(e,t){!R.some((function(e){return!e}))&&e||Ce(e,t)},De=ge(U,Z,g,!0,!1,P,L,q,J),Se=(0,a.Z)(De,5),Pe=Se[0],Le=Se[1],Ie=Se[2],Ne=Se[3],Re=Se[4],Me=Ie(),Oe=le(R,M,ke),Fe=(0,a.Z)(Oe,9),je=Fe[0],Be=Fe[1],ze=Fe[2],He=Fe[3],Ze=Fe[4],Ue=Fe[5],Ye=Fe[6],Xe=Fe[7],We=Fe[8],Ke=function(e,t){Be(!0),null==ue||ue(e,{range:ht(null!=t?t:He)})},Ve=function(e,t){Be(!1),null==ce||ce(e,{range:ht(null!=t?t:He)})},Qe=h.useMemo((function(){if(!W)return null;var e=W.disabledTime,t=e?function(t){var n=ht(He),r=k(Me,Ye,He);return e(t,n,{from:r})}:void 0;return(0,s.Z)((0,s.Z)({},W),{},{disabledTime:t})}),[W,He,Me,Ye]),qe=(0,o.C8)([Y,Y],{value:K}),Je=(0,a.Z)(qe,2),$e=Je[0],et=Je[1],tt=$e[He]||Y,nt="date"===tt&&Qe?"datetime":tt,rt=nt===Y&&"time"!==nt,it=ye(Y,tt,X,G,!0),st=ve(f,Pe,Le,Ie,Ne,R,g,je,ke,b),at=(0,a.Z)(st,2),ot=at[0],lt=at[1],ut=function(e,t,n,r,i,o){var l=n[n.length-1];return function(u,c){var d=(0,a.Z)(e,2),h=d[0],f=d[1],p=(0,s.Z)((0,s.Z)({},c),{},{from:k(e,n)});return!(1!==l||!t[0]||!h||V(r,i,h,u,p.type)||!r.isAfter(h,u))||!(0!==l||!t[1]||!f||V(r,i,f,u,p.type)||!r.isAfter(u,f))||(null==o?void 0:o(u,p))}}(Me,R,Ye,U,Z,O),ft=D(Me,b,M),pt=(0,a.Z)(ft,2),mt=pt[0],gt=pt[1],vt=de(U,Z,Me,$e,ke,He,p,rt,$,ee,null==Qe?void 0:Qe.defaultOpenValue,ne,F,j),yt=(0,a.Z)(vt,2),_t=yt[0],bt=yt[1],xt=(0,o.zX)((function(e,t,n){var r=w($e,He,t);if(r[0]===$e[0]&&r[1]===$e[1]||et(r),Q&&!1!==n){var s=(0,i.Z)(Me);e&&(s[He]=e),Q(s,r)}})),wt=function(e,t){return w(Me,t,e)},Et=function(e,t){var n=Me;e&&(n=wt(e,He)),Xe(He);var r=Ue(n);Ne(n),ot(He,null===r),null===r?Te(!1,{force:!0}):t||we.current.focus({index:r})},At=h.useState(null),kt=(0,a.Z)(At,2),Ct=kt[0],Tt=kt[1],Dt=h.useState(null),St=(0,a.Z)(Dt,2),Pt=St[0],Lt=St[1],It=h.useMemo((function(){return Pt||Me}),[Me,Pt]);h.useEffect((function(){ke||Lt(null)}),[ke]);var Nt=h.useState([0,0,0]),Rt=(0,a.Z)(Nt,2),Mt=Rt[0],Ot=Rt[1],Ft=ae(he,fe),jt=T(me,_e,be,ht(He)),Bt=Me[He]||null,zt=(0,o.zX)((function(e){return b(e,{activeIndex:He})})),Ht=h.useMemo((function(){var e=(0,c.Z)(f,!1);return(0,u.Z)(f,[].concat((0,i.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[f]),Zt=h.createElement(Ge,(0,r.Z)({},Ht,{showNow:it,showTime:Qe,range:!0,multiplePanel:rt,activeInfo:Mt,disabledDate:ut,onFocus:function(e){Te(!0),Ke(e)},onBlur:Ve,onPanelMouseDown:function(){ze("panel")},picker:Y,mode:tt,internalMode:nt,onPanelChange:xt,format:y,value:Bt,isInvalid:zt,onChange:null,onSelect:function(e){var t=w(Me,He,e);Ne(t),I||m||p!==nt||Et(e)},pickerValue:_t,defaultOpenValue:x(null==W?void 0:W.defaultOpenValue)[He],onPickerValueChange:bt,hoverValue:It,onHover:function(e){Lt(e?wt(e,He):null),Tt("cell")},needConfirm:I,onSubmit:Et,onOk:Re,presets:Ft,onPresetHover:function(e){Lt(e),Tt("preset")},onPresetSubmit:function(e){lt(e)&&Te(!1,{force:!0})},onNow:function(e){Et(e)},cellRender:jt})),Ut=h.useMemo((function(){return{prefixCls:E,locale:Z,generateConfig:U,button:pe.button,input:pe.input}}),[E,Z,U,pe.button,pe.input]);return(0,l.Z)((function(){ke&&void 0!==He&&xt(null,Y,!1)}),[ke,He,Y]),(0,l.Z)((function(){var e=ze();ke||"input"!==e||(Te(!1),Et(null,!0)),ke||!m||I||"panel"!==e||(Te(!0),Et())}),[ke]),h.createElement(v.Provider,{value:Ut},h.createElement(_,(0,r.Z)({},C(f),{popupElement:Zt,popupStyle:A.popup,popupClassName:S.popup,visible:ke,onClose:function(){Te(!1)},range:!0}),h.createElement(ct,(0,r.Z)({},f,{ref:we,suffixIcon:oe,activeIndex:je||ke?He:null,activeHelp:!!Pt,allHelp:!!Pt&&"preset"===Ct,focused:je,onFocus:function(e,t){var n=Ye.length,r=Ye[n-1];n&&r!==t&&I&&!M[r]&&!We(r)&&Me[r]?we.current.focus({index:r}):(ze("input"),Te(!0,{inherit:!0}),He!==t&&ke&&!I&&m&&Et(null,!0),Ze(t),Ke(e,t))},onBlur:function(e,t){if(Te(!1),!I&&"input"===ze()){var n=Ue(Me);ot(He,null===n)}Ve(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Et(null,!0),null==N||N(e,t)},onSubmit:Et,value:It,maskFormat:y,onChange:function(e,t){var n=wt(e,t);Ne(n)},onInputChange:function(){ze("input")},format:g,inputReadOnly:re,disabled:R,open:ke,onOpenChange:Te,onClick:function(e){var t,n=e.target.getRootNode();if(!we.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=R.findIndex((function(e){return!e}));r>=0&&we.current.focus({index:r})}Te(!0),null==xe||xe(e)},onClear:function(){lt(null),Te(!1,{force:!0})},invalid:mt,onInvalid:gt,onActiveInfo:Ot}))))}var pt=h.forwardRef(ft),mt=n(11780);function gt(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,s=void 0===i?"×":i,a=e.formatDate,o=e.disabled,l=e.maxTagCount,u=e.placeholder,c="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function p(e,t){return h.createElement("span",{className:g()("".concat(d,"-item")),title:"string"==typeof e?e:null},h.createElement("span",{className:"".concat(d,"-item-content")},e),!o&&t&&h.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(d,"-item-remove")},s))}return h.createElement("div",{className:c},h.createElement(mt.Z,{prefixCls:f,data:n,renderItem:function(e){return p(a(e),(function(t){t&&t.stopPropagation(),r(e)}))},renderRest:function(e){return p("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:l}),!n.length&&h.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var vt=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function yt(e,t){e.id;var n=e.open,i=e.prefix,o=e.clearIcon,l=e.suffixIcon,u=(e.activeHelp,e.allHelp,e.focused),c=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),d=e.generateConfig,p=e.placeholder,m=e.className,y=e.style,_=e.onClick,b=e.onClear,x=e.internalPicker,w=e.value,E=e.onChange,A=e.onSubmit,k=(e.onInputChange,e.multiple),C=e.maxTagCount,T=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),D=e.invalid,S=(e.inputReadOnly,e.direction),P=(e.onOpenChange,e.onMouseDown),L=(e.required,e["aria-required"],e.autoFocus),I=e.tabIndex,N=e.removeIcon,R=(0,We.Z)(e,vt),M="rtl"===S,O=h.useContext(v).prefixCls,F=h.useRef(),j=h.useRef();h.useImperativeHandle(t,(function(){return{nativeElement:F.current,focus:function(e){var t;null===(t=j.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()}}}));var B=Qe(R),z=Ke((0,s.Z)((0,s.Z)({},e),{},{onChange:function(e){E([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:u}})),H=(0,a.Z)(z,2),Z=H[0],U=H[1],Y=!(!o||!w.length||T),X=k?h.createElement(h.Fragment,null,h.createElement(gt,{prefixCls:O,value:w,onRemove:function(e){var t=w.filter((function(t){return t&&!V(d,c,t,e,x)}));E(t),n||A()},formatDate:U,maxTagCount:C,disabled:T,removeIcon:N,placeholder:p}),h.createElement("input",{className:"".concat(O,"-multiple-input"),value:w.map(U).join(","),ref:j,readOnly:!0,autoFocus:L,tabIndex:I}),h.createElement($e,{type:"suffix",icon:l}),Y&&h.createElement(et,{icon:o,onClear:b})):h.createElement(at,(0,r.Z)({ref:j},Z(),{autoFocus:L,tabIndex:I,suffixIcon:l,clearIcon:Y&&h.createElement(et,{icon:o,onClear:b}),showActiveCls:!1}));return h.createElement("div",(0,r.Z)({},B,{className:g()(O,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(O,"-multiple"),k),"".concat(O,"-focused"),u),"".concat(O,"-disabled"),T),"".concat(O,"-invalid"),D),"".concat(O,"-rtl"),M),m),style:y,ref:F,onClick:_,onMouseDown:function(e){var t;e.target!==(null===(t=j.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==P||P(e)}}),i&&h.createElement("div",{className:"".concat(O,"-prefix")},i),X)}var _t=h.forwardRef(yt);function bt(e,t){var n=te(e),d=(0,a.Z)(n,6),f=d[0],p=d[1],m=d[2],g=d[3],y=d[4],b=d[5],w=f,E=w.prefixCls,A=w.styles,k=w.classNames,S=w.order,P=w.defaultValue,L=w.value,I=w.needConfirm,N=w.onChange,R=w.onKeyDown,M=w.disabled,O=w.disabledDate,F=w.minDate,j=w.maxDate,B=w.defaultOpen,z=w.open,H=w.onOpenChange,Z=w.locale,U=w.generateConfig,Y=w.picker,X=w.showNow,G=w.showToday,W=w.showTime,K=w.mode,V=w.onPanelChange,Q=w.onCalendarChange,q=w.onOk,J=w.multiple,$=w.defaultPickerValue,ee=w.pickerValue,ne=w.onPickerValueChange,re=w.inputReadOnly,oe=w.suffixIcon,ue=w.removeIcon,ce=w.onFocus,he=w.onBlur,fe=w.presets,pe=w.components,me=w.cellRender,_e=w.dateRender,be=w.monthCellRender,xe=w.onClick,we=se(t);function Ee(e){return null===e?null:J?e:e[0]}var Ae=ke(U,Z,p),Ce=ie(z,B,[M],H),Te=(0,a.Z)(Ce,2),De=Te[0],Se=Te[1],Pe=ge(U,Z,g,!1,S,P,L,(function(e,t,n){if(Q){var r=(0,s.Z)({},n);delete r.range,Q(Ee(e),Ee(t),r)}}),(function(e){null==q||q(Ee(e))})),Le=(0,a.Z)(Pe,5),Ie=Le[0],Ne=Le[1],Re=Le[2],Me=Le[3],Oe=Le[4],Fe=Re(),je=le([M]),Be=(0,a.Z)(je,4),ze=Be[0],He=Be[1],Ze=Be[2],Ue=Be[3],Ye=function(e){He(!0),null==ce||ce(e,{})},Xe=function(e){He(!1),null==he||he(e,{})},We=(0,o.C8)(Y,{value:K}),Ke=(0,a.Z)(We,2),Ve=Ke[0],Qe=Ke[1],qe="date"===Ve&&W?"datetime":Ve,Je=ye(Y,Ve,X,G),$e=N&&function(e,t){N(Ee(e),Ee(t))},et=ve((0,s.Z)((0,s.Z)({},f),{},{onChange:$e}),Ie,Ne,Re,Me,[],g,ze,De,b),tt=(0,a.Z)(et,2)[1],nt=D(Fe,b),rt=(0,a.Z)(nt,2),it=rt[0],st=rt[1],at=h.useMemo((function(){return it.some((function(e){return e}))}),[it]),ot=de(U,Z,Fe,[Ve],De,Ue,p,!1,$,ee,x(null==W?void 0:W.defaultOpenValue),(function(e,t){if(ne){var n=(0,s.Z)((0,s.Z)({},t),{},{mode:t.mode[0]});delete n.range,ne(e[0],n)}}),F,j),lt=(0,a.Z)(ot,2),ut=lt[0],ct=lt[1],dt=(0,o.zX)((function(e,t,n){if(Qe(t),V&&!1!==n){var r=e||Fe[Fe.length-1];V(r,t)}})),ht=function(){tt(Re()),Se(!1,{force:!0})},ft=h.useState(null),pt=(0,a.Z)(ft,2),mt=pt[0],gt=pt[1],vt=h.useState(null),yt=(0,a.Z)(vt,2),bt=yt[0],xt=yt[1],wt=h.useMemo((function(){var e=[bt].concat((0,i.Z)(Fe)).filter((function(e){return e}));return J?e:e.slice(0,1)}),[Fe,bt,J]),Et=h.useMemo((function(){return!J&&bt?[bt]:Fe.filter((function(e){return e}))}),[Fe,bt,J]);h.useEffect((function(){De||xt(null)}),[De]);var At=ae(fe),kt=function(e){var t=J?Ae(Re(),e):[e];tt(t)&&!J&&Se(!1,{force:!0})},Ct=T(me,_e,be),Tt=h.useMemo((function(){var e=(0,c.Z)(f,!1),t=(0,u.Z)(f,[].concat((0,i.Z)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,s.Z)((0,s.Z)({},t),{},{multiple:f.multiple})}),[f]),Dt=h.createElement(Ge,(0,r.Z)({},Tt,{showNow:Je,showTime:W,disabledDate:O,onFocus:function(e){Se(!0),Ye(e)},onBlur:Xe,picker:Y,mode:Ve,internalMode:qe,onPanelChange:dt,format:y,value:Fe,isInvalid:b,onChange:null,onSelect:function(e){if(Ze("panel"),!J||qe===Y){var t=J?Ae(Re(),e):[e];Me(t),I||m||p!==qe||ht()}},pickerValue:ut,defaultOpenValue:null==W?void 0:W.defaultOpenValue,onPickerValueChange:ct,hoverValue:wt,onHover:function(e){xt(e),gt("cell")},needConfirm:I,onSubmit:ht,onOk:Oe,presets:At,onPresetHover:function(e){xt(e),gt("preset")},onPresetSubmit:kt,onNow:function(e){kt(e)},cellRender:Ct})),St=h.useMemo((function(){return{prefixCls:E,locale:Z,generateConfig:U,button:pe.button,input:pe.input}}),[E,Z,U,pe.button,pe.input]);return(0,l.Z)((function(){De&&void 0!==Ue&&dt(null,Y,!1)}),[De,Ue,Y]),(0,l.Z)((function(){var e=Ze();De||"input"!==e||(Se(!1),ht()),De||!m||I||"panel"!==e||ht()}),[De]),h.createElement(v.Provider,{value:St},h.createElement(_,(0,r.Z)({},C(f),{popupElement:Dt,popupStyle:A.popup,popupClassName:k.popup,visible:De,onClose:function(){Se(!1)}}),h.createElement(_t,(0,r.Z)({},f,{ref:we,suffixIcon:oe,removeIcon:ue,activeHelp:!!bt,allHelp:!!bt&&"preset"===mt,focused:ze,onFocus:function(e){Ze("input"),Se(!0,{inherit:!0}),Ye(e)},onBlur:function(e){Se(!1),Xe(e)},onKeyDown:function(e,t){"Tab"===e.key&&ht(),null==R||R(e,t)},onSubmit:ht,value:Et,maskFormat:y,onChange:function(e){Me(e)},onInputChange:function(){Ze("input")},internalPicker:p,format:g,inputReadOnly:re,disabled:M,open:De,onOpenChange:Se,onClick:function(e){M||we.current.nativeElement.contains(document.activeElement)||we.current.focus(),Se(!0),null==xe||xe(e)},onClear:function(){tt(null),Se(!1,{force:!0})},invalid:at,onInvalid:function(e){st(e,0)}}))))}var xt=h.forwardRef(bt)},25930:function(e,t,n){"use strict";n.d(t,{Cd:function(){return A}});var r=n(54476),i=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(),r=!1;e.current.forEach((function(e){if(e){r=!0;var i=e.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(i.transitionDuration="0s, 0s")}})),r&&(t.current=Date.now())})),e.current};var d=n(76190),h=n(42978),f=n(47273),p=0,m=(0,f.Z)();var g=function(e){var t=a.useState(),n=(0,h.Z)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e;i("rc_progress_".concat((m?(e=p,p+=1):e="TEST_OR_SSR",e)))}),[]),e||r},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 r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)}))}var _=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,s=e.radius,o=e.style,l=e.ptg,u=e.strokeLinecap,c=e.strokeWidth,h=e.size,f=e.gapDegree,p=r&&"object"===(0,d.Z)(r),m=p?"#FFF":void 0,g=h/2,_=a.createElement("circle",{className:"".concat(n,"-circle-path"),r:s,cx:g,cy:g,stroke:m,strokeLinecap:u,strokeWidth:c,opacity:0===l?0:1,style:o,ref:t});if(!p)return _;var b="".concat(i,"-conic"),x=f?"".concat(180+f/2,"deg"):"0deg",w=y(r,(360-f)/360),E=y(r,1),A="conic-gradient(from ".concat(x,", ").concat(w.join(", "),")"),k="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(E.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:k},a.createElement(v,{bg:A}))))})),b=100,x=function(e,t,n,r,i,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-r)/100*t;"round"===l&&100!==r&&(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(i+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 E(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var A=function(e){var t,n,o,h=(0,i.Z)((0,i.Z)({},u),e),f=h.id,p=h.prefixCls,m=h.steps,v=h.strokeWidth,y=h.trailWidth,A=h.gapDegree,k=void 0===A?0:A,C=h.gapPosition,T=h.trailColor,D=h.strokeLinecap,S=h.style,P=h.className,L=h.strokeColor,I=h.percent,N=(0,s.Z)(h,w),R=g(f),M="".concat(R,"-gradient"),O=50-v/2,F=2*Math.PI*O,j=k>0?90+k/2:-90,B=F*((360-k)/360),z="object"===(0,d.Z)(m)?m:{count:m,gap:2},H=z.count,Z=z.gap,U=E(I),Y=E(L),X=Y.find((function(e){return e&&"object"===(0,d.Z)(e)})),G=X&&"object"===(0,d.Z)(X)?"butt":D,W=x(F,B,0,100,j,k,C,T,G,v),K=c();return a.createElement("svg",(0,r.Z)({className:l()("".concat(p,"-circle"),P),viewBox:"0 0 ".concat(b," ").concat(b),style:S,id:f,role:"presentation"},N),!H&&a.createElement("circle",{className:"".concat(p,"-circle-trail"),r:O,cx:50,cy:50,stroke:T,strokeLinecap:G,strokeWidth:y||v,style:W}),H?(t=Math.round(H*(U[0]/100)),n=100/H,o=0,new Array(H).fill(null).map((function(e,r){var i=r<=t-1?Y[0]:T,s=i&&"object"===(0,d.Z)(i)?"url(#".concat(M,")"):void 0,l=x(F,B,o,n,j,k,C,i,"butt",v,Z);return o+=100*(B-l.strokeDashoffset+Z)/B,a.createElement("circle",{key:r,className:"".concat(p,"-circle-path"),r:O,cx:50,cy:50,stroke:s,strokeWidth:v,opacity:1,style:l,ref:function(e){K[r]=e}})}))):function(){var e=0;return U.map((function(t,n){var r=Y[n]||Y[Y.length-1],i=x(F,B,e,t,j,k,C,r,G,v);return e+=t,a.createElement(_,{key:n,color:r,ptg:t,radius:O,prefixCls:p,gradientId:M,style:i,strokeLinecap:G,strokeWidth:v,gapDegree:k,ref:function(e){K[n]=e},size:b})})).reverse()}())}},29301:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(54476),i=n(59301),s=n(11592),a=(n(48736),n(33885)),o=n(76190),l=n(76846),u=n(8654),c=i.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),m=n(83652),g=n(42403),v=n(158),y=function(e){(0,g.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,p.Z)(this,n),t.apply(this,arguments)}return(0,m.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function _(e,t){var n=e.children,r=e.disabled,s=i.useRef(null),d=i.useRef(null),p=i.useContext(c),m="function"==typeof n,g=m?n(s):n,v=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),_=!m&&i.isValidElement(g)&&(0,u.Yr)(g),b=_?(0,u.C4)(g):null,x=(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)};i.useImperativeHandle(t,(function(){return w()}));var E=i.useRef(e);E.current=e;var A=i.useCallback((function(e){var t=E.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),s=i.width,o=i.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,m=u===Math.round(o)?o:u,g=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:f,offsetHeight:m});null==p||p(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return i.useEffect((function(){var e,t,n=w();return n&&!r&&(e=n,t=A,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,A)}}),[s.current,r]),i.createElement(y,{ref:d},_?i.cloneElement(g,{ref:x}):g)}var b=i.forwardRef(_);function x(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 i.createElement(b,(0,r.Z)({},e,{key:a,ref:0===s?t:void 0}),n)}))}var w=i.forwardRef(x);w.Collection=function(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),s=i.useRef([]),a=i.useContext(c),o=i.useCallback((function(e,t,i){r.current+=1;var o=r.current;s.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){o===r.current&&(null==n||n(s.current),s.current=[])})),null==a||a(e,t,i)}),[n,a]);return i.createElement(c.Provider,{value:o},t)};var E=w},6551:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(42978),i=n(59301),s=n(47273),a=0,o=(0,s.Z)();function l(e){var t=i.useState(),n=(0,r.Z)(t,2),s=n[0],l=n[1];return i.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 ie},ZP:function(){return ke},lk:function(){return b}});var r=n(54476),i=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),m=n(34280),g=n(49658),v=n(8654),y=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,s=e.onMouseDown,a=e.onClick,o="function"==typeof n?n(r):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")})))},i))},_=h.createContext(null);function b(){return h.useContext(_)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),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},r]}var w=n(10228);var E=n(26112),A=n(11780);var k=function(e,t,n){var r=(0,a.Z)((0,a.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var i=t[n];"function"==typeof i&&(r[n]=function(){for(var t,r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];return i.apply(void 0,s),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(s))})})),r},C=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],T=function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,s=e.autoFocus,o=e.autoComplete,u=e.editable,c=e.activeDescendantId,f=e.value,m=e.open,g=e.attrs,y=(0,l.Z)(e,C),_=i||h.createElement("input",null),b=_,x=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"},k(y,w,!0)),{},{id:r,ref:(0,v.sQ)(t,x),autoComplete:o||"off",autoFocus:s,className:p()("".concat(n,"-selection-search-input"),null==w?void 0:w.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":m?c:void 0},g),{},{value:u?f:"",readOnly:!u,unselectable:u?null:"on",style:(0,a.Z)((0,a.Z)({},w.style),{},{opacity:u?null:0})}))};var D=h.forwardRef(T);function S(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var P="undefined"!=typeof window&&window.document&&window.document.documentElement;function L(e){return["string","number"].includes((0,u.Z)(e))}function I(e){var t=void 0;return e&&(L(e.title)?t=e.title.toString():L(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var R=function(e){e.preventDefault(),e.stopPropagation()},M=function(e){var t,n,r=e.id,i=e.prefixCls,a=e.values,l=e.open,u=e.searchValue,c=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,m=e.disabled,g=e.mode,v=e.showSearch,_=e.autoFocus,b=e.autoComplete,x=e.activeDescendantId,w=e.tabIndex,k=e.removeIcon,C=e.maxTagCount,T=e.maxTagTextLength,S=e.maxTagPlaceholder,L=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,M=e.tagRender,O=e.onToggleOpen,F=e.onRemove,j=e.onInputChange,B=e.onInputPaste,z=e.onInputKeyDown,H=e.onInputMouseDown,Z=e.onInputCompositionStart,U=e.onInputCompositionEnd,Y=e.onInputBlur,X=h.useRef(null),G=(0,h.useState)(0),W=(0,o.Z)(G,2),K=W[0],V=W[1],Q=(0,h.useState)(!1),q=(0,o.Z)(Q,2),J=q[0],$=q[1],ee="".concat(i,"-selection"),te=l||"multiple"===g&&!1===c||"tags"===g?u:"",ne="tags"===g||"multiple"===g&&!1===c||v&&(l||J);t=function(){V(X.current.scrollWidth)},n=[te],P?h.useLayoutEffect(t,n):h.useEffect(t,n);var re=function(e,t,n,r,i){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),r&&h.createElement(y,{className:"".concat(ee,"-item-remove"),onMouseDown:R,onClick:i,customizeIcon:k},"×"))},ie=function(e,t,n,r,i,s){return h.createElement("span",{onMouseDown:function(e){R(e),O(!l)}},M({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!s}))},se=h.createElement("div",{className:"".concat(ee,"-search"),style:{width:K},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},h.createElement(D,{ref:d,open:l,prefixCls:i,id:r,inputElement:null,disabled:m,autoFocus:_,autoComplete:b,editable:ne,activeDescendantId:x,value:te,onKeyDown:z,onMouseDown:H,onChange:j,onPaste:B,onCompositionStart:Z,onCompositionEnd:U,onBlur:Y,tabIndex:w,attrs:(0,E.Z)(e,!0)}),h.createElement("span",{ref:X,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},te," ")),ae=h.createElement(A.Z,{prefixCls:"".concat(ee,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!m&&!t,s=n;if("number"==typeof T&&("string"==typeof n||"number"==typeof n)){var a=String(s);a.length>T&&(s="".concat(a.slice(0,T),"..."))}var o=function(t){t&&t.stopPropagation(),F(e)};return"function"==typeof M?ie(r,s,t,i,o):re(e,s,t,i,o)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof L?L(e):L;return"function"==typeof M?ie(void 0,t,!1,!1,void 0,!0):re({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,r=e.id,i=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,m=e.tabIndex,g=e.showSearch,v=e.searchValue,y=e.activeValue,_=e.maxLength,b=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,A=e.onInputPaste,k=e.onInputCompositionStart,C=e.onInputCompositionEnd,T=e.onInputBlur,S=e.title,P=h.useState(!1),L=(0,o.Z)(P,2),N=L[0],R=L[1],M="combobox"===c,O=M||g,F=f[0],j=v||"";M&&y&&!N&&(j=y),h.useEffect((function(){M&&R(!1)}),[M,y]);var B=!("combobox"!==c&&!d&&!g)&&!!j,z=void 0===S?I(F):S,H=h.useMemo((function(){return F?null:h.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:B?{visibility:"hidden"}:void 0},p)}),[F,B,p,n]);return h.createElement("span",{className:"".concat(n,"-selection-wrap")},h.createElement("span",{className:"".concat(n,"-selection-search")},h.createElement(D,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:s,autoFocus:a,autoComplete:l,editable:O,activeDescendantId:u,value:j,onKeyDown:b,onMouseDown:x,onChange:function(e){R(!0),w(e)},onPaste:A,onCompositionStart:k,onCompositionEnd:C,onBlur:T,tabIndex:m,attrs:(0,E.Z)(e,!0),maxLength:M?_:void 0})),!M&&F?h.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:B?{visibility:"hidden"}:void 0},F.label):null,H)},F=function(e,t){var n=(0,h.useRef)(null),i=(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,m=e.onSearch,g=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 E=x(0),A=(0,o.Z)(E,2),k=A[0],C=A[1],T=(0,h.useRef)(null),D=function(e){!1!==m(e,!0,i.current)&&v(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,s=n.current instanceof HTMLTextAreaElement;(s||!a||r!==w.Z.UP&&r!==w.Z.DOWN||e.preventDefault(),y&&y(e),r!==w.Z.ENTER||"tags"!==l||i.current||a||null==g||g(e.target.value),s&&!a&&~[w.Z.UP,w.Z.DOWN,w.Z.LEFT,w.Z.RIGHT].indexOf(r))||(t=r)&&![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&&T.current&&/[\r\n]/.test(T.current)){var n=T.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,T.current)}T.current=null,D(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");T.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==l&&D(e.target.value)},onInputBlur:_},P="multiple"===l||"tags"===l?h.createElement(M,(0,r.Z)({},e,S)):h.createElement(O,(0,r.Z)({},e,S));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=k();e.target===n.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||u&&t)&&a||(a&&!1!==p&&m("",!0,!1),v())}},f&&h.createElement("div",{className:"".concat(s,"-prefix")},f),P)};var j=h.forwardRef(F),B=n(65030),z=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),o=e.children,u=e.popupElement,c=e.animation,d=e.transitionName,f=e.dropdownStyle,m=e.dropdownClassName,g=e.direction,v=void 0===g?"ltr":g,y=e.placement,_=e.builtinPlacements,b=e.dropdownMatchSelectWidth,x=e.dropdownRender,w=e.dropdownAlign,E=e.getPopupContainer,A=e.empty,k=e.getTriggerDOMNode,C=e.onPopupVisibleChange,T=e.onPopupMouseEnter,D=(0,l.Z)(e,z),S="".concat(n,"-dropdown"),P=u;x&&(P=x(u));var L=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(S,"-").concat(c):d,N="number"==typeof b,R=h.useMemo((function(){return N?null:!1===b?"minWidth":"width"}),[b,N]),M=f;N&&(M=(0,a.Z)((0,a.Z)({},M),{},{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(B.Z,(0,r.Z)({},D,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:y||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:L,prefixCls:S,popupTransitionName:I,popup:h.createElement("div",{onMouseEnter:T},P),ref:O,stretch:R,popupAlign:w,popupVisible:i,getPopupContainer:E,popupClassName:p()(m,(0,s.Z)({},"".concat(S,"-empty"),A)),popupStyle:M,getTriggerDOMNode:k,onPopupVisibleChange:C}),o)};var Z=h.forwardRef(H),U=n(66712);function Y(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function X(e){return void 0!==e&&!Number.isNaN(e)}function G(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}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 K=h.createContext(null);function V(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 Q=["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,E=e.tagRender,A=e.direction,k=e.omitDomProps,C=e.displayValues,T=e.onDisplayValuesChange,D=e.emptyOptions,S=e.notFoundContent,P=void 0===S?"Not Found":S,L=e.onClear,I=e.mode,N=e.disabled,R=e.loading,M=e.getInputElement,O=e.getRawInputElement,F=e.open,B=e.defaultOpen,z=e.onDropdownVisibleChange,H=e.activeValue,Y=e.onActiveValueChange,G=e.activeDescendantId,W=e.searchValue,$=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,re=e.allowClear,ie=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,me=e.placement,ge=e.builtinPlacements,ve=e.getPopupContainer,ye=e.showAction,_e=void 0===ye?[]:ye,be=e.onFocus,xe=e.onBlur,we=e.onKeyUp,Ee=e.onKeyDown,Ae=e.onMouseDown,ke=(0,l.Z)(e,Q),Ce=J(I),Te=(void 0!==w?w:Ce)||"combobox"===I,De=(0,a.Z)({},ke);q.forEach((function(e){delete De[e]})),null==k||k.forEach((function(e){delete De[e]}));var Se=h.useState(!1),Pe=(0,o.Z)(Se,2),Le=Pe[0],Ie=Pe[1];h.useEffect((function(){Ie((0,g.Z)())}),[]);var Ne=h.useRef(null),Re=h.useRef(null),Me=h.useRef(null),Oe=h.useRef(null),Fe=h.useRef(null),je=h.useRef(!1),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=h.useState(!1),n=(0,o.Z)(t,2),r=n[0],i=n[1],s=h.useRef(null),a=function(){window.clearTimeout(s.current)};return h.useEffect((function(){return a}),[]),[r,function(t,n){a(),s.current=window.setTimeout((function(){i(t),n&&n()}),e)},a]}(),ze=(0,o.Z)(Be,3),He=ze[0],Ze=ze[1],Ue=ze[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||Re.current}}));var Ye=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]),Xe="combobox"===I&&"function"==typeof M&&M()||null,Ge="function"==typeof O&&O(),We=(0,v.x1)(Re,null==Ge||null===(n=Ge.props)||void 0===n?void 0:n.ref),Ke=h.useState(!1),Ve=(0,o.Z)(Ke,2),Qe=Ve[0],qe=Ve[1];(0,m.Z)((function(){qe(!0)}),[]);var Je=(0,c.Z)(!1,{defaultValue:B,value:F}),$e=(0,o.Z)(Je,2),et=$e[0],tt=$e[1],nt=!!Qe&&et,rt=!P&&D;(N||rt&&nt&&"combobox"===I)&&(nt=!1);var it=!rt&&nt,st=h.useCallback((function(e){var t=void 0!==e?e:!nt;N||(tt(t),nt!==t&&(null==z||z(t)))}),[N,nt,tt,z]),at=h.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),ot=h.useContext(K)||{},lt=ot.maxCount,ut=ot.rawValues,ct=function(e,t,n){if(!(Ce&&X(lt)&&(null==ut?void 0:ut.size)>=lt)){var r=!0,s=e;null==Y||Y(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,s=function e(t,n){var s=(0,U.Z)(n),a=s[0],o=s.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce((function(t,n){return[].concat((0,i.Z)(t),(0,i.Z)(e(n,o)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?s.slice(0,n):s:null}(e,ne,X(lt)?lt-ut.size:void 0),o=n?null:a;return"combobox"!==I&&o&&(s="",null==te||te(o),st(!1),r=!1),ee&&Ye!==s&&ee(s,{source:t?"typing":"effect"}),r}};h.useEffect((function(){nt||Ce||"combobox"===I||ct("",!1,!1)}),[nt]),h.useEffect((function(){et&&N&&tt(!1),N&&!je.current&&Ze(!1)}),[N]);var dt=x(),ht=(0,o.Z)(dt,2),ft=ht[0],pt=ht[1],mt=h.useRef(!1),gt=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];Ge&&(yt=function(e){st(e)}),function(e,t,n,r){var i=h.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},h.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=Me.current)||void 0===e?void 0:e.getPopupElement()]}),it,st,!!Ge);var xt,wt=h.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:P,open:nt,triggerOpen:it,id:d,showSearch:Te,multiple:Ce,toggleOpen:st})}),[e,P,it,nt,d,Te,Ce,st]),Et=!!se||R;Et&&(xt=h.createElement(y,{className:p()("".concat(f,"-arrow"),(0,s.Z)({},"".concat(f,"-arrow-loading"),R)),customizeIcon:se,customizeIconProps:{loading:R,searchValue:Ye,open:nt,focused:He,showSearch:Te}}));var At,kt=function(e,t,n,r,i){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)(r)?r.clearIcon:i||void 0}),[r,i]),c=h.useMemo((function(){return!(s||!r||!n.length&&!a||"combobox"===o&&""===a)}),[r,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==L||L(),null===(e=Oe.current)||void 0===e||e.focus(),T([],{type:"clear",values:C}),ct("",!1,!1)}),C,re,ae,N,Ye,I),Ct=kt.allowClear,Tt=kt.clearIcon,Dt=h.createElement(oe,{ref:Fe}),St=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"),He),"".concat(f,"-multiple"),Ce),"".concat(f,"-single"),!Ce),"".concat(f,"-allow-clear"),re),"".concat(f,"-show-arrow"),Et),"".concat(f,"-disabled"),N),"".concat(f,"-loading"),R),"".concat(f,"-open"),nt),"".concat(f,"-customize-input"),Xe),"".concat(f,"-show-search"),Te)),Pt=h.createElement(Z,{ref:Me,disabled:N,prefixCls:f,visible:it,popupElement:Dt,animation:le,transitionName:ue,dropdownStyle:ce,dropdownClassName:de,direction:A,dropdownMatchSelectWidth:he,dropdownRender:fe,dropdownAlign:pe,placement:me,builtinPlacements:ge,getPopupContainer:ve,empty:D,getTriggerDOMNode:function(e){return Re.current||e},onPopupVisibleChange:yt,onPopupMouseEnter:function(){bt({})}},Ge?h.cloneElement(Ge,{ref:We}):h.createElement(j,(0,r.Z)({},e,{domRef:Re,prefixCls:f,inputElement:Xe,ref:Oe,id:d,prefix:ie,showSearch:Te,autoClearSearchValue:$,mode:I,activeDescendantId:G,tagRender:E,values:C,open:nt,onToggleOpen:st,activeValue:H,searchValue:Ye,onSearch:ct,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=C.filter((function(t){return t!==e}));T(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){mt.current=!1}})));return At=Ge?Pt:h.createElement("div",(0,r.Z)({className:St},De,{ref:Ne,onMouseDown:function(e){var t,n=e.target,r=null===(t=Me.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var i=setTimeout((function(){var e,t=vt.indexOf(i);-1!==t&&vt.splice(t,1),Ue(),Le||r.contains(document.activeElement)||null===(e=Oe.current)||void 0===e||e.focus()}));vt.push(i)}for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];null==Ae||Ae.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=ft(),r=e.key,s="Enter"===r;if(s&&("combobox"!==I&&e.preventDefault(),nt||st(!0)),pt(!!Ye),"Backspace"===r&&!n&&Ce&&!Ye&&C.length){for(var a=(0,i.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&&T(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&&mt.current||(s&&(mt.current=!0),null===(t=Fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(d))),null==Ee||Ee.apply(void 0,[e].concat(d))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i;nt&&(null===(i=Fe.current)||void 0===i||i.onKeyUp.apply(i,[e].concat(n))),"Enter"===e.key&&(mt.current=!1),null==we||we.apply(void 0,[e].concat(n))},onFocus:function(){Ze(!0),N||(be&&!gt.current&&be.apply(void 0,arguments),_e.includes("focus")&&st(!0)),gt.current=!0},onBlur:function(){je.current=!0,Ze(!1,(function(){gt.current=!1,je.current=!1,st(!1)})),N||(Ye&&("tags"===I?ee(Ye,{source:"submit"}):"multiple"===I&&ee("",{source:"blur"})),xe&&xe.apply(void 0,arguments))}}),h.createElement(V,{visible:He&&!nt,values:C}),Pt,xt,Ct&&Tt),h.createElement(_.Provider,{value:wt},At)}));var ee=$,te=function(){return null};te.isSelectOptGroup=!0;var ne=te,re=function(){return null};re.isSelectOption=!0;var ie=re,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,m=n.searchValue,g=n.toggleOpen,v=n.notFoundContent,_=n.onPopupScroll,x=h.useContext(K),A=x.maxCount,k=x.flattenOptions,C=x.onActiveValue,T=x.defaultActiveFirstOption,D=x.onSelect,S=x.menuItemSelectedIcon,P=x.rawValues,L=x.fieldNames,I=x.virtual,N=x.direction,R=x.listHeight,M=x.listItemHeight,O=x.optionRender,F="".concat(a,"-item"),j=(0,se.Z)((function(){return k}),[c,k],(function(e,t){return t[0]&&e[1]!==t[1]})),B=h.useRef(null),z=h.useMemo((function(){return d&&X(A)&&(null==P?void 0:P.size)>=A}),[d,A,null==P?void 0:P.size]),H=function(e){e.preventDefault()},Z=function(e){var t;null===(t=B.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},U=h.useCallback((function(e){return"combobox"!==f&&P.has(e)}),[f,(0,i.Z)(P).toString(),P.size]),Y=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,r=0;r<n;r+=1){var i=(e+r*t+n)%n,s=j[i]||{},a=s.group,o=s.data;if(!a&&(null==o||!o.disabled)&&(U(o.value)||!z))return i}return-1},G=h.useState((function(){return Y(0)})),W=(0,o.Z)(G,2),V=W[0],Q=W[1],q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Q(e);var n={source:t?"keyboard":"mouse"},r=j[e];r?C(r.value,e,n):C(null,-1,n)};(0,h.useEffect)((function(){q(!1!==T?Y(0):-1)}),[j.length,m]);var J=h.useCallback((function(e){return"combobox"===f?String(e).toLowerCase()===m.toLowerCase():P.has(e)}),[f,m,(0,i.Z)(P).toString(),P.size]);(0,h.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&c&&1===P.size){var e=Array.from(P)[0],t=j.findIndex((function(t){var n=t.data;return m?String(n.value).startsWith(m):n.value===e}));-1!==t&&(q(t),Z(t))}}));c&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[c,m]);var $=function(e){void 0!==e&&D(e,{selected:!P.has(e)}),d||g(!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 r=0;if(t===w.Z.UP?r=-1:t===w.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===w.Z.N?r=1:t===w.Z.P&&(r=-1)),0!==r){var i=Y(V+r,r);Z(i),q(i,!0)}break;case w.Z.TAB:case w.Z.ENTER:var s,a=j[V];!a||null!=a&&null!==(s=a.data)&&void 0!==s&&s.disabled||z?$(void 0):$(a.value),c&&e.preventDefault();break;case w.Z.ESC:g(!1),c&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){Z(e)}}})),0===j.length)return h.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(F,"-empty"),onMouseDown:H},v);var ee=Object.keys(L).map((function(e){return L[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var re=function(e){var t=j[e];if(!t)return null;var n=t.data||{},i=n.value,s=t.group,a=(0,E.Z)(n,!0),o=te(t);return t?h.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof o||s?null:o},a,{key:e},ne(t,e),{"aria-selected":J(i)}),i):null},ie={role:"listbox",id:"".concat(u,"_list")};return h.createElement(h.Fragment,null,I&&h.createElement("div",(0,r.Z)({},ie,{style:{height:0,width:0,overflow:"hidden"}}),re(V-1),re(V),re(V+1)),h.createElement(oe.Z,{itemKey:"key",ref:B,data:j,height:R,itemHeight:M,fullHeight:!1,onMouseDown:H,onScroll:_,virtual:I,direction:N,innerProps:I?null:ie},(function(e,t){var n=e.group,i=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 m=a.disabled,g=a.title,v=(a.children,a.style),_=a.className,b=(0,l.Z)(a,le),x=(0,ae.Z)(b,ee),w=U(u),A=m||!w&&z,k="".concat(F,"-option"),C=p()(F,k,_,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(k,"-grouped"),i),"".concat(k,"-active"),V===t&&!A),"".concat(k,"-disabled"),A),"".concat(k,"-selected"),w)),T=te(e),D=!S||"function"==typeof S||w,P="number"==typeof T?T:T||u,L=ue(P)?P.toString():void 0;return void 0!==g&&(L=g),h.createElement("div",(0,r.Z)({},(0,E.Z)(x),I?{}:ne(e,t),{"aria-selected":J(u),className:C,title:L,onMouseMove:function(){V===t||A||q(t)},onClick:function(){A||$(u)},style:v}),h.createElement("div",{className:"".concat(k,"-content")},"function"==typeof O?O(e,{index:t}):P),h.isValidElement(S)||w,D&&h.createElement(y,{className:"".concat(F,"-option-state"),customizeIcon:S,customizeIconProps:{value:u,disabled:A,isSelected:w}},w?"✓":null))})))};var de=h.forwardRef(ce);function he(e,t){return S(e).join("").toUpperCase().includes(t)}var fe=n(6551),pe=n(11592),me=["children","value"],ge=["children"];function ve(e){var t=e,n=t.key,r=t.props,i=r.children,s=r.value,o=(0,l.Z)(r,me);return(0,a.Z)({key:n,value:void 0!==s?s:n,children:i},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 r=e,i=r.type.isSelectOptGroup,s=r.key,o=r.props,u=o.children,c=(0,l.Z)(o,ge);return t||!i?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,r,i){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,r),l(o,c,i)):e(c[n.options],!0)}}(s),{options:s,valueOptions:a,labelOptions:o}}),[e,t,n,r,i])};function be(e){var t=h.useRef();t.current=e;var n=h.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var xe=["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 Ee=h.forwardRef((function(e,t){var n=e.id,d=e.mode,f=e.prefixCls,p=void 0===f?"rc-select":f,m=e.backfill,g=e.fieldNames,v=e.inputValue,y=e.searchValue,_=e.onSearch,b=e.autoClearSearchValue,x=void 0===b||b,w=e.onSelect,E=e.onDeselect,A=e.dropdownMatchSelectWidth,k=void 0===A||A,C=e.filterOption,T=e.filterSort,D=e.optionFilterProp,P=e.optionLabelProp,L=e.options,I=e.optionRender,N=e.children,R=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,O=e.virtual,F=e.direction,j=e.listHeight,B=void 0===j?200:j,z=e.listItemHeight,H=void 0===z?20:z,Z=e.labelRender,U=e.value,X=e.defaultValue,V=e.labelInValue,Q=e.onChange,q=e.maxCount,$=(0,l.Z)(e,xe),te=(0,fe.ZP)(n),ne=J(d),re=!(L||!N),ie=h.useMemo((function(){return(void 0!==C||"combobox"!==d)&&C}),[C,d]),se=h.useMemo((function(){return G(g,re)}),[JSON.stringify(g),re]),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(L,N,se,D,P),pe=ce.valueOptions,me=ce.labelOptions,ge=ce.options,ve=h.useCallback((function(e){return S(e).map((function(e){var t,n,r,i,s,a;(function(e){return!e||"object"!==(0,u.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var o,l=pe.get(t);l&&(void 0===n&&(n=null==l?void 0:l[P||se.label]),void 0===r&&(r=null!==(o=null==l?void 0:l.key)&&void 0!==o?o:t),i=null==l?void 0:l.disabled,s=null==l?void 0:l.title);return{label:n,value:t,key:r,disabled:i,title:s}}))}),[se,P,pe]),ye=(0,c.Z)(X,{value:U}),Ee=(0,o.Z)(ye,2),Ae=Ee[0],ke=Ee[1],Ce=h.useMemo((function(){var e,t=ve(ne&&null===Ae?[]:Ae);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[Ae,ve,d,ne]),Te=function(e,t){var n=h.useRef({values:new Map,options:new Map});return[h.useMemo((function(){var r=n.current,i=r.values,s=r.options,o=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=i.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),De=(0,o.Z)(Te,2),Se=De[0],Pe=De[1],Le=h.useMemo((function(){if(!d&&1===Se.length){var e=Se[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Se.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t="function"==typeof Z?Z(e):e.label)&&void 0!==t?t:e.value})}))}),[d,Se,Z]),Ie=h.useMemo((function(){return new Set(Se.map((function(e){return e.value})))}),[Se]);h.useEffect((function(){if("combobox"===d){var e,t=null===(e=Se[0])||void 0===e?void 0:e.value;ue(function(e){return null!=e}(t)?String(t):"")}}),[Se]);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)})),Re=function(e,t,n,r,i){return h.useMemo((function(){if(!n||!1===r)return e;var o=t.options,l=t.label,u=t.value,c=[],d="function"==typeof r,h=n.toUpperCase(),f=d?r:function(e,t){return i?he(t[i],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,r,i,n,t])}(h.useMemo((function(){if("tags"!==d)return ge;var e=(0,i.Z)(ge);return(0,i.Z)(Se).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,ge,pe,Se,d]),se,le,ie,D),Me=h.useMemo((function(){return"tags"!==d||!le||Re.some((function(e){return e[D||"value"]===le}))||Re.some((function(e){return e[se.value]===le}))?Re:[Ne(le)].concat((0,i.Z)(Re))}),[Ne,D,d,Re,le,se]),Oe=function e(t){return(0,i.Z)(t).sort((function(e,t){return T(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 T?Oe(Me):Me}),[Me,T,le]),je=h.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],s=G(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];i.push({key:Y(e,i.length),groupOption:t,data:e,label:e[a],value:n})}else{var s=e[u];void 0===s&&r&&(s=e.label),i.push({key:Y(e,i.length),group:!0,data:e,label:s}),c(e[l],!0)}}))}return c(e,!1),i}(Fe,{fieldNames:se,childrenAsData:re})}),[Fe,se,re]),Be=function(e){var t=ve(e);if(ke(t),Q&&(t.length!==Se.length||t.some((function(e,t){var n;return(null===(n=Se[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=V?t:t.map((function(e){return e.value})),r=t.map((function(e){return W(Pe(e.value))}));Q(ne?n:n[0],ne?r:r[0])}},ze=h.useState(null),He=(0,o.Z)(ze,2),Ze=He[0],Ue=He[1],Ye=h.useState(0),Xe=(0,o.Z)(Ye,2),Ge=Xe[0],We=Xe[1],Ke=void 0!==R?R:"combobox"!==d,Ve=h.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,i=void 0===r?"keyboard":r;We(t),m&&"combobox"===d&&null!==e&&"keyboard"===i&&Ue(String(e))}),[m,d]),Qe=function(e,t,n){var r=function(){var t,n=Pe(e);return[V?{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 i=r(),s=(0,o.Z)(i,2),a=s[0],l=s[1];w(a,l)}else if(!t&&E&&"clear"!==n){var u=r(),c=(0,o.Z)(u,2),d=c[0],h=c[1];E(d,h)}},qe=be((function(e,t){var n,r=!ne||t.selected;n=r?ne?[].concat((0,i.Z)(Se),[e]):[e]:Se.filter((function(t){return t.value!==e})),Be(n),Qe(e,r),"combobox"===d?Ue(""):J&&!x||(ue(""),Ue(""))})),Je=h.useMemo((function(){var e=!1!==O&&!1!==k;return(0,a.Z)((0,a.Z)({},ce),{},{flattenOptions:je,onActiveValue:Ve,defaultActiveFirstOption:Ke,onSelect:qe,menuItemSelectedIcon:M,rawValues:Ie,fieldNames:se,virtual:e,direction:F,listHeight:B,listItemHeight:H,childrenAsData:re,maxCount:q,optionRender:I})}),[q,ce,je,Ve,Ke,qe,M,Ie,se,O,k,F,B,H,re,I]);return h.createElement(K.Provider,{value:Je},h.createElement(ee,(0,r.Z)({},$,{id:te,prefixCls:p,ref:t,omitDomProps:we,mode:d,displayValues:Le,onDisplayValuesChange:function(e,t){Be(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Qe(e.value,!1,n)}))},direction:F,searchValue:le,onSearch:function(e,t){if(ue(e),Ue(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&Be(e),null==_||_(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,i.Z)(Ie),[n])));Be(r),Qe(n,!0),ue("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=me.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,i.Z)(Ie),(0,i.Z)(t))));Be(n),n.forEach((function(e){Qe(e,!0)}))},dropdownMatchSelectWidth:k,OptionList:de,emptyOptions:!je.length,activeValue:Ze,activeDescendantId:"".concat(te,"_list_").concat(Ge)})))}));var Ae=Ee;Ae.Option=ie,Ae.OptGroup=ne;var ke=Ae},86351:function(e,t,n){"use strict";n.d(t,{R:function(){return i},w:function(){return r}});var r={},i="rc-table-internal-hook"},97347:function(e,t,n){"use strict";n.d(t,{L:function(){return g},Z:function(){return _}});var r=n(42978),i=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"],m=["fixed"];function g(e){return(0,u.Z)(e).filter((function(e){return c.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,i=(0,l.Z)(n,p),s=(0,o.Z)({key:t},i);return r&&(s.children=g(r)),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,r){var i=n.fixed,a=!0===i?"left":i,l="".concat(t,"-").concat(r),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,x=e.onTriggerExpand,w=e.expandIcon,E=e.rowExpandable,A=e.expandIconColumnIndex,k=e.direction,C=e.expandRowByClick,T=e.columnWidth,D=e.fixed,S=e.scrollWidth,P=e.clientWidth,L=c.useMemo((function(){return v((s||g(a)||[]).slice())}),[s,a]),I=c.useMemo((function(){if(u){var e=L.slice();if(!e.includes(d.w)){var t=A||0;t>=0&&(t||"left"===D||!D)&&e.splice(t,0,d.w),"right"===D&&e.splice(L.length,0,d.w)}0;var r=e.indexOf(d.w);e=e.filter((function(e,t){return e!==d.w||t===r}));var s,a=L[r];s=D||(a?a.fixed:null);var o=(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},h.v,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",_),"fixed",s),"className","".concat(n,"-row-expand-icon-cell")),"width",T),"render",(function(e,t,r){var i=b(t,r),s=p.has(i),a=!E||E(t),o=w({prefixCls:n,expanded:s,expandable:a,record:t,onExpand:x});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 L.filter((function(e){return e!==d.w}))}),[u,L,b,p,w,k]),N=c.useMemo((function(){var e=I;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,I,k]),R=c.useMemo((function(){return"rtl"===k?function(e){return e.map((function(e){var t=e.fixed,n=(0,l.Z)(e,m),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,o.Z)({fixed:r},n)}))}(y(N)):y(N)}),[N,k,S]),M=c.useMemo((function(){for(var e=-1,t=R.length-1;t>=0;t-=1){var n=R[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var i=R[r].fixed;if("left"!==i&&!0!==i)return!0}var s=R.findIndex((function(e){return"right"===e.fixed}));if(s>=0)for(var a=s;a<R.length;a+=1){if("right"!==R[a].fixed)return!0}return!1}),[R]),O=function(e,t,n){return c.useMemo((function(){if(t&&t>0){var r=0,i=0;e.forEach((function(e){var n=f(t,e.width);n?r+=n:i+=1}));var s=Math.max(t,n),a=Math.max(s-r,i),l=i,u=a/i,c=0,d=e.map((function(e){var n=(0,o.Z)({},e),r=f(t,n.width);if(r)n.width=r;else{var i=Math.floor(u);n.width=1===l?a:i,a-=i,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])}(R,S,P),F=(0,r.Z)(O,2),j=F[0],B=F[1];return[N,j,B,M]}},4030:function(e,t,n){"use strict";n.d(t,{w2:function(){return r.w},vP:function(){return se.v},RQ:function(){return r.R},ER:function(){return Z},Q$:function(){return Ie},TN:function(){return Xe}});var r=n(86351),i=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,r=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,i.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},r)},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}),r=l.useContext(null==e?void 0:e.Context),u=r||{},c=u.listeners,d=u.getValue,h=l.useRef();h.current=n(r?d():null==e?void 0:e.defaultValue);var f=l.useState({}),p=(0,i.Z)(f,2)[1];return(0,a.Z)((function(){if(r)return c.add(e),function(){c.delete(e)};function e(e){var t=n(e);(0,o.Z)(h.current,t,!0)||p({})}}),[r]),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,r){var i=(0,f.Yr)(n),s=function(s,a){var o=i?{ref:a}:{},u=l.useRef(0),c=l.useRef(s);return null!==t()?l.createElement(n,(0,h.Z)({},s,o)):(r&&!r(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 i?l.forwardRef(s):s},responseImmutable:function(e,n){var r=(0,f.Yr)(e),i=function(n,i){var s=r?{ref:i}:{};return t(),l.createElement(e,(0,h.Z)({},n,s))};return r?l.memo(l.forwardRef(i),n):l.memo(i,n)},useImmutableMark:t}}var m=p(),g=(m.makeImmutable,m.responseImmutable,m.useImmutableMark,p()),v=g.makeImmutable,y=g.responseImmutable,_=g.useImmutableMark,b=c();var x=n(76190),w=n(33885),E=n(20068),A=n(92310),k=n.n(A),C=n(80547),T=n(97938),D=(n(48736),l.createContext({renderWithProps:!1}));function S(e){var t=[],n={};return e.forEach((function(e){for(var r,i=e||{},s=i.key,a=i.dataIndex,o=s||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[o];)o="".concat(o,"_next");n[o]=!0,t.push(o)})),t}function P(e){return null!=e}function L(e,t,n,r,s,a){var u=l.useContext(D),c=_();return(0,C.Z)((function(){if(P(r))return[r];var i,a=null==t||""===t?[]:Array.isArray(t)?t:[t],o=(0,T.Z)(e,a),c=o,d=void 0;if(s){var h=s(o,e,n);!(i=h)||"object"!==(0,x.Z)(i)||Array.isArray(i)||l.isValidElement(i)?c=h:(c=h.children,d=h.props,u.renderWithProps=!0)}return[c,d]}),[c,e,r,t,s,n],(function(e,t){if(a){var n=(0,i.Z)(e,2)[1],r=(0,i.Z)(t,2)[1];return a(r,n)}return!!u.renderWithProps||!(0,o.Z)(e,t,!0)}))}var I=n(70425);function N(e){var t,n,r,s,a,o,u,c;var f=e.component,p=e.children,m=e.ellipsis,g=e.scope,v=e.prefixCls,y=e.className,_=e.align,A=e.record,C=e.render,T=e.dataIndex,D=e.renderIndex,S=e.shouldCellUpdate,P=e.index,N=e.rowType,R=e.colSpan,M=e.rowSpan,O=e.fixLeft,F=e.fixRight,j=e.firstFixLeft,B=e.lastFixLeft,z=e.firstFixRight,H=e.lastFixRight,Z=e.appendNode,U=e.additionalProps,Y=void 0===U?{}:U,X=e.isSticky,G="".concat(v,"-cell"),W=d(b,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=W.supportSticky,V=W.allColumnsFixedLeft,Q=W.rowHoverable,q=L(A,T,D,p,C,S),J=(0,i.Z)(q,2),$=J[0],ee=J[1],te={},ne="number"==typeof O&&K,re="number"==typeof F&&K;ne&&(te.position="sticky",te.left=O),re&&(te.position="sticky",te.right=F);var ie=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:Y.colSpan)&&void 0!==n?n:R)&&void 0!==t?t:1,se=null!==(s=null!==(a=null!==(o=null==ee?void 0:ee.rowSpan)&&void 0!==o?o:Y.rowSpan)&&void 0!==a?a:M)&&void 0!==s?s:1,ae=function(e,t){return d(b,(function(n){var r,i,s,a;return[(r=e,i=t||1,s=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+i-1>=s),n.onHover]}))}(P,se),oe=(0,i.Z)(ae,2),le=oe[0],ue=oe[1],ce=(0,I.zX)((function(e){var t;A&&ue(P,P+se-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)})),de=(0,I.zX)((function(e){var t;A&&ue(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)}));if(0===ie||0===se)return null;var he=null!==(u=Y.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,s=!0===n?{showTitle:!0}:n;return s&&(s.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():l.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:N,ellipsis:m,children:$}),fe=k()(G,y,(c={},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)(c,"".concat(G,"-fix-left"),ne&&K),"".concat(G,"-fix-left-first"),j&&K),"".concat(G,"-fix-left-last"),B&&K),"".concat(G,"-fix-left-all"),B&&V&&K),"".concat(G,"-fix-right"),re&&K),"".concat(G,"-fix-right-first"),z&&K),"".concat(G,"-fix-right-last"),H&&K),"".concat(G,"-ellipsis"),m),"".concat(G,"-with-append"),Z),"".concat(G,"-fix-sticky"),(ne||re)&&X&&K),(0,E.Z)(c,"".concat(G,"-row-hover"),!ee&&le)),Y.className,null==ee?void 0:ee.className),pe={};_&&(pe.textAlign=_);var me=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},null==ee?void 0:ee.style),te),pe),Y.style),ge=$;return"object"!==(0,x.Z)(ge)||Array.isArray(ge)||l.isValidElement(ge)||(ge=null),m&&(B||z)&&(ge=l.createElement("span",{className:"".concat(G,"-content")},ge)),l.createElement(f,(0,h.Z)({},ee,Y,{className:fe,style:me,title:he,scope:g,onMouseEnter:Q?ce:void 0,onMouseLeave:Q?de:void 0,colSpan:1!==ie?ie:null,rowSpan:1!==se?se:null}),Z,ge)}var R=l.memo(N);function M(e,t,n,r,i){var s,a,o=n[e]||{},l=n[t]||{};"left"===o.fixed?s=r.left["rtl"===i?t:e]:"right"===l.fixed&&(a=r.right["rtl"===i?e:t]);var u=!1,c=!1,d=!1,h=!1,f=n[t+1],p=n[e-1],m=f&&!f.fixed||p&&!p.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===i){if(void 0!==s)h=!(p&&"left"===p.fixed)&&m;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&m}}else if(void 0!==s){u=!(f&&"left"===f.fixed)&&m}else if(void 0!==a){c=!(p&&"right"===p.fixed)&&m}return{fixLeft:s,fixRight:a,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}var O=l.createContext({});var F=n(75931),j=["children"];function B(e){return e.children}B.Row=function(e){var t=e.children,n=(0,F.Z)(e,j);return l.createElement("tr",n,t)},B.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,s=void 0===i?1:i,a=e.rowSpan,o=e.align,u=d(b,["prefixCls","direction"]),c=u.prefixCls,f=u.direction,p=l.useContext(O),m=p.scrollColumnIndex,g=p.stickyOffsets,v=n+s-1+1===m?s+1:s,y=M(n,n+v-1,p.flattenColumns,g,f);return l.createElement(R,(0,h.Z)({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:o,colSpan:v,rowSpan:a,render:function(){return r}},y))};var z=B;var H=y((function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=d(b,"prefixCls"),s=r.length-1,a=r[s],o=l.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=a&&a.scrollbar?s:null}}),[a,r,s,n]);return l.createElement(O.Provider,{value:o},l.createElement("tfoot",{className:"".concat(i,"-summary")},t))})),Z=z,U=n(29301),Y=n(24514),X=n(75152),G=n(26112);function W(e,t,n,r,i,s,a){e.push({record:t,indent:n,index:a});var o=s(t),l=null==i?void 0:i.has(o);if(t&&Array.isArray(t[r])&&l)for(var u=0;u<t[r].length;u+=1)W(e,t[r][u],n+1,r,i,s,u)}function K(e,t,n,r){return l.useMemo((function(){if(null!=n&&n.size){for(var i=[],s=0;s<(null==e?void 0:e.length);s+=1){W(i,e[s],0,t,n,r,s)}return i}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,r])}function V(e,t,n,r){var i,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,m=s.rowClassName,g="nest"===o,v="row"===o&&(!h||h(e)),y=v||g,_=l&&l.has(t),x=u&&e&&e[u],E=(0,I.zX)(c),A=null==f?void 0:f(e,n),C=null==A?void 0:A.onClick;"string"==typeof m?i=m:"function"==typeof m&&(i=m(e,n,r));var T=S(a);return(0,w.Z)((0,w.Z)({},s),{},{columnsKey:T,nestExpandable:g,expanded:_,hasNestChildren:x,record:e,onTriggerExpand:E,rowSupportExpand:v,expandable:y,rowProps:(0,w.Z)((0,w.Z)({},A),{},{className:k()(i,null==A?void 0:A.className),onClick:function(t){p&&y&&c(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null==C||C.apply(void 0,[t].concat(r))}})})}var Q=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=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,m=c.componentWidth,g=c.horizonScroll,v=n;return(u?g&&m:p)&&(v=l.createElement("div",{style:{width:m-(f&&!u?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),l.createElement(r,{className:s,style:{display:a?null:"none"}},l.createElement(R,{component:i,prefixCls:t,colSpan:o},v))};function q(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,s=e.expandable,a="".concat(t,"-row-expand-icon");if(!s)return l.createElement("span",{className:k()(a,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:k()(a,(0,E.Z)((0,E.Z)({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:function(e){r(n,e),e.stopPropagation()}})}function J(e,t,n,r){return"string"==typeof e?e:"function"==typeof e?e(t,n,r):""}function $(e,t,n,r,i){var s,a,o=e.record,u=e.prefixCls,c=e.columnsKey,d=e.fixedInfoList,h=e.expandIconColumnIndex,f=e.nestExpandable,p=e.indentSize,m=e.expandIcon,g=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*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),m({prefixCls:u,expanded:g,expandable:v,record:o,onExpand:y}))),t.onCell&&(a=t.onCell(o,i)),{key:_,fixedInfo:b,appendCellNode:s,additionalCellProps:a||{}}}var ee=y((function(e){var t=e.className,n=e.style,r=e.record,i=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=V(r,a,i,u),m=p.prefixCls,g=p.flattenColumns,v=p.expandedRowClassName,y=p.expandedRowRender,_=p.rowProps,b=p.expanded,x=p.rowSupportExpand,A=l.useRef(!1);A.current||(A.current=b);var C,T=J(v,r,i,u),D=l.createElement(c,(0,h.Z)({},_,{"data-row-key":a,className:k()(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(u),null==_?void 0:_.className,(0,E.Z)({},T,u>=1)),style:(0,w.Z)((0,w.Z)({},n),null==_?void 0:_.style)}),g.map((function(e,t){var n=e.render,a=e.dataIndex,o=e.className,c=$(p,e,t,u,i),g=c.key,v=c.fixedInfo,y=c.appendCellNode,_=c.additionalCellProps;return l.createElement(R,(0,h.Z)({className:o,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:m,key:g,record:r,index:i,renderIndex:s,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:_}))})));if(x&&(A.current||b)){var S=y(r,i,u+1,b);C=l.createElement(Q,{expanded:b,className:k()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(u+1),T),prefixCls:m,component:c,cellComponent:d,colSpan:g.length,isEmpty:!1},S)}return l.createElement(l.Fragment,null,D,C)}));function te(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return(0,a.Z)((function(){r.current&&n(t,r.current.offsetWidth)}),[]),l.createElement(U.Z,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ne=n(29194);function re(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,i=l.useRef(null);return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},l.createElement(U.Z.Collection,{onBatchResize:function(e){(0,ne.Z)(i.current)&&e.forEach((function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)}))}},n.map((function(e){return l.createElement(te,{key:e,columnKey:e,onColumnResize:r})}))))}var ie=y((function(e){var t,n=e.data,r=e.measureColumnWidth,i=d(b,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),s=i.prefixCls,a=i.getComponent,o=i.onColumnResize,u=i.flattenColumns,c=i.getRowKey,h=i.expandedKeys,f=i.childrenColumnName,p=i.emptyNode,m=K(n,f,h,c),g=l.useRef({renderWithProps:!1}),v=a(["body","wrapper"],"tbody"),y=a(["body","row"],"tr"),_=a(["body","cell"],"td"),x=a(["body","cell"],"th");t=n.length?m.map((function(e,t){var n=e.record,r=e.indent,i=e.index,s=c(n,t);return l.createElement(ee,{key:s,rowKey:s,record:n,index:t,renderIndex:i,rowComponent:y,cellComponent:_,scopeCellComponent:x,indent:r})})):l.createElement(Q,{expanded:!0,className:"".concat(s,"-placeholder"),prefixCls:s,component:y,cellComponent:_,colSpan:u.length,isEmpty:!0},p);var w=S(u);return l.createElement(D.Provider,{value:g.current},l.createElement(v,{className:"".concat(s,"-tbody")},r&&l.createElement(re,{prefixCls:s,columnsKey:w,onColumnResize:o}),t))})),se=n(54451),ae=["columnType"];var oe=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=d(b,["tableLayout"]).tableLayout,s=[],a=!1,o=(r||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"===i&&(p=c.minWidth)),u||p||f||a){var m=f||{},g=(m.columnType,(0,F.Z)(m,ae));s.unshift(l.createElement("col",(0,h.Z)({key:o,style:{width:u,minWidth:p}},g))),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,r=e.noData,i=e.columns,s=e.flattenColumns,a=e.colWidths,o=e.columCount,u=e.stickyOffsets,c=e.direction,h=e.fixHeader,p=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,v=e.onScroll,y=e.maxContentScroll,_=e.children,x=(0,F.Z)(e,ue),A=d(b,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=A.prefixCls,T=A.scrollbarSize,D=A.isSticky,S=(0,A.getComponent)(["header","table"],"table"),P=D&&!h?0:T,L=l.useRef(null),I=l.useCallback((function(e){(0,f.mH)(t,e),(0,f.mH)(L,e)}),[]);l.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(v({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=L.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=L.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=l.useMemo((function(){return s.every((function(e){return e.width}))}),[s]),R=s[s.length-1],M={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},O=(0,l.useMemo)((function(){return P?[].concat((0,le.Z)(i),[M]):i}),[P,i]),j=(0,l.useMemo)((function(){return P?[].concat((0,le.Z)(s),[M]):s}),[P,s]),B=(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+P}))),[0]):t,right:"rtl"===c?e:[].concat((0,le.Z)(e.map((function(e){return e+P}))),[0]),isSticky:D})}),[P,u,D]),z=function(e,t){return(0,l.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(void 0===i)return null;n[r]=i}return n}),[e.join("_"),t])}(a,o);return l.createElement("div",{style:(0,w.Z)({overflow:"hidden"},D?{top:p,bottom:m}:{}),ref:I,className:k()(n,(0,E.Z)({},g,!!g))},l.createElement(S,{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!y||N)&&l.createElement(oe,{colWidths:z?[].concat((0,le.Z)(z),[P]):[],columCount:o+1,columns:j}),_((0,w.Z)((0,w.Z)({},x),{},{stickyOffsets:B,columns:O,flattenColumns:j}))))}));var de=l.memo(ce);var he=function(e){var t,n=e.cells,r=e.stickyOffsets,i=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 m=S(n.map((function(e){return e.column})));return l.createElement(s,t,n.map((function(e,t){var n,s=e.column,o=M(e.colStart,e.colEnd,i,r,p);return s&&s.onHeaderCell&&(n=e.column.onHeaderCell(s)),l.createElement(R,(0,h.Z)({},e,{scope:s.title?e.colSpan>1?"colgroup":"col":null,ellipsis:s.ellipsis,align:s.align,component:a,prefixCls:f,key:m[t]},o,{additionalProps:n,rowType:"header"}))})))};var fe=y((function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=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,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];var s=r;return n.filter(Boolean).map((function(n){var r={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,i+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[i].push(r),s+=a,a}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},i=0;i<n;i+=1)r(i);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:r,cells:e,stickyOffsets:t,rowComponent:h,cellComponent:f,onHeaderRow:i,index:n})})))})),pe=n(97347);var me=(0,n(47273).Z)()?window:null;var ge=function(e,t,n){return(0,l.useMemo)((function(){var r=t.length,i=function(n,r,i){for(var s=[],a=0,o=n;o!==r;o+=i)s.push(a),t[o].fixed&&(a+=e[o]||0);return s},s=i(0,r,1),a=i(r-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 xe(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,r,s,a,o,u,c,h,f=e.scrollBodyRef,p=e.onScroll,m=e.offsetScroll,g=e.container,v=e.direction,y=d(b,"prefixCls"),_=(null===(n=f.current)||void 0===n?void 0:n.scrollWidth)||0,x=(null===(r=f.current)||void 0===r?void 0:r.clientWidth)||0,A=_&&x*(x/_),C=l.useRef(),T=(s={scrollLeft:0,isHiddenScrollBar:!0},a=(0,l.useRef)(s),o=(0,l.useState)({}),u=(0,i.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({})}}))}]),D=(0,i.Z)(T,2),S=D[0],P=D[1],L=l.useRef({delta:0,x:0}),I=l.useState(!1),N=(0,i.Z)(I,2),R=N[0],M=N[1],O=l.useRef(null);l.useEffect((function(){return function(){_e.Z.cancel(O.current)}}),[]);var F=function(){M(!1)},j=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(R&&0!==n){var r=L.current.x+e.pageX-L.current.x-L.current.delta,i="rtl"===v;r=Math.max(i?A-x:0,Math.min(i?0:x-A,r)),(!i||Math.abs(r)+Math.abs(A)<x)&&(p({scrollLeft:r/x*(_+2)}),L.current.x=e.pageX)}else R&&M(!1)},B=function(){_e.Z.cancel(O.current),O.current=(0,_e.Z)((function(){if(f.current){var e=xe(f.current).top,t=e+f.current.offsetHeight,n=g===window?document.documentElement.scrollTop+window.innerHeight:xe(g).top+g.clientHeight;t-(0,X.Z)()<=n||e>=n-m?P((function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})})):P((function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},z=function(e){P((function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/_*x||0})}))};return l.useImperativeHandle(t,(function(){return{setScrollLeft:z,checkScrollBarVisible:B}})),l.useEffect((function(){var e=(0,ye.Z)(document.body,"mouseup",F,!1),t=(0,ye.Z)(document.body,"mousemove",j,!1);return B(),function(){e.remove(),t.remove()}}),[A,R]),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",B,!1)})),window.addEventListener("resize",B,!1),window.addEventListener("scroll",B,!1),g.addEventListener("scroll",B,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",B)})),window.removeEventListener("resize",B),window.removeEventListener("scroll",B),g.removeEventListener("scroll",B)}}}),[g]),l.useEffect((function(){S.isHiddenScrollBar||P((function(e){var t=f.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[S.isHiddenScrollBar]),_<=x||!A||S.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,X.Z)(),width:x,bottom:m},className:"".concat(y,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),L.current.delta=e.pageX-S.scrollLeft,L.current.x=0,M(!0),e.preventDefault()},ref:C,className:k()("".concat(y,"-sticky-scroll-bar"),(0,E.Z)({},"".concat(y,"-sticky-scroll-bar-active"),R)),style:{width:"".concat(A,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))},Ee=l.forwardRef(we);var Ae=function(e){return null};var ke=function(e){return null},Ce="rc-table",Te=[],De={};function Se(){return"No Data"}function Pe(e,t){var n=(0,w.Z)({rowKey:"key",prefixCls:Ce,emptyText:Se},e),u=n.prefixCls,c=n.className,d=n.rowClassName,f=n.style,p=n.data,m=n.rowKey,g=n.scroll,v=n.tableLayout,y=n.direction,_=n.title,A=n.footer,D=n.summary,L=n.caption,I=n.id,N=n.showHeader,R=n.components,O=n.emptyText,F=n.onRow,j=n.onHeaderRow,B=n.onScroll,Z=n.internalHooks,W=n.transformColumns,K=n.internalRefs,V=n.tailor,Q=n.getContainerWidth,J=n.sticky,$=n.rowHoverable,ee=void 0===$||$,te=p||Te,ne=!!te.length,re=Z===r.R;var ae=l.useCallback((function(e,t){return(0,T.Z)(R,e)||t}),[R]),ue=l.useMemo((function(){return"function"==typeof m?m:function(e){return e&&e[m]}}),[m]),ce=ae(["body"]),he=function(){var e=l.useState(-1),t=(0,i.Z)(e,2),n=t[0],r=t[1],s=l.useState(-1),a=(0,i.Z)(s,2),o=a[0],u=a[1];return[n,o,l.useCallback((function(e,t){r(e),u(t)}),[])]}(),ye=(0,i.Z)(he,3),_e=ye[0],xe=ye[1],we=ye[2],Ae=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,m=s.childrenColumnName||"children",g=l.useMemo((function(){return d?"row":!!(e.expandable&&e.internalHooks===r.R&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,x.Z)(e)&&e[m]})))&&"nest"}),[!!d,t]),v=l.useState((function(){return u||(c?function(e,t,n){var r=[];return function e(i){(i||[]).forEach((function(i,s){r.push(t(i,s)),e(i[n])}))}(e),r}(t,n,m):[])})),y=(0,i.Z)(v,2),_=y[0],b=y[1],w=l.useMemo((function(){return new Set(o||_||[])}),[o,_]),E=l.useCallback((function(e){var r,i=n(e,t.indexOf(e)),s=w.has(i);s?(w.delete(i),r=(0,le.Z)(w)):r=[].concat((0,le.Z)(w),[i]),b(r),h&&h(!s,e),f&&f(r)}),[n,w,t,h,f]);return[s,g,w,p,m,E]}(n,te,ue),ke=(0,i.Z)(Ae,6),Pe=ke[0],Le=ke[1],Ie=ke[2],Ne=ke[3],Re=ke[4],Me=ke[5],Oe=null==g?void 0:g.x,Fe=l.useState(0),je=(0,i.Z)(Fe,2),Be=je[0],ze=je[1],He=(0,pe.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},n),Pe),{},{expandable:!!Pe.expandedRowRender,columnTitle:Pe.columnTitle,expandedKeys:Ie,getRowKey:ue,onTriggerExpand:Me,expandIcon:Ne,expandIconColumnIndex:Pe.expandIconColumnIndex,direction:y,scrollWidth:re&&V&&"number"==typeof Oe?Oe:null,clientWidth:Be}),re?W:null),Ze=(0,i.Z)(He,4),Ue=Ze[0],Ye=Ze[1],Xe=Ze[2],Ge=Ze[3],We=null!=Xe?Xe:Oe,Ke=l.useMemo((function(){return{columns:Ue,flattenColumns:Ye}}),[Ue,Ye]),Ve=l.useRef(),Qe=l.useRef(),qe=l.useRef(),Je=l.useRef();l.useImperativeHandle(t,(function(){return{nativeElement:Ve.current,scrollTo:function(e){var t,n;if(qe.current instanceof HTMLElement){var r=e.index,i=e.top,s=e.key;if("number"!=typeof(n=i)||Number.isNaN(n)){var a,o=null!=s?s:ue(te[r]);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:i})}}else null!==(t=qe.current)&&void 0!==t&&t.scrollTo&&qe.current.scrollTo(e)}}}));var $e,et,tt,nt=l.useRef(),rt=l.useState(!1),it=(0,i.Z)(rt,2),st=it[0],at=it[1],ot=l.useState(!1),lt=(0,i.Z)(ot,2),ut=lt[0],ct=lt[1],dt=l.useState(new Map),ht=(0,i.Z)(dt,2),ft=ht[0],pt=ht[1],mt=S(Ye).map((function(e){return ft.get(e)})),gt=l.useMemo((function(){return mt}),[mt.join("_")]),vt=ge(gt,Ye,y),yt=g&&P(g.y),_t=g&&P(We)||Boolean(Pe.fixed),bt=_t&&Ye.some((function(e){return e.fixed})),xt=l.useRef(),wt=function(e,t){var n="object"===(0,x.Z)(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,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 me}:c)()||me,h=!!e;return l.useMemo((function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:u,container:d}}),[h,u,i,a,t,d])}(J,u),Et=wt.isSticky,At=wt.offsetHeader,kt=wt.offsetSummary,Ct=wt.offsetScroll,Tt=wt.stickyClassName,Dt=wt.container,St=l.useMemo((function(){return null==D?void 0:D(te)}),[D,te]),Pt=(yt||Et)&&l.isValidElement(St)&&St.type===z&&St.props.fixed;yt&&(et={overflowY:ne?"scroll":"auto",maxHeight:g.y}),_t&&($e={overflowX:"auto"},yt||(et={overflowY:"hidden"}),tt={width:!0===We?"auto":We,minWidth:"100%"});var Lt=l.useCallback((function(e,t){pt((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),It=function(e){var t=(0,l.useRef)(e||null),n=(0,l.useRef)();function r(){window.clearTimeout(n.current)}return(0,l.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Nt=(0,i.Z)(It,2),Rt=Nt[0],Mt=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,r=e.scrollLeft,i="rtl"===y,s="number"==typeof r?r:n.scrollLeft,a=n||De;Mt()&&Mt()!==a||(Rt(a),Ot(s,Qe.current),Ot(s,qe.current),Ot(s,nt.current),Ot(s,null===(t=xt.current)||void 0===t?void 0:t.setScrollLeft));var o=n||Qe.current;if(o){var l=re&&V&&"number"==typeof We?We:o.scrollWidth,u=o.clientWidth;if(l===u)return at(!1),void ct(!1);i?(at(-s<l-u),ct(-s>0)):(at(s>0),ct(s<l-u))}})),jt=(0,s.Z)((function(e){Ft(e),null==B||B(e)})),Bt=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))},zt=l.useRef(!1);l.useEffect((function(){zt.current&&Bt()}),[_t,p,Ue.length]),l.useEffect((function(){zt.current=!0}),[]);var Ht=l.useState(0),Zt=(0,i.Z)(Ht,2),Ut=Zt[0],Yt=Zt[1],Xt=l.useState(!0),Gt=(0,i.Z)(Xt,2),Wt=Gt[0],Kt=Gt[1];(0,a.Z)((function(){V&&re||(qe.current instanceof Element?Yt((0,X.o)(qe.current).width):Yt((0,X.o)(Je.current).width)),Kt((0,Y.G)("position","sticky"))}),[]),l.useEffect((function(){re&&K&&(K.body.current=qe.current)}));var Vt,Qt=l.useCallback((function(e){return l.createElement(l.Fragment,null,l.createElement(fe,e),"top"===Pt&&l.createElement(H,e,St))}),[Pt,St]),qt=l.useCallback((function(e){return l.createElement(H,e,St)}),[St]),Jt=ae(["table"],"table"),$t=l.useMemo((function(){return v||(bt?"max-content"===We?"auto":"fixed":yt||Et||Ye.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[yt,bt,Ye,v,Et]),en={colWidths:gt,columCount:Ye.length,stickyOffsets:vt,onHeaderRow:j,fixHeader:yt,scroll:g},tn=l.useMemo((function(){return ne?null:"function"==typeof O?O():O}),[ne,O]),nn=l.createElement(ie,{data:te,measureColumnWidth:yt||_t||Et}),rn=l.createElement(oe,{colWidths:Ye.map((function(e){return e.width})),columns:Ye}),sn=null!=L?l.createElement("caption",{className:"".concat(u,"-caption")},L):void 0,an=(0,G.Z)(n,{data:!0}),on=(0,G.Z)(n,{aria:!0});if(yt||Et){var ln;"function"==typeof ce?(ln=ce(te,{scrollbarSize:Ut,ref:qe,onScroll:Ft}),en.colWidths=Ye.map((function(e,t){var n=e.width,r=t===Ye.length-1?n-Ut:n;return"number"!=typeof r||Number.isNaN(r)?0:r}))):ln=l.createElement("div",{style:(0,w.Z)((0,w.Z)({},$e),et),onScroll:jt,ref:qe,className:k()("".concat(u,"-body"))},l.createElement(Jt,(0,h.Z)({style:(0,w.Z)((0,w.Z)({},tt),{},{tableLayout:$t})},on),sn,rn,nn,!Pt&&St&&l.createElement(H,{stickyOffsets:vt,flattenColumns:Ye},St)));var un=(0,w.Z)((0,w.Z)((0,w.Z)({noData:!te.length,maxContentScroll:_t&&"max-content"===We},en),Ke),{},{direction:y,stickyClassName:Tt,onScroll:Ft});Vt=l.createElement(l.Fragment,null,!1!==N&&l.createElement(de,(0,h.Z)({},un,{stickyTopOffset:At,className:"".concat(u,"-header"),ref:Qe}),Qt),ln,Pt&&"top"!==Pt&&l.createElement(de,(0,h.Z)({},un,{stickyBottomOffset:kt,className:"".concat(u,"-summary"),ref:nt}),qt),Et&&qe.current&&qe.current instanceof Element&&l.createElement(Ee,{ref:xt,offsetScroll:Ct,scrollBodyRef:qe,onScroll:Ft,container:Dt,direction:y}))}else Vt=l.createElement("div",{style:(0,w.Z)((0,w.Z)({},$e),et),className:k()("".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,Ke)),nn,St&&l.createElement(H,{stickyOffsets:vt,flattenColumns:Ye},St)));var cn=l.createElement("div",(0,h.Z)({className:k()(u,c,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.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&&Ge),"".concat(u,"-scroll-horizontal"),_t),"".concat(u,"-has-fix-left"),Ye[0]&&Ye[0].fixed),"".concat(u,"-has-fix-right"),Ye[Ye.length-1]&&"right"===Ye[Ye.length-1].fixed)),style:f,id:I,ref:Ve},an),_&&l.createElement(ve,{className:"".concat(u,"-title")},_(te)),l.createElement("div",{ref:Je,className:"".concat(u,"-container")},Vt),A&&l.createElement(ve,{className:"".concat(u,"-footer")},A(te)));_t&&(cn=l.createElement(U.Z,{onResize:function(e){var t,n=e.width;null===(t=xt.current)||void 0===t||t.checkScrollBarVisible();var r=Ve.current?Ve.current.offsetWidth:n;re&&Q&&Ve.current&&(r=Q(Ve.current,r)||r),r!==Be&&(Bt(),ze(r))}},cn));var dn=function(e,t,n){var r=e.map((function(r,i){return M(i,i,e,t,n)}));return(0,C.Z)((function(){return r}),[r],(function(e,t){return!(0,o.Z)(e,t)}))}(Ye,vt,y),hn=l.useMemo((function(){return{scrollX:We,prefixCls:u,getComponent:ae,scrollbarSize:Ut,direction:y,fixedInfoList:dn,isSticky:Et,supportSticky:Wt,componentWidth:Be,fixHeader:yt,fixColumn:bt,horizonScroll:_t,tableLayout:$t,rowClassName:d,expandedRowClassName:Pe.expandedRowClassName,expandIcon:Ne,expandableType:Le,expandRowByClick:Pe.expandRowByClick,expandedRowRender:Pe.expandedRowRender,onTriggerExpand:Me,expandIconColumnIndex:Pe.expandIconColumnIndex,indentSize:Pe.indentSize,allColumnsFixedLeft:Ye.every((function(e){return"left"===e.fixed})),emptyNode:tn,columns:Ue,flattenColumns:Ye,onColumnResize:Lt,hoverStartRow:_e,hoverEndRow:xe,onHover:we,rowExpandable:Pe.rowExpandable,onRow:F,getRowKey:ue,expandedKeys:Ie,childrenColumnName:Re,rowHoverable:ee}}),[We,u,ae,Ut,y,dn,Et,Wt,Be,yt,bt,_t,$t,d,Pe.expandedRowClassName,Ne,Le,Pe.expandRowByClick,Pe.expandedRowRender,Me,Pe.expandIconColumnIndex,Pe.indentSize,tn,Ue,Ye,Lt,_e,xe,we,Pe.rowExpandable,F,ue,Ie,Re,ee]);return l.createElement(b.Provider,{value:hn},cn)}var Le=l.forwardRef(Pe);function Ie(e){return v(Le,e)}var Ne=Ie();Ne.EXPAND_COLUMN=r.w,Ne.INTERNAL_HOOKS=r.R,Ne.Column=Ae,Ne.ColumnGroup=ke,Ne.Summary=Z;var Re=Ne,Me=n(48911),Oe=c(null),Fe=c(null);var je=function(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,s=e.index,a=e.component,o=e.renderIndex,u=e.record,c=e.style,f=e.className,p=e.inverse,m=e.getHeight,g=n.render,v=n.dataIndex,y=n.className,_=n.width,b=d(Fe,["columnsOffset"]).columnsOffset,x=$(t,n,r,i,s),E=x.key,A=x.fixedInfo,C=x.appendCellNode,T=x.additionalCellProps,D=T.style,S=T.colSpan,P=void 0===S?1:S,L=T.rowSpan,I=void 0===L?1:L,N=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,P,b),M=P>1?_-N:0,O=(0,w.Z)((0,w.Z)((0,w.Z)({},D),c),{},{flex:"0 0 ".concat(N,"px"),width:"".concat(N,"px"),marginRight:M,pointerEvents:"auto"}),F=l.useMemo((function(){return p?I<=1:0===P||0===I||I>1}),[I,P,p]);F?O.visibility="hidden":p&&(O.height=null==m?void 0:m(I));var j=F?function(){return null}:g,B={};return 0!==I&&0!==P||(B.rowSpan=1,B.colSpan=1),l.createElement(R,(0,h.Z)({className:k()(y,f),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:E,record:u,index:s,renderIndex:o,dataIndex:v,render:j,shouldCellUpdate:n.shouldCellUpdate},A,{appendNode:C,additionalProps:(0,w.Z)((0,w.Z)({},T),{},{style:O},B)}))},Be=["data","index","className","rowKey","style","extra","getHeight"];var ze=y(l.forwardRef((function(e,t){var n,r=e.data,i=e.index,s=e.className,a=e.rowKey,o=e.style,u=e.extra,c=e.getHeight,f=(0,F.Z)(e,Be),p=r.record,m=r.indent,g=r.index,v=d(b,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=v.scrollX,_=v.flattenColumns,x=v.prefixCls,A=v.fixColumn,C=v.componentWidth,T=d(Oe,["getComponent"]).getComponent,D=V(p,a,i,m),S=T(["body","row"],"div"),P=T(["body","cell"],"div"),L=D.rowSupportExpand,I=D.expanded,N=D.rowProps,M=D.expandedRowRender,O=D.expandedRowClassName;if(L&&I){var j=M(p,i,m+1,I),B=J(O,p,i,m),z={};A&&(z={style:(0,E.Z)({},"--virtual-width","".concat(C,"px"))});var H="".concat(x,"-expanded-row-cell");n=l.createElement(S,{className:k()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(m+1),B)},l.createElement(R,{component:P,prefixCls:x,className:k()(H,(0,E.Z)({},"".concat(H,"-fixed"),A)),additionalProps:z},j))}var Z=(0,w.Z)((0,w.Z)({},o),{},{width:y});u&&(Z.position="absolute",Z.pointerEvents="none");var U=l.createElement(S,(0,h.Z)({},N,f,{"data-row-key":a,ref:L?null:t,className:k()(s,"".concat(x,"-row"),null==N?void 0:N.className,(0,E.Z)({},"".concat(x,"-row-extra"),u)),style:(0,w.Z)((0,w.Z)({},Z),null==N?void 0:N.style)}),_.map((function(e,t){return l.createElement(je,{key:t,component:P,rowInfo:D,column:e,colIndex:t,indent:m,index:i,renderIndex:g,record:p,inverse:u,getHeight:c})})));return L?l.createElement("div",{ref:t},U,n):U})));var He=y(l.forwardRef((function(e,t){var n=e.data,r=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,m=s.direction,g=d(Oe),v=g.sticky,y=g.scrollY,_=g.listItemHeight,w=g.getComponent,E=g.onScroll,A=l.useRef(),k=K(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]),T=l.useMemo((function(){return C.map((function(e){return e[2]}))}),[C]);l.useEffect((function(){C.forEach((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];o(n,r)}))}),[C]),l.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=A.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=A.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=A.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=A.current)||void 0===t||t.scrollTo({left:e})}}),t}));var D=function(e,t){var n,r=null===(n=k[t])||void 0===n?void 0:n.record,i=e.onCell;if(i){var s,a=i(r,t);return null!==(s=null==a?void 0:a.rowSpan)&&void 0!==s?s:1}return 1},S=l.useMemo((function(){return{columnsOffset:T}}),[T]),P="".concat(h,"-tbody"),L=w(["body","wrapper"]),I={};return v&&(I.position="sticky",I.bottom=0,"object"===(0,x.Z)(v)&&v.offsetScroll&&(I.bottom=v.offsetScroll)),l.createElement(Fe.Provider,{value:S},l.createElement(Me.Z,{fullHeight:!1,ref:A,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:I},className:P,height:y,itemHeight:_||24,data:k,itemKey:function(e){return u(e.record)},component:L,scrollWidth:p,direction:m,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=A.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:E,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var s=a.filter((function(e){return 0===D(e,t)})),o=t,c=function(e){if(!(s=s.filter((function(t){return 0===D(t,e)}))).length)return o=e,1},d=t;d>=0&&!c(d);d-=1);for(var h=a.filter((function(e){return 1!==D(e,n)})),f=n,p=function(e){if(!(h=h.filter((function(t){return 1!==D(t,e)}))).length)return f=Math.max(e-1,n),1},m=n;m<k.length&&!p(m);m+=1);for(var g=[],v=function(e){if(!k[e])return 1;a.some((function(t){return D(t,e)>1}))&&g.push(e)},y=o;y<=f;y+=1)v(y);return g.map((function(e){var t=k[e],n=u(t.record,e),s=r(n);return l.createElement(ze,{key:e,data:t,rowKey:n,index:e,style:{top:-i+s.top},extra:!0,getHeight:function(t){var i=e+t-1,s=u(k[i].record,i),a=r(n,s);return a.bottom-a.top}})}))}},(function(e,t,n){var r=u(e.record,t);return l.createElement(ze,{data:e,rowKey:r,index:t,style:n.style})})))}))),Ze=function(e,t){var n=t.ref,r=t.onScroll;return l.createElement(He,{ref:n,data:e,onScroll:r})};function Ue(e,t){var n=e.data,i=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,m=s||{},g=m.x,v=m.y;"number"!=typeof g&&(g=1),"number"!=typeof v&&(v=500);var y=(0,I.zX)((function(e,t){return(0,T.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(Re,(0,h.Z)({},e,{className:k()(c,"".concat(u,"-virtual")),scroll:(0,w.Z)((0,w.Z)({},s),{},{x:g}),components:(0,w.Z)((0,w.Z)({},f),{},{body:null!=n&&n.length?Ze:void 0}),columns:i,internalHooks:r.R,tailor:!0,ref:t})))}var Ye=l.forwardRef(Ue);function Xe(e){return v(Ye,e)}Xe()},54451:function(e,t,n){"use strict";n.d(t,{g:function(){return o},v:function(){return a}});var r=n(33885),i=n(75931),s=(n(48736),["expandable"]),a="RC_TABLE_INTERNAL_COL_DEFINE";function o(e){var t,n=e.expandable,a=(0,i.Z)(e,s);return!1===(t="expandable"in e?(0,r.Z)((0,r.Z)({},a),n):a).showExpandColumn&&(t.expandIconColumnIndex=-1),t}},22711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return T},default:function(){return S}});var r,i=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),m=n(18929),g=n(59301),v=n(76190),y=n(29301),_=n(34280),b=n(16089),x="\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"],E={};function A(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&&E[n])return E[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),o=w.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:o,paddingSize:s,borderSize:a,boxSizing:i};return t&&n&&(E[n]=l),l}var k=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],C=g.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,E=n.style,C=n.disabled,T=n.onChange,D=(n.onInternalAutoSize,(0,u.Z)(n,k)),S=(0,m.Z)(c,{value:h,postState:function(e){return null!=e?e:""}}),P=(0,l.Z)(S,2),L=P[0],I=P[1],N=g.useRef();g.useImperativeHandle(t,(function(){return{textArea:N.current}}));var R=g.useMemo((function(){return f&&"object"===(0,v.Z)(f)?[f.minRows,f.maxRows]:[]}),[f]),M=(0,l.Z)(R,2),O=M[0],F=M[1],j=!!f,B=g.useState(2),z=(0,l.Z)(B,2),H=z[0],Z=z[1],U=g.useState(),Y=(0,l.Z)(U,2),X=Y[0],G=Y[1],W=function(){Z(0)};(0,_.Z)((function(){j&&W()}),[h,O,F,j]),(0,_.Z)((function(){if(0===H)Z(1);else if(1===H){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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),r.setAttribute("name","hiddenTextarea"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var s=A(e,t),a=s.paddingSize,o=s.borderSize,l=s.boxSizing,u=s.sizingStyle;r.setAttribute("style","".concat(u,";").concat(x)),r.value=e.value||e.placeholder||"";var c,d=void 0,h=void 0,f=r.scrollHeight;if("border-box"===l?f+=o:"content-box"===l&&(f-=a),null!==n||null!==i){r.value=" ";var p=r.scrollHeight-a;null!==n&&(d=p*n,"border-box"===l&&(d=d+a+o),f=Math.max(d,f)),null!==i&&(h=p*i,"border-box"===l&&(h=h+a+o),c=f>h?"":"hidden",f=Math.min(h,f))}var m={height:f,overflowY:c,resize:"none"};return d&&(m.minHeight=d),h&&(m.maxHeight=h),m}(N.current,!1,O,F);Z(2),G(e)}else!function(){try{if(document.activeElement===N.current){var e=N.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;N.current.setSelectionRange(t,n),N.current.scrollTop=r}}catch(e){}}()}),[H]);var K=g.useRef(),V=function(){b.Z.cancel(K.current)};g.useEffect((function(){return V}),[]);var Q=j?X:null,q=(0,a.Z)((0,a.Z)({},E),Q);return 0!==H&&1!==H||(q.overflowY="hidden",q.overflowX="hidden"),g.createElement(y.Z,{onResize:function(e){2===H&&(null==p||p(e),f&&(V(),K.current=(0,b.Z)((function(){W()}))))},disabled:!(f||p)},g.createElement("textarea",(0,i.Z)({},D,{ref:N,style:q,className:d()(o,w,(0,s.Z)({},"".concat(o,"-disabled"),C)),disabled:C,value:L,onChange:function(e){I(e.target.value),null==T||T(e)}})))})),T=C,D=["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"],S=g.forwardRef((function(e,t){var n,r=e.defaultValue,c=e.value,v=e.onFocus,y=e.onBlur,_=e.onChange,b=e.allowClear,x=e.maxLength,w=e.onCompositionStart,E=e.onCompositionEnd,A=e.suffix,k=e.prefixCls,C=void 0===k?"rc-textarea":k,S=e.showCount,P=e.count,L=e.className,I=e.style,N=e.disabled,R=e.hidden,M=e.classNames,O=e.styles,F=e.onResize,j=e.onClear,B=e.onPressEnter,z=e.readOnly,H=e.autoSize,Z=e.onKeyDown,U=(0,u.Z)(e,D),Y=(0,m.Z)(r,{value:c,defaultValue:r}),X=(0,l.Z)(Y,2),G=X[0],W=X[1],K=null==G?"":String(G),V=g.useState(!1),Q=(0,l.Z)(V,2),q=Q[0],J=Q[1],$=g.useRef(!1),ee=g.useState(null),te=(0,l.Z)(ee,2),ne=te[0],re=te[1],ie=(0,g.useRef)(null),se=(0,g.useRef)(null),ae=function(){var e;return null===(e=se.current)||void 0===e?void 0:e.textArea},oe=function(){ae().focus()};(0,g.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:se.current,focus:oe,blur:function(){ae().blur()},nativeElement:(null===(e=ie.current)||void 0===e?void 0:e.nativeElement)||ae()}})),(0,g.useEffect)((function(){J((function(e){return!N&&e}))}),[N]);var le=g.useState(null),ue=(0,l.Z)(le,2),ce=ue[0],de=ue[1];g.useEffect((function(){var e;ce&&(e=ae()).setSelectionRange.apply(e,(0,o.Z)(ce))}),[ce]);var he,fe=(0,f.Z)(P,S),pe=null!==(n=fe.max)&&void 0!==n?n:x,me=Number(pe)>0,ge=fe.strategy(K),ve=!!pe&&ge>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=A;fe.show&&(he=fe.showFormatter?fe.showFormatter({value:K,count:ge,maxLength:pe}):"".concat(ge).concat(me?" / ".concat(pe):""),_e=g.createElement(g.Fragment,null,_e,g.createElement("span",{className:d()("".concat(C,"-data-count"),null==M?void 0:M.count),style:null==O?void 0:O.count},he)));var be=!H&&!S&&!b;return g.createElement(h.BaseInput,{ref:ie,value:K,allowClear:b,handleReset:function(e){W(""),oe(),(0,p.rJ)(ae(),e,_)},suffix:_e,prefixCls:C,classNames:(0,a.Z)((0,a.Z)({},M),{},{affixWrapper:d()(null==M?void 0:M.affixWrapper,(0,s.Z)((0,s.Z)({},"".concat(C,"-show-count"),S),"".concat(C,"-textarea-allow-clear"),b))}),disabled:N,focused:q,className:d()(L,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:R,readOnly:z,onClear:j},g.createElement(T,(0,i.Z)({},U,{autoSize:H,maxLength:x,onKeyDown:function(e){"Enter"===e.key&&B&&B(e),null==Z||Z(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==E||E(e)},className:d()(null==M?void 0:M.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&&re(!0)},ref:se,readOnly:z})))}))},29125:function(e,t,n){"use strict";n.d(t,{G:function(){return a},Z:function(){return y}});var r=n(92310),i=n.n(r),s=n(59301);function a(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,l=e.className,u=e.style;return s.createElement("div",{className:i()("".concat(n,"-content"),l),style:u},s.createElement("div",{className:i()("".concat(n,"-inner"),o),id:r,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}},m=n(80402),g=["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,r=e.trigger,d=void 0===r?["hover"]:r,h=e.mouseEnterDelay,f=void 0===h?0:h,v=e.mouseLeaveDelay,y=void 0===v?.1:v,_=e.overlayStyle,b=e.prefixCls,x=void 0===b?"rc-tooltip":b,w=e.children,E=e.onVisibleChange,A=e.afterVisibleChange,k=e.transitionName,C=e.animation,T=e.motion,D=e.placement,S=void 0===D?"right":D,P=e.align,L=void 0===P?{}:P,I=e.destroyTooltipOnHide,N=void 0!==I&&I,R=e.defaultVisible,M=e.getTooltipContainer,O=e.overlayInnerStyle,F=(e.arrowContent,e.overlay),j=e.id,B=e.showArrow,z=void 0===B||B,H=e.classNames,Z=e.styles,U=(0,u.Z)(e,g),Y=(0,m.Z)(j),X=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,(function(){return X.current}));var G=(0,l.Z)({},U);"visible"in e&&(G.popupVisible=e.visible);var W,K,V;return s.createElement(c.Z,(0,o.Z)({popupClassName:i()(n,null==H?void 0:H.root),prefixCls:x,popup:function(){return s.createElement(a,{key:"content",prefixCls:x,id:Y,bodyClassName:null==H?void 0:H.body,overlayInnerStyle:(0,l.Z)((0,l.Z)({},O),null==Z?void 0:Z.body)},F)},action:d,builtinPlacements:p,popupPlacement:S,ref:X,popupAlign:L,getPopupContainer:M,onPopupVisibleChange:E,afterPopupVisibleChange:A,popupTransitionName:k,popupAnimation:C,popupMotion:T,defaultPopupVisible:R,autoDestroy:N,mouseLeaveDelay:y,popupStyle:(0,l.Z)((0,l.Z)({},_),null==Z?void 0:Z.root),mouseEnterDelay:f,arrow:z},G),(W=s.Children.only(w),K=(null==W?void 0:W.props)||{},V=(0,l.Z)((0,l.Z)({},K),{},{"aria-describedby":F?Y:null}),s.cloneElement(w,V)))},y=(0,s.forwardRef)(v)},639:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(54476),i=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,r=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,i.Z)((0,i.Z)({},"".concat(a,"-start"),r[u]),"".concat(a,"-end"),s[u]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},o)},p=l.memo(f),m=n(65065),g=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,x=e.style,w=e.dragOver,E=e.dragOverGapTop,A=e.dragOverGapBottom,k=e.isLeaf,C=e.isStart,T=e.isEnd,D=e.expanded,S=e.selected,P=e.checked,L=e.halfChecked,I=e.loading,N=e.domRef,R=e.active,M=e.data,O=e.onMouseMove,F=e.selectable,j=(0,o.Z)(e,v),B=l.useContext(h.k),z=l.useContext(h.y),H=l.useRef(null),Z=l.useState(!1),U=(0,a.Z)(Z,2),Y=U[0],X=U[1],G=!!(B.disabled||e.disabled||null!==(t=z.nodeDisabled)&&void 0!==t&&t.call(z,M)),W=l.useMemo((function(){return!(!B.checkable||!1===e.checkable)&&B.checkable}),[B.checkable,e.checkable]),K=function(t){G||W&&!e.disableCheckbox&&B.onNodeCheck(t,(0,g.F)(e),!P)},V=l.useMemo((function(){return"boolean"==typeof F?F:B.selectable}),[F,B.selectable]),Q=function(t){B.onNodeClick(t,(0,g.F)(e)),V?function(t){G||B.onNodeSelect(t,(0,g.F)(e))}(t):K(t)},q=function(t){B.onNodeDoubleClick(t,(0,g.F)(e))},J=function(t){B.onNodeMouseEnter(t,(0,g.F)(e))},$=function(t){B.onNodeMouseLeave(t,(0,g.F)(e))},ee=function(t){B.onNodeContextMenu(t,(0,g.F)(e))},te=l.useMemo((function(){return!(!B.draggable||B.draggable.nodeDraggable&&!B.draggable.nodeDraggable(M))}),[B.draggable,M]),ne=function(t){I||B.onNodeExpand(t,(0,g.F)(e))},re=l.useMemo((function(){var e=((0,m.Z)(B.keyEntities,f)||{}).children;return Boolean((e||[]).length)}),[B.keyEntities,f]),ie=l.useMemo((function(){return!1!==k&&(k||!B.loadData&&!re||B.loadData&&e.loaded&&!re)}),[k,B.loadData,re,e.loaded]);l.useEffect((function(){I||"function"!=typeof B.loadData||!D||ie||e.loaded||B.onNodeLoad((0,g.F)(e))}),[I,B.loadData,B.onNodeLoad,D,ie,e]);var se=l.useMemo((function(){var e;return null!==(e=B.draggable)&&void 0!==e&&e.icon?l.createElement("span",{className:"".concat(B.prefixCls,"-draggable-icon")},B.draggable.icon):null}),[B.draggable]),ae=function(t){var n=e.switcherIcon||B.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(B.prefixCls,"-checkbox"),(0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(B.prefixCls,"-checkbox-checked"),P),"".concat(B.prefixCls,"-checkbox-indeterminate"),!P&&L),"".concat(B.prefixCls,"-checkbox-disabled"),G||e.disableCheckbox)),onClick:K,role:"checkbox","aria-checked":L?"mixed":P,"aria-disabled":G||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[W,P,L,G,e.disableCheckbox,e.title]),le=l.useMemo((function(){return ie?null:D?y:_}),[ie,D]),ue=l.useMemo((function(){return l.createElement("span",{className:c()("".concat(B.prefixCls,"-iconEle"),"".concat(B.prefixCls,"-icon__").concat(le||"docu"),(0,i.Z)({},"".concat(B.prefixCls,"-icon_loading"),I))})}),[B.prefixCls,le,I]),ce=l.useMemo((function(){var t=Boolean(B.draggable);return!e.disabled&&t&&B.dragOverNodeKey===f?B.dropIndicatorRender({dropPosition:B.dropPosition,dropLevelOffset:B.dropLevelOffset,indent:B.indent,prefixCls:B.prefixCls,direction:B.direction}):null}),[B.dropPosition,B.dropLevelOffset,B.indent,B.prefixCls,B.direction,B.draggable,B.dragOverNodeKey,B.dropIndicatorRender]),de=l.useMemo((function(){var t,n,r=e.title,s=void 0===r?"---":r,a="".concat(B.prefixCls,"-node-content-wrapper");if(B.showIcon){var o=e.icon||B.icon;t=o?l.createElement("span",{className:c()("".concat(B.prefixCls,"-iconEle"),"".concat(B.prefixCls,"-icon__customize"))},"function"==typeof o?o(e):o):ue}else B.loadData&&I&&(t=ue);return n="function"==typeof s?s(M):B.titleRender?B.titleRender(M):s,l.createElement("span",{ref:H,title:"string"==typeof s?s:"",className:c()(a,"".concat(a,"-").concat(le||"normal"),(0,i.Z)({},"".concat(B.prefixCls,"-node-selected"),!G&&(S||Y))),onMouseEnter:J,onMouseLeave:$,onContextMenu:ee,onClick:Q,onDoubleClick:q},t,l.createElement("span",{className:"".concat(B.prefixCls,"-title")},n),ce)}),[B.prefixCls,B.showIcon,e,B.icon,ue,B.titleRender,M,le,J,$,ee,Q,q]),he=(0,d.Z)(j,{aria:!0,data:!0}),fe=((0,m.Z)(B.keyEntities,f)||{}).level,pe=T[T.length-1],me=!G&&te,ge=B.draggingNodeKey===f,ve=void 0!==F?{"aria-selected":!!F}:void 0;return l.createElement("div",(0,r.Z)({ref:N,role:"treeitem","aria-expanded":k?void 0:D,className:c()(b,"".concat(B.prefixCls,"-treenode"),(u={},(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)(u,"".concat(B.prefixCls,"-treenode-disabled"),G),"".concat(B.prefixCls,"-treenode-switcher-").concat(D?"open":"close"),!k),"".concat(B.prefixCls,"-treenode-checkbox-checked"),P),"".concat(B.prefixCls,"-treenode-checkbox-indeterminate"),L),"".concat(B.prefixCls,"-treenode-selected"),S),"".concat(B.prefixCls,"-treenode-loading"),I),"".concat(B.prefixCls,"-treenode-active"),R),"".concat(B.prefixCls,"-treenode-leaf-last"),pe),"".concat(B.prefixCls,"-treenode-draggable"),te),"dragging",ge),(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)(u,"drop-target",B.dropTargetKey===f),"drop-container",B.dropContainerKey===f),"drag-over",!G&&w),"drag-over-gap-top",!G&&E),"drag-over-gap-bottom",!G&&A),"filter-node",null===(n=B.filterTreeNode)||void 0===n?void 0:n.call(B,(0,g.F)(e))),"".concat(B.prefixCls,"-treenode-leaf"),ie))),style:x,draggable:me,onDragStart:me?function(t){t.stopPropagation(),X(!0),B.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:te?function(t){t.preventDefault(),t.stopPropagation(),B.onNodeDragEnter(t,e)}:void 0,onDragOver:te?function(t){t.preventDefault(),t.stopPropagation(),B.onNodeDragOver(t,e)}:void 0,onDragLeave:te?function(t){t.stopPropagation(),B.onNodeDragLeave(t,e)}:void 0,onDrop:te?function(t){t.preventDefault(),t.stopPropagation(),X(!1),B.onNodeDrop(t,e)}:void 0,onDragEnd:te?function(t){t.stopPropagation(),X(!1),B.onNodeDragEnd(t,e)}:void 0,onMouseMove:O},ve,he),l.createElement(p,{prefixCls:B.prefixCls,level:fe,isStart:C,isEnd:T}),se,function(){if(ie){var e=ae(!0);return!1!==e?l.createElement("span",{className:c()("".concat(B.prefixCls,"-switcher"),"".concat(B.prefixCls,"-switcher-noop"))},e):null}var t=ae(!1);return!1!==t?l.createElement("span",{onClick:ne,className:c()("".concat(B.prefixCls,"-switcher"),"".concat(B.prefixCls,"-switcher_").concat(D?y:_))},t):null}(),oe,de)};b.isTreeNode=1;var x=b},30699:function(e,t,n){"use strict";n.d(t,{k:function(){return i},y:function(){return s}});var r=n(59301),i=r.createContext(null),s=r.createContext({})},3741:function(e,t,n){"use strict";n.d(t,{OF:function(){return T.Z},y6:function(){return _.y},ZP:function(){return K}});var r=n(54476),i=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),m=n(10228),g=n(26112),v=n(48736),y=n(59301),_=n(30699);var b=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return y.createElement("div",{style:i})};function x(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var w=n(42978),E=n(75931),A=n(34280),k=n(48911),C=n(77900),T=n(639);var D=function(e,t){var n=y.useState(!1),r=(0,w.Z)(n,2),i=r[0],s=r[1];(0,A.Z)((function(){if(i)return e(),function(){t()}}),[i]),(0,A.Z)((function(){return s(!0),function(){s(!1)}}),[])},S=n(34061),P=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"];var L=y.forwardRef((function(e,t){var n=e.className,i=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,E.Z)(e,P),f=y.useState(!0),m=(0,w.Z)(f,2),g=m[0],v=m[1],b=y.useContext(_.k).prefixCls,k=a&&"hide"!==o;(0,A.Z)((function(){a&&k!==g&&v(k)}),[a]);var L=y.useRef(!1),I=function(){a&&!L.current&&(L.current=!0,u())};D((function(){a&&l()}),I);return a?y.createElement(C.default,(0,r.Z)({ref:t,visible:g},s,{motionAppear:"show"===o,onVisibleChanged:function(e){k===e&&I()}}),(function(e,t){var n=e.className,i=e.style;return y.createElement("div",{ref:t,className:p()("".concat(b,"-treenode-motion"),n),style:i},a.map((function(e){var t=Object.assign({},(x(e.data),e.data)),n=e.title,i=e.key,s=e.isStart,a=e.isEnd;delete t.children;var o=(0,S.H8)(i,d);return y.createElement(T.Z,(0,r.Z)({},t,o,{title:n,active:c,data:e.data,key:i,isStart:s,isEnd:a}))})))})):y.createElement(T.Z,(0,r.Z)({domRef:t,className:n,style:i},h,{active:c}))}));function I(e,t,n){var r=e.findIndex((function(e){return e.key===n})),i=e[r+1],s=t.findIndex((function(e){return e.key===n}));if(i){var a=t.findIndex((function(e){return e.key===i.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"],R={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},O="RC_TREE_MOTION_".concat(Math.random()),F={key:O},j={key:O,level:0,index:0,pos:"0",node:F,nodes:[F]},B={parent:null,children:[],pos:j.pos,data:F,title:null,key:O,isStart:[],isEnd:[]};function z(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function H(e){var t=e.key,n=e.pos;return(0,S.km)(t,n)}var Z=y.forwardRef((function(e,t){var n=e.prefixCls,i=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,m=e.dropPosition,g=e.motion,v=e.height,_=e.itemHeight,b=e.virtual,C=e.scrollWidth,T=e.focusable,D=e.activeItem,P=e.focused,F=e.tabIndex,j=e.onKeyDown,Z=e.onFocus,U=e.onBlur,Y=e.onActiveChange,X=e.onListChangeStart,G=e.onListChangeEnd,W=(0,E.Z)(e,N),K=y.useRef(null),V=y.useRef(null);y.useImperativeHandle(t,(function(){return{scrollTo:function(e){K.current.scrollTo(e)},getIndentWidth:function(){return V.current.offsetWidth}}}));var Q=y.useState(s),q=(0,w.Z)(Q,2),J=q[0],$=q[1],ee=y.useState(i),te=(0,w.Z)(ee,2),ne=te[0],re=te[1],ie=y.useState(i),se=(0,w.Z)(ie,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],me=fe[1],ge=y.useRef(i);function ve(){var e=ge.current;re(e),oe(e),de([]),me(null),G()}ge.current=i,(0,A.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,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}(J,s);if(null!==e.key)if(e.add){var t=ne.findIndex((function(t){return t.key===e.key})),n=z(I(ne,i,e.key),b,v,_),r=ne.slice();r.splice(t+1,0,B),oe(r),de(n),me("show")}else{var a=i.findIndex((function(t){return t.key===e.key})),o=z(I(i,ne,e.key),b,v,_),l=i.slice();l.splice(a+1,0,B),oe(l),de(o),me("hide")}else ne!==i&&(re(i),oe(i))}),[s,i]),y.useEffect((function(){f||ve()}),[f]);var ye=g?ae:i,_e={expandedKeys:s,selectedKeys:a,loadedKeys:l,loadingKeys:u,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:d};return y.createElement(y.Fragment,null,P&&D&&y.createElement("span",{style:R,"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}(D)),y.createElement("div",null,y.createElement("input",{style:R,disabled:!1===T||h,tabIndex:!1!==T?F:null,onKeyDown:j,onFocus:Z,onBlur:U,value:"",onChange:M,"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:V,className:"".concat(n,"-indent-unit")}))),y.createElement(k.Z,(0,r.Z)({},W,{data:ye,itemKey:H,height:v,fullHeight:!1,virtual:b,itemHeight:_,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:K,role:"tree",onVisibleChange:function(e){e.every((function(e){return H(e)!==O}))&&ve()}}),(function(e){var t=e.pos,n=Object.assign({},(x(e.data),e.data)),i=e.title,s=e.key,a=e.isStart,o=e.isEnd,l=(0,S.km)(s,t);delete n.key,delete n.children;var u=(0,S.H8)(l,_e);return y.createElement(L,(0,r.Z)({},n,u,{title:i,active:!!D&&s===D.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:g,motionNodes:s===O?ce:null,motionType:pe,onMotionStart:X,onMotionEnd:ve,treeNodeRequiredProps:_e,onMouseMove:function(){Y(null)}}))})))}));var U=Z,Y=n(82661),X=n(34643),G=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 r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return e=t.call.apply(t,[this].concat(i)),(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,S.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 r=e.state,i=r.expandedKeys,s=r.keyEntities,a=e.props.onDragStart,o=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var l=(0,Y._5)(i,o);e.setState({draggingNodeKey:o,dragChildrenKeys:(0,Y.wA)(o,s),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(l),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:(0,S.F)(n)})})),(0,h.Z)((0,u.Z)(e),"onNodeDragEnter",(function(t,n){var r=e.state,i=r.expandedKeys,s=r.keyEntities,o=r.dragChildrenKeys,l=r.flattenNodes,u=r.indent,c=e.props,d=c.onDragEnter,h=c.onExpand,f=c.allowDrop,p=c.direction,m=n.pos,g=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),e.dragNodeProps){var v=(0,Y.OM)(t,e.dragNodeProps,n,u,e.dragStartMousePosition,f,l,s,i,p),y=v.dropPosition,_=v.dropLevelOffset,b=v.dropTargetKey,x=v.dropContainerKey,w=v.dropTargetPos,E=v.dropAllowed,A=v.dragOverNodeKey;!o.includes(b)&&E?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var r=(0,a.Z)(i),o=(0,G.Z)(s,n.eventKey);o&&(o.children||[]).length&&(r=(0,Y.L0)(i,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(r),null==h||h(r,{node:(0,S.F)(n),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),e.dragNodeProps.eventKey!==b||0!==_?(e.setState({dragOverNodeKey:A,dropPosition:y,dropLevelOffset:_,dropTargetKey:b,dropContainerKey:x,dropTargetPos:w,dropAllowed:E}),null==d||d({event:t,node:(0,S.F)(n),expandedKeys:i})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),(0,h.Z)((0,u.Z)(e),"onNodeDragOver",(function(t,n){var r=e.state,i=r.dragChildrenKeys,s=r.flattenNodes,a=r.keyEntities,o=r.expandedKeys,l=r.indent,u=e.props,c=u.onDragOver,d=u.allowDrop,h=u.direction;if(e.dragNodeProps){var f=(0,Y.OM)(t,e.dragNodeProps,n,l,e.dragStartMousePosition,d,s,a,o,h),p=f.dropPosition,m=f.dropLevelOffset,g=f.dropTargetKey,v=f.dropContainerKey,y=f.dropTargetPos,_=f.dropAllowed,b=f.dragOverNodeKey;!i.includes(g)&&_&&(e.dragNodeProps.eventKey===g&&0===m?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&&m===e.state.dropLevelOffset&&g===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&_===e.state.dropAllowed&&b===e.state.dragOverNodeKey||e.setState({dropPosition:p,dropLevelOffset:m,dropTargetKey:g,dropContainerKey:v,dropTargetPos:y,dropAllowed:_,dragOverNodeKey:b}),null==c||c({event:t,node:(0,S.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 r=e.props.onDragLeave;null==r||r({event:t,node:(0,S.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 r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:t,node:(0,S.F)(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,h.Z)((0,u.Z)(e),"onNodeDrop",(function(t,n){var r,i=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,S.H8)(u,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===u,data:(0,G.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 m=(0,Y.yx)(c),g={event:t,node:(0,S.F)(f),dragNode:e.dragNodeProps?(0,S.F)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(o),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};i||null==h||h(g),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 r=e.state,i=r.expandedKeys,a=r.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,S.F)((0,s.Z)((0,s.Z)({},(0,S.H8)(l,e.getTreeNodeRequiredProps())),{},{data:u.data}));e.setExpandedKeys(o?(0,Y._5)(i,l):(0,Y.L0)(i,l)),e.onNodeExpand(t,c)}})),(0,h.Z)((0,u.Z)(e),"onNodeClick",(function(t,n){var r=e.props,i=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)})),(0,h.Z)((0,u.Z)(e),"onNodeDoubleClick",(function(t,n){var r=e.props,i=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)})),(0,h.Z)((0,u.Z)(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,i=e.state,s=i.keyEntities,a=i.fieldNames,o=e.props,l=o.onSelect,u=o.multiple,c=n.selected,d=n[a.key],h=!c,f=(r=h?u?(0,Y.L0)(r,d):[d]:(0,Y._5)(r,d)).map((function(e){var t=(0,G.Z)(s,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==l||l(r,{event:"select",selected:h,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})})),(0,h.Z)((0,u.Z)(e),"onNodeCheck",(function(t,n,r){var i,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:r,nativeEvent:t.nativeEvent};if(d){var m=r?(0,Y.L0)(l,f):(0,Y._5)(l,f);i={checked:m,halfChecked:(0,Y._5)(u,f)},p.checkedNodes=m.map((function(e){return(0,G.Z)(o,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=(0,X.S)([].concat((0,a.Z)(l),[f]),!0,o),v=g.checkedKeys,y=g.halfCheckedKeys;if(!r){var _=new Set(v);_.delete(f);var b=(0,X.S)(Array.from(_),{checked:!1,halfCheckedKeys:y},o);v=b.checkedKeys,y=b.halfCheckedKeys}i=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=y,v.forEach((function(e){var t=(0,G.Z)(o,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:y})}null==h||h(i,p)})),(0,h.Z)((0,u.Z)(e),"onNodeLoad",(function(t){var n,r=t.key,i=e.state.keyEntities,s=(0,G.Z)(i,r);if(null==s||null===(n=s.children)||void 0===n||!n.length){var a=new Promise((function(n,i){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(r)||u.includes(r)?null:(d(t).then((function(){var i=e.state.loadedKeys,s=(0,Y.L0)(i,r);null==h||h(s,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:s}),e.setState((function(e){return{loadingKeys:(0,Y._5)(e.loadingKeys,r)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,Y._5)(e.loadingKeys,r)}})),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=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,Y.L0)(s,r)}),n()}i(t)})),{loadingKeys:(0,Y.L0)(u,r)})}))}));return a.catch((function(){})),a}})),(0,h.Z)((0,u.Z)(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),(0,h.Z)((0,u.Z)(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),(0,h.Z)((0,u.Z)(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({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,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t||t.apply(void 0,r)})),(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,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t||t.apply(void 0,r)})),(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,r=n.treeData,i=n.fieldNames,s=(0,S.oH)(r,t,i);e.setUncontrolledState({expandedKeys:t,flattenNodes:s},!0)})),(0,h.Z)((0,u.Z)(e),"onNodeExpand",(function(t,n){var r=e.state.expandedKeys,i=e.state,s=i.listChanging,a=i.fieldNames,o=e.props,l=o.onExpand,u=o.loadData,c=n.expanded,d=n[a.key];if(!s){var h=r.includes(d),f=!c;if((0,v.ZP)(c&&h||!c&&!h,"Expand state not sync with index check"),r=f?(0,Y.L0)(r,d):(0,Y._5)(r,d),e.setExpandedKeys(r),null==l||l(r,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&u){var p=e.onNodeLoad(n);p&&p.then((function(){var t=(0,S.oH)(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=e.state.expandedKeys,n=(0,Y._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,r=e.props,i=r.onActiveChange,s=r.itemScrollOffset,a=void 0===s?0:s;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==i||i(t))})),(0,h.Z)((0,u.Z)(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),(0,h.Z)((0,u.Z)(e),"offsetActiveKey",(function(t){var n=e.state,r=n.flattenNodes,i=n.activeKey,s=r.findIndex((function(e){return e.key===i}));-1===s&&t<0&&(s=r.length);var a=r[s=(s+t+r.length)%r.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,r=n.activeKey,i=n.expandedKeys,a=n.checkedKeys,o=n.fieldNames,l=e.props,u=l.onKeyDown,c=l.checkable,d=l.selectable;switch(t.which){case m.Z.UP:e.offsetActiveKey(-1),t.preventDefault();break;case m.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,g=(0,S.F)((0,s.Z)((0,s.Z)({},(0,S.H8)(r,f)),{},{data:h.data,active:!0}));switch(t.which){case m.Z.LEFT:p&&i.includes(r)?e.onNodeExpand({},g):h.parent&&e.onActiveChange(h.parent.key),t.preventDefault();break;case m.Z.RIGHT:p&&!i.includes(r)?e.onNodeExpand({},g):h.children&&h.children.length&&e.onActiveChange(h.children[0].key),t.preventDefault();break;case m.Z.ENTER:case m.Z.SPACE:!c||g.disabled||!1===g.checkable||g.disableCheckbox?c||!d||g.disabled||!1===g.selectable||e.onNodeSelect({},g):e.onNodeCheck({},g,!a.includes(r))}}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],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var i=!1,a=!0,o={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?a=!1:(i=!0,o[n]=t[n])})),!i||n&&!a||e.setState((0,s.Z)((0,s.Z)({},o),r))}})),(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,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{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,m=t.dragOverNodeKey,v=t.indent,b=this.props,x=b.prefixCls,w=b.className,E=b.style,A=b.showLine,k=b.focusable,C=b.tabIndex,T=void 0===C?0:C,D=b.selectable,S=b.showIcon,P=b.icon,L=b.switcherIcon,I=b.draggable,N=b.checkable,R=b.checkStrictly,M=b.disabled,O=b.motion,F=b.loadData,j=b.filterTreeNode,B=b.height,z=b.itemHeight,H=b.scrollWidth,Z=b.virtual,Y=b.titleRender,X=b.dropIndicatorRender,G=b.onContextMenu,W=b.onScroll,K=b.direction,V=b.rootClassName,Q=b.rootStyle,q=(0,g.Z)(this.props,{aria:!0,data:!0});I&&(e="object"===(0,i.Z)(I)?I:"function"==typeof I?{nodeDraggable:I}:{});var J={prefixCls:x,selectable:D,showIcon:S,icon:P,switcherIcon:L,draggable:e,draggingNodeKey:o,checkable:N,checkStrictly:R,disabled:M,keyEntities:a,dropLevelOffset:u,dropContainerKey:c,dropTargetKey:d,dropPosition:f,dragOverNodeKey:m,indent:v,direction:K,dropIndicatorRender:X,loadData:F,filterTreeNode:j,titleRender:Y,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()(x,w,V,(0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(x,"-show-line"),A),"".concat(x,"-focused"),n),"".concat(x,"-active-focused"),null!==l)),style:Q},y.createElement(U,(0,r.Z)({ref:this.listRef,prefixCls:x,style:E,data:s,disabled:M,selectable:D,checkable:!!N,motion:O,dragging:null!==o,height:B,itemHeight:z,virtual:Z,focusable:k,focused:n,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:W,scrollWidth:H},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function a(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var o=t.fieldNames;if(a("fieldNames")&&(o=(0,S.w$)(e.fieldNames),i.fieldNames=o),a("treeData")?n=e.treeData:a("children")&&((0,v.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,S.zn)(e.children)),n){i.treeData=n;var l=(0,S.I8)(n,{fieldNames:o});i.keyEntities=(0,s.Z)((0,h.Z)({},O,j),l.keyEntities)}var u,c=i.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,Y.r7)(e.expandedKeys,c):e.expandedKeys;else if(!r&&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)})),i.expandedKeys=f}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,Y.r7)(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var p=(0,S.oH)(n||t.treeData,i.expandedKeys||t.expandedKeys,o);i.flattenNodes=p}if((e.selectable&&(a("selectedKeys")?i.selectedKeys=(0,Y.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=(0,Y.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?u=(0,Y.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=(0,Y.E6)(e.defaultCheckedKeys)||{}:n&&(u=(0,Y.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var m=u,g=m.checkedKeys,y=void 0===g?[]:g,_=m.halfCheckedKeys,b=void 0===_?[]:_;if(!e.checkStrictly){var x=(0,X.S)(y,!0,c);y=x.checkedKeys,b=x.halfCheckedKeys}i.checkedKeys=y,i.halfCheckedKeys=b}return a("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),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",T.Z);var K=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 m},wA:function(){return c},yx:function(){return u}});var r=n(94480),i=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(),r=n.indexOf(t);return r>=0&&n.splice(r,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 r=t.key,i=t.children;n.push(r),e(i)}))}((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,r,i,s,o,l,c,h){var f,p=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,y=g.height,_=(("rtl"===h?-1:1)*(((null==i?void 0:i.x)||0)-p)-12)/r,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})),x=(0,a.Z)(l,n.eventKey);if(m<v+y/2){var w=o.findIndex((function(e){return e.key===x.key})),E=o[w<=0?0:w-1].key;x=(0,a.Z)(l,E)}var A=x.key,k=x,C=x.key,T=0,D=0;if(!b.includes(A))for(var S=0;S<_&&d(x);S+=1)x=x.parent,D+=1;var P,L=t.data,I=x.node,N=!0;return P=u(x.pos),0===Number(P[P.length-1])&&0===x.level&&m<v+y/2&&s({dragNode:L,dropNode:I,dropPosition:-1})&&x.key===n.eventKey?T=-1:(k.children||[]).length&&b.includes(C)?s({dragNode:L,dropNode:I,dropPosition:0})?T=0:N=!1:0===D?_>-1.5?s({dragNode:L,dropNode:I,dropPosition:1})?T=1:N=!1:s({dragNode:L,dropNode:I,dropPosition:0})?T=0:s({dragNode:L,dropNode:I,dropPosition:1})?T=1:N=!1:s({dragNode:L,dropNode:I,dropPosition:1})?T=1:N=!1,{dropPosition:T,dropLevelOffset:D,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:C,dropContainerKey:0===T?null:(null===(f=x.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,i.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 m(e,t){var n=new Set;function i(e){if(!n.has(e)){var r=(0,a.Z)(t,e);if(r){n.add(e);var s=r.parent;r.node.disabled||s&&i(s.key)}}}return(e||[]).forEach((function(e){i(e)})),(0,r.Z)(n)}},34643:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(48736),i=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,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function o(e,t,n,o){var l,u=[];l=o||a;var c,d=new Set(e.filter((function(e){var t=!!(0,i.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],r=t.level,i=h.get(r);i||(i=new Set,h.set(r,i)),i.add(t),f=Math.max(f,r)})),(0,r.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,r){for(var i=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;i.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){i.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(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var s=!0,o=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);s&&!n&&(s=!1),o||!n&&!a.has(t)||(o=!0)})),s&&i.add(t.key),o&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(s(a,i))}}(d,h,f,l):function(e,t,n,r,i){for(var a=new Set(e),o=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;a.has(t)||o.has(t)||i(n)||s.filter((function(e){return!i(e.node)})).forEach((function(e){a.delete(e.key)}))}));o=new Set;for(var u=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!u.has(e.parent.key))if(i(e.parent.node))u.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),s||!n&&!o.has(t)||(s=!0)})),r||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 r(e,t){return e[t]}n.d(t,{Z:function(){return r}})},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 g},w$:function(){return p},zn:function(){return m}});var r=n(76190),i=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 m(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,r=t.props,i=r.children,o=(0,a.Z)(r,d),l=(0,s.Z)({key:n},o),c=e(i);return c.length&&(l.children=c),l})).filter((function(e){return e}))}(e)}function g(e,t,n){var r=p(n),s=r._title,a=r.key,o=r.children,u=new Set(!0===t?[]:t),c=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(d,p){for(var m,g=h(r?r.pos:"0",p),v=f(d[a],g),y=0;y<s.length;y+=1){var _=s[y];if(void 0!==d[_]){m=d[_];break}}var b=Object.assign((0,l.Z)(d,[].concat((0,i.Z)(s),[a,o])),{title:m,key:v,parent:r,pos:g,children:null,data:d,isStart:[].concat((0,i.Z)(r?r.isStart:[]),[0===p]),isEnd:[].concat((0,i.Z)(r?r.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,r.Z)(n)?n:{externalGetKey:n})||{},o=a.childrenPropName,l=a.externalGetKey,u=p(a.fieldNames),c=u.key,d=u.children,m=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(r,a,o,l){var u=r?r[m]:e,c=r?h(o.pos,a):"0",d=r?[].concat((0,i.Z)(l),[r]):[];if(r){var f=s(r,c),p={node:r,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:r,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,r=t.processEntity,i=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,i=e.pos,s=e.key,a=e.parentPos,o=e.level,l={node:t,nodes:e.nodes,index:n,key:s,pos:i,level:o},u=f(s,i);c[i]=l,d[u]=l,l.parent=c[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),r&&r(l,h)}),{externalGetKey:u,childrenPropName:a,fieldNames:o}),i&&i(h),h}function _(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=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!==r.indexOf(e),loaded:-1!==i.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,r=e.selected,i=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,m=e.eventKey,g=(0,s.Z)((0,s.Z)({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:l,dragOver:c,dragOverGapTop:d,dragOverGapBottom:h,pos:f,active:p,key:m});return"props"in g||Object.defineProperty(g,"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}}),g}},8224:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4676);function i(e,t,n,i){var s=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,s,i),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,s,i)}}}},24514:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var r=n(47273),i=function(e){if((0,r.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?i(e):function(e,t){if(!i(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(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 j}});var r=n(54476),i=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),m=n(4676),g=p.forwardRef((function(e,t){var n=e.height,i=e.offsetY,o=e.offsetX,l=e.children,u=e.prefixCls,h=e.onInnerResize,f=e.innerProps,m=e.rtl,g=e.extra,v={},y={display:"flex",flexDirection:"column"};return void 0!==i&&(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(i,"px)")},m?"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,r.Z)({style:y,className:c()((0,a.Z)({},"".concat(u,"-holder-inner"),u)),ref:t},f),l,g)))}));g.displayName="Filler";var v=g;function y(e){var t=e.children,n=e.setRef,r=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:r})}function _(e,t,n){var r=p.useState(e),i=(0,o.Z)(r,2),s=i[0],a=i[1],l=p.useState(null),u=(0,o.Z)(l,2),c=u[0],d=u[1];return p.useEffect((function(){var r=function(e,t,n){var r,i,s=e.length,a=t.length;if(0===s&&0===a)return null;s<a?(r=e,i=t):(r=t,i=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<i.length;d+=1){var h=l(r[d]);if(h!==l(i[d])){u=d,c=c||h!==l(i[d+1]);break}}return null===u?null:{index:u,multiple:c}}(s||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),d(e[r.index])),a(e)}),[e]),[c]}var b=n(16089),x="object"===("undefined"==typeof navigator?"undefined":(0,i.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),w=function(e,t,n,r){var i=(0,p.useRef)(!1),s=(0,p.useRef)(null);function a(){clearTimeout(s.current),i.current=!0,s.current=setTimeout((function(){i.current=!1}),50)}var o=(0,p.useRef)({top:e,bottom:t,left:n,right:r});return o.current.top=e,o.current.bottom=t,o.current.left=n,o.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&o.current.left||t>0&&o.current.right:t<0&&o.current.top||t>0&&o.current.bottom;return n&&r?(clearTimeout(s.current),i.current=!1):r&&!i.current||a(),!i.current&&r}};function E(e,t,n,r,i,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,r,i);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,r=t.deltaY,i=t.shiftKey,p=n,m=r;("sx"===h.current||!h.current&&i&&r&&!n)&&(p=r,m=0,h.current="sx");var g=Math.abs(p),v=Math.abs(m);null===h.current&&(h.current=s&&g>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,x||n.preventDefault(),l.current=(0,b.Z)((function(){var e=c.current?10:1;a(o.current*e,!1),o.current=0})))}}(t,m):function(e,t){a(t,!0),x||e.preventDefault()}(t,p)}},function(t){e&&(c.current=t.detail===u.current)}]}var A=n(67732),k=n(83652),C=function(){function e(){(0,A.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,k.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 T(e){var t=parseFloat(e);return isNaN(t)?0:t}var D=14/15;function S(e){return Math.floor(Math.pow(e,.5))}function P(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var L=p.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,l=e.scrollRange,u=e.onStartMove,d=e.onStopMove,h=e.onScroll,f=e.horizontal,m=e.spinSize,g=e.containerSize,v=e.style,y=e.thumbStyle,_=e.showScrollBar,x=p.useState(!1),w=(0,o.Z)(x,2),E=w[0],A=w[1],k=p.useState(null),C=(0,o.Z)(k,2),T=C[0],D=C[1],S=p.useState(null),L=(0,o.Z)(S,2),I=L[0],N=L[1],R=!r,M=p.useRef(),O=p.useRef(),F=p.useState(_),j=(0,o.Z)(F,2),B=j[0],z=j[1],H=p.useRef(),Z=function(){!0!==_&&!1!==_&&(clearTimeout(H.current),z(!0),H.current=setTimeout((function(){z(!1)}),3e3))},U=l-g||0,Y=g-m||0,X=p.useMemo((function(){return 0===i||0===U?0:i/U*Y}),[i,U,Y]),G=p.useRef({top:X,dragging:E,pageY:T,startTop:I});G.current={top:X,dragging:E,pageY:T,startTop:I};var W=function(e){A(!0),D(P(e,f)),N(G.current.top),u(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=M.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 K=p.useRef();K.current=U;var V=p.useRef();V.current=Y,p.useEffect((function(){if(E){var e,t=function(t){var n=G.current,r=n.dragging,i=n.pageY,s=n.startTop;b.Z.cancel(e);var a=M.current.getBoundingClientRect(),o=g/(f?a.width:a.height);if(r){var l=(P(t,f)-i)*o,u=s;!R&&f?u-=l:u+=l;var c=K.current,d=V.current,p=d?u/d:0,m=Math.ceil(p*c);m=Math.max(m,0),m=Math.min(m,c),e=(0,b.Z)((function(){h(m,f)}))}},n=function(){A(!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)}}}),[E]),p.useEffect((function(){return Z(),function(){clearTimeout(H.current)}}),[i]),p.useImperativeHandle(t,(function(){return{delayHidden:Z}}));var Q="".concat(n,"-scrollbar"),q={position:"absolute",visibility:B?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:m},R?"left":"right",X))):(Object.assign(q,(0,a.Z)({width:8,top:0,bottom:0},R?"right":"left",0)),Object.assign(J,{width:"100%",height:m,top:X})),p.createElement("div",{ref:M,className:c()(Q,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Q,"-horizontal"),f),"".concat(Q,"-vertical"),!f),"".concat(Q,"-visible"),B)),style:(0,s.Z)((0,s.Z)({},q),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:Z},p.createElement("div",{ref:O,className:c()("".concat(Q,"-thumb"),(0,a.Z)({},"".concat(Q,"-thumb-moving"),E)),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"],R=[],M={overflowY:"auto",overflowAnchor:"none"};function O(e,t){var n=e.prefixCls,u=void 0===n?"rc-virtual-list":n,g=e.className,x=e.height,A=e.itemHeight,k=e.fullHeight,O=void 0===k||k,F=e.style,j=e.data,B=e.children,z=e.itemKey,H=e.virtual,Z=e.direction,U=e.scrollWidth,Y=e.component,X=void 0===Y?"div":Y,G=e.onScroll,W=e.onVirtualScroll,K=e.onVisibleChange,V=e.innerProps,Q=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 z?z(e):null==e?void 0:e[z]}),[z]),ne=function(e,t,n){var r=p.useState(0),i=(0,o.Z)(r,2),s=i[0],a=i[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 r=t.offsetHeight,i=getComputedStyle(t),s=i.marginTop,a=i.marginBottom,o=r+T(s)+T(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(r,i){var s=e(r),a=l.current.get(s);i?(l.current.set(s,i),h()):l.current.delete(s),!a!=!i&&(i?null==t||t(r):null==n||n(r))},h,u.current,s]}(te,null,null),re=(0,o.Z)(ne,4),ie=re[0],se=re[1],ae=re[2],oe=re[3],le=!(!1===H||!x||!A),ue=p.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ce=le&&j&&(Math.max(A*j.length,ue)>x||!!U),de="rtl"===Z,he=c()(u,(0,a.Z)({},"".concat(u,"-rtl"),de),g),fe=j||R,pe=(0,p.useRef)(),me=(0,p.useRef)(),ge=(0,p.useRef)(),ve=(0,p.useState)(0),ye=(0,o.Z)(ve,2),_e=ye[0],be=ye[1],xe=(0,p.useState)(0),we=(0,o.Z)(xe,2),Ee=we[0],Ae=we[1],ke=(0,p.useState)(!1),Ce=(0,o.Z)(ke,2),Te=Ce[0],De=Ce[1],Se=function(){De(!0)},Pe=function(){De(!1)},Le={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}),Re=(0,p.useRef)(),Me=_(fe,te),Oe=(0,o.Z)(Me,1)[0];Re.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=me.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:fe.length-1,offset:void 0};for(var t,n,r,i=0,s=fe.length,a=0;a<s;a+=1){var o=fe[a],l=te(o),u=ae.get(l),c=i+(void 0===u?A:u);c>=_e&&void 0===t&&(t=a,n=i),c>_e+x&&void 0===r&&(r=a),i=c}return void 0===t&&(t=0,n=0,r=Math.ceil(x/A)),void 0===r&&(r=fe.length-1),{scrollHeight:i,start:t,end:r=Math.min(r+1,fe.length-1),offset:n}}),[ce,le,_e,fe,oe,x]),je=Fe.scrollHeight,Be=Fe.start,ze=Fe.end,He=Fe.offset;Ne.current.start=Be,Ne.current.end=ze,p.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=fe[Be];if(r&&void 0===n)if(te(r)===t){var i=ae.get(t)-A;Ie((function(e){return e+i}))}}ae.resetRecord()}),[je]);var Ze=p.useState({width:0,height:x}),Ue=(0,o.Z)(Ze,2),Ye=Ue[0],Xe=Ue[1],Ge=(0,p.useRef)(),We=(0,p.useRef)(),Ke=p.useMemo((function(){return I(Ye.width,U)}),[Ye.width,U]),Ve=p.useMemo((function(){return I(Ye.height,je)}),[Ye.height,je]),Qe=je-x,qe=(0,p.useRef)(Qe);qe.current=Qe;var Je=_e<=0,$e=_e>=Qe,et=Ee<=0,tt=Ee>=U,nt=w(Je,$e,et,tt),rt=function(){return{x:de?-Ee:Ee,y:_e}},it=(0,p.useRef)(rt()),st=(0,h.zX)((function(e){if(W){var t=(0,s.Z)((0,s.Z)({},rt()),e);it.current.x===t.x&&it.current.y===t.y||(W(t),it.current=t)}}));function at(e,t){var n=e;t?((0,m.flushSync)((function(){Ae(n)})),st()):Ie(n)}var ot=function(e){var t=e,n=U?U-Ye.width:0;return t=Math.max(t,0),t=Math.min(t,n)},lt=(0,h.zX)((function(e,t){t?((0,m.flushSync)((function(){Ae((function(t){return ot(t+(de?-e:e))}))})),st()):Ie((function(t){return t+e}))})),ut=E(le,Je,$e,et,tt,!!U,lt),ct=(0,o.Z)(ut,2),dt=ct[0],ht=ct[1];!function(e,t,n){var r,i=(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(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=s.current-t,u=a.current-r,c=Math.abs(o)>Math.abs(u);c?s.current=t:a.current=r;var d=n(c,c?o:u,!1,e);d&&e.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval((function(){c?o*=D:u*=D;var e=Math.floor(c?o:u);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},c=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.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}))};r=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),r(),clearInterval(l.current)}}),[e])}(le,pe,(function(e,t,n,r){var i=r;return!nt(e,t,n)&&((!i||!i._virtualHandled)&&(i&&(i._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){p.useEffect((function(){var r=t.current;if(e&&r){var i,s,a=!1,o=function(){b.Z.cancel(i)},l=function e(){o(),i=(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=P(e,!1),n=r.getBoundingClientRect(),i=n.top,u=n.bottom;t<=i?(s=-S(i-t),l()):t>=u?(s=S(t-u),l()):o()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),r.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(U){var e=ot(Ee);Ae(e),st({x:e})}}),[Ye.width,U]);var ft=function(){var e,t;null===(e=Ge.current)||void 0===e||e.delayHidden(),null===(t=We.current)||void 0===t||t.delayHidden()},pt=function(e,t,n,r,a,l,u,c){var d=p.useRef(),h=p.useState(null),m=(0,o.Z)(h,2),g=m[0],v=m[1];return(0,f.Z)((function(){if(g&&g.times<10){if(!e.current)return void v((function(e){return(0,s.Z)({},e)}));l();var i=g.targetAlign,o=g.originAlign,c=g.index,d=g.offset,h=e.current.clientHeight,f=!1,p=i,m=null;if(h){for(var y=i||o,_=0,b=0,x=0,w=Math.min(t.length-1,c),E=0;E<=w;E+=1){var A=a(t[E]);b=_;var k=n.get(A);_=x=b+(void 0===k?r:k)}for(var C="top"===y?d:h-d,T=w;T>=0;T-=1){var D=a(t[T]),S=n.get(D);if(void 0===S){f=!0;break}if((C-=S)<=0)break}switch(y){case"top":m=b-d;break;case"bottom":m=x-h+d;break;default:var P=e.current.scrollTop;b<P?p="top":x>P+h&&(p="bottom")}null!==m&&u(m),m!==g.lastTop&&(f=!0)}f&&v((0,s.Z)((0,s.Z)({},g),{},{times:g.times+1,targetAlign:p,lastTop:m}))}}),[g,e.current]),function(e){if(null!=e){if(b.Z.cancel(d.current),"number"==typeof e)u(e);else if(e&&"object"===(0,i.Z)(e)){var n,r=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:r})}}else c()}}(pe,fe,ae,A,te,(function(){return se(!0)}),Ie,ft);p.useImperativeHandle(t,(function(){return{nativeElement:ge.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,i.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ae(ot(e.left)),pt(e.top)):pt(e)}}})),(0,f.Z)((function(){if(K){var e=fe.slice(Be,ze+1);K(e,fe)}}),[Be,ze,fe]);var mt=function(e,t,n,r){var i=p.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),s=(0,o.Z)(i,2),a=s[0],l=s[1];return function(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,o=a.get(i),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 m=null!==(h=n.get(p))&&void 0!==h?h:r;if(l[d]=(l[d-1]||0)+m,p===i&&(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,A),gt=null==Q?void 0:Q({start:Be,end:ze,virtual:ce,offsetX:Ee,offsetY:He,rtl:de,getSize:mt}),vt=function(e,t,n,r,i,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:r},offsetX:i}),u=l(e);return p.createElement(y,{key:u,setRef:function(t){return s(e,t)}},o)}))}(fe,Be,ze,U,Ee,ie,B,Le),yt=null;x&&(yt=(0,s.Z)((0,a.Z)({},O?"height":"maxHeight",x),M),le&&(yt.overflowY="hidden",U&&(yt.overflowX="hidden"),Te&&(yt.pointerEvents="none")));var _t={};return de&&(_t.dir="rtl"),p.createElement("div",(0,r.Z)({ref:ge,style:(0,s.Z)((0,s.Z)({},F),{},{position:"relative"}),className:he},_t,ee),p.createElement(d.Z,{onResize:function(e){Xe({width:e.offsetWidth,height:e.offsetHeight})}},p.createElement(X,{className:"".concat(u,"-holder"),style:yt,ref:pe,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==_e&&Ie(t),null==G||G(e),st()},onMouseEnter:ft},p.createElement(v,{prefixCls:u,height:je,offsetX:Ee,offsetY:He,scrollWidth:U,onInnerResize:se,ref:me,innerProps:V,rtl:de,extra:gt},vt))),ce&&je>x&&p.createElement(L,{ref:Ge,prefixCls:u,scrollOffset:_e,scrollRange:je,rtl:de,onScroll:at,onStartMove:Se,onStopMove:Pe,spinSize:Ve,containerSize:Ye.height,style:null==q?void 0:q.verticalScrollBar,thumbStyle:null==q?void 0:q.verticalScrollBarThumb,showScrollBar:$}),ce&&U>Ye.width&&p.createElement(L,{ref:We,prefixCls:u,scrollOffset:Ee,scrollRange:U,rtl:de,onScroll:at,onStartMove:Se,onStopMove:Pe,spinSize:Ke,containerSize:Ye.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 j=F},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=s(n(59301)),i=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 r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=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 m(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=r.default.Children.only(o),c=(0,i.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"]),i=r.default.Children.only(t);return r.default.cloneElement(i,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){m(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}(r.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,t,n){"use strict";var r=n(83145).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},76374:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!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),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,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,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="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,r=!1,i=0;function s(){n&&(n=!1,e()),r&&l()}function o(){a(s)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=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(){i&&!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(){i&&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,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],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 m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],s=e["padding-"+i];t[i]=f(s)}return t}(r),s=i.left+i.right,a=i.top+i.bottom,o=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(o+s)!==t&&(o-=p(r,"left","right")+s),Math.round(l+a)!==n&&(l-=p(r,"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(i.left,i.top,o,l)}var g="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 i?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):h}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}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,r,i,s,a,o,l,u=(r=(n=t).x,i=n.y,s=n.width,a=n.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(o.prototype),c(l,{x:r,y:i,width:s,height:a,top:i,right:r+s,bottom:a+i,left:r}),l);c(this,{target:e,contentRect:u})},x=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"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 r,E=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(),r=new x(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var A=void 0!==s.ResizeObserver?s.ResizeObserver:E;t.Z=A},27774:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeSensorId=t.SensorTabIndex=t.SensorClassName=void 0;t.SizeSensorId="size-sensor-id";t.SensorClassName="size-sensor-object";t.SensorTabIndex="-1"},79301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,s)}),t)}}},79789:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=1;t.default=function(){return"".concat(n++)}},47242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ver=t.clear=t.bind=void 0;var r=n(95270);t.bind=function(e,t){var n=(0,r.getSensor)(e);return n.bind(t),function(){n.unbind(t)}};t.clear=function(e){var t=(0,r.getSensor)(e);(0,r.removeSensor)(t)};t.ver="1.0.2"},95270:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSensor=t.getSensor=t.Sensors=void 0;var r,i=(r=n(79789))&&r.__esModule?r:{default:r},s=n(57829),a=n(27774);var o={};function l(e){e&&o[e]&&delete o[e]}t.Sensors=o;t.getSensor=function(e){var t=e.getAttribute(a.SizeSensorId);if(t&&o[t])return o[t];var n=(0,i.default)();e.setAttribute(a.SizeSensorId,n);var r=(0,s.createSensor)(e,(function(){return l(n)}));return o[n]=r,r};t.removeSensor=function(e){var t=e.element.getAttribute(a.SizeSensorId);e.destroy(),l(t)}},57829:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=n(20953),i=n(55202),s="undefined"!=typeof ResizeObserver?i.createSensor:r.createSensor;t.createSensor=s},20953:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,i=(r=n(79301))&&r.__esModule?r:{default:r},s=n(27774);t.createSensor=function(e,t){var n=void 0,r=[],a=(0,i.default)((function(){r.forEach((function(t){t(e)}))})),o=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",a),n.parentNode.removeChild(n),e.removeAttribute(s.SizeSensorId),n=void 0,r=[],t&&t())};return{element:e,bind:function(t){n||(n=function(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",a),a()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",s.SensorClassName),t.setAttribute("tabindex",s.SensorTabIndex),t.type="text/html",e.appendChild(t),t.data="about:blank",t}()),-1===r.indexOf(t)&&r.push(t)},destroy:o,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&o()}}}},55202:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,i=n(27774),s=(r=n(79301))&&r.__esModule?r:{default:r};t.createSensor=function(e,t){var n=void 0,r=[],a=(0,s.default)((function(){r.forEach((function(t){t(e)}))})),o=function(){n.disconnect(),r=[],n=void 0,e.removeAttribute(i.SizeSensorId),t&&t()};return{element:e,bind:function(t){var i;n||((i=new ResizeObserver(a)).observe(e),a(),n=i),-1===r.indexOf(t)&&r.push(t)},destroy:o,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&o()}}}},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));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()}}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+Ox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uBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},44523:function(e,t,n){"use strict";n.d(t,{ZP:function(){return cl}});const r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},i=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",m="subtitle";class g{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,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new g(e),this.fast_=new g(t),this.defaultTTFB_=r,this.ttfb_=new g(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new g(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new g(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new g(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){const n=(e=Math.max(e,this.minDelayMs_))/1e3,r=8*t/n;this.fast_.sample(n,r),this.slow_.sample(n,r)}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 r=n.call(e,t);if("object"!=typeof r)return r;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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(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=E,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 E=function(){},A={trace:E,debug:E,log:E,warn:E,info:E,error:E};function k(){return _({},A)}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}] >`):E}(e,n)}const T=k();const D=T;function S(e=!0){if("undefined"==typeof self)return;return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function P(e,t){const n=Object.keys(e),r=Object.keys(t),i=n.length,s=r.length;return!i||!s||i===s&&!n.some((e=>-1===r.indexOf(e)))}function L(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 r,i,s,a="",o=0;for(;o<n;){if(r=e[o++],0===r&&t)return a;if(0!==r&&3!==r)switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(r);break;case 12:case 13:i=e[o++],a+=String.fromCharCode((31&r)<<6|63&i);break;case 14:i=e[o++],s=e[o++],a+=String.fromCharCode((15&r)<<12|(63&i)<<6|(63&s)<<0)}}return a}function I(e){let t="";for(let n=0;n<e.length;n++){let r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t}function N(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,O={exports:{}};var F,j,B,z,H,Z=(M||(M=1,F=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,j=/^(?=([^\/?#]*))\1([^]*)$/,B=/(?:\/|^)\.(?=\/)/g,z=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,O.exports=H={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=H.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=H.normalizePath(r.path),H.buildURLFromParts(r)}var i=H.parseURL(t);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return n.alwaysNormalize?(i.path=H.normalizePath(i.path),H.buildURLFromParts(i)):t;var s=H.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var a=j.exec(s.path);s.netLoc=a[1],s.path=a[2]}s.netLoc&&!s.path&&(s.path="/");var o={scheme:s.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(o.netLoc=s.netLoc,"/"!==i.path[0]))if(i.path){var l=s.path,u=l.substring(0,l.lastIndexOf("/")+1)+i.path;o.path=H.normalizePath(u)}else o.path=s.path,i.params||(o.params=s.params,i.query||(o.query=s.query));return null===o.path&&(o.path=n.alwaysNormalize?H.normalizePath(i.path):i.path),H.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(B,"");e.length!==(e=e.replace(z,"")).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 U{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 Y="audio",X="video",G="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 r;r=1===n.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}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={[Y]:null,[X]:null,[G]: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 U),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Z.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[Y]=null,e[X]=null,e[G]=null}}function K(e){return"initSegment"!==e.sn}class V 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(r(e)&&r(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=r(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){r(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return K(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,r,i,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,r),o.endDTS=Math.max(o.endDTS,i)):a[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s}}}class Q extends W{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function 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 re(e,t){const n=se(e,t);return n<0?4294967296+n:n}function ie(e,t){let n=re(e,t);return n*=Math.pow(2,32),n+=re(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 r=e.byteLength;for(let i=0;i<r;){const s=re(e,i),a=s>1?i+s:r;if(te(e.subarray(i+4,i+8))===t[0])if(1===t.length)n.push(e.subarray(i+8,a));else{const r=ae(e.subarray(i+8,a),t.slice(1));r.length&&$.apply(n,r)}i=a}return n}function oe(e){const t=[],n=e[0];let r=8;const i=re(e,r);r+=4;let s=0,a=0;0===n?(s=re(e,r),a=re(e,r+4),r+=8):(s=ie(e,r),a=ie(e,r+8),r+=16),r+=2;let o=e.length+a;const l=ne(e,r);r+=2;for(let n=0;n<l;n++){let n=r;const s=re(e,n);n+=4;const a=2147483647&s;if(1===(2147483648&s)>>>31)return D.warn("SIDX has hierarchical references (not supported)"),null;const l=re(e,n);n+=4,t.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/i,start:o,end:o+a-1}}),o+=a,n+=4,r=n}return{earliestPresentationTime:s,timescale:i,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 r=n[e],i=ae(r,["tkhd"])[0];if(i){let e=i[0];const n=re(i,0===e?12:20),s=ae(r,["mdia","mdhd"])[0];if(s){e=s[0];const i=re(s,0===e?12:20),a=ae(r,["mdia","hdlr"])[0];if(a){const e=te(a.subarray(8,12)),s={soun:Y,vide:X}[e],o=ue(ae(r,["mdia","minf","stbl","stsd"])[0]);s?(t[n]={timescale:i,type:s,stsd:o},t[s]=x({timescale:i,id:n},o)):t[n]={timescale:i,type:e,stsd:o}}}}}return ae(e,["moov","mvex","trex"]).forEach((e=>{const n=re(e,4),r=t[n];r&&(r.default={duration:re(e,12),flags:re(e,20)})})),t}function ue(e){const t=e.subarray(8),n=t.subarray(86),r=te(t.subarray(4,8));let i,s=r;const a="enca"===r||"encv"===r;if(a){const e=ae(t,[r])[0];ae(e.subarray("enca"===r?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]),i=ce("avc1"===o?"dva1":"dvav",n));break}case"mp4a":{const e=ae(t,[r])[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 r=n[e++];if(64!==r)break;if(s+="."+he(r),e+=12,5!==n[e++])break;e=de(n,e);const i=n[e++];let a=(248&i)>>3;31===a&&(a+=1+((7&i)<<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],r=31&t,i=re(e,2),a=(32&t)>>5?"H":"L",o=e[12],l=e.subarray(6,12);s+="."+n+r,s+="."+function(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(i).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}i=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],r=e[6]>>4&15;s+="."+fe(t)+"."+fe(n)+"."+fe(r)}break}case"av01":{const e=ae(n,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,r=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,m=1,g=1,v=0;s+="."+t+"."+fe(r)+a+"."+fe(u)+"."+c+"."+d+h+f+"."+fe(p)+"."+fe(m)+"."+fe(g)+"."+v,i=ce("dav1",n)}break}}return{codec:s,encrypted:a,supplemental:i}}function ce(e,t){const n=ae(t,["dvvC"]),r=n.length?n[0]:ae(t,["dvcC"])[0];if(r){const t=r[2]>>1&127,n=r[2]<<5&32|r[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 me(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ge(e,t){const n=[],r=t.samples,i=t.timescale,s=t.id;let a=!1;return ae(r,["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=re(e,4);return 1===t&&(n*=Math.pow(2,32),n+=re(e,8)),n/i}))[0];return void 0!==u&&(e=u),ae(o,["tfhd"]).map((u=>{const c=re(u,4),d=16777215&re(u,0);let h=0;const f=0!=(16&d);let p=0;const m=0!=(32&d);let g=8;c===s&&(0!=(1&d)&&(g+=8),0!=(2&d)&&(g+=4),0!=(8&d)&&(h=re(u,g),g+=4),f&&(p=re(u,g),g+=4),m&&(g+=4),"video"===t.type&&(a=ve(t.codec)),ae(o,["trun"]).map((s=>{const o=s[0],u=16777215&re(s,0),c=0!=(1&u);let d=0;const f=0!=(4&u),m=0!=(256&u);let g=0;const v=0!=(512&u);let y=0;const _=0!=(1024&u),b=0!=(2048&u);let x=0;const w=re(s,4);let E=8;c&&(d=re(s,E),E+=4),f&&(E+=4);let A=d+l;for(let l=0;l<w;l++){if(m?(g=re(s,E),E+=4):g=h,v?(y=re(s,E),E+=4):y=p,_&&(E+=4),b&&(x=0===o?re(s,E):se(s,E),E+=4),t.type===X){let t=0;for(;t<y;){const s=re(r,A);if(A+=4,ye(a,r[A])){_e(r.subarray(A,A+s),a?2:1,e+x/i,n)}A+=s,t+=s+4}}e+=g/i}})))}))}))})),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,r){const i=be(e);let s=0;s+=t;let a=0,o=0,l=0;for(;s<i.length;){a=0;do{if(s>=i.length)break;l=i[s++],a+=l}while(255===l);o=0;do{if(s>=i.length)break;l=i[s++],o+=l}while(255===l);const e=i.length-s;let t=s;if(o<e)s+=o;else if(o>e){D.error(`Malformed SEI payload. ${o} is too small, only ${e} bytes left to parse.`);break}if(4===a){if(181===i[t++]){const e=ne(i,t);if(t+=2,49===e){const e=re(i,t);if(t+=4,1195456820===e){const e=i[t++];if(3===e){const s=i[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]=i[t++]}r.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 r=i[t++].toString(16);e.push(1==r.length?"0"+r:r),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]=i[t++];r.push({payloadType:a,pts:n,uuid:e.join(""),userData:L(l),userDataBytes:l})}}}function be(e){const t=e.byteLength,n=[];let r=1;for(;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;const i=t-n.length,s=new Uint8Array(i);let a=0;for(r=0;r<i;a++,r++)a===n[0]&&(a++,n.shift()),s[r]=e[a];return s}function xe(e,t,n){if(16!==e.byteLength)throw new RangeError("Invalid system id");let r,i,s;r=0,i=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 r=8,i=n;for(;i--;)r+=t[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=255&r,s.set(e,4),i=0,r=8;i<n;i++)s.set(t[i],r),r+=t[i].byteLength;return s}([112,115,115,104],new Uint8Array([0,0,0,0]),e,s,i,a,n)}function we(e){const t=e.getUint32(0),n=e.byteOffset,r=e.byteLength;if(r<t)return{offset:n,size:r};if(1886614376!==e.getUint32(4))return{offset:n,size:t};const i=e.getUint32(8)>>>24;if(0!==i&&1!==i)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===i)u=28;else{const i=e.getUint32(28);if(!i||r<32+16*i)return{offset:n,size:t};o=[];for(let e=0;e<i;e++)o.push(new Uint8Array(s,n+32+16*e,16));u=32+16*i}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:i,systemId:a,kids:o,data:l,offset:n,size:t})}const Ee=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Ae={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 ke(e,t){const n=Ae[t];return!!n&&!!n[e.slice(0,4)]}function Ce(e,t,n=!0){return!e.split(",").some((e=>!Te(e,t,n)))}function Te(e,t,n=!0){var r;const i=S(n);return null!=(r=null==i?void 0:i.isTypeSupported(De(e,t)))&&r}function De(e,t){return`${t}/mp4;codecs=${e}`}function Se(e){if(e){const t=e.substring(0,4);return Ae.video[t]}return 2}function Pe(e){const t=Ee();return e.split(",").reduce(((e,n)=>{const r=t&&ve(n)?9:Ae.video[n];return r?(2*r+e)/(e?3:2):(Ae.audio[n]+e)/(e?2:1)}),0)}const Le={};const Ie=/flac|opus|mp4a\.40\.34/i;function Ne(e,t=!0){return e.replace(Ie,(e=>function(e,t=!0){if(Le[e])return Le[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let i=0;i<n.length;i++){var r;if(Te(n[i],"audio",t))return Le[e]=n[i],n[i];if("mp3"===n[i]&&null!=(r=S(t))&&r.isTypeSupported("audio/mpeg"))return""}return e}(e.toLowerCase(),t)))}function Re(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e))&&(Me(e,"audio")||Me(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 Me(e,t){return ke(e,t)&&Te(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=S(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 je(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Be={supported:!1,smooth:!1,powerEfficient:!1},ze={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function He(e,t){return{supported:!1,configurations:t,decodingInfoResults:[Be],error:e}}function Ze(e,t,n,i,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 r=t.groups[n];if(!r)throw new Error(`Audio track group ${n} not found`);Object.keys(r.channels).forEach((t=>{e[t]=(e[t]||0)+r.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(i,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(s,8e6))||!!h&&r(d)&&Object.keys(h).some((e=>parseInt(e)>d))}function Ue(e,t,n,r={}){const i=e.videoCodec;if(!i&&!e.audioCodec||!n)return Promise.resolve(ze);const s=[],a=function(e){var t;const n=null==(t=e.videoCodec)?void 0:t.split(","),r=Xe(e),i=e.width||640,s=e.height||480,a=e.frameRate||30,o=e.videoRange.toLowerCase();return n?n.map((e=>{const t={contentType:De(Oe(e),"video"),width:i,height:s,bitrate:r,framerate:a};return"sdr"!==o&&(t.transferFunction=o),t})):[]}(e),o=a.length,l=function(e,t,n){var r;const i=null==(r=e.audioCodec)?void 0:r.split(","),s=Xe(e);if(i&&e.audioGroups)return e.audioGroups.reduce(((e,r)=>{var a;const o=r?null==(a=t.groups[r])?void 0:a.tracks:null;return o?o.reduce(((e,t)=>{if(t.groupId===r){const r=parseFloat(t.channels||"");i.forEach((t=>{const i={contentType:De(t,"audio"),bitrate:n?Ye(t,s):s};r&&(i.channels=""+r),e.push(i)}))}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(i){const e=navigator.userAgent;if(i.split(",").some((e=>ve(e)))&&Ee())return Promise.resolve(He(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:r}=e;if(r){t+=`${je(r.contentType)}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){t+=`${r?"_":""}${je(n.contentType)}_c${n.channels}`}return t}(e);return r[t]||(r[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 Ye(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 Xe(e){return 1e3*Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)/1e3)||1}const Ge=["NONE","TYPE-0","TYPE-1",null];const We=["SDR","PQ","HLG"];var Ke="",Ve="YES",Qe="v2";function qe(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e;return t&&r<t/2?n?Qe:Ve:Ke}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,r=[];if(e&&(n="SDR"!==e,r=[e]),t){r=t.allowedVideoRanges||We.slice(0);const e="SDR"!==r.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||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const nt=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),"object"==typeof r&&null!==r){if(t.has(r))return;t.add(r)}return r}})(t));function rt(e,t){D.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function it(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 r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function st(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:s}=e;return{lang:t,assocLang:n,characteristics:r,channels:i,audioCodec:s}}function at(e,t,n){if("attrs"in e){const n=t.indexOf(e);if(-1!==n)return n}for(let r=0;r<t.length;r++){if(ot(e,t[r],n))return r}return-1}function ot(e,t,n){const{groupId:r,name:i,lang:s,assocLang:a,default:o}=e,l=e.forced;return(void 0===r||t.groupId===r)&&(void 0===i||t.name===i)&&(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(","),r=t.split(",");return n.length===r.length&&!n.some((e=>-1===r.indexOf(e)))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function lt(e,t){const{audioCodec:n,channels:r}=e;return!(void 0!==n&&(t.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==r&&r!==(t.channels||"2"))}function ut(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r<e.length;r++)if(n(e[r]))return r;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,r=e.length-1,i=null,s=null;for(;n<=r;){i=(n+r)/2|0,s=e[i];const a=t(s);if(a>0)n=i+1;else{if(!(a<0))return s;r=i-1}}return null};function ht(e,t,n=0,r=0,i=.005){let s=null;if(e){s=t[1+e.sn-t[0].sn]||null;const r=e.endDTS-n;r>0&&r<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,r,s)||function(e,t,n){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){const r=t.tagList.reduce(((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e)),n);return e.start<=r}return!1}(s,e,Math.min(i,r))))return s;const a=dt(t,ft.bind(null,n,r));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 r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function pt(e,t,n){const r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}function mt(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:i}=e;let s;return i&&(r=r.concat(i)),dt(r,(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 gt(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=gt(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 xt(e){return x(x({},e),{errorRetry:null,timeoutRetry:null})}function wt(e,t,n,r){if(!e)return!1;const i=null==r?void 0:r.code,s=t<e.maxNumRetry&&(function(e){return Et(e)||!!e&&(e<400||e>499)}(i)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,s):s}function Et(e){return 0===e&&!1===navigator.onLine}var At=0,kt=2,Ct=3,Tt=5,Dt=0,St=1,Pt=2,Lt=4;function It(e){const t={action:At,flags:Dt};return e&&(t.resolved=!0),t}var Nt="NOT_LOADED",Rt="APPENDING",Mt="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 r=n[t];if(!r)break;if(r.start<=e&&e<=r.end&&r.loaded)return r}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const a=r[i[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,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(null==r?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach((r=>{const a=this.fragments[r];if(!a)return;if(s>=a.body.sn)return;if(!a.buffered&&(!a.loaded||i))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,r=Bt(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;if(Object.keys(t).forEach((r=>{const a=n.elementaryStreams[r];if(!a)return;const o=t[r],l=s||!0===a.partial;i.range[r]=this.getBufferedTimes(n,e.part,l,o)})),i.loaded=null,Object.keys(i.range).length){i.buffered=!0;(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),jt(i)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=zt(n,(t=>t.fragment.sn>=e)))}fragBuffered(e,t){const n=Bt(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,a=e.end,o=e.minEndPTS||a,l=e.maxStartPTS||s;for(let e=0;e<r.length;e++){const t=r.start(e)-this.bufferPadding,n=r.end(e)+this.bufferPadding;if(l>=t&&o<=n){i.time.push({startPTS:Math.max(s,r.start(e)),endPTS:Math.min(a,r.end(e))});break}if(s<n&&a>t){const t=Math.max(s,r.start(e)),n=Math.min(a,r.end(e));n>t&&(i.partial=!0,i.time.push({startPTS:t,endPTS:n}))}else if(a<=t)break}return i}getPartialFragment(e){let t,n,r,i=null,s=0;const{bufferPadding:a,fragments:o}=this;return Object.keys(o).forEach((l=>{const u=o[l];u&&jt(u)&&(n=u.body.start-a,r=u.body.end+a,e>=n&&e<=r&&(t=Math.min(e-n,r-e),s<=t&&(i=u.body,s=t)))})),i}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||jt(t))}getState(e){const t=Bt(e),n=this.fragments[t];return n?n.buffered?jt(n)?Mt:Ot:Rt:Nt}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=Bt(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if("initSegment"===n.sn)return;const a=n.type;if(r){let e=this.activePartLists[a];e||(this.activePartLists[a]=e=[]),e.push(r)}this.timeRanges=i;const o=i[s];this.detectEvictedFragments(s,o,a,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Bt(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((null==i?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach((s=>{const a=this.fragments[s];if(!a)return;const o=a.body;o.type!==n||r&&!o.gap||o.start<t&&o.end>e&&(a.buffered||i)&&this.removeFragment(o)}))}removeFragment(e){const t=Bt(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const t=e.sn;this.activePartLists[e.type]=zt(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 jt(e){var t,n,r;return e.buffered&&!!(e.body.gap||null!=(t=e.range.video)&&t.partial||null!=(n=e.range.audio)&&n.partial||null!=(r=e.range.audiovideo)&&r.partial)}function Bt(e){return`${e.type}_${e.level}_${e.sn}`}function zt(e,t){return e.filter((e=>{const n=t(e);return n||e.clearElementaryStreamInfo(),n}))}var Ht=0,Zt=1;class Ut{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 Ht:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Zt: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 Yt{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,r=n[0],i=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,m=0;for(m=0;m<256;m++)h[m]=m<128?m<<1:m<<1^283;for(m=0;m<256;m++){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],m=h[o],g=h[m];let v=257*h[n]^16843008*n;r[f]=v<<24|v>>>8,i[f]=v<<16|v>>>16,s[f]=v<<8|v>>>24,a[f]=v,v=16843009*g^65537*m^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[g^o]]],p^=h[h[p]]):f=p=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);const s=this.ksRows=4*(i+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],m=h[2],g=h[3];let v,y;for(a=0;a<s;a++)a<i?v=l[a]=t[a]:(y=v,a%i==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/i|0]<<24):i>6&&a%i==4&&(y=c[y>>>24]<<24|c[y>>>16&255]<<16|c[y>>>8&255]<<8|c[255&y]),l[a]=v=(l[a-i]^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]]^m[c[y>>>8&255]]^g[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 r=this.keySize+6,i=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],m=d[3];const g=new Int32Array(e),v=new Int32Array(g.length);let y,_,b,x,w,E,A,k,C,T,D,S,P,L;const I=this.networkToHostOrderSwap;for(;t<g.length;){for(C=I(g[t]),T=I(g[t+1]),D=I(g[t+2]),S=I(g[t+3]),w=C^i[0],E=S^i[1],A=D^i[2],k=T^i[3],P=4,L=1;L<r;L++)y=o[w>>>24]^l[E>>16&255]^u[A>>8&255]^c[255&k]^i[P],_=o[E>>>24]^l[A>>16&255]^u[k>>8&255]^c[255&w]^i[P+1],b=o[A>>>24]^l[k>>16&255]^u[w>>8&255]^c[255&E]^i[P+2],x=o[k>>>24]^l[w>>16&255]^u[E>>8&255]^c[255&A]^i[P+3],w=y,E=_,A=b,k=x,P+=4;y=s[w>>>24]<<24^s[E>>16&255]<<16^s[A>>8&255]<<8^s[255&k]^i[P],_=s[E>>>24]<<24^s[A>>16&255]<<16^s[k>>8&255]<<8^s[255&w]^i[P+1],b=s[A>>>24]<<24^s[k>>16&255]<<16^s[w>>8&255]<<8^s[255&E]^i[P+2],x=s[k>>>24]<<24^s[w>>16&255]<<16^s[E>>8&255]<<8^s[255&A]^i[P+3],v[t]=I(y^h),v[t+1]=I(x^f),v[t+2]=I(b^p),v[t+3]=I(_^m),h=C,f=T,p=D,m=S,t+=4}return v.buffer}}class Xt{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=function(e){switch(e){case Ht:return"AES-CBC";case Zt: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 Gt{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,r){return this.useSoftware?new Promise(((i,s)=>{const a=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(a,t,n,r);const o=this.flush();o?i(o.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:a}=this;if(r!==Ht||16!==t.byteLength)return D.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(e=me(a,e),this.remainderData=null);const o=this.getValidChunk(e);if(!o.length)return null;i&&(n=i);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new Yt),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,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Xt(this.subtle,t,r)}return this.fastAesKey.expandKey().then((t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new Ut(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,t)})).catch((i=>(D.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r))))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const i=this.flush();if(i)return i.buffer}throw new Error("WebCrypto"+(i?" 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&&(D.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Wt=Math.pow(2,17);class Kt{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 r=this.config,i=r.fLoader,s=r.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(Qt(e));e.gap=!1}const c=this.loader=i?new i(r):new s(r),d=Vt(e);e.loader=c;const h=xt(r.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,r,i)=>{this.resetLoader(e,c);let s=t.data;r.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),l({frag:e,part:null,payload:s,networkDetails:i})},onError:(t,r,i,s)=>{this.resetLoader(e,c),u(new qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:x({url:n,data:void 0},t),error:new Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:i,stats:s}))},onAbort:(t,n,r)=>{this.resetLoader(e,c),u(new qt({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:r,stats:t}))},onTimeout:(t,n,r)=>{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:r,stats:t}))}};t&&(p.onProgress=(n,r,i,s)=>t({frag:e,part:null,payload:i,networkDetails:s})),c.load(d,f,p)}))}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void u(Qt(e,t));const c=this.loader=i?new i(r):new s(r),d=Vt(e,t);e.loader=c;const h=xt(r.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:(r,i,s,a)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const o={frag:e,part:t,payload:r.data,networkDetails:a};n(o),l(o)},onError:(n,r,i,s)=>{this.resetLoader(e,c),u(new qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:x({url:d.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:i,stats:s}))},onAbort:(n,r,i)=>{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:i,stats:n}))},onTimeout:(n,r,i)=>{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:i,stats:n}))}})}))}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const r=Math.round(e.duration/t.duration),s=Math.min(Math.round(n.loaded/i),r),a=(r-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=r.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 Vt(e,t=null){const n=t||e,i={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},s=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(r(s)&&r(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&&(i.resetIV=!0,t=s-16)}i.rangeStart=t,i.rangeEnd=n}var l;return i}function Qt(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:a.MEDIA_ERROR,details:o.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new qt(r)}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,r=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={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=r,this.part=i,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 r=tn.bufferedRanges(e);if(r.length)return tn.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort(((e,t)=>e.start-t.start||t.end-e.end));let r=-1,i=[];if(n)for(let s=0;s<e.length;s++){t>=e[s].start&&t<=e[s].end&&(r=s);const a=i.length;if(a){const t=i[a-1].end;e[s].start-t<n?e[s].end>t&&(i[a-1].end=e[s].end):i.push(e[s])}else i.push(e[s])}else i=e;let s,a=0,o=t,l=t;for(let e=0;e<i.length;e++){const u=i[e].start,c=i[e].end;if(-1===r&&t>=u&&t<=c&&(r=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:r}}static getBuffered(e){try{return e.buffered||en}catch(e){return D.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 r=t.substring(2,t.length-1),i=null==n?void 0:n[r];return void 0===i?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),t):i}))}return t}function an(e,t,n){let r,i,s=e.variableList;if(s||(e.variableList=s={}),"QUERYPARAM"in t){r=t.QUERYPARAM;try{const e=new self.URL(n).searchParams;if(!e.has(r))throw new Error(`"${r}" does not match any query parameter in URI: "${n}"`);i=e.get(r)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else r=t.NAME,i=t.VALUE;r in s?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):s[r]=i||""}function on(e,t,n){const r=t.IMPORT;if(n&&r in n){let t=e.variableList;t||(e.variableList=t={}),t[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}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 r={};for(un.lastIndex=0;null!==(n=un.exec(e));){const i=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(i){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(i){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":D.warn(`${e}: attribute ${i} is missing quotes`)}r[i]=s}return r}}function dn(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class hn{constructor(e,t,n=0){var i;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!=(i=null==t?void 0:t.tagOrder)?i:n,t){const n=t.attr;for(const t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){D.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"]);r(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?(D.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(r(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&&r(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&&r(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 mn(e,t){return!e&&!t||!(!e||!t)&&pn(e,t)}function gn(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function vn(e){switch(e){case"AES-128":case"AES-256":return Ht;case"AES-256-CTR":return Zt;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 r=e[t];e[t]=e[n],e[n]=r};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function xn(e){const t=e.split(":");let n=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),r=e[e.length-1].split(",");if(2===r.length){const t="base64"===r[0],i=r[1];t?(e.splice(-1,1),n=yn(i)):n=function(e){const t=_n(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(i)}}return n}const wn="undefined"!=typeof self?self:void 0;var En={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},An="org.w3.clearkey",kn="com.apple.streamingkeydelivery",Cn="com.microsoft.playready",Tn="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function Dn(e){switch(e){case kn:return En.FAIRPLAY;case Cn:return En.PLAYREADY;case Tn:return En.WIDEVINE;case An:return En.CLEARKEY}}function Sn(e){switch(e){case En.FAIRPLAY:return kn;case En.PLAYREADY:return Cn;case En.WIDEVINE:return Tn;case En.CLEARKEY:return An}}function Pn(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[En.FAIRPLAY,En.WIDEVINE,En.PLAYREADY,En.CLEARKEY].filter((e=>!!t[e])):[];return!r[En.WIDEVINE]&&n&&r.push(En.WIDEVINE),r}const Ln=null!=wn&&null!=(In=wn.navigator)&&In.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var In;let Nn={};class Rn{static clearKeyUriToKeyIdMap(){Nn={}}static setKeyIdForUri(e,t){Nn[e]=t}constructor(e,t,n,r=[1],i=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!gn(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)&&mn(e.iv,this.iv)&&mn(e.keyId,this.keyId)}isSupported(){if(this.method){if(gn(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case kn:case Tn:case Cn:case An: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(gn(this.method)){let t=this.iv;t||("number"!=typeof e&&(D.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 Rn(this.method,this.uri,"identity",this.keyFormatVersions,t)}if(this.pssh&&this.keyId)return this;const t=xn(this.uri);if(t)switch(this.keyFormat){case Tn:if(this.pssh=t,!this.keyId){const e=function(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32<n;){const n=we(new DataView(e,r));t.push(n),r+=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=xe(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)),r=n.substring(n.indexOf("<"),n.length),i=(new DOMParser).parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(i){const e=i.childNodes[0]?i.childNodes[0].nodeValue:i.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),Rn.setKeyIdForUri(this.uri,e)}this.keyId=e}return this}}const Mn=/#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,jn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Bn=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 zn{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return Z.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)},r=[];if(Mn.lastIndex=0,!e.startsWith("#EXTM3U"))return n.playlistParsingError=new Error("no EXTM3U delimiter"),n;let i;for(;null!=(i=Mn.exec(e));)if(i[1]){var s;const e=new cn(i[1],n),a=sn(n,i[2]),o={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:zn.resolve(a,t)},l=e.decimalResolution("RESOLUTION");l&&(o.width=l.width,o.height=l.height),Xn(e.CODECS,o);const u=e["SUPPLEMENTAL-CODECS"];u&&(o.supplemental={},Xn(u,o.supplemental)),null!=(s=o.unknownCodecs)&&s.length||r.push(o),n.levels.push(o)}else if(i[3]){const e=i[3],r=i[4];switch(e){case"SESSION-DATA":{const e=new cn(r,n),t=e["DATA-ID"];t&&(null===n.sessionData&&(n.sessionData={}),n.sessionData[t]=e);break}case"SESSION-KEY":{const e=Un(r,t,n);e.encrypted&&e.isSupported()?(null===n.sessionKeys&&(n.sessionKeys=[]),n.sessionKeys.push(e)):D.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${r}"`);break}case"DEFINE":an(n,new cn(r,n),t);break;case"CONTENT-STEERING":{const e=new cn(r,n);n.contentSteering={uri:zn.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":n.startTimeOffset=Yn(r)}}const a=r.length>0&&r.length<n.levels.length;return n.levels=a?r:n.levels,0===n.levels.length&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,n){let r;const i={},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!==(r=On.exec(e));){const e=new cn(r[1],n),s=e.TYPE;if(s){const n=a[s],r=i[s]||[];i[s]=r;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?zn.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=zn.findGroup(n,f.groupId)||n[0];Gn(f,e,"audioCodec"),Gn(f,e,"textCodec")}r.push(f)}}return i}static parseLevelPlaylist(e,t,n,i,s,a){var o;const l={url:t},u=new fn(t),c=u.fragments,d=[];let h,f,p,m,g=null,v=0,y=0,b=0,x=0,w=0,E=null,A=new V(i,l),k=-1,C=!1,T=null;if(jn.lastIndex=0,u.m3u8=e,u.hasVariableRefs=rn(e),"#EXTM3U"!==(null==(o=jn.exec(e))?void 0:o[0]))return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;null!==(h=jn.exec(e));){C&&(C=!1,A=new V(i,l),A.playlistOffset=b,A.setStart(b),A.sn=v,A.cc=x,w&&(A.bitrate=w),A.level=n,g&&(A.initSegment=g,g.rawProgramDateTime&&(A.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null),T&&(A.setByteRange(T),T=null)));const e=h[1];if(e){A.duration=parseFloat(e);const t=(" "+h[2]).slice(1);A.title=t||null,A.tagList.push(t?["INF",e,t]:["INF",e])}else if(h[3]){if(r(A.duration)){A.playlistOffset=b,A.setStart(b),p&&Vn(A,p,u),A.sn=v,A.level=n,A.cc=x,c.push(A);const e=(" "+h[3]).slice(1);A.relurl=sn(u,e),Wn(A,E,d),E=A,b+=A.duration,v++,y=0,C=!0}}else{if(h=h[0].match(Bn),!h){D.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":E?A.setByteRange(s,E):A.setByteRange(s);break;case"PROGRAM-DATE-TIME":A.rawProgramDateTime=s,A.tagList.push(["PROGRAM-DATE-TIME",s]),-1===k&&(k=c.length);break;case"PLAYLIST-TYPE":u.type&&Qn(u,e,h),u.type=s.toUpperCase();break;case"MEDIA-SEQUENCE":0!==u.startSN?Qn(u,e,h):c.length>0&&qn(u,e,h),v=u.startSN=parseInt(s);break;case"SKIP":{u.skippedSegments&&Qn(u,e,h);const t=new cn(s,u),n=t.decimalInteger("SKIPPED-SEGMENTS");if(r(n)){u.skippedSegments+=n;for(let e=n;e--;)c.push(null);v+=n}const i=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");i&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(i.split("\t")));break}case"TARGETDURATION":0!==u.targetduration&&Qn(u,e,h),u.targetduration=Math.max(parseInt(s),1);break;case"VERSION":null!==u.version&&Qn(u,e,h),u.version=parseInt(s);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||Qn(u,e,h),u.live=!1;break;case"#":(s||o)&&A.tagList.push(o?[s,o]:[s]);break;case"DISCONTINUITY":x++,A.tagList.push(["DIS"]);break;case"GAP":A.gap=!0,A.tagList.push([e]);break;case"BITRATE":A.tagList.push([e,s]),w=1e3*parseInt(s),r(w)?A.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:D.warn(`Ignoring invalid DATERANGE tag: "${s}"`),A.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?Qn(u,e,h):c.length>0&&qn(u,e,h),u.startCC=x=parseInt(s);break;case"KEY":{const e=Un(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 D.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${s}"`);break}case"START":u.startTimeOffset=Yn(s);break;case"MAP":{const e=new cn(s,u);if(A.duration){const t=new V(i,l);Kn(t,e,n,p),g=t,A.initSegment=g,g.rawProgramDateTime&&!A.rawProgramDateTime&&(A.rawProgramDateTime=g.rawProgramDateTime)}else{const t=A.byteRangeEndOffset;if(t){const e=A.byteRangeStartOffset;T=`${t-e}@${e}`}else T=null;Kn(A,e,n,p),g=A,C=!0}g.cc=x;break}case"SERVER-CONTROL":m&&Qn(u,e,h),m=new cn(s),u.canBlockReload=m.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=m.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&m.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=m.optionalFloat("PART-HOLD-BACK",0),u.holdBack=m.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{u.partTarget&&Qn(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++,r=new cn(s,u),i=new Q(r,A,l,n,t);e.push(i),A.duration+=i.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:D.warn(`line parsed but not handled: ${h}`)}}}E&&!E.relurl?(c.pop(),b-=E.duration,u.partList&&(u.fragmentHint=E)):u.partList&&(Wn(A,E,d),A.cc=x,u.fragmentHint=A,p&&Vn(A,p,u)),u.targetduration||(u.playlistParsingError=new Error("Missing Target Duration"));const S=c.length,P=c[0],L=c[S-1];if(b+=u.skippedSegments*u.targetduration,b>0&&S&&L){u.averagetargetduration=b/S;const e=L.sn;u.endSN="initSegment"!==e?e:0,u.live||(L.endList=!0),k>0&&(!function(e,t){let n=e[t];for(let r=t;r--;){const t=e[r];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(c,k),P&&d.unshift(P))}return u.fragmentHint&&(b+=u.fragmentHint.duration),u.totalduration=b,d.length&&u.dateRangeTagCount&&P&&Hn(d,u),u.endCC=x,u}}function Hn(e,t){let n=e.length;if(!n){if(!t.hasProgramDateTime)return;{const r=t.fragments[t.fragments.length-1];e.push(r),n++}}const r=e[n-1],i=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=r.ref;for(let r=n;r--;){var a;if((null==(a=e[r])?void 0:a.sn)<t.startSN)break;const n=Zn(t,u,e,r,i);if(-1!==n){l.tagAnchor=t.fragments[n].ref;break}}}}function Zn(e,t,n,r,i){const s=n[r];if(s){const o=s.programDateTime;if(t>=o||0===r){var a;if(t<=o+1e3*(((null==(a=n[r+1])?void 0:a.start)||i)-s.start)){const i=n[r].sn-e.startSN;if(i<0)return-1;const s=e.fragments;if(s.length>n.length){for(let a=(n[r+1]||s[s.length-1]).sn-e.startSN;a>i;a--){const e=s[a].programDateTime;if(t>=e&&t<e+1e3*s[a].duration)return a}}return i}}}return-1}function Un(e,t,n){var r,i;const s=new cn(e,n),a=null!=(r=s.METHOD)?r:"",o=s.URI,l=s.hexadecimalInteger("IV"),u=s.KEYFORMATVERSIONS,c=null!=(i=s.KEYFORMAT)?i:"identity";o&&s.IV&&!l&&D.error(`Invalid IV: ${s.IV}`);const d=o?zn.resolve(o,t):"",h=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Rn(a,d,c,h,l,s.KEYID)}function Yn(e){const t=new cn(e).decimalFloatingPoint("TIME-OFFSET");return r(t)?t:null}function Xn(e,t){let n=(e||"").split(/[ ,]+/).filter((e=>e));["video","audio","text"].forEach((e=>{const r=n.filter((t=>ke(t,e)));r.length&&(t[`${e}Codec`]=r.map((e=>e.split("/")[0])).join(","),n=n.filter((e=>-1===r.indexOf(e))))})),t.unknownCodecs=n}function Gn(e,t,n){const r=t[n];r&&(e[n]=r)}function Wn(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Kn(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function Vn(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;r.length&&r[r.length-1].levelkeys===t||!Object.keys(t).some((e=>t[e].isCommonEncryption))||r.push(e)}function Qn(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(r(n)){let r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&r.setDuration(i)}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,i,s,a,o){i-n<=0&&(o.warn("Fragment should have a positive duration",t),i=n+t.duration,a=s+t.duration);let l=n,u=i;const c=t.startPTS,d=t.endPTS;if(r(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}`):r(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(i,d),i=Math.max(i,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(i-t.start),t.startPTS=n,t.maxStartPTS=l,t.startDTS=s,t.endPTS=i,t.minEndPTS=u,t.endDTS=a;const f=t.sn;if(!e||f<e.startSN||f>e.endSN)return 0;let p;const m=f-e.startSN,g=e.fragments;for(g[m]=t,p=m;p>0;p--)Jn(g[p],g[p-1]);for(p=m;p<g.length-1;p++)Jn(g[p],g[p+1]);return e.fragmentHint&&Jn(g[g.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,h}function er(e,t,n){if(e===t)return;let i=null;const s=e.fragments;for(let e=s.length-1;e>=0;e--){const t=s[e].initSegment;if(t){i=t;break}}let a;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){const r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,s=(e.fragmentHint?1:0)+(r?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=i;u<=s;u++){const i=l[a+u];let s=o[u];if(r&&!s&&i&&(s=t.fragments[u]=i),i&&s){n(i,s,u,o);const r=i.relurl,a=s.relurl;if(r&&ur(r,a))return void(t.playlistParsingError=tr(`media sequence mismatch ${s.sn}:`,e,t,i,s));if(i.cc!==s.cc)return void(t.playlistParsingError=tr(`discontinuity sequence mismatch (${i.cc}!=${s.cc})`,e,t,i,s))}}}(e,t,((e,n,s,o)=>{if((!t.startCC||t.skippedSegments)&&n.cc!==e.cc){const r=e.cc-n.cc;for(let e=s;e<o.length;e++)o[e].cc+=r;t.endCC=o[o.length-1].cc}r(e.startPTS)&&r(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,i=e.initSegment)}));const o=t.fragments,l=t.fragmentHint?o.concat(t.fragmentHint):o;if(i&&l.forEach((e=>{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=i)?void 0:t.relurl)||(e.initSegment=i)})),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:r,recentlyRemovedDateranges:i}=t,s=_({},e);i&&i.forEach((e=>{delete s[e]}));const a=Object.keys(s).length;if(!a)return r;return Object.keys(r).forEach((e=>{const t=s[e],i=new hn(r[e].attr,t);i.isValid?(s[e]=i,t||(i.tagOrder+=a)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${nt(r[e].attr)}"`)})),s}(e.dateRanges,t,n));const r=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],r);Hn(r,t)}t.endCC=o[o.length-1].cc}if(!t.startCC){var u;const n=sr(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 r=0;for(let i=0,s=e.length;i<=s;i++){const s=e[i],a=t[i+r];s&&a&&s.index===a.index&&s.fragment.sn===a.fragment.sn?n(s,a):r--}}}(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):nr(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 tr(e,t,n,r,i){return new Error(`${e} ${i.url}\nPlaylist starting @${t.startSN}\n${t.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function nr(e,t,n=!0){const r=t.startSN+t.skippedSegments-e.startSN,i=e.fragments,s=r>=0;let a=0;if(s&&r<i.length)a=i[r].start;else if(s&&t.startSN===e.endSN+1)a=e.fragmentEnd;else if(s&&n)a=e.fragmentStart+r*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;a=e.fragmentStart}rr(t,a)}function rr(e,t){if(t){const n=e.fragments;for(let r=e.skippedSegments;r<n.length;r++)n[r].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function ir(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){const r=e.fragments,i=4;if(r.length&&n*i>t){const e=1e3*r[r.length-1].duration;e<n&&(n=e)}}else n/=2;return Math.round(n)}function sr(e,t,n){if(!e)return null;let r=e.fragments[t-e.startSN];return r||(r=e.fragmentHint,r&&r.sn===t?r:t<e.startSN&&n&&n.sn===t?n:null)}function ar(e,t,n){return e?or(e.partList,t,n):null}function or(e,t,n){if(e)for(let r=e.length;r--;){const i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function lr(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 ur(e,t){return!(e===t||!t)&&cr(e)!==cr(t)}function cr(e){return e.replace(/\?[^?]*$/,"")}function dr(e,t){for(let r=0,i=e.length;r<i;r++){var n;if((null==(n=e[r])?void 0:n.cc)===t)return e[r]}return null}function hr(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function fr(e,t){const n=t.fragments;for(let t=0,r=n.length;t<r;t++)hr(n[t],e);t.fragmentHint&&hr(t.fragmentHint,e),t.alignedSliding=!0}function pr(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),r=dr(t.fragments,n),i=dr(e.fragments,n);if(!r||!i)return;D.log(`Aligning playlist at start of dicontinuity sequence ${n}`);fr(r.start-i.start,e)}function mr(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,r=t.fragments;if(!n.length||!r.length)return;let i,s;const a=Math.min(t.endCC,e.endCC);t.startCC<a&&e.startCC<a&&(i=dr(r,a),s=dr(n,a)),i&&s||(i=r[Math.floor(r.length/2)],s=dr(n,i.cc)||n[Math.floor(n.length/2)]);const o=i.programDateTime,l=s.programDateTime;if(!o||!l)return;fr((l-o)/1e3-(s.start-i.start),e)}function gr(e,t,n){vr(e,t,n),e.addEventListener(t,n)}function vr(e,t,n){e.removeEventListener(t,n)}const yr=function(e){let t="";const n=e.length;for(let r=0;r<n;r++)t+=`[${e.start(r).toFixed(3)}-${e.end(r).toFixed(3)}]`;return t},_r="STOPPED",br="IDLE",xr="KEY_LOADING",wr="FRAG_LOADING",Er="FRAG_LOADING_WAITING_RETRY",Ar="WAITING_TRACK",kr="PARSING",Cr="PARSED",Tr="ENDED",Dr="ERROR",Sr="WAITING_INIT_PTS",Pr="WAITING_LEVEL";class Lr extends Jt{constructor(e,t,n,i,s){super(i,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=_r,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:i,state:s}=this,a=n?n.currentTime:0,o=tn.bufferInfo(i||n,a,e.maxBufferHole),l=!o.len;if(this.log(`Media seeking to ${r(a)?a.toFixed(3):a}, state: ${s}, ${l?"out of":"in"} buffer`),this.state===Tr)this.resetLoadingState();else if(t){const n=e.maxFragLookUpTolerance,r=t.start-n,i=t.start+t.duration+n;if(l||i<o.start||r>o.end){const e=a>i;(a<r||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===br&&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 Kt(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Gt(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===_r)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=_r}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,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=tn.bufferedInfo(i,e.start,0));const s=e.nextStart;if(s&&s>r&&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;gr(n,"seeking",this.onMediaSeeking),gr(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===_r&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(null!==r){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),vr(r,"seeking",this.onMediaSeeking),vr(r,"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=_r,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===wr||!this.fragCurrent&&t===kr)&&(this.fragmentTracker.removeFragment(n),this.state=br):("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!==_r&&this.state!==Dr&&(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)===Rt){const t=e.type,r=this.getFwdBufferInfo(this.mediaBuffer,t),i=Math.max(e.duration,r?r.len:this.config.maxBufferLength),s=this.backtrackFragment;(1===(s?e.sn-s.sn:0)||this.reduceMaxBufferLength(i,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)===Mt&&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 r={startOffset:e,endOffset:t,type:n};this.hls.trigger(l.BUFFER_FLUSHING,r)}_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:r}=e,i=n.decryptdata;if(r&&r.byteLength>0&&null!=i&&i.key&&i.iv&&gn(i.method)){const s=self.performance.now();return this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,vn(i.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((r=>{const i=self.performance.now();return t.trigger(l.FRAG_DECRYPTED,{frag:n,payload:r,stats:{tstart:s,tdecrypt:i}}),e.payload=r,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((t=>{this.state!==_r&&this.state!==Dr&&(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!==_r&&(this.state=br),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(e,t){var n,r;const i=e.tracks;if(i&&!t.encrypted&&(null!=(n=i.audio)&&n.encrypted||null!=(r=i.video)&&r.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?yr(tn.getBuffered(n)):"(detached)"})`),K(e)){var r;if(e.type!==m){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return void(this.state=br)}const t=null==(r=this.levels)?void 0:r[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=br}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||0===i.length||i.some((e=>!e)),a=new $t(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,i){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=xr,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===xr&&(this.state=br),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(K(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&&K(e)){const r=a.partList;if(r&&i){n>a.fragmentEnd&&a.fragmentHint&&(e=a.fragmentHint);const s=this.getNextPart(r,e,n);if(s>-1){const u=r[s];let c;return e=this.fragCurrent=u.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${u.index} (${s}/${r.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=wr,c=o?o.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,u,t,i))).catch((e=>this.handleFragLoadError(e))):this.doFragPartsLoad(e,u,t,i).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(r,n))return Promise.resolve(null)}}var c;if(K(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))}`),r(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=wr;const d=this.config.progressive;let h;return h=d&&o?o.then((t=>!t||this.fragContextChanged(t.frag)?null:this.fragmentLoader.load(e,i))).catch((e=>this.handleFragLoadError(e))):Promise.all([this.fragmentLoader.load(e,d?i:void 0),o]).then((([e])=>(!d&&i&&i(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,r){return new Promise(((i,s)=>{var a;const o=[],u=null==(a=n.details)?void 0:a.partList,c=t=>{this.fragmentLoader.loadPart(e,t,r).then((r=>{o[t.index]=r;const s=r.part;this.hls.trigger(l.FRAG_LOADED,r);const a=ar(n.details,e.sn,t.index+1)||or(u,e.sn,t.index+1);if(!a)return i({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!==kr)return void(this.fragCurrent||this.state===_r||this.state===Dr||(this.state=br));const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.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,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const i=e.partList[0];if(i.fragment.type===m)return!1;if(t>=i.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)){var r;if((this.hls.hasEnoughToStart?(null==(r=this.media)?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(null==t||!t[r])return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const a=t[r],o=a.details,l=s>-1?ar(o,i,s):null,u=l?l.fragment:sr(o,i,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:a}):null}bufferFragmentData(e,t,n,r,i){if(this.state!==kr)return;const{data1:s,data2:a}=e;let o=s;if(a&&(o=me(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:r,offset:c,parent:t.type,data:o};if(this.hls.trigger(l.BUFFER_APPENDING,d),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!tn.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const n=t.currentTime,r=tn.bufferInfo(t,n,0),i=e.duration,s=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),a=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-a>s&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){var n;const i=this.getLoadPosition();if(!r(i))return null;const s=this.lastCurrentTime>i||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,i,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=tn.bufferInfo(e,t,r);if(0===i.len&&void 0!==i.nextStart){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const n=Math.max(Math.min(i.nextStart,s.end)-t,r);return tn.bufferInfo(e,t,n)}}return i}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,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-3*t,n.maxMaxBufferLength/2,r);return i>=r&&(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}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,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,a=i.lowLatencyMode&&!!t.partList;let o=null;if(t.live){const n=i.initialLiveManifestSize;if(r<n)return this.warn(`Not enough fragments to start playback (have: ${r}, 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,r=this.hls.liveSyncPosition,i=o?(-1!==n&&n>=s?n:r)||o.start:e;this.log(`Setting startPosition to ${i} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${r} frag.start: ${null==(l=o)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=i}}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===Mt&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(null!==e&&n.len+e.len>=i){const e=s.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(Ir(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(Ir(this.config)&&e.type!==m){const n=this.hls.interstitialsManager,r=null==n?void 0:n.bufferingItem;if(r){const n=r.event;if(n){if(n.appendInPlace||Math.abs(e.start-r.start)>1||0===r.start)return null}else{if(e.end<=r.start&&!1===(null==t?void 0:t.live))return null;if(e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}}const i=null==n?void 0:n.playerQueue;if(i)for(let t=i.length;t--;){const n=i[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 r=-1,i=!1,s=!0;for(let a=0,o=e.length;a<o;a++){const o=e[a];if(s=s&&!o.independent,r>-1&&n<o.start)break;const l=o.loaded;l?r=-1:(i||(o.independent||s)&&o.fragment===t)&&(o.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${o.start}`),r=a),i=l}return r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let i=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),i=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!r(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(let r=0;r<e.length;++r){const i=e[r];if(pt(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const r=n.sn+1;if(r>=e.startSN&&r<=e.endSN){const s=t[r-e.startSN];n.cc===s.cc&&(i=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=mt(e,n.cc,n.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const t=this.hls.liveSyncPosition;null!==t&&(i=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:a}=n;const{fragmentHint:o}=n,{maxFragLookUpTolerance:l}=r,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(i,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===Mt&&d.gap)&&(i=d),i&&d.sn===i.sn&&(!c||u[0].fragment.sn>d.sn||!n.live)){if(d.level===i.level){const t=s[e+1];d=d.sn<a&&this.fragmentTracker.getState(t)!==Ot?t:null}}}return d}alignPlaylists(e,t,n){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const s=e.fragmentStart,a=!t,o=e.alignedSliding&&r(s);if(a||!o&&!s){!function(e,t){e&&(pr(t,e),t.alignedSliding||mr(t,e),t.alignedSliding||t.skippedSegments||nr(e,t,!1))}(n,e);const r=e.fragmentStart;return this.log(`Live playlist sliding: ${r.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${i}`),r}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 i=this.timelineOffset;if(-1===n){const s=null!==this.startTimeOffset,a=s?this.startTimeOffset:e.startTimeOffset;null!==a&&r(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+i}this.nextLoadPosition=n+i}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&&K(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===Er)||(this.state=br)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;var i;if(this.fragContextChanged(r))return void this.warn(`Frag load error must match current frag to retry ${r.url} > ${null==(i=this.fragCurrent)?void 0:i.url}`);const s=t.details===o.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const a=t.errorAction;if(!a)return void(this.state=Dr);const{action:l,flags:u,retryCount:c=0,retryConfig:d}=a,h=!!d,f=h&&l===Tt,p=h&&!a.resolved&&u===St,m=null==(n=this.hls.latestLevelDetails)?void 0:n.live;if(!f&&p&&K(r)&&!r.endList&&m&&!yt(t))this.resetFragmentErrors(e),this.treatAsGap(r),a.resolved=!0;else if((f||p)&&c<d.maxNumRetry){var g;const n=Et(null==(g=t.response)?void 0:g.code),i=bt(d,c);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+i,this.state=Er,a.resolved=!0,n)return this.log("Waiting for connection (offline)"),this.retryDate=1/0,void(t.reason="offline");this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${c+1}/${d.maxNumRetry} in ${i}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===kt?Pr:Dr;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!Et(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=br)}reduceLengthAndFlushBuffer(e){if(this.state===kr||this.state===Cr){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(null==t?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===p&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==_r&&(this.state=br)}afterBufferFlushed(e,t,n){if(!e)return;const r=tn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===Tr&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==_r&&(this.state=br)}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,r){const i=n.details;if(!i)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=r?0:$n(i,e,a.startPTS,a.endPTS,a.startDTS,a.endDTS,this);return this.hls.trigger(l.LEVEL_PTS_UPDATED,{details:i,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=Cr,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 r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${(null!=(r=t&&!n?e.startPTS:(n||e).start)?r:NaN).toFixed(3)}-${(null!=(i=t&&!n?e.endPTS:(n||e).end)?i: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 Ir(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class Nr{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 r=0;for(let t=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n}(e,t),this.reset(),n):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}var Rr,Mr={exports:{}};var Or=(Rr||(Rr=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new i(r,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 r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,a=new Array(s);i<s;i++)a[i]=r[i].fn;return a},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,i,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,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,s),!0;case 6:return c.fn.call(c.context,t,r,i,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,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);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,r,i){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||i&&!o.once||r&&o.context!==r||a(this,s);else{for(var l=0,u=[],c=o.length;l<c;l++)(o[l].fn!==t||i&&!o[l].once||r&&o[l].context!==r)&&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 r,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}(Mr)),Mr.exports),Fr=R(Or);const jr="1.6.12",Br={};function zr(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 Hr(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 Zr(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 Ur(e,t){const n=t;let r=0;for(;Hr(e,t);){r+=10;r+=Zr(e,t+6),zr(e,t+10)&&(r+=10),t+=r}if(r>0)return e.subarray(n,n+r)}function Yr(e,t){return 255===e[t]&&240==(246&e[t+1])}function Xr(e,t){return 1&e[t+1]?7:9}function Gr(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function Wr(e,t){return t+1<e.length&&Yr(e,t)}function Kr(e,t){if(Wr(e,t)){const n=Xr(e,t);if(t+n>=e.length)return!1;const r=Gr(e,t);if(r<=n)return!1;const i=t+r;return i===e.length||Wr(e,i)}return!1}function Vr(e,t,n,r,i){if(!e.samplerate){const s=function(e,t,n,r){const i=t[n+2],s=i>>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+(i>>6&3),c=t[n+3]>>6&3|(1&i)<<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 D.log(`manifest codec:${r}, 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:r}}(t,n,r,i);if(!s)return;_(e,s)}}function Qr(e){return 9216e4/e}function qr(e,t,n,r,i){const s=r+i*Qr(e.samplerate),a=function(e,t){const n=Xr(e,t);if(t+n<=e.length){const r=Gr(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);let o;if(a){const{frameLength:r,headerLength:i}=a,l=i+r,u=Math.max(0,n+l-t.length);u?(o=new Uint8Array(l-i),o.set(t.subarray(n+i,t.length),0)):o=t.subarray(n+i,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 Jr(e,t){return Hr(e,t)&&Zr(e,t+6)+10<=e.length-t}function $r(e,t=0,n=1/0){return function(e,t,n,r){const i=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e);let s=1;"BYTES_PER_ELEMENT"in r&&(s=r.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 r(i,u,c-u)}(e,t,n,Uint8Array)}function ei(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 r=L($r(e.data,1,n)),i=e.data[2+n],s=e.data.subarray(3+n).indexOf(0);if(-1===s)return;const a=L($r(e.data,3+n,s));let o;return o="--\x3e"===r?L($r(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=r,t.pictureType=i,t.description=a,t.data=o,t}function ti(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=L(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=L(e.data.subarray(t),!0);t+=n.length+1;const r=L(e.data.subarray(t));return{key:e.type,info:n,data:r}}const t=L(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?ei(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const n=L(e.data.subarray(t),!0);t+=n.length+1;const r=L(e.data.subarray(t));return{key:e.type,info:n,data:r}}const t=L(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function ni(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=Zr(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}function ri(e){let t=0;const n=[];for(;Hr(e,t);){const r=Zr(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const i=t+r;for(;t+10<i;){const r=ni(e.subarray(t)),i=ti(r);i&&n.push(i),t+=r.size+10}zr(e,t)&&(t+=10)}return n}function ii(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function si(e){if(8===e.data.byteLength){const t=new Uint8Array(e.data),n=1&t[3];let r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}}function ai(e){const t=ri(e);for(let e=0;e<t.length;e++){const n=t[e];if(ii(n))return si(n)}}let oi=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 li(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class ui{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=me(this.cachedData,e),this.cachedData=null);let n,i=Ur(e,0),s=i?i.length:0;const a=this._audioTrack,o=this._id3Track,l=i?ai(i):void 0,u=e.length;for((null===this.basePTS||0===this.frameIndex&&r(l))&&(this.basePTS=ci(l,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),i&&i.length>0&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:oi.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 Jr(e,s)?(i=Ur(e,s),o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:oi.audioId3,duration:Number.POSITIVE_INFINITY}),s+=i.length,n=s):s++;if(s===u&&n!==u){const t=e.slice(n);this.cachedData?this.cachedData=me(this.cachedData,t):this.cachedData=t}}return{audioTrack:a,videoTrack:li(),id3Track:o,textTrack:li()}}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:li(),id3Track:this._id3Track,textTrack:li()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const ci=(e,t,n)=>{if(r(e))return 90*e;return 9e4*t+(n?9e4*n.baseTime/n.timescale:0)};let di=null;const hi=[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],fi=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],pi=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],mi=[0,1,1,4];function gi(e,t,n,r,i){if(n+24>t.length)return;const s=vi(t,n);if(s&&n+s.frameLength<=t.length){const a=r+i*(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 vi(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,s=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==s){const a=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*hi[14*(3===n?3-r:3===r?3:4)+i-1],u=fi[3*(3===n?0:2===n?1:2)+s],c=3===o?1:2,d=pi[n][r],h=mi[r],f=8*d*h,p=Math.floor(d*l/u+a)*h;if(null===di){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);di=e?parseInt(e[1]):0}return!!di&&di<=87&&2===r&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:c,frameLength:p,samplesPerFrame:f}}}function yi(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function _i(e,t){return t+1<e.length&&yi(e,t)}function bi(e,t){if(t+1<e.length&&yi(e,t)){const n=4,r=vi(e,t);let i=n;null!=r&&r.frameLength&&(i=r.frameLength);const s=t+i;return s===e.length||_i(e,s)}return!1}const xi=(e,t)=>{let n=0,r=5;t+=r;const i=new Uint32Array(1),s=new Uint32Array(1),a=new Uint8Array(1);for(;r>0;){a[0]=e[t];const o=Math.min(r,8),l=8-o;s[0]=4278190080>>>24+l<<l,i[0]=(a[0]&s[0])>>l,n=n?n<<o|i[0]:i[0],t+=1,r-=o}return n};class wi extends ui{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=Ei(e,t,n,this.basePTS,this.frameIndex);if(-1!==r){return{sample:e.samples[e.samples.length-1],length:r,missing:0}}}static probe(e){if(!e)return!1;const t=Ur(e,0);if(!t)return!1;const n=t.length;return 11===e[n]&&119===e[n+1]&&void 0!==ai(t)&&xi(e,n)<16}}function Ei(e,t,n,r,i){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],m=new Uint8Array([s<<6|f<<1|p>>2,(3&p)<<6|u<<3|d<<2|o>>4,o<<4&224]),g=r+i*(1536/a*9e4),v=t.subarray(n,n+l);return e.config=m,e.channelCount=h,e.samplerate=a,e.samples.push({unit:v,pts:g}),l}const Ai=/\/emsg[-/]ID3/i;function ki(e,t){return r(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class Ci{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Gt(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Ht)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then((i=>{const s=new Uint8Array(i);r.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 r=0;for(let t=32;t<e.length-16;t+=160,r+=16)n.set(e.subarray(t,t+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let t=32;t<e.length-16;t+=160,r+=16)e.set(n.subarray(r,r+16),t);return e}decryptAvcSample(e,t,n,r,i){const s=be(i.data),a=this.getAvcEncryptedData(s);this.decryptBuffer(a.buffer).then((a=>{i.data=this.getAvcDecryptedUnit(s,a),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})).catch(r)}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void r();const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||1!==s.type&&5!==s.type||(this.decryptAvcSample(e,t,n,r,s),this.decrypter.isSync())))return}}}}class Ti{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,r=this.VideoSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!=(t=r)&&t.units){const e=r.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,r=n.length;if(!r)return void t.dropped++;{const t=n[r-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,a=[];let o,l,u,c=0,d=-1,h=0;for(-1===i&&(d=0,h=this.getNALuType(t,0),i=0,c=1);c<r;)if(o=t[c++],i)if(1!==i)if(o)if(1===o){if(l=c-i-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=me(n.data,t.subarray(0,l)),n.state=0))}c<r?(u=this.getNALuType(t,c),d=c,h=u,i=0):i=-1}else i=0;else i=3;else i=o?0:2;else i=o?0:1;if(d>=0&&i>=0){const e={data:t.subarray(d,r),type:h,state:i};a.push(e)}if(0===a.length){const n=this.getLastNalUnit(e.samples);n&&(n.data=me(n.data,t))}return e.naluState=i,a}}class Di{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i}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&&D.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 Si extends Ti{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s,a=this.VideoSample,o=!1;n.data=null,a&&i.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach((r=>{var i,l;switch(r.type){case 1:{let t=!1;s=!0;const i=r.data;if(o&&i.length>4){const e=this.readSliceType(i);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!=(i=a)&&i.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(r.data,1,n.pts,t.samples);break;case 7:{var c,d;s=!0,o=!0;const t=r.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 r=t.subarray(1,4);let i="avc1.";for(let e=0;e<3;e++){let t=r[e].toString(16);t.length<2&&(t="0"+t),i+=t}e.codec=i}break}case 8:s=!0,e.pps=[r.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(r)}})),r&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new Di(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n,r=8,i=8;for(let s=0;s<e;s++)0!==i&&(n=t.readEG(),i=(r+n+256)%256),r=0===i?r:i}readSPS(e){const t=new Di(e);let n,r,i,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),m=t.skipUEG.bind(t),g=this.skipScalingList.bind(this);u();const v=u();if(c(5),f(3),u(),m(),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),m(),m(),f(1),h())for(r=3!==e?8:12,i=0;i<r;i++)h()&&g(i<6?16:64,t)}m();const y=d();if(0===y)d();else if(1===y)for(f(1),p(),p(),n=d(),i=0;i<n;i++)p();m(),f(1);const _=d(),b=d(),x=c(1);0===x&&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-x)*(b+1)*16-(x?2:4)*(o+l),pixelRatio:w}}}class Pi extends Ti{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s,a=this.VideoSample,o=!1;n.data=null,a&&i.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach((r=>{var i,l;switch(r.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!=(i=a)&&i.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(r.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(r.data)),this.initVPS=r.data),e.vps=[r.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],r.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(r.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,r.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(r.data);for(const n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,r.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(r)}})),r&&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 r=0;r<e.byteLength;r++)r>=2&&3===e[r]&&0===e[r-1]&&0===e[r-2]||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Di(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 Di(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),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(),m=t.readUByte(),g=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(),x=t.readUEG(),w=t.readBoolean();let E=0,A=0,k=0,C=0;w&&(E+=t.readUEG(),A+=t.readUEG(),k+=t.readUEG(),C+=t.readUEG());const T=t.readUEG(),D=t.readUEG(),S=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 P=t.readUEG();let L=0;for(let e=0;e<P;e++){let n=!1;if(0!==e&&(n=t.readBoolean()),n){e===P&&t.readUEG(),t.readBoolean(),t.readUEG();let n=0;for(let e=0;e<=L;e++){const e=t.readBoolean();let r=!1;e||(r=t.readBoolean()),(e||r)&&n++}L=n}else{const e=t.readUEG(),n=t.readUEG();L=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<S+4;e++)t.readBits(1);t.readBits(1)}}let I=0,N=1,R=1,M=!0,O=1,F=0;t.readBoolean(),t.readBoolean();let j=!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],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(N=t.readBits(16),R=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(),j=t.readBoolean(),j&&(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(),r=t.readBoolean();let i=!1;(e||r)&&(i=t.readBoolean(),i&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),i&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let s=0;s<=n;s++){M=t.readBoolean();let n=!1;M||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(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(r)for(let e=0;e<s;e++)t.readUEG(),t.readUEG(),i&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),I=t.readUEG())}let B=b,z=x;if(w){let e=1,t=1;1===_?e=t=2:2==_&&(e=2),B=b-e*A-e*E,z=x-t*C-t*k}const H=r?["A","B","C"][r]:"",Z=a<<24|o<<16|l<<8|u;let U=0;for(let e=0;e<32;e++)U=(U|(Z>>e&1)<<31-e)>>>0;let Y=U.toString(16);1===s&&"2"===Y&&(Y="6");return{codecString:`hvc1.${H}${s}.${Y}.${i?"H":"L"}${g}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[a,o,l,u],general_constraint_indicator_flags:[c,d,h,f,p,m],general_level_idc:g,bit_depth:T+8,bit_depth_luma_minus8:T,bit_depth_chroma_minus8:D,min_spatial_segmentation_idc:I,chroma_format_idc:_,frame_rate:{fixed:M,fps:F/O}},width:B,height:z,pixelRatio:[N,R]}}readPPS(e){const t=new Di(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(),r=t.readBoolean();let i=1;return r&&n?i=0:r?i=3:n&&(i=2),{parallelismType:i}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const Li=188;class Ii{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=Ii.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-Li)+1,r=0;for(;r<n;){let i=!1,s=-1,a=0;for(let o=r;o<t;o+=Li){if(71!==e[o]||t-o!==Li&&71!==e[o+Li]){if(a)return-1;break}if(a++,-1===s&&(s=o,0!==s&&(n=Math.min(s+18612,e.length-Li)+1)),i||(i=0===Ni(e,o)),i&&a>1&&(0===s&&a>2||o+Li>n))return s}r++}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,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Ii.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=Ii.createTrack("audio",r),this._id3Track=Ii.createTrack("id3"),this._txtTrack=Ii.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){let i;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,m=null,g=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=me(this.remainderData,e)).length,this.remainderData=null),y<Li&&!r)return this.remainderData=e,{audioTrack:a,videoTrack:s,id3Track:o,textTrack:l};const _=Math.max(0,Ii.syncOffset(e));y-=(y-_)%Li,y<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));let b=0;for(let t=_;t<y;t+=Li)if(71===e[t]){const r=!!(64&e[t+1]),y=Ni(e,t);let b;if((48&e[t+3])>>4>1){if(b=t+5+e[t+4],b===t+Li)continue}else b=t+4;switch(y){case u:r&&(c&&(i=ji(c,this.logger))&&(this.readyVideoParser(s.segmentCodec),null!==this.videoParser&&this.videoParser.parsePES(s,l,i,!1)),c={data:[],size:0}),c&&(c.data.push(e.subarray(b,t+Li)),c.size+=t+Li-b);break;case d:if(r){if(f&&(i=ji(f,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,i);break;case"mp3":this.parseMPEGPES(a,i);break;case"ac3":this.parseAC3PES(a,i)}f={data:[],size:0}}f&&(f.data.push(e.subarray(b,t+Li)),f.size+=t+Li-b);break;case h:r&&(p&&(i=ji(p,this.logger))&&this.parseID3PES(o,i),p={data:[],size:0}),p&&(p.data.push(e.subarray(b,t+Li)),p.size+=t+Li-b);break;case 0:r&&(b+=e[b]+1),v=this._pmtId=Ri(e,b);break;case v:{r&&(b+=e[b]+1);const i=Mi(e,b,this.typeSupported,n,this.observer,this.logger);u=i.videoPid,u>0&&(s.pid=u,s.segmentCodec=i.segmentVideoCodec),d=i.audioPid,d>0&&(a.pid=d,a.segmentCodec=i.segmentAudioCodec),h=i.id3Pid,h>0&&(o.pid=h),null===m||g||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${m}'. Backtracking to sync byte @${_} to parse all TS packets.`),m=null,t=_-188),g=this.pmtParsed=!0;break}case 17:case 8191:break;default:m=y}}else b++;b>0&&Oi(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 x={audioTrack:a,videoTrack:s,id3Track:o,textTrack:l};return r&&this.extractRemainingSamples(x),x}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:r,textTrack:i}=e,s=n.pesData,a=t.pesData,o=r.pesData;let l;if(s&&(l=ji(s,this.logger))?(this.readyVideoParser(n.segmentCodec),null!==this.videoParser&&(this.videoParser.parsePES(n,i,l,!0),n.pesData=null)):n.pesData=s,a&&(l=ji(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=ji(o,this.logger))?(this.parseID3PES(r,l),r.pesData=null):r.pesData=o}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Ci(this.observer,this.config,t);return this.decrypt(r,i)}readyVideoParser(e){null===this.videoParser&&("avc"===e?this.videoParser=new Si:"hevc"===e&&(this.videoParser=new Pi))}decrypt(e,t){return new Promise((n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,(()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,(()=>{n(e)})):n(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(()=>{n(e)}))}))}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i,s,a,o=t.data;if(r){this.aacOverFlow=null;const t=r.missing,i=r.sample.unit.byteLength;if(-1===t)o=me(r.sample.unit,o);else{const s=i-t;r.sample.unit.set(o.subarray(0,t),s),e.samples.push(r.sample),n=r.missing}}for(i=n,s=o.length;i<s-1&&!Wr(o,i);i++);if(i!==n){let e;const t=i<s-1;if(e=t?`AAC PES did not start with ADTS header,offset:${i}`:"No ADTS header found in AAC PES",Oi(this.observer,new Error(e),t,this.logger),!t)return}if(Vr(e,this.observer,o,i,this.audioCodec),void 0!==t.pts)a=t.pts;else{if(!r)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");{const t=Qr(e.samplerate);a=r.sample.pts+t}}let l,u=0;for(;i<s;){if(l=qr(e,o,i,a,u),i+=l.length,l.missing){this.aacOverFlow=l;break}for(u++;i<s-1&&!Wr(o,i);i++);}}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const a=t.pts;if(void 0!==a)for(;s<r;)if(_i(n,s)){const t=gi(e,n,s,a,i);if(!t)break;s+=t.length,i++}else s++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(void 0===r)return void this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");const i=n.length;let s,a=0,o=0;for(;o<i&&(s=Ei(e,n,o,r,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?oi.emsg:oi.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Ni(e,t){return((31&e[t+1])<<8)+e[t+2]}function Ri(e,t){return(31&e[t+10])<<8|e[t+11]}function Mi(e,t,n,r,i,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=Ni(e,t),l=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!r){Fi("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(!r){Fi("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(!r){Fi("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 r=t+5,i=l;for(;i>2;){if(106===e[r])!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[r+1]+2;r+=t,i-=t}}break;case 194:case 135:return Oi(i,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 Oi(e,t,n,r){r.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 Fi(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function ji(e,t){let n,r,i,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]=me(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(r=(n[4]<<8)+n[5],r&&r>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),i=n[8];let c=i+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 r&&(r-=i+3),{data:d,pts:s,dts:a,len:r}}return null}class Bi{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 zi=Math.pow(2,32)-1;class Hi{static init(){let e;for(e in Hi.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:[]},Hi.types)Hi.types.hasOwnProperty(e)&&(Hi.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]);Hi.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);Hi.STTS=Hi.STSC=Hi.STCO=i,Hi.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Hi.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Hi.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Hi.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]);Hi.FTYP=Hi.box(Hi.types.ftyp,s,o,s,a),Hi.DINF=Hi.box(Hi.types.dinf,Hi.box(Hi.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=255&n,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return Hi.box(Hi.types.hdlr,Hi.HDLR_TYPES[e])}static mdat(e){return Hi.box(Hi.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(zi+1)),r=Math.floor(t%(zi+1));return Hi.box(Hi.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,r>>24,r>>16&255,r>>8&255,255&r,85,196,0,0]))}static mdia(e){return Hi.box(Hi.types.mdia,Hi.mdhd(e.timescale||0,e.duration||0),Hi.hdlr(e.type),Hi.minf(e))}static mfhd(e){return Hi.box(Hi.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?Hi.box(Hi.types.minf,Hi.box(Hi.types.smhd,Hi.SMHD),Hi.DINF,Hi.stbl(e)):Hi.box(Hi.types.minf,Hi.box(Hi.types.vmhd,Hi.VMHD),Hi.DINF,Hi.stbl(e))}static moof(e,t,n){return Hi.box(Hi.types.moof,Hi.mfhd(e),Hi.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Hi.trak(e[t]);return Hi.box.apply(null,[Hi.types.moov,Hi.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Hi.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Hi.trex(e[t]);return Hi.box.apply(null,[Hi.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(zi+1)),r=Math.floor(t%(zi+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,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 Hi.box(Hi.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Hi.box(Hi.types.sdtp,n)}static stbl(e){return Hi.box(Hi.types.stbl,Hi.stsd(e),Hi.box(Hi.types.stts,Hi.STTS),Hi.box(Hi.types.stsc,Hi.STSC),Hi.box(Hi.types.stsz,Hi.STSZ),Hi.box(Hi.types.stco,Hi.STCO))}static avc1(e){let t,n,r,i=[],s=[];for(t=0;t<e.sps.length;t++)n=e.sps[t],r=n.byteLength,i.push(r>>>8&255),i.push(255&r),i=i.concat(Array.prototype.slice.call(n));for(t=0;t<e.pps.length;t++)n=e.pps[t],r=n.byteLength,s.push(r>>>8&255),s.push(255&r),s=s.concat(Array.prototype.slice.call(n));const a=Hi.box(Hi.types.avcC,new Uint8Array([1,i[3],i[4],i[5],255,224|e.sps.length].concat(i).concat([e.pps.length]).concat(s))),o=e.width,l=e.height,u=e.pixelRatio[0],c=e.pixelRatio[1];return Hi.box(Hi.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,Hi.box(Hi.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Hi.box(Hi.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 Hi.box(Hi.types.mp4a,Hi.audioStsd(e),Hi.box(Hi.types.esds,Hi.esds(e)))}static mp3(e){return Hi.box(Hi.types[".mp3"],Hi.audioStsd(e))}static ac3(e){return Hi.box(Hi.types["ac-3"],Hi.audioStsd(e),Hi.box(Hi.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return Hi.box(Hi.types.stsd,Hi.STSD,Hi.mp4a(e));if("ac3"===t&&e.config)return Hi.box(Hi.types.stsd,Hi.STSD,Hi.ac3(e));if("mp3"===t&&"mp3"===e.codec)return Hi.box(Hi.types.stsd,Hi.STSD,Hi.mp3(e))}else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return Hi.box(Hi.types.stsd,Hi.STSD,Hi.avc1(e));if("hevc"===t&&e.vps)return Hi.box(Hi.types.stsd,Hi.STSD,Hi.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),r=e.width||0,i=e.height||0,s=Math.floor(n/(zi+1)),a=Math.floor(n%(zi+1));return Hi.box(Hi.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,r>>8&255,255&r,0,0,i>>8&255,255&i,0,0]))}static traf(e,t){const n=Hi.sdtp(e),r=e.id,i=Math.floor(t/(zi+1)),s=Math.floor(t%(zi+1));return Hi.box(Hi.types.traf,Hi.box(Hi.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r])),Hi.box(Hi.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,s>>24,s>>16&255,s>>8&255,255&s])),Hi.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Hi.box(Hi.types.trak,Hi.tkhd(e),Hi.mdia(e))}static trex(e){const t=e.id;return Hi.box(Hi.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||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let a,o,l,u,c,d;for(t+=8+i,s.set(["video"===e.type?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),a=0;a<r;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 Hi.box(Hi.types.trun,s)}static initSegment(e){Hi.types||Hi.init();const t=Hi.moov(e);return me(Hi.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=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 i=r.length;for(let e=0;e<n.length;e+=1){i+=3;for(let t=0;t<n[e].length;t+=1)i+=2+n[e][t].length}const s=new Uint8Array(i);s.set(r,0),i=r.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]),i),i+=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]),i),i+=2,s.set(n[e][t],i),i+=n[e][t].length}const o=Hi.box(Hi.types.hvcC,s),l=e.width,u=e.height,c=e.pixelRatio[0],d=e.pixelRatio[1];return Hi.box(Hi.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,Hi.box(Hi.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Hi.box(Hi.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))}}Hi.types=void 0,Hi.HDLR_TYPES=void 0,Hi.STTS=void 0,Hi.STSC=void 0,Hi.STCO=void 0,Hi.STSZ=void 0,Hi.VMHD=void 0,Hi.SMHD=void 0,Hi.STSD=void 0,Hi.FTYP=void 0,Hi.DINF=void 0;function Zi(e,t,n=1,r=!1){const i=e*t*n;return r?Math.round(i):i}function Ui(e,t=!1){return Zi(e,1e3,1/9e4,t)}let Yi,Xi=null,Gi=null;function Wi(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Ki extends w{constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,null===Xi){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Xi=e?parseInt(e[1]):0}if(null===Gi){const e=navigator.userAgent.match(/Safari\/(\d+)/i);Gi=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,r=e.reduce(((e,r)=>{let i=r.pts,s=i-e;return s<-4294967296&&(t=!0,i=Vi(i,n),s=i-e),s>0?e:i}),n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,a,o){let l,u,c,d,h,f,m=i,g=i;const v=e.pid>-1,y=t.pid>-1,_=t.samples.length,b=e.samples.length>0,x=a&&_>0||_>1;if((!v||b)&&(!y||x)||this.ISGenerated||a){if(this.ISGenerated){var w,E,A,k;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(w=t.pixelRatio)?void 0:w[0])!==(null==(E=e.pixelRatio)?void 0:E[0])||(null==(A=t.pixelRatio)?void 0:A[1])!==(null==(k=e.pixelRatio)?void 0:k[1]))||!e&&x||null===this.nextAudioTs&&b)&&this.resetInitSegment()}this.ISGenerated||(c=this.generateIS(e,t,i,s));const n=this.isVideoContiguous;let r,a=-1;if(x&&(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,g+=(t.samples[0].pts-e)/t.inputTimeScale,r=g}else-1===a&&(this.warn(`No keyframe found out of ${_} video samples`),f=!1);if(this.ISGenerated){if(b&&x){const n=this.getVideoStartPts(t.samples),r=(Vi(e.samples[0].pts,n)-n)/t.inputTimeScale;m+=Math.max(0,r),g+=Math.max(0,-r)}if(b){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),c=this.generateIS(e,t,i,s)),u=this.remuxAudio(e,m,this.isAudioContiguous,s,y||x||o===p?g:void 0),x){const r=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),c=this.generateIS(e,t,i,s)),l=this.remuxVideo(t,g,n,r)}}else x&&(l=this.remuxVideo(t,g,n,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=r)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=Qi(n,i,this._initPTS,this._initDTS)),r.samples.length&&(d=qi(r,i,this._initPTS))),{audio:u,video:l,initSegment:c,independent:f,text:d,id3:h}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,a=this.typeSupported,o={},l=this._initPTS;let u,c,d,h=!l||r,f="audio/mp4",p=-1;if(h&&(u=c=1/0),e.config&&i.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):Hi.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(p=e.id,d=e.inputTimeScale,l&&d===l.timescale?h=!1:u=c=i[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:Hi.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,Vi(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: ${r?"":"~"}${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,r){const i=e.inputTimeScale,s=e.samples,u=[],c=s.length,d=this._initPTS,h=d.baseTime*i/d.timescale;let f,p,m=this.nextVideoTs,g=8,v=this.videoSampleDuration,y=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,x=!1;if(!n||null===m){const e=h+t*i,r=s[0].pts-Vi(s[0].dts,s[0].pts);Xi&&null!==m&&Math.abs(e-r-(m+h))<15e3?n=!0:m=e-r-h}const w=m+h;for(let e=0;e<c;e++){const t=s[e];t.pts=Vi(t.pts,w),t.dts=Vi(t.dts,w),t.dts<s[e>0?e-1:e].dts&&(x=!0)}x&&s.sort((function(e,t){const n=e.dts-t.dts,r=e.pts-t.pts;return n||r})),f=s[0].dts,p=s[s.length-1].dts;const E=p-f,A=E?Math.round(E/(c-1)):v||e.inputTimeScale/30;if(n){const n=f-w,r=n>A,i=n<-1;if((r||i)&&(r?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Ui(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Ui(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!i||w>=s[0].pts||Xi)){f=w;const e=s[0].pts-n;if(r)s[0].dts=f,s[0].pts=e;else{let t=!0;for(let r=0;r<s.length&&!(s[r].dts>e&&t);r++){const e=s[r].pts;if(s[r].dts-=n,s[r].pts-=n,r<s.length-1){const n=s[r+1].pts;t=n<=s[r].pts==n<=e}}}this.log(`Video: Initial PTS/DTS adjusted: ${Ui(e,!0)}/${Ui(f,!0)}, delta: ${Ui(n,!0)} ms`)}}f=Math.max(0,f);let k=0,C=0,T=f;for(let e=0;e<c;e++){const t=s[e],n=t.units,r=n.length;let i=0;for(let e=0;e<r;e++)i+=n[e].data.length;C+=i,k+=r,t.length=i,t.dts<T?(t.dts=T,T+=A/4|0||1):T=t.dts,y=Math.min(t.pts,y),b=Math.max(t.pts,b)}p=s[c-1].dts;const D=C+4*k+8;let S;try{S=new Uint8Array(D)}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:D,reason:`fail allocating video mdat ${D}`})}const P=new DataView(S.buffer);P.setUint32(0,D),S.set(Hi.types.mdat,4);let L=!1,I=Number.POSITIVE_INFINITY,N=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,M=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],r=t.data,i=t.data.byteLength;P.setUint32(g,i),g+=4,S.set(r,g),g+=i,o+=4+i}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:A;if(a=e>0?t.pts-s[e-1].pts:A,n.stretchShortVideoTrack&&null!==this.nextAudioTs){const e=Math.floor(n.maxBufferHole*i),s=(r?y+r*i:this.nextAudioTs+h)-t.pts;s>e?(v=s-o,v<0?v=o:L=!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),R=Math.max(R,v),N=Math.min(N,a),M=Math.max(M,a),u.push(Wi(t.key,v,o,l))}if(u.length)if(Xi){if(Xi<70){const e=u[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(Gi&&M-N<R-I&&A/R<.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 r=e+u[t].duration,i=e+u[t].cts;if(t<n-1){const e=r+u[t+1].cts;u[t].duration=e-i}else u[t].duration=t?u[t-1].duration:A;u[t].cts=0,e=r}}v=L||!v?A:v;const O=p+v;this.nextVideoTs=m=O-h,this.videoSampleDuration=v,this.isVideoContiguous=!0;const F={data1:Hi.moof(e.sequenceNumber++,f,_(e,{samples:u})),data2:S,startPTS:(y-h)/i,endPTS:(b+v-h)/i,startDTS:(f-h)/i,endDTS:m/i,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,r,i){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=[],m=void 0!==i;let g=e.samples,v=f?0:8,y=this.nextAudioTs||-1;const b=h.baseTime*s/h.timescale,x=b+t*s;if(this.isAudioContiguous=n=n||g.length&&y>0&&(r&&Math.abs(x-(y+b))<9e3||Math.abs(Vi(g[0].pts,x)-(y+b))<20*d),g.forEach((function(e){e.pts=Vi(e.pts,x)})),!n||y<0){if(g=g.filter((e=>e.pts>=0)),!g.length)return;y=0===i?0:r&&!m?Math.max(0,x-b):g[0].pts-b}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let n=0,r=y+b;n<g.length;n++){const i=g[n],a=i.pts,o=a-r,l=Math.abs(1e3*o/s);if(o<=-t*d&&m)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,r=a);else if(o>=t*d&&l<1e4&&m){let t=Math.round(o/d);for(r=a-t*d;r<0&&t&&d;)t--,r+=d;0===n&&(this.nextAudioTs=y=r-b),this.warn(`Injecting ${t} audio frames @ ${((r-b)/s).toFixed(3)}s due to ${Math.round(1e3*o/s)} ms gap.`);for(let s=0;s<t;s++){let t=Bi.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=i.unit.subarray()),g.splice(n,0,{unit:t,pts:r}),r+=d,n++}}i.pts=r,r+=d}}let w,E=null,A=null,k=0,C=g.length;for(;C--;)k+=g[C].unit.byteLength;for(let t=0,r=g.length;t<r;t++){const r=g[t],i=r.unit;let s=r.pts;if(null!==A){p[t-1].duration=Math.round((s-A)/u)}else{if(n&&"aac"===e.segmentCodec&&(s=y+b),E=s,!(k>0))return;k+=v;try{w=new Uint8Array(k)}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:k,reason:`fail allocating audio mdat ${k}`})}if(!f){new DataView(w.buffer).setUint32(0,k),w.set(Hi.types.mdat,4)}}w.set(i,v);const d=i.byteLength;v+=d,p.push(Wi(!0,c,d,0)),A=s}const T=p.length;if(!T)return;const D=p[p.length-1];y=A-b,this.nextAudioTs=y+u*D.duration;const S=f?new Uint8Array(0):Hi.moof(e.sequenceNumber++,E/u,_({},e,{samples:p}));e.samples=[];const P=(E-b)/s,L=y/s,I={data1:S,data2:w,startPTS:P,endPTS:L,startDTS:P,endDTS:L,type:"audio",hasAudio:!0,hasVideo:!1,nb:T};return this.isAudioContiguous=!0,I}}function Vi(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 Qi(e,t,n,r){const i=e.samples.length;if(!i)return;const s=e.inputTimeScale;for(let a=0;a<i;a++){const i=e.samples[a];i.pts=Vi(i.pts-n.baseTime*s/n.timescale,t*s)/s,i.dts=Vi(i.dts-r.baseTime*s/r.timescale,t*s)/s}const a=e.samples;return e.samples=[],{samples:a}}function qi(e,t,n){const r=e.samples.length;if(!r)return;const i=e.inputTimeScale;for(let s=0;s<r;s++){const r=e.samples[s];r.pts=Vi(r.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort(((e,t)=>e.pts-t.pts));const s=e.samples;return e.samples=[],{samples:s}}function Ji(e,t,n=!1){return void 0!==(null==e?void 0:e.start)?(e.start+(n?e.duration:0))/e.timescale:t}function $i(e,t,n){const r=e.codec;if(r&&r.length>4)return r;if(t===Y){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r){return Ne(r,!1)}return n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"}return n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1"}try{Yi=self.performance.now.bind(self.performance)}catch(e){Yi=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,r){const i=this.videoTrack=li("video",1),s=this.audioTrack=li("audio",1),a=this.txtTrack=li("text",1);if(this.id3Track=li("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:r}=o.video;i.id=e,i.timescale=a.timescale=t,i.codec=n,i.supplemental=r}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,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return function(e){const t=e.byteLength;for(let n=0;n<t;){const r=re(e,n);if(r>8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=r>1?n+r:t}return!1}(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=me(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 r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}(n);this.remainderData=t.remainder,r.samples=t.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=ge(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=ge(e,t),{videoTrack:t,audioTrack:li(),id3Track:r,textTrack:li()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=ae(e.samples,["emsg"]);r&&r.forEach((e=>{const r=function(e){const t=e[0];let n="",r="",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));)r+=te(e.subarray(c,c+1)),c+=1;r+=te(e.subarray(c,c+1)),c+=1,s=re(e,12),a=re(e,16),l=re(e,20),u=re(e,24),c=28}else if(1===t){c+=4,s=re(e,c),c+=4;const t=re(e,c);c+=4;const a=re(e,c);for(c+=4,o=2**32*t+a,i(o)||(o=Number.MAX_SAFE_INTEGER,D.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=re(e,c),c+=4,u=re(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));)r+=te(e.subarray(c,c+1)),c+=1;r+=te(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:r,timeScale:s,presentationTime:o,presentationTimeDelta:a,eventDuration:l,id:u,payload:e.subarray(c,e.byteLength)}}(e);if(Ai.test(r.schemeIdUri)){const e=ki(r,t);let i=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;i<=.001&&(i=Number.POSITIVE_INFINITY);const s=r.payload;n.samples.push({data:s,len:s.byteLength,dts:e,pts:e,type:oi.emsg,duration:i})}else if(this.config.enableEmsgKLVMetadata&&r.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const e=ki(r,t);n.samples.push({data:r.payload,len:r.payload.byteLength,dts:e,pts:e,type:oi.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,r){super("passthrough-remuxer",r),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,r),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:r}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const{audio:i,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 r=ae(t,["enca"]);const i=r.length>0;i||(r=ae(t,["encv"])),r.forEach((e=>{ae(i?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))||(D.log(`[eme] Patching keyId in 'enc${i?"a":"v"}>sinf>>tenc' box: ${I(e)} -> ${I(n)}`),t.set(n,8))}}))}))}))}(e,t);else{const e=i||s;null!=e&&e.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${e.codec}")!`)}i&&(n=$i(i,Y,this)),s&&(r=$i(s,X,this));const a={};i&&s?a.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:i?a.audio={container:"audio/mp4",codec:n,encrypted:i.encrypted,initSegment:e,id:"audio"}:s?a.video={container:"video/mp4",codec:r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=a}remux(e,t,n,i,s,a){var o,l;let{initPTS:u,lastEndTime:c}=this;const d={audio:void 0,video:void 0,text:i,id3:n,initSegment:void 0};r(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 m=function(e,t,n){const i={},s=ae(e,["moof","traf"]);for(let e=0;e<s.length;e++){const a=s[e],o=ae(a,["tfhd"])[0],l=re(o,4),u=t[l];if(!u)continue;i[l]||(i[l]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});const c=i[l],d=ae(a,["tfdt"])[0];if(d){const e=d[0];let t=re(d,4);1===e&&(t===J?n.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(t*=J+1,t+=re(d,8))),r(t)&&(!r(c.start)||t<c.start)&&(c.start=t)}const h=u.default,f=re(o,0)|(null==h?void 0:h.flags);let p=(null==h?void 0:h.duration)||0;8&f&&(p=re(o,2&f?12:8));const m=ae(a,["trun"]);let g=c.start||0,v=0,y=p;for(let e=0;e<m.length;e++){const t=m[e],n=re(t,4),r=c.sampleCount;c.sampleCount+=n;const i=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(i&&(d+=4),s&&n&&(1&t[d+1]||void 0!==c.keyFrameIndex||(c.keyFrameIndex=r),d+=4,a?(y=re(t,d),d+=4):y=p,o&&(d+=4),u&&(d+=4),g+=y,v+=y,h--);h--;)a?(y=re(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=g),d+=4),u&&(d+=4),g+=y,v+=y;!v&&p&&(v+=p*n)}c.duration+=v}if(!Object.keys(i).some((e=>i[e].duration))){let t=1/0,n=0;const s=ae(e,["sidx"]);for(let e=0;e<s.length;e++){const r=oe(s[e]);if(null!=r&&r.references){t=Math.min(t,r.earliestPresentationTime/r.timescale);const e=r.references.reduce(((e,t)=>e+t.info.duration||0),0);n=Math.max(n,e+r.earliestPresentationTime/r.timescale)}}n&&r(n)&&Object.keys(i).forEach((e=>{i[e].duration||(i[e].duration=n*i[e].timescale-i[e].start)}))}return i}(h,p,this),g=p.audio?m[p.audio.id]:null,v=p.video?m[p.video.id]:null,y=Ji(v,1/0),_=Ji(g,1/0),b=Ji(v,0,!0),x=Ji(g,0,!0);let w=s,E=0;const A=g&&(!v||!u&&_<y||u&&u.trackId===p.audio.id),k=A?g:v;if(k){const e=k.timescale,t=k.start-s*e,n=A?p.audio.id:p.video.id;w=k.start/e,E=A?x-_:b-y,!a&&u||!function(e,t,n,r){if(null===e)return!0;const i=Math.max(r,1),s=t-e.baseTime/e.timescale;return Math.abs(s-n)>i}(u,w,s,E)&&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,T=C+E;E>0?this.lastEndTime=T:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const D=!!p.audio,S=!!p.video;let P="";D&&(P+="audio"),S&&(P+="video");const L={data1:h,startPTS:C,startDTS:C,endPTS:T,endDTS:T,type:P,hasAudio:D,hasVideo:S,nb:1,dropped:0,encrypted:!!p.audio&&p.audio.encrypted||!!p.video&&p.video.encrypted};d.audio=D&&!S?L:void 0,d.video=S?L:void 0;const I=null==v?void 0:v.sampleCount;if(I){const e=v.keyFrameIndex,t=-1!==e;L.nb=I,L.dropped=0===e||this.isVideoContiguous?0:t?e:I,L.independent=t,L.firstKeyFrame=e,t&&v.keyFrameStart&&(L.firstKeyFramePTS=(v.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(d.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),L.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${e}/${I} dropped: ${L.dropped} start: ${L.firstKeyFramePTS||"NA"}`)}return d.initSegment=f,d.id3=Qi(n,s,u,u),i.samples.length&&(d.text=qi(i,s,u)),d}}},{demux:Ii,remux:Ki},{demux:class extends ui{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Ur(e,0);let r=(null==n?void 0:n.length)||0;if(bi(e,r))return!1;for(let n=e.length;r<n;r++)if(Kr(e,r))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)&&Yr(e,t)&&Gr(e,t)<=e.length-t}(e,t)}appendFrame(e,t,n){Vr(e,this.observer,t,n,e.manifestCodec);const r=qr(e,t,n,this.basePTS,this.frameIndex);if(r&&0===r.missing)return r}},remux:Ki},{demux:class extends ui{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Ur(e,0);let n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==ai(t)&&xi(e,n)<=16)return!1;for(let t=e.length;n<t;n++)if(bi(e,n))return D.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return yi(e,t)&&4<=e.length-t}(e,t)}appendFrame(e,t,n){if(null!==this.basePTS)return gi(e,t,n,this.basePTS,this.frameIndex)}},remux:Ki}];es.splice(2,0,{demux:wi,remux:Ki});class ts{constructor(e,t,n,r,i,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=Yi();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:d,discontinuity:h,trackSwitch:f,accurateTimeOffset:p,timeOffset:m,initSegmentChange:g}=r||u,{audioCodec:v,videoCodec:y,defaultInitPts:_,duration:b,initSegmentData:x}=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&&gn(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 r=e.softwareDecrypt(s,w.key.buffer,w.iv.buffer,t);if(n.part>-1){const t=e.flush();r=t?t.buffer:t}if(!r)return i.executeEnd=Yi(),ns(n);s=new Uint8Array(r)}}const E=this.needsProbing(h,f);if(E){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}),i.executeEnd=Yi(),ns(n)}(h||f||g||E)&&this.resetInitSegment(x,v,y,b,t),(h||g||E)&&this.resetInitialTimestamp(_),d||this.resetContiguity();const A=this.transmux(s,w,m,p,n);this.asyncResult=rs(A);const k=this.currentTransmuxState;return k.contiguous=!0,k.discontinuity=!1,k.trackSwitch=!1,i.executeEnd=Yi(),A}flush(e){const t=e.transmuxing;t.executeStart=Yi();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then((()=>this.flush(e)));const s=[],{timeOffset:a}=r;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=Yi();const n=[ns(e)];return this.asyncResult?Promise.resolve(n):n}const u=o.flush(a);return rs(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:r,videoTrack:i,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(r,i,s,a,l,o,!0,this.id);e.push({remuxResult:u,chunkMeta:n}),n.transmuxing.executeEnd=Yi()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:a}=this;s&&a&&(s.resetInitSegment(e,t,n,r),a.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return s=t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:a,textTrack:o}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,a,o,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then((e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,this.id),chunkMeta:i})))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let t=0,n=es.length;t<n;t++){var s;if(null!=(s=es[t].demux)&&s.probe(e,this.logger)){i=es[t];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const a=this.demuxer,o=this.remuxer,l=i.remux,u=i.demux;o&&o instanceof l||(this.remuxer=new l(n,t,r,this.logger)),a&&a instanceof u||(this.demuxer=new u(n,t,r,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 Gt(this.config)),e}}const ns=e=>({remuxResult:{},chunkMeta:e});function rs(e){return"then"in e&&e.then instanceof Function}class is{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class ss{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let as=0;class os{constructor(e,t,n,r){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 r;const e=null==(r=this.workerContext)?void 0:r.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 i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;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 Fr,this.observer.on(l.FRAG_DECRYPTED,s),this.observer.on(l.ERROR,s);const u=Fe(i.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(i.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{i.workerPath?(n.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=function(e){const t=Br[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,r={worker:new self.Worker(n),scriptURL:n,clientCount:1};return Br[e]=r,r}(i.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){const e=Br[jr];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),r={worker:new self.Worker(n),objectURL:n,clientCount:1};return Br[jr]=r,r}());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(i)})}catch(r){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,r),this.terminateWorker(),this.error=null,this.transmuxer=new ts(this.observer,u,i,"",t,e.logger)}return}}this.transmuxer=new ts(this.observer,u,i,"",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=Br[e||jr];if(t&&1==t.clientCount--){const{worker:n,objectURL:r}=t;delete Br[e||jr],r&&self.URL.revokeObjectURL(r),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,r,i,s,a,o,l,u){var c,d;l.transmuxing.start=self.performance.now();const{instanceNo:h,transmuxer:p}=this,m=s?s.start:i.start,g=i.decryptdata,v=this.frag,y=!(v&&i.cc===v.cc),_=!(v&&l.level===v.level),b=v?l.sn-v.sn:-1,x=this.part?l.part-this.part.index:-1,w=0===b&&l.id>1&&l.id===(null==v?void 0:v.stats.chunkCount),E=!_&&(1===b||0===b&&(1===x||w&&x<=0)),A=self.performance.now();(_||b||0===i.stats.parsing.start)&&(i.stats.parsing.start=A),!s||!x&&E||(s.stats.parsing.start=A);const k=!(v&&(null==(c=i.initSegment)?void 0:c.url)===(null==(d=v.initSegment)?void 0:d.url)),C=new ss(y,E,o,_,m,k);if(!E||y||k){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.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: ${E}\n accurateTimeOffset: ${o}\n timeOffset: ${m}\n initSegmentChange: ${k}`);const e=new is(n,r,t,a,u);this.configureTransmuxer(e)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:h,cmd:"demux",data:e,decryptdata:g,chunkMeta:l,state:C},e instanceof ArrayBuffer?[e]:[]);else if(p){const t=p.push(e,g,l,C);rs(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);rs(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 r=null==t?void 0:t.renditionReports;if(r){let i=-1;for(let n=0;n<r.length;n++){const s=r[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){i=n;break}a===e.substring(0,a.length)&&(i=n)}if(-1!==i){const e=r[i],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:r,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-u;const c=this.hls.config.timelineOffset;if(c!==r.appliedTimelineOffset){const e=Math.max(c||0,0);r.appliedTimelineOffset=e,r.fragments.forEach((t=>{t.setStart(t.playlistOffset+e)}))}if(r.live||null!=n&&n.live){const c="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){er(n,r,this);const e=r.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:r.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(d=r.fragments[0])?void 0:d.type,networkDetails:s,stats:i})}r.playlistParsingError=null}}-1===r.requestScheduled&&(r.requestScheduled=i.loading.start);const h=this.hls.mainForwardBufferInfo,f=h?h.end-h.len:0,p=ir(r,1e3*(r.edge-f));if(r.requestScheduled+p<s?r.requestScheduled=s:r.requestScheduled+=p,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let m,g,v;if(r.canBlockReload&&r.endSN&&r.advanced){const e=this.hls.config.lowLatencyMode,i=r.lastPartSn,a=r.endSN,o=r.lastPartIndex,l=i===a;-1!==o?l?(g=a+1,v=e?0:o):(g=i,v=e?o+1:r.maxPartIndex):g=a+1;const u=r.age,d=u+r.ageHeader;let h=Math.min(d-r.partTarget,1.5*r.targetduration);if(h>0){if(d>3*r.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),g=void 0,v=void 0;else if(null!=n&&n.tuneInGoal&&d-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${h} with playlist age: ${r.age}`),h=0;else{const e=Math.floor(h/r.targetduration);if(g+=e,void 0!==v){v+=Math.round(h%r.targetduration/r.partTarget)}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${h} skip sn ${e} to part ${v}`)}r.tuneInGoal=h}if(m=this.getDeliveryDirectives(r,t.deliveryDirectives,g,v),e||!l)return r.requestScheduled=s,void this.loadingPlaylist(c,m)}else(r.canBlockReload||r.canSkipUntil)&&(m=this.getDeliveryDirectives(r,t.deliveryDirectives,g,v));m&&void 0!==g&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(p-2*u,p/2)),this.scheduleLoading(c,m,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r)return void this.loadingPlaylist(e,t);const i=self.performance.now(),s=r.requestScheduled;if(i>=s)return void this.loadingPlaylist(e,t);const a=s-i;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,r){let i=qe(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Ke),new Je(n,r,i)}checkRetry(e){const t=e.details,n=gt(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:a}=r||{},o=!!r&&!!a&&(i===Tt||!r.resolved&&i===kt);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,r.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 r=e["STABLE-RENDITION-ID"];return r&&!n?r===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 r=this.queues[t];r.push(e),1!==r.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 r=t[0];try{r.execute()}catch(t){var n;if(r.onError(t),null===this.queues||null===this.tracks)return;const i=null==(n=this.tracks[e])?void 0:n.buffer;null!=i&&i.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],r=null==n?void 0:n.buffer;return r?`SourceBuffer${r.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 ms extends Error{constructor(e){super(e),this.name=ps}}function gs(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&&r(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 r=e.length-1;const i=Math.max(t,n);for(let t=0;t<e.length;t+=1){const n=e[t];if((n.width>=i||n.height>=i)&&(s=n,!(a=e[t+1])||s.width!==a.width||s.height!==a.height)){r=t;break}}var s,a;return r}}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 xs{constructor(e,t){Array.isArray(e)&&(e=e.map((e=>e instanceof xs?e:new xs(e)))),this.value=e,this.params=t}}function ws(e,t,n,r){return new Error(`failed to ${e} "${i=t,Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":"object"==typeof i?JSON.stringify(i):String(i)}" as ${n}`,{cause:r});var i}function Es(e,t,n){return ws("serialize",e,t,n)}class As{constructor(e){this.description=e}}const ks="Bare Item";function Cs(e){if(!1===ArrayBuffer.isView(e))throw Es(e,"Byte Sequence");return`:${t=e,btoa(String.fromCharCode(...t))}:`;var t}function Ts(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw Es(e,"Integer");return e.toString()}function Ds(e,t){if(e<0)return-Ds(-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 Ss(e){const t=Ds(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw Es(e,"Decimal");const n=t.toString();return n.includes(".")?n:`${n}.0`}const Ps=/[\x00-\x1f\x7f]+/;function Ls(e){const t=(n=e).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw Es(t,"Token");return t}function Is(e){switch(typeof e){case"number":if(!r(e))throw Es(e,ks);return Number.isInteger(e)?Ts(e):Ss(e);case"string":return function(e){if(Ps.test(e))throw Es(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return Ls(e);case"boolean":return function(e){if("boolean"!=typeof e)throw Es(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return`@${Ts(e.getTime()/1e3)}`}(e);if(e instanceof Uint8Array)return Cs(e);if(e instanceof As)return Ls(e);default:throw Es(e,ks)}}function Ns(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw Es(e,"Key");return e}function Rs(e){return null==e?"":Object.entries(e).map((([e,t])=>!0===t?`;${Ns(e)}`:`;${Ns(e)}=${Is(t)}`)).join("")}function Ms(e){return e instanceof xs?`${Is(e.value)}${Rs(e.params)}`:Is(e)}function Os(e,t={whitespace:!0}){if("object"!=typeof e||null==e)throw Es(e,"Dict");const n=e instanceof Map?e.entries():Object.entries(e),r=(null==t?void 0:t.whitespace)?" ":"";return Array.from(n).map((([e,t])=>{t instanceof xs==!1&&(t=new xs(t));let n=Ns(e);var r;return!0===t.value?n+=Rs(t.params):(n+="=",Array.isArray(t.value)?n+=`(${(r=t).value.map(Ms).join(" ")})${Rs(r.params)}`:n+=Ms(t)),n})).join(`,${r}`)}function Fs(e,t){return Os(e,t)}const js="CMCD-Object",Bs="CMCD-Request",zs="CMCD-Session",Hs="CMCD-Status",Zs={br:js,ab:js,d:js,ot:js,tb:js,tpb:js,lb:js,tab:js,lab:js,url:js,pb:Bs,bl:Bs,tbl:Bs,dl:Bs,ltc:Bs,mtp:Bs,nor:Bs,nrr:Bs,rc:Bs,sn:Bs,sta:Bs,su:Bs,ttfb:Bs,ttfbb:Bs,ttlb:Bs,cmsdd:Bs,cmsds:Bs,smrt:Bs,df:Bs,cs:Bs,ts:Bs,cid:zs,pr:zs,sf:zs,sid:zs,st:zs,v:zs,msd:zs,bs:Hs,bsd:Hs,cdn:Hs,rtp:Hs,bg:Hs,pt:Hs,ec:Hs,e:Hs},Us=Bs;function Ys(e,t){const n={};if(!e)return n;const r=Object.keys(e),i=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 r.reduce(((t,n)=>{var r;const s=Zs[n]||i[n]||Us;return(null!==(r=t[s])&&void 0!==r?r:t[s]={})[n]=e[n],t}),n)}const Xs="event";const Gs=e=>Math.round(e),Ws=(e,t)=>Array.isArray(e)?e.map((e=>Ws(e,t))):e instanceof xs&&"string"==typeof e.value?new xs(Ws(e.value,t),e.params):(t.baseUrl&&(e=function(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const i=n.pathname.split("/").slice(1),s=r.pathname.split("/").slice(1,-1);for(;i[0]===s[0];)i.shift(),s.shift();for(;s.length;)s.shift(),i.unshift("..");return i.join("/")+n.search+n.hash}(e,t.baseUrl)),1===t.version?encodeURIComponent(e):e),Ks=e=>100*Gs(e/100),Vs={br:Gs,d:Gs,bl:Ks,dl:Ks,mtp:Ks,nor:(e,t)=>{let n=e;return t.version>=2&&(e instanceof xs&&"string"==typeof e.value?n=new xs([e]):"string"==typeof e&&(n=[e])),Ws(n,t)},rtp:Ks,tb:Gs},Qs="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 ra=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];const ia=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function sa(e){return ia.includes(e)||ta(e)}const aa={[qs]:function(e){return Js.includes(e)||na.includes(e)||ra.includes(e)||ta(e)},[Xs]:function(e){return Js.includes(e)||$s.includes(e)||ta(e)},[Qs]: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 i=t.version||e.v||1,s=t.reportingMode||Qs,a=1===i?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===Xs;u&&!o.includes("ts")&&o.push("ts"),i>1&&!o.includes("v")&&o.push("v");const c=_({},Vs,t.formatters),d={version:i,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===i)return;s=i}"pr"==t&&1===s||(u&&"ts"===t&&!r(s)&&(s=Date.now()),function(e){return"number"==typeof e?r(e):null!=e&&""!==e&&!1!==e}(s)&&(function(e){return["ot","sf","st","e","sta"].includes(e)}(t)&&"string"==typeof s&&(s=new As(s)),n[t]=s))})),n}function la(e,t,n){return _(e,function(e,t={}){const n={};if(!e)return n;const r=Ys(oa(e,t),null==t?void 0:t.customHeaderMap);return Object.entries(r).reduce(((e,[t,n])=>{const r=Fs(n,{whitespace:!1});return r&&(e[t]=r),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 r=function(e,t={}){return e?`CMCD=${ua(e,t)}`:""}(t,n);if(!r)return e;if(ca.test(e))return e.replace(ca,r);const i=e.includes("?")?"&":"?";return`${e}${i}${r}`}function ha(e,t,n,r){e&&Object.keys(t).forEach((i=>{const s=e.filter((e=>e.groupId===i)).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[i],s.attrs["PATHWAY-ID"]=r,s}));e.push(...s)}))}function fa(e,t,n,r){const{HOST:i,PARAMS:s,[n]:a}=r;let o;t&&(o=null==a?void 0:a[t],o&&(e=o));const l=new self.URL(e);return i&&!o&&(l.host=i),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,r=`"${e.type}" event: init data type: "${t}"`;if(this.debug(r),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=Pn(this.config));const t=e.map(Sn).filter((e=>!!e));this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then((i=>{const s=Dn(i);if("sinf"!==t||s!==En.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(`${r} 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 r=u[e],i=r.decryptdata;if(!i.keyId)continue;const s=I(i.keyId);if(pn(a,i.keyId)||-1!==i.uri.replace(/-/g,"").indexOf(o)){if(c=l[s],!c)continue;if(i.pssh)break;delete l[s],i.pssh=new Uint8Array(n),i.keyId=a,c=l[o]=c.then((()=>this.generateRequestWithPreferredKeySession(r,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,r=null==t?void 0:t[e];return r?r.licenseUrl:e===En.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,r=t.map((e=>e.audioCodec)).filter(n),i=t.map((e=>e.videoCodec)).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise(((t,n)=>{const s=e=>{const l=e.shift();this.getMediaKeysPromise(l,r,i).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===Ln&&"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 r;const i=function(e,t,n,r){let i;switch(e){case En.FAIRPLAY:i=["cenc","sinf"];break;case En.WIDEVINE:case En.PLAYREADY:i=["cenc"];break;case En.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return function(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map((e=>({contentType:`audio/mp4; codecs=${e}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null}))),videoCapabilities:n.map((e=>({contentType:`video/mp4; codecs=${e}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null})))}]}(i,t,n,r)}(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],a=null==(r=s)?void 0:r.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${e}" key-system access with config: ${nt(i)}`),a=this.requestMediaKeySystemAccess(e,i);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 r=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const i=t.mediaKeys=n.createMediaKeys().then((n=>(this.log(`Media-keys created for "${e}"`),t.hasMediaKeys=!0,r.then((t=>t?this.setMediaKeysServerCertificate(n,e,t):n)))));return i.catch((t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)})),i}))}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 r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=ma(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}updateKeySession(e,t){const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyId ${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})=>Sn(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 r=Sn(e);r?t(r):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=Pn(this.config),n=e.map(Dn).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 r=ga(e,t[n]);if(r)return r}}loadKey(e){const t=e.keyInfo.decryptdata,n=ma(t),r=this.bannedKeyIds[n];if(r||"internal-error"===this.getKeyStatus(t)){const n=ya(r||"internal-error",t);return this.handleError(n,e.frag),Promise.reject(n)}const i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const r=this.getKeySystemForKeyPromise(t).then((({keySystem:n,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(n,r).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:r,decryptdata:t}))))))).then((e=>{const n=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",n,"playlist-key")}));return r.catch((t=>this.handleError(t,e.frag))),this.keyIdToKeySessionPromise[n]=r,r}return s.catch((n=>{if(n instanceof va){const r=x({},n.data);"internal-error"===this.getKeyStatus(t)&&(r.decryptdata=t);const i=new va(r,n.message);this.handleError(i,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=ma(e),n=this.keyIdToKeySessionPromise[t];if(!n){const t=Dn(e.keyFormat),n=t?[t]:Pn(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Pn(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 r=Promise.all(n).then((()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)}));return this.mediaKeys=t,this.setMediaKeysQueue.push(r),r.then((()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((e=>-1===n.indexOf(e)))}))}generateRequestWithPreferredKeySession(e,t,n,r){var i;const s=null==(i=this.config.drmSystems)||null==(i=i[e.keySystem])?void 0:i.generateRequest;if(s)try{const r=s.call(this.hls,t,n,e);if(!r)throw new Error("Invalid response from configured generateRequest filter");t=r.initDataType,n=r.initData?r.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 "${r}" (no initData)`),Promise.resolve(e);const l=ma(e.decryptdata),u=e.decryptdata.uri;this.log(`Generating key-session request for "${r}" keyId: ${l} URI: ${u} (init data type: ${t} length: ${n.byteLength})`);const c=new Fr,d=e._onmessage=t=>{const n=e.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:r,message:i}=t;this.log(`"${r}" message event for session "${n.sessionId}" message size: ${i.byteLength}`),"license-request"===r||"license-renewal"===r?this.renewLicense(e,i).catch((e=>{c.eventNames().length?c.emit("error",e):this.handleError(e)})):"license-release"===r?e.keySystem===En.FAIRPLAY&&this.updateKeySession(e,_n("acknowledged")).then((()=>this.removeSession(e))).catch((e=>this.handleError(e))):this.warn(`unhandled media key message type "${r}"`)},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 r=n[l];if(r)h(r,e);else{var i;const t=0;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(i=e.keyStatusTimeouts)[l]||(i[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`),r="internal-error",h(r,e)}),t)),this.log(`No status for keyId ${l} (${nt(n)}).`)}};gr(e.mediaKeysSession,"message",d),gr(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,r)=>{if("string"==typeof r&&"object"==typeof n){const e=r;r=n,n=e}const i="buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r);e.keySystem===En.PLAYREADY&&16===i.length&&bn(i);const s=I(i);"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),r=this.getServerCertificateUrl(e);return r?(this.log(`Fetching server certificate for "${e}"`),new Promise(((i,s)=>{const l={responseType:"arraybuffer",url:r},u=t.certLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(e,t,n,r)=>{i(e.data)},onError:(t,n,i,u)=>{s(new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:x({url:l.url,data:void 0},t)},`"${e}" certificate request failed (${r}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,i)=>{s(new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:l.url,data:void 0}},`"${e}" certificate request timed out (${r})`))},onAbort:(e,t,n)=>{s(new Error("aborted"))}};n.load(l,c,d)}))):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise(((r,i)=>{e.setServerCertificate(n).then((i=>{this.log(`setServerCertificate ${i?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),r(e)})).catch((e=>{i(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 r=(new DOMParser).parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let t;for(let n=0,r=i.length;n<r;n++){var s,a;t=i[n];const r=null==(s=t.querySelector("name"))?void 0:s.textContent,o=null==(a=t.querySelector("value"))?void 0:a.textContent;r&&o&&e.setRequestHeader(r,o)}}const o=r.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,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)})).catch((s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)})).then((n=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:n||r}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise(((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(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)}r(t)}else{const u=n.errorRetry,c=u?u.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||l.status>=400&&l.status<500)i(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(r,i)}}},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==En.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)})).catch(i)}))}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,gr(n,"encrypted",this.onMediaEncrypted),gr(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(vr(e,"encrypted",this.onMediaEncrypted),vr(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,Rn.clearKeyUriToKeyIdMap();const r=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((()=>{r&&this.log("finished closing key sessions and clearing media keys")}))}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){const 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:r}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${I((null==r?void 0:r.keyId)||[])}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach((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 ma(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 ga(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,r=n?o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:o.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new va({type:a.KEY_SYSTEM_ERROR,details:r,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){D.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){D.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function xa(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,r){const i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0){const i=function(e,t,n){const r=[],i=function(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let r,i=0,s=n;for(;i<=s;)if(r=Math.floor((s+i)/2),t<e[r].startTime)s=r-1;else{if(!(t>e[r].startTime&&i<n))return r;i=r+1}return e[i].startTime-t<t-e[s].startTime?i:s}(e,t);if(i>-1)for(let s=i,a=e.length;s<a;s++){const i=e[s];if(i.startTime>=t&&i.endTime<=n)r.push(i);else if(i.startTime>n)return r}return r}(e.cues,t,n);for(let t=0;t<i.length;t++)r&&!r(i[t])||e.removeCue(i[t])}"disabled"===i&&(e.mode=i)}function Ea(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];"subtitles"!==r.kind&&"captions"!==r.kind||!r.label||t.push(e[n])}return t}function Aa(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}const ka=.025;let Ca=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function Ta(e,t,n){return`${e.identifier}-${n+1}-${Aa(t)}`}class Da{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 Sa(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-Sa(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=r(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 Sa(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)<ka))}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 Sa(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<ka)?t.start:t.start+t.duration}function Pa(e,t,n){const r=new self.URL(e,n);return"data:"!==r.protocol&&r.searchParams.set("_HLS_primary_id",t),r}function La(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,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(l.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};i.once(l.LEVEL_LOADED,s),i.once(l.AUDIO_TRACK_LOADED,s),i.once(l.SUBTITLE_TRACK_LOADED,s),i.on(l.MEDIA_ATTACHING,((e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t;this.interstitial.playoutLimit&&(t.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(l.BUFFER_APPENDED,(()=>{const e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,i.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=Pa(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),r=this.timelineOffset,i=tn.bufferInfo(e,r,0);return this.getAssetTime(i.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 r;null==(r=this.hls)||r.on(e,t)}once(e,t,n){var r;null==(r=this.hls)||r.once(e,t)}off(e,t,n){var r;null==(r=this.hls)||r.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 Ra 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,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n),0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(i=r[n])&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&"primary"!==t&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const e=n[r].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if((null==(n=t[r].event)?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let e=0;e<r;e++){const i=n[e];if(!i.error){const n=i.timelineStart;if(t===n||t>n&&(t<n+(i.duration||0)||e===r-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:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),a=Object.keys(r),o=i?i.filter((e=>!a.includes(e.identifier))):[];s.length&&s.sort(((e,t)=>{const n=e.cue.pre,r=e.cue.post,i=t.cue.pre,s=t.cue.post;if(n&&!i)return-1;if(i&&!n)return 1;if(r&&!s)return 1;if(s&&!r)return-1;if(!(n||i||r||s)){const n=e.startTime,r=t.startTime;if(n!==r)return n-r}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 r=this.events||[];if(r.length||t.length||this.length<2){const i=this.items,s=this.parseSchedule(r,e);(n||t.length||(null==i?void 0:i.length)!==s.length||s.some(((e,t)=>Math.abs(e.playout.start-i[t].playout.start)>.005||Math.abs(e.playout.end-i[t].playout.end)>.005)))&&(this.items=s,this.onScheduleUpdate(t,i))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const a=i[s],o=e[a];if(o.isInterstitial){let e=this.eventMap[a];e?e.setDateRange(o):(e=new Da(o,t),this.eventMap[a]=e,!1===n&&(e.appendInPlace=n)),r.push(e)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let s=0;if((e=e.filter((e=>!(e.error||e.cue.once&&e.hasPlayed)))).length){this.resolveOffsets(e,t);let r=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?i:t.startOffset,f=t.duration,p=t.timelineOccupancy===Ca.Range?f:0,m=t.resumptionOffset,g=(null==c?void 0:c.startTime)===h,v=h+t.cumulativeDuration;let y=d?v+f:h+m;if(l||!u&&h<=0){const e=o;o+=p,t.timelineStart=v;const r=s;s+=f,n.push({event:t,start:v,end:y,playout:{start:r,end:s},integrated:{start:e,end:o}})}else{if(!(h<=i))return;{if(!g){const i=h-r;if(i>.033){const l=r,u=o;o+=i;const c=s;s+=i;const d={previousEvent:e[a-1]||null,nextEvent:t,start:l,end:l+i,playout:{start:c,end:s},integrated:{start:u,end:o}};n.push(d)}else i>0&&c&&(c.cumulativeDuration+=i,n[n.length-1].end=h)}u&&(y=v),t.timelineStart=v;const i=o;o+=p;const l=s;s+=f,n.push({event:t,start:v,end:y,playout:{start:l,end:s},integrated:{start:i,end:o}})}}const _=t.resumeTime;r=u||_>i?i:_})),r<i){var a;const e=r,t=o,l=i-r;o+=l;const u=s;s+=l,n.push({previousEvent:(null==(a=n[n.length-1])?void 0:a.event)||null,nextEvent:null,start:r,end:e+l,playout:{start:u,end:s},integrated:{start:t,end:o}})}this.setDurations(i,s,o)}else{const e=0;n.push({previousEvent:null,nextEvent:null,start:e,end:i,playout:{start:e,end:i},integrated:{start:e,end:i}}),this.setDurations(i,i,i)}return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,i=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?i: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=r(o.resumeOffset)?o.resumeOffset:o.duration;s+=h}))}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;if(Math.abs(n-r)>ka)return this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1;return!Object.keys(t).some((r=>{const i=t[r].details,s=i.edge;if(n>=s)return this.log(`"${e.identifier}" resumption ${n} past ${r} playlist end ${s}`),!1;const a=ht(null,i.fragments,n);if(!a)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${r} playlist (${i.fragStart}-${i.fragmentEnd})`),!0;const o="audio"===r?.175:0;return!(Math.abs(a.start-n)<ka+o||Math.abs(a.end-n)<ka+o)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${r} 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,r=!1,i=!1;for(let s=0;s<e.assetList.length;s++){const a=e.assetList[s],o=t+n;a.startOffset=n,a.timelineStart=o,r||(r=null===a.duration),i||(i=!!a.error);n+=a.error?0:a.duration||0}e.duration=r&&!i?Math.max(n,e.duration):n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Ma(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 r;try{r=Pa(n,this.hls.sessionId,e.baseUrl)}catch(t){const r=this.assignAssetListError(e,o.ASSET_LIST_LOAD_ERROR,t,n);return void this.hls.trigger(l.ERROR,r)}t&&"data:"!==r.protocol&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=new(0,i.loader)(i),a={responseType:"json",url:r.href},u=i.interstitialAssetListLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(t,n,r,i)=>{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:i});else{const t=this.assignAssetListError(e,o.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),r.url,n,i);this.hls.trigger(l.ERROR,t)}},onError:(t,n,r,i)=>{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,i,r);this.hls.trigger(l.ERROR,s)},onTimeout:(t,n,r)=>{const i=this.assignAssetListError(e,o.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,r);this.hls.trigger(l.ERROR,i)}};return s.load(a,c,d),this.hls.trigger(l.ASSET_LIST_LOADING,{event:e}),s}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:a.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Fa(e){null==e||e.play().catch((()=>{}))}function ja(e,t){return`[${e}] Advancing timeline position to ${t}`}class Ba{constructor(e){this.buffered=void 0;const t=(t,n,r)=>{if((n>>>=0)>r-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${r})`);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 za={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},Ha=e=>String.fromCharCode(za[e]||e),Za=15,Ua=100,Ya={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Xa={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Ga={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},Ka=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Va{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n="function"==typeof t?t():t;D.log(`${this.time} [${e}] ${n}`)}}}const Qa=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 r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}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<Ua;e++)this.chars.push(new Ja);this.logger=e}equals(e){for(let t=0;t<Ua;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Ua;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Ua;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>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}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=Ha(e);this.pos>=Ua?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<Ua;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<Ua;n++){const r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e);this.chars[this.pos].setPenState(this.currPenState)}}class eo{constructor(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Za;t++)this.rows.push(new $a(e));this.logger=e}reset(){for(let e=0;e<Za;e++)this.rows[e].clear();this.currRow=14}equals(e){let t=!0;for(let n=0;n<Za;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Za;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Za;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<Za;e++)this.rows[e].clear();const e=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){const r=n.rows[e].cueStartTime,i=this.logger.time;if(null!==r&&null!==i&&r<i)for(let r=0;r<this.nrRollUpRows;r++)this.rows[t-this.nrRollUpRows+r+1].copy(n.rows[e+r])}}this.currRow=t;const n=this.rows[this.currRow];if(null!==e.indent){const t=e.indent,r=Math.max(t-1,0);n.setCursor(e.indent),e.color=n.chars[r].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,(()=>"bkgData = "+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="",r=-1;for(let n=0;n<Za;n++){const i=this.rows[n].getTextString();i&&(r=n+1,e?t.push("Row "+r+": '"+i+"'"):t.push(i.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,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[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 r=this.logger=new Va;this.channels=[null,new to(e,t,r),new to(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e<t.length;e+=2){const n=127&t[e],r=127&t[e+1];let i=!1,s=null;if(0===n&&0===r)continue;this.logger.log(3,(()=>"["+Qa([t[e],t[e+1]])+"] -> ("+Qa([n,r])+")"));const a=this.cmdHistory;if(n>=16&&n<=31){if(io(n,r,a)){ro(null,null,a),this.logger.log(3,(()=>"Repeated command ("+Qa([n,r])+") is dropped"));continue}ro(n,r,this.cmdHistory),i=this.parseCmd(n,r),i||(i=this.parseMidrow(n,r)),i||(i=this.parsePAC(n,r)),i||(i=this.parseBackgroundAttributes(n,r))}else ro(null,null,a);if(!i&&(s=this.parseChars(n,r),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?")}i||s||this.logger.log(2,(()=>"Couldn't parse cleaned data "+Qa([n,r])+" orig: "+Qa([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,r=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?r.ccRCL():33===t?r.ccBS():34===t?r.ccAOF():35===t?r.ccAON():36===t?r.ccDER():37===t?r.ccRU(2):38===t?r.ccRU(3):39===t?r.ccRU(4):40===t?r.ccFON():41===t?r.ccRDC():42===t?r.ccTR():43===t?r.ccRTD():44===t?r.ccEDM():45===t?r.ccCR():46===t?r.ccENM():47===t&&r.ccEOC():r.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 r=this.channels[n];return!!r&&(r.ccMIDROW(t),this.logger.log(3,(()=>"MIDROW ("+Qa([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 r=e<=23?1:2;n=t>=64&&t<=95?1===r?Ya[e]:Ga[e]:1===r?Xa[e]:Wa[e];const i=this.channels[r];return!!i&&(i.setPAC(this.interpretPAC(n,t)),this.currentChannel=r,!0)}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let e;e=17===i?t+80:18===i?t+112:t+144,this.logger.log(2,(()=>"Special char '"+Ha(e)+"' in channel "+n)),r=[e]}else e>=32&&e<=127&&(r=0===t?[e]:[e,t]);return r&&this.logger.log(3,(()=>"Char codes = "+Qa(r).join(","))),r}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 r={};16===e||24===e?(n=Math.floor((t-32)/2),r.background=Ka[n],t%2==1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0));const i=e<=23?1:2;return this.channels[i].setBkgData(r),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}ro(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 ro(e,t,n){n.a=e,n.b=t}function io(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 r(e){return n(t,e)}function i(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,m="",g=!0,v="auto",y="start",_=50,b="middle",x=50,w="middle";Object.defineProperty(o,"id",i({},l,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(o,"pauseOnExit",i({},l,{get:function(){return c},set:function(e){c=!!e}})),Object.defineProperty(o,"startTime",i({},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",i({},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",i({},l,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",i({},l,{get:function(){return p},set:function(e){p=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",i({},l,{get:function(){return m},set:function(t){const r=function(t){return n(e,t)}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");m=r,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",i({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",i({},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",i({},l,{get:function(){return y},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",i({},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",i({},l,{get:function(){return b},set:function(e){const t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",i({},l,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",i({},l,{get:function(){return w},set:function(e){const t=r(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,r){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(r||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 r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function uo(e,t,n,r){const i=r?e.split(r):[e];for(const e in i){if("string"!=typeof i[e])continue;const r=i[e].split(n);if(2!==r.length)continue;t(r[0],r[1])}}const co=new so(0,0,""),ho="middle"===co.align?"middle":"center";function fo(e,t,n){const r=e;function i(){const t=oo(e);if(null===t)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=i(),s(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.slice(3),s(),t.endTime=i(),s(),function(e,t){const r=new lo;uo(e,(function(e,t){let i;switch(e){case"region":for(let i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),r.integer(e,i[0]),r.percent(e,i[0])&&r.set("snapToLines",!1),r.alt(e,i[0],["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start",ho,"end"]);break;case"position":i=t.split(","),r.percent(e,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start",ho,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",ho,"end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");let i=r.get("line","auto");"auto"===i&&-1===co.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",ho);let s=r.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 mo{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 r=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),r}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 r=e.match(/^()?WEBVTT([ \t].*)?$/);if(null==r||!r[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let r=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(r?r=!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&&(r=!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 go=/\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 Aa(e.toString())+Aa(t.toString())+Aa(n)}function _o(e,t,n,i,s,a,o){const l=new mo,u=L(new Uint8Array(e)).trim().replace(go,"\n").split("\n"),c=[],d=t?function(e,t=1){return Zi(e,9e4,1/t)}(t.baseTime,t.timescale):0;let h,f="00:00.000",p=0,m=0,g=!0;l.oncue=function(e){const r=n[i];let a=n.ccOffset;const o=(p-d)/9e4;if(null!=r&&r.new&&(void 0!==m?a=n.ccOffset=r.start:function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new)return e.ccOffset=e.presentationOffset=r.start,void(r.new=!1);for(;null!=(s=i)&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n}(n,i,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=Vi(9e4*(e.startTime+a-m),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(g){if(vo(e,"X-TIMESTAMP-MAP=")){g=!1,e.slice(16).split(",").forEach((e=>{vo(e,"LOCAL:")?f=e.slice(6):vo(e,"MPEGTS:")&&(p=parseInt(e.slice(7)))}));try{m=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(r(t)&&r(n)&&r(i)&&r(s)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=6e4*i,t+=36e5*s,t}(f)/1e3}catch(e){h=e}return}""===e&&(g=!1)}l.parse(e+"\n")})),l.flush()}const bo="stpp.ttml.im1t",xo=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,wo=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Eo={left:"start",center:"center",right:"end",start:"start",end:"end"};function Ao(e,t,n,r){const i=ae(new Uint8Array(e),["mdat"]);if(0===i.length)return void r(new Error("Could not parse IMSC1 mdat"));const s=i.map((e=>L(e))),a=function(e,t,n=1,r=!1){return Zi(e,t,1/n,r)}(t.baseTime,1,t.timescale);try{s.forEach((e=>n(function(e,t){const n=(new DOMParser).parseFromString(e,"text/xml"),r=n.getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce(((e,t)=>(e[t]=r.getAttribute(`ttp:${t}`)||i[t],e)),{}),a="preserve"!==r.getAttribute("xml:space"),o=Co(ko(r,"styling","style")),l=Co(ko(r,"layout","region")),u=ko(r,"body","[begin]");return[].map.call(u,(e=>{const n=To(e,a);if(!n||!e.hasAttribute("begin"))return null;const r=Po(e.getAttribute("begin"),s),i=Po(e.getAttribute("dur"),s);let u=Po(e.getAttribute("end"),s);if(null===r)throw So(e);if(null===u){if(null===i)throw So(e);u=r+i}const c=new so(r-t,u-t,n);c.id=yo(c.startTime,c.endTime,c.text);const d=function(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;a&&n.hasOwnProperty(a)&&(i=n[a]);return s.reduce(((n,s)=>{const a=Do(t,r,s)||Do(e,r,s)||Do(i,r,s);return a&&(n[s]=a),n}),{})}(l[e.getAttribute("region")],o[e.getAttribute("style")],o),{textAlign:h}=d;if(h){const e=Eo[h];e&&(c.lineAlign=e),c.align=h}return _(c,d),c})).filter((e=>null!==e))}(e,a))))}catch(e){r(e)}}function ko(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function Co(e){return e.reduce(((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function To(e,t){return[].slice.call(e.childNodes).reduce(((e,n,r)=>{var i;return"br"===n.nodeName&&r?e+"\n":null!=(i=n.childNodes)&&i.length?To(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}function Do(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function So(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Po(e,t){if(!e)return null;let n=oo(e);return null===n&&(xo.test(e)?n=function(e,t){const n=xo.exec(e),r=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+r/t.frameRate}(e,t):wo.test(e)&&(n=function(e,t){const n=wo.exec(e),r=Number(n[1]);switch(n[2]){case"h":return 3600*r;case"m":return 60*r;case"ms":return 1e3*r;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}(e,t))),n}class Lo{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 Ro=/\s/,Mo={newCue(e,t,n,r){const i=[];let s,a,o,l,u;const c=self.VTTCue||self.TextTrackCue;for(let h=0;h<r.rows.length;h++)if(s=r.rows[h],o=!0,l=0,u="",!s.isEmpty()){var d;for(let e=0;e<s.chars.length;e++)Ro.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 r=po(u.trim()),f=yo(t,n,r);null!=e&&null!=(d=e.cues)&&d.getCueById(f)||(a=new c(t,n,r),a.id=f,a.line=h+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),i.push(a))}return e&&i.length&&(i.sort(((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line)),i.forEach((t=>ba(e,t)))),i}};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||jo,this.controller=new self.AbortController,this.stats=new U}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 i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.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&&r(l)?l:u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))}),t.timeout);(rs(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(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))}),u-(o-i.loading.start)),!n.ok){const{status:e,statusText:t}=n;throw new Bo(t||"fetch, bad network response",e,n)}i.loading.first=o,i.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(r(e))return e}const n=e.get("Content-Length");if(n)return parseInt(n)}(n.headers)||i.total;const l=null==(s=this.callbacks)?void 0:s.onProgress;return l&&r(t.highWaterMark)?this.loadProgressively(n,i,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),i.loading.end=Math.max(self.performance.now(),i.loading.first);const u=n[o];u&&(i.loaded=i.total=u);const c={url:l.url,data:n,code:l.status},d=null==(s=this.callbacks)?void 0:s.onProgress;d&&!r(t.highWaterMark)&&d(i,e,n,l),null==(a=this.callbacks)||a.onSuccess(c,i,e,l)})).catch((t=>{var n;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const r=t&&t.code||0,s=t?t.message:null;null==(n=this.callbacks)||n.onError({code:r,text:s},e,t?t.details:null,i)}))}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new Nr,a=e.body.getReader(),o=()=>a.read().then((a=>{if(a.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=a.value,u=l.length;return t.loaded+=u,u<r||s.dataLength?(s.push(l),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,l.buffer,e),o()})).catch((()=>Promise.reject()));return o()}}function jo(e,t){return new self.Request(e.url,t)}class Bo extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const zo=/^age:\s*[\d.]+\s*$/im;class Ho{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 U,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,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return i(n,t.url)})).catch((e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),i(n,t.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)})).catch((e=>{var i;null==(i=this.callbacks)||i.onError({code:n.status,text:e.message},t,n,r)})):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:a}=n.loadPolicy;if(i)for(const t in i)e.setRequestHeader(t,i[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&&r(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 r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===r)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const r=t.status,l="text"===t.responseType?t.responseText:null;if(r>=200&&r<300){const i=null!=l?l:t.response;if(null!=i){var s,a;n.loading.end=Math.max(self.performance.now(),n.loading.first);const o="arraybuffer"===t.responseType?i.byteLength:i.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,i,t);const u={url:t.responseURL,data:i,code:r};return void(null==(a=this.callbacks)||a.onSuccess(u,n,e,t))}}const u=i.loadPolicy.errorRetry;var o;if(wt(u,n.retry,!1,{url:e.url,data:void 0,code:r}))this.retry(u);else D.error(`${r} while loading ${e.url}`),null==(o=this.callbacks)||o.onError({code:r,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;D.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++,D.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&&zo.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 Zo=x(x({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,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:Ho,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:i,hls:s}=this,{autoLevelEnabled:a,media:o}=s;if(!n||!o)return;const u=performance.now(),c=i?i.stats:n.stats,d=i?i.duration:n.duration,h=u-c.loading.start,f=s.minAutoLevel,p=n.level,m=this._nextAutoLevel;if(c.aborted||c.loaded&&c.loaded===c.total||p<=f)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!a)return;const g=m>-1&&m!==p,v=!!e||g;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 x=y?y.len/b:0,w=c.loading.first?c.loading.first-c.loading.start:-1,E=c.loaded&&w>-1,A=this.getBwEstimate(),k=s.levels,C=k[p],T=Math.max(c.loaded,Math.round(d*(n.bitrate||C.averageBitrate)/8));let D=E?h-w:h;D<1&&E&&(D=Math.min(h,8*c.loaded/A));const S=E?1e3*c.loaded/D:0,P=_/1e3,L=S?(T-c.loaded)/S:8*T/A+P;if(L<=x)return;const I=S?8*S:A,N=!0===(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live),R=this.hls.config.abrBandWidthUpFactor;let M,O=Number.POSITIVE_INFINITY;for(M=p-1;M>f;M--){const e=k[M].maxBitrate,t=!k[M].details||N;if(O=this.getTimeToLoadFrag(P,I,d*e,t),O<Math.min(x,d+P))break}if(O>=L)return;if(O>10*d)return;E?this.bwEstimator.sample(h-Math.min(_,w),c.loaded):this.bwEstimator.sampleTTFB(h);const F=k[M].maxBitrate;this.getBwEstimate()*R>F&&this.resetEstimator(F);const j=this.findBestLevel(F,f,M,0,x,1,1);j>-1&&(M=j),this.warn(`Fragment ${n.sn}${i?" part "+i.index:""} of level ${p} is loading too slowly;\n Fragment duration: ${n.duration.toFixed(3)}\n Time to underbuffer: ${x.toFixed(3)} s\n Estimated load time for current fragment: ${L.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: ${r(A)?0|A:"Unknown"} bps\n New BW estimate: ${0|this.getBwEstimate()} bps\n Switching to level ${M} @ ${0|F} bps`),s.nextLoadLevel=s.nextAutoLevel=M,this.clearTimer();const B=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===M&&M>0){const e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${M>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,M>f){let t=this.findBestLevel(this.hls.levels[f].bitrate,f,M,0,e,1,1);-1===t&&(t=f),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};g||L>2*O?B():this.timer=self.setInterval(B,1e3*O),s.trigger(l.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:i,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 r;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(r=t.part)?r:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case o.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:n,partCurrent:r}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){const t=performance.now(),n=r?r.stats:e.stats,i=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(i-Math.min(e,s),n.loaded)}else this.bwEstimator.sampleTTFB(i)}break}}}getTimeToLoadFrag(e,t,n,r){return e+n/t+(r?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const n=this.hls.config,{loading:i}=t.stats,s=i.end-i.first;r(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 r=n?n.stats:t.stats;if(t.type===f&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const e=n?n.duration:t.duration,i=this.hls.levels[t.level],s=(i.loaded?i.loaded.bytes:0)+r.loaded,a=(i.loaded?i.loaded.duration:0)+e;i.loaded={bytes:s,duration:a},i.realBitrate=Math.round(8*s/a)}if(t.bitrateTest){const e={stats:r,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:r}=t,i=null!=r&&r.stats.loaded?r.stats:n.stats;if(i.aborted)return;if(this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==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(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,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 r=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,r)&&t[e].loadError<=t[r].loadError)return e}return this._nextAutoLevel=r,this.nextAutoLevelKey=this.getAutoLevelKey(),r}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,a=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let u=i.abrBandWidthFactor,c=i.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(o,s,r,l,0,u,c);if(e>=0)return this.rebufferNotice=-1,e}let d=a?Math.min(a,i.maxStarvationDelay):i.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){d=(a?Math.min(a,i.maxLoadingDelay):i.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,r,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,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,i,s,a,o){var l;const u=i+s,c=this.lastLoadedFragLevel,d=-1===c?this.hls.firstLevel:c,{fragCurrent:h,partCurrent:f}=this,{levels:p,allAudioTracks:m,loadLevel:g,config:v}=this.hls;if(1===p.length)return 0;const y=p[d],_=!(null==(l=this.hls.latestLevelDetails)||!l.live),b=-1===g||-1===c;let x,w="SDR",E=(null==y?void 0:y.frameRate)||0;const{audioPreference:A,videoPreference:k}=v,C=this.audioTracksByGroup||(this.audioTracksByGroup=it(m));let T=-1;if(b){if(-1!==this.firstSelection)return this.firstSelection;const i=this.codecTiers||(this.codecTiers=function(e,t,n,r){return e.slice(n,r+1).reduce(((e,n,r)=>{if(!n.codecSet)return e;const i=n.audioGroups;let s=e[n.codecSet];s||(e[n.codecSet]=s={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:r,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,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,r),s.maxScore=Math.max(s.maxScore,n.score),s.fragmentError+=n.fragmentError,s.videoRanges[n.videoRange]=(s.videoRanges[n.videoRange]||0)+1,i&&i.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,i,s){const a=Object.keys(e),o=null==i?void 0:i.channels,l=null==i?void 0:i.audioCodec,u=null==s?void 0:s.videoCodec,c=o&&2===parseInt(o);let d=!1,h=!1,f=1/0,p=1/0,m=1/0,g=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),m=Math.min(m,n.minBitrate),b.filter((e=>n.videoRanges[e]>0)).length>0&&(h=!0)}f=r(f)?f:0,p=r(p)?p:0;const x=Math.max(1080,f),w=Math.max(30,p);m=r(m)?m:n,n=Math.max(m,n),h||(t=void 0);const E=a.length>1;return{codecSet:a.reduce(((t,r)=>{const i=e[r];if(r===t)return t;if(y=h?b.filter((e=>i.videoRanges[e]>0)):[],E){if(i.minBitrate>n)return rt(r,`min bitrate of ${i.minBitrate} > current estimate of ${n}`),t;if(!i.hasDefaultAudio)return rt(r,"no renditions with default or auto-select sound found"),t;if(l&&r.indexOf(l.substring(0,4))%5!=0)return rt(r,`audio codec preference "${l}" not found`),t;if(o&&!c){if(!i.channels[o])return rt(r,`no renditions with ${o} channel sound found (channels options: ${Object.keys(i.channels)})`),t}else if((!l||c)&&d&&0===i.channels[2])return rt(r,"no renditions with stereo sound found"),t;if(i.minHeight>x)return rt(r,`min resolution of ${i.minHeight} > maximum of ${x}`),t;if(i.minFramerate>w)return rt(r,`min framerate of ${i.minFramerate} > maximum of ${w}`),t;if(!y.some((e=>i.videoRanges[e]>0)))return rt(r,`no variants with VIDEO-RANGE of ${nt(y)} found`),t;if(u&&r.indexOf(u.substring(0,4))%5!=0)return rt(r,`video codec preference "${u}" not found`),t;if(i.maxScore<v)return rt(r,`max score of ${i.maxScore} < selected max of ${v}`),t}return t&&(Pe(r)>=Pe(t)||i.fragmentError>e[t].fragmentError)?t:(g=i.minIndex,v=i.maxScore,r)}),void 0),videoRanges:y,preferHDR:_,minFramerate:p,minBitrate:m,minIndex:g}}(i,w,e,A,k),{codecSet:a,videoRanges:o,minFramerate:l,minBitrate:u,minIndex:c,preferHDR:d}=s;T=c,x=a,w=d?o[o.length-1]:o[0],E=l,e=Math.max(e,u),this.log(`picked start tier ${nt(s)}`)}else x=null==y?void 0:y.codecSet,w=null==y?void 0:y.videoRange;const D=f?f.duration:h?h.duration:0,S=this.bwEstimator.getEstimateTTFB()/1e3,P=[];for(let l=n;l>=t;l--){var L;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)&&Ze(t,C,w,E,e,A)?(t.supportedPromise=Ue(t,C,n,this.supportedCache),t.supportedPromise.then((e=>{if(!this.hls)return;t.supportedResult=e;const n=this.hls.levels,r=n.indexOf(t);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${r} ${nt(e)}`):e.supported?e.decodingInfoResults.some((e=>!1===e.smooth||!1===e.powerEfficient))&&this.log(`MediaCapabilities decodingInfo for level ${r} not smooth or powerEfficient: ${nt(e)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${r} ${nt(e)}`),r>-1&&n.length>1&&(this.log(`Removing unsupported level ${r}`),this.hls.removeLevel(r),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))})).catch((e=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${e}`)}))):t.supportedResult=ze}if((x&&t.codecSet!==x||w&&t.videoRange!==w||h&&E>t.frameRate||!h&&E>0&&E<t.frameRate||null!=(L=t.supportedResult)&&null!=(L=L.decodingInfoResults)&&L.some((e=>!1===e.smooth)))&&(!b||l!==T)){P.push(l);continue}const m=t.details,y=(f?null==m?void 0:m.partTarget:null==m?void 0:m.averagetargetduration)||D;let k;k=h?o*e:a*e;const I=D&&i>=2*D&&0===s?t.averageBitrate:t.maxBitrate,N=this.getTimeToLoadFrag(S,k,I*y,void 0===m);if(k>=I&&(l===c||0===t.loadError&&0===t.fragmentError)&&(N<=S||!r(N)||_&&!this.bitrateTestDelay||N<u)){const e=this.forcedAutoLevel;return l===g||-1!==e&&e===g||(P.length&&this.trace(`Skipped level(s) ${P.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${p[P[0]].codecs}" ${p[P[0]].videoRange}; not compatible with "${x}" ${w}`),this.info(`switch candidate:${d}->${l} adjustedbw(${Math.round(k)})-bitrate=${Math.round(k-I)} ttfb:${S.toFixed(1)} avgDuration:${y.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${N.toFixed(1)} firstSelection:${b} codecSet:${t.codecSet} videoRange:${t.videoRange} hls.loadLevel:${g}`)),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=S(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 r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?_(n,r.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 r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const r=S(this.appendSource);if(r){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const i=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(i),e)this._objectUrl=n.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(i);if(this.appendSource)try{n.removeAttribute("src");const t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&i instanceof t,gs(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,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,a=()=>{Promise.resolve().then((()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()}))};if(r&&i&&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(r,((e,t)=>"initSegment"===e?void 0:t))}}`),!P(r,n)){t.mediaSource=null,t.tracks=void 0;const i=e.currentTime,s=this.details,a=Math.max(i,(null==s?void 0:s.fragments[0].start)||0);return a-i>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${i} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${a} currentTime: ${i}`),this.onMediaDetaching(l.MEDIA_DETACHING,{}),this.onMediaAttaching(l.MEDIA_ATTACHING,t),void(e.currentTime=a))}this.transferData=void 0,i.forEach((e=>{const t=e,n=r[t];if(n){const e=n.buffer;if(e){const r=this.fragmentTracker,i=n.id;if(r.hasFragments(i)||r.hasParts(i)){const n=tn.getBuffered(e);r.detectEvictedFragments(t,n,i,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:r,mediaSource:i,_objectUrl:s}=this;if(i){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"===i.readyState;try{const t=i.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),i.removeSourceBuffer(t[n]);e&&i.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&gs(r),r.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 r;null!=(r=this.mediaSource)&&r.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 r=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),a=!s&&this.sourceBufferCount&&this.media&&i.some((e=>!r[e]));s||a?this.warn(`Unsupported transition between "${Object.keys(r)}" and "${i}" SourceBuffers`):(i.forEach((e=>{var n,i;const s=t[e],{id:a,codec:o,levelCodec:l,container:u,metadata:c,supplemental:d}=s;let h=r[e];const f=null==(n=this.transferData)||null==(n=n.tracks)?void 0:n[e],p=null!=f&&f.buffer?f:h,m=(null==p?void 0:p.pendingCodec)||(null==p?void 0:p.codec),g=null==p?void 0:p.levelCodec;h||(h=r[e]={buffer:void 0,listeners:[],codec:o,supplemental:d,container:u,levelCodec:l,metadata:c,id:a});const v=Re(m,g),y=null==v?void 0:v.replace(fs,"$1");let _=Re(o,l);const b=null==(i=_)?void 0:i.replace(fs,"$1");_&&v&&y!==b&&("audio"===e.slice(0,5)&&(_=Ne(_,this.appendSource)),this.log(`switching codec ${m} 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 r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const i=this.tracks[e];if(i){const s=i.buffer;null!=s&&s.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),s.changeType(r),i.codec=n,i.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,f))?void 0:t.gap))return;const i={label:"block-audio",execute:()=>{var e;const t=this.tracks.video;(this.lastVideoAppendEnd>r||null!=t&&t.buffer&&tn.isBuffered(t.buffer,r)||!0===(null==(e=this.fragmentTracker.getAppendedFrag(r,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:i,frag:e},this.append(i,"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:i,type:s,parent:u,frag:c,part:d,chunkMeta:h,offset:p}=t,m=h.buffering[s],{sn:g,cc:v}=c,y=self.performance.now();m.start=y;const _=c.stats.buffering,b=d?d.stats.buffering:null;0===_.start&&(_.start=y),b&&0===b.start&&(b.start=y);const x=n.audio;let w=!1;"audio"===s&&"audio/mpeg"===(null==x?void 0:x.container)&&(w=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);const E=n.video,A=null==E?void 0:E.buffer;if(A&&"initSegment"!==g){const e=d||c,t=this.blockedAudioAppend;if("audio"!==s||"main"===u||this.blockedAudioAppend||E.ending||E.ended){if("video"===s){const n=e.end;if(t){const e=t.frag.start;(n>e||n<this.lastVideoAppendEnd||tn.isBuffered(A,e))&&this.unblockAudio()}this.lastVideoAppendEnd=n}}else{const t=e.start+.05*e.duration,n=A.buffered,r=this.currentOp("video");n.length||r?!r&&!tn.isBuffered(A,t)&&this.lastVideoAppendEnd<t&&this.blockAudio(e):this.blockAudio(e)}}const k=(d||c).start,C={label:`append-${s}`,execute:()=>{var e;m.executeStart=self.performance.now();const t=null==(e=this.tracks[s])?void 0:e.buffer;t&&(w?this.updateTimestampOffset(t,k,.1,s,g,v):void 0!==p&&r(p)&&this.updateTimestampOffset(t,p,1e-6,s,g,v)),this.appendExecutor(i,s)},onStart:()=>{},onComplete:()=>{const e=self.performance.now();m.executeEnd=m.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},r=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&&!r)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 (${r||"no media error"})`),(e>=this.hls.config.appendErrorMaxRetry||r)&&(n.fatal=!0)}this.hls.trigger(l.ERROR,n)}};this.log(`queuing "${s}" append sn: ${g}${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:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach((([e])=>{e&&this.append(this.getFlushOp(e,r,i),e)}))}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[G]?i.push("audiovideo"):(s[Y]&&i.push("audio"),s[X]&&i.push("video"));0===i.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,r&&(r.stats.buffering.end=e);const t=r?r.stats:n.stats;this.hls.trigger(l.FRAG_BUFFERED,{frag:n,part:r,stats:t,id:n.type})}),i).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 r=!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)}))?r?(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;r(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 i=e.config,s=n.currentTime,a=t.levelTargetDuration,o=t.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(r(o)&&o>=0){const e=Math.max(o,a),t=Math.floor(s/a)*a-e;this.flushBackBuffer(s,a,t)}const l=i.frontBufferFlushThreshold;if(r(l)&&l>0){const e=Math.max(i.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 i=tn.getBuffered(t);if(i.length>0&&n>i.start(0)){var r;this.hls.trigger(l.BACK_BUFFER_REACHED,{bufferEnd:n});const t=this.tracks[e];if(null!=(r=this.details)&&r.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,r])=>{if(r){const i=tn.getBuffered(r),s=i.length;if(s<2)return;const a=i.start(s-1),o=i.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 i=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,i)}}return{duration:1/0}}const s=null==(e=this.overrides)?void 0:e.duration;if(s)return r(s)?{duration:s}:null;const a=this.media.duration;return i>(r(n.duration)?n.duration:0)&&i>a||!r(a)?{duration:i}:null}updateMediaSource({duration:e,start:t,end:n}){const i=this.mediaSource;this.media&&i&&"open"===i.readyState&&(i.duration!==e&&(r(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),i.duration=e),void 0!==t&&void 0!==n&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${t}-${n}.`),i.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 r;const e=null==(r=this.transferData)?void 0:r.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach((([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}})),this.hls.trigger(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 i in e){const s=i,u=e[s];if(this.isPending(u)){const e=this.getTrackCodec(u,s),i=`${u.container};codecs=${e}`;u.codec=e,this.log(`creating sourceBuffer(${i})${this.currentOp(s)?" Queued":""} ${nt(u)}`);try{const e=n.addSourceBuffer(i),r=vs(s),a=[s,e];t[r]=a,u.buffer=e}catch(e){var r;return this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(s),null==(r=this.operationQueue)||r.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:i,parent:u.id})}this.trackSourceBuffer(s,u)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&("video"===t||"audiovideo"===t)&&Ce(n,"video")&&(r=function(e,t){const n=[];if(e){const t=e.split(",");for(let e=0;e<t.length;e++)ke(t[e],"video")||n.push(t[e])}return t&&n.push(t),n.join(",")}(r,n));const i=Re(r,e.levelCodec);return i?"audio"===t.slice(0,5)?Ne(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",((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 r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,s){const a=t-e.timestampOffset;Math.abs(a)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:i,mediaSource:s}=this,a=this.tracks[e],o=null==a?void 0:a.buffer;if(!i||!s||!o)return this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(e);const l=r(i.duration)?i.duration:1/0,u=r(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],r=null==n?void 0:n.buffer;if(!r)throw new ms(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((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,r=t.map((e=>this.appendBlocker(e)));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).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 r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach((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 r=e.audioGroups;if(r){return this.hls.allAudioTracks.filter((e=>r.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 r=this.hls,i=t.context;switch(t.details){case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT: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=kt);case o.LEVEL_EMPTY_ERROR:case o.LEVEL_PARSING_ERROR:{var s;const e=t.parent===f?t.level:r.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==i?void 0:i.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.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(i){const e=r.loadLevelObj;if(e&&(i.type===d&&e.hasAudioGroup(i.groupId)||i.type===h&&e.hasSubtitleGroup(i.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=kt,void(t.errorAction.flags=St)}return;case o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:return void(t.errorAction={action:kt,flags:Pt});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:kt,flags:Lt});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:r.loadLevel);return;case o.INTERNAL_EXCEPTION:case o.BUFFER_APPENDING_ERROR:case o.BUFFER_FULL_ERROR:case o.LEVEL_SWITCH_ERROR:case o.BUFFER_STALLED_ERROR:case o.BUFFER_SEEK_OVER_HOLE:case o.BUFFER_NUDGE_ON_STALL: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),r=this.playlistError++;if(wt(n,r,gt(e),e.response))return{action:Tt,flags:Dt,retryConfig:n,retryCount:r};const i=this.getLevelSwitchAction(e,t);return n&&(i.retryConfig=n,i.retryCount=r),i}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,a=_t(vt(e)?s:i,e),l=t.levels.reduce(((e,t)=>e+t.fragmentError),0);if(r&&(e.details!==o.FRAG_GAP&&r.fragmentError++,!yt(e))){if(wt(a,l,gt(e),e.response))return{action:Tt,flags:Dt,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 r=this.hls.levels[t];if(r){var i,s;const t=e.details;r.loadError++,t===o.BUFFER_APPEND_ERROR&&r.fragmentError++;let u=-1;const{levels:c,loadLevel:g,minAutoLevel:v,maxAutoLevel:y}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const _=null==(i=e.frag)?void 0:i.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})=>r.audioCodec!==e)),x="video"===e.sourceBufferName&&(t===o.BUFFER_ADD_CODEC_ERROR||t===o.BUFFER_APPEND_ERROR)&&c.some((({codecSet:e,audioCodec:t})=>r.codecSet!==e&&r.audioCodec===t)),{type:w,groupId:E}=null!=(s=e.context)?s:{};for(let n=c.length;n--;){const i=(n+g)%c.length;if(i!==g&&i>=v&&i<=y&&0===c[i].loadError){var a,l;const n=c[i];if(t===o.FRAG_GAP&&_===f&&e.frag){const t=c[i].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(E)||w===h&&n.hasSubtitleGroup(E))continue;if(_===p&&null!=(a=r.audioGroups)&&a.some((e=>n.hasAudioGroup(e)))||_===m&&null!=(l=r.subtitleGroups)&&l.some((e=>n.hasSubtitleGroup(e)))||b&&r.audioCodec===n.audioCodec||x&&r.codecSet===n.codecSet||!b&&r.codecSet!==n.codecSet)continue}u=i;break}}if(u>-1&&n.loadLevel!==u)return e.levelRetry=!0,this.playlistError=0,{action:kt,flags:Dt,nextAutoLevel:u}}return{action:kt,flags:St}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case At:break;case kt: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:r}=n,i=n.nextAutoLevel;switch(r){case Dt:this.switchLevel(e,i);break;case Pt:{const r=this.getVariantLevelIndex(e.frag),i=t.levels[r],s=null==i?void 0:i.attrs["HDCP-LEVEL"];if(n.hdcpLevel=s,"NONE"===s)this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(s){t.maxHdcpLevel=Ge[Ge.indexOf(s)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case Lt:{const t=e.decryptdata;if(t){const r=this.hls.levels,i=r.length;for(let n=i;n--;){var s,a;if(this.variantHasKey(r[n],t))this.log(`Banned key found in level ${n} (${r[n].bitrate}bps) or audio group "${null==(s=r[n].audioGroups)?void 0:s.join(",")}" (${null==(a=e.frag)?void 0:a.type} fragment) ${I(t.keyId||[])}`),r[n].fragmentError++,r[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<i)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,i)}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=je(e.mimeType),n=this.hls.levels;for(let r=n.length;r--;)n[r][`${e.sourceBufferName}Codec`]===t&&(this.log(`Removing level ${r} for ${e.details} ("${t}" not supported)`),this.hls.removeLevel(r))}}},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 r=performance.now();if(t){if(this.lastTime){const e=r-this.lastTime,i=n-this.lastDroppedFrames,s=t-this.lastDecodedFrames,a=1e3*i/e,o=this.hls;if(o.trigger(l.FPS_DROP,{currentDropped:i,currentDecoded:s,totalDroppedFrames:n}),a>0&&i>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=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}},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:Ln,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:Mo,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 Lr{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",m),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=br,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:r}=t;if(this.fragContextChanged(n)||(K(n)&&(this.fragPrevious=n),this.state=br),!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const a=n.start;for(let e=0;e<i.length;e++)if(a>=i[e].start&&a<=i[e].end){s=i[e];break}const o=n.start+n.duration;s?s.end=o:(s={start:a,end:o},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(0===n&&r!==Number.POSITIVE_INFINITY){const e=r-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,m)}}onError(e,t){const n=t.frag;(null==n?void 0:n.type)===m&&(t.details===o.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==_r&&(this.state=br))}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,m),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 r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==_r&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:a}=t;if(!i)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const o=i[a];if(a>=i.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,rr(s,u));else s.hasProgramDateTime&&e.hasProgramDateTime?(mr(s,e),u=s.fragmentStart):t&&(u=t.start,rr(s,u));e&&!this.startFragRequested&&this.setStartPosition(e,u)}if(o.details=s,this.levelLastLoaded=o,a===r&&(this.hls.trigger(l.SUBTITLE_TRACK_UPDATED,{details:s,id:a,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===br)){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,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&null!=r&&r.key&&r.iv&&gn(r.method)){const e=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,vn(r.method)).catch((e=>{throw i.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 r=performance.now();i.trigger(l.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:r}})})).catch((e=>{this.warn(`${e.name}: ${e.message}`),this.state=br}))}}doTick(){if(this.media){if(this.state===br){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:r}=this,i=this.getLoadPosition(),s=tn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.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=r.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=br}loadFragment(e,t,n){K(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Ba(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=Ea(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 r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;Ea(n.textTracks).forEach((e=>{xa(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:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r)return void this.warn(`Subtitle track with id:${n} and group:${r} 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:${r} loaded [${i.startSN}-${i.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,r=this.groupIds;let i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==r?void 0:r.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(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.subtitlePreference;if(!i&&t){this.selectDefaultTrack=!1;const n=at(t,e);if(n>-1)i=e[n];else{const e=at(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=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!==r&&-1===this.trackId&&this.setSubtitleTrack(r)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if((!n||i.default)&&(n||e)&&(!e||ot(i,e)))return r}if(e){for(let n=0;n<t.length;n++){const r=t[n];if(cs(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const r=t[n];if(cs(e.attrs,r.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 r=at(e,this.tracksInGroup);if(r>-1){const e=this.tracksInGroup[r];return this.setSubtitleTrack(r),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,r=e.groupId,i=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:${r}${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:""):""} ${i}`),this.hls.trigger(l.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Ea(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter((e=>ds(n,e)))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach((e=>{"disabled"!==e.mode&&e!==r&&(e.mode="disabled")})),r){const e=this.subtitleDisplay?"showing":"hidden";r.mode!==e&&(r.mode=e)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=e);if(e<-1||e>=t.length||!r(e))return void this.warn(`Invalid subtitle track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i)return void this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:e});const s=!!i.details&&!i.details.live;if(e===this.trackId&&i===n&&s)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:a,groupId:o="",name:u,type:c,url:d}=i;this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:u,type:c,url:d});const h=this.switchParams(i.url,null==n?void 0:n.details,i.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 Lo(this,"textTrack1"),t=new Lo(this,"textTrack2"),n=new Lo(this,"textTrack3"),r=new Lo(this,"textTrack4");this.cea608Parser1=new no(1,e,t),this.cea608Parser2=new no(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let e=i.length;e--;){const r=i[e],l=(a=r[0],o=r[1],u=t,c=n,Math.min(o,c)-Math.max(a,u));if(l>=0&&(r[0]=Math.min(r[0],t),r[1]=Math.max(r[1],n),s=!0,l/(n-t)>.5))return}var a,o,u,c;if(s||i.push([t,n]),this.config.renderTextTracksNatively){const i=this.captionsTracks[e];this.Cues.newCue(i,t,n,r)}else{const i=this.Cues.newCue(null,t,n,r);this.hls.trigger(l.CUES_PARSED,{type:"captions",cues:i,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i,trackId:s}){const{unparsedVttFrags:a}=this;n===f&&(this.initPTS[t.cc]={baseTime:r,timescale:i,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 r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(No(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],a=this.getExistingTrack(i,s);if(a)n[e]=a,xa(n[e]),_a(n[e],r);else{const t=this.createTextTrack("captions",i,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 r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach((e=>{xa(r[e]),delete r[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++)xa(t[e])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some((e=>e.textCodec===bo));if(this.config.enableWebVTT||r&&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?Ea(e.textTracks):null;if(this.tracks.forEach(((e,n)=>{let r;if(t){let n=null;for(let r=0;r<t.length;r++)if(t[r]&&No(t[r],e)){n=t[r],t[r]=null;break}n&&(r=n)}if(r)xa(r);else{const t=Io(e);r=this.createTextTrack(t,e.name,e.lang),r&&(r.mode="disabled")}r&&this.textTracks.push(r)})),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]}`,r=this.captionsProperties[n];r&&(r.label=e.name,e.lang&&(r.languageCode=e.lang),r.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,r;const{cea608Parser1:e,cea608Parser2:i,lastSn:s}=this,{cc:a,sn:o}=t.frag,l=null!=(n=null==(r=t.part)?void 0:r.index)?n:-1;e&&i&&(o!==s+1||o===s&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(e.reset(),i.reset()),this.lastCc=a,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===m)if(r.byteLength){const e=n.decryptdata,i="stats"in t;if(null==e||!e.encrypted||i){const e=this.tracks[n.level],i=this.vttCCs;i[n.cc]||(i[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===bo?this._parseIMSC1(n,r):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;Ao(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:r}=e,{initPTS:i,unparsedVttFrags:s}=this,a=i.length-1;if(!i[n.cc]&&-1===a)return void s.push(e);const o=this.hls;_o(null!=(t=n.initSegment)&&t.data?me(n.initSegment.data,new Uint8Array(r)).buffer:r,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 i="Missing initPTS for VTT MPEGTS"===t.message;i?s.push(e):this._fallbackToIMSC1(n,r),o.logger.log(`Failed to parse VTT cue: ${t}`),i&&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||Ao(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 r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(l.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===m&&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:r}=t;if(n.type!==f||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;e<r.length;e++){const t=r[e].bytes;if(t){this.cea608Parser1||this.initCea608Parsers();const n=this.extractCea608Data(t);this.cea608Parser1.addData(r[e].pts,n[0]),this.cea608Parser2.addData(r[e].pts,n[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(s&&!(s.currentTime<n)){if(!i||"video"===i){const{captionsTracks:e}=this;Object.keys(e).forEach((r=>wa(e[r],t,n)))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==r){const{textTracks:e}=this;Object.keys(e).forEach((n=>wa(e[n],t,r)))}}}extractCea608Data(e){const t=[[],[]],n=31&e[0];let r=2;for(let i=0;i<n;i++){const n=e[r++],i=127&e[r++],s=127&e[r++];if(0===i&&0===s)continue;if(0!=(4&n)){const e=3&n;0!==e&&1!==e||(t[e].push(i),t[e].push(s))}}return t}},audioStreamController:class extends Lr{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:r,timescale:i,trackId:s}){if(n===f){const e=t.cc,n=this.fragCurrent;if(this.initPTS[e]={baseTime:r,timescale:i,trackId:s},this.log(`InitPTS for cc: ${e} found from main: ${r/i} (${r}/${i}) trackId: ${s}`),this.mainAnchor=t,this.state===Sr){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===br&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==r?void 0:r.cc)===t.cc)return;const i=(r||e).cc,s=mt(this.getLevelDetails(),i,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===br&&this.doTickIdle())}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=_r);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=br):this.state=Ar,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case br:this.doTickIdle();break;case Ar:{const{levels:e,trackId:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=Sr}break}case Er:this.checkRetryDate();break;case Sr:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,s=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=wr;const e={frag:t,part:n,payload:r.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),i&&super._handleFragmentLoadComplete(e)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=br}}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:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||null==n||!n[i])return;const a=n[i],o=a.details;if(!o||this.waitForLive(a)||this.waitForCdnTuneIn(o))return this.state=Ar,void(this.startFragRequested=!1);const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,Y,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=Tr);const d=c.len,h=t.maxBufferLength,m=o.fragments,g=m[0].start,v=this.getLoadPosition(),y=this.flushing?v:c.end;if(this.switchingTrack&&r){const e=v;o.PTSKnown&&e<g&&(c.end>g||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=g+.05)}if(d>=h&&!this.switchingTrack&&y<m[m.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&&K(_)&&!_.endList&&(!o.live||!this.loadingParts&&y<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(b)===Ot&&(this.mainFragLoading=b=null),b&&K(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:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==_r&&(this.setInterval(100),this.state=br,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:r}=this,{details:i,id:s,groupId:a,track:o}=t;if(!r)return void this.warn(`Audio tracks reset while loading track ${s} "${o.name}" of "${a}"`);const u=this.mainDetails;if(!u||i.endCC>u.endCC||u.expired)return this.cachedTrackLoadedData=t,void(this.state!==_r&&(this.state=Ar));this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${o.name}" of "${a}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const c=r[s];let d=0;if(i.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;var h;if(c.details)d=this.alignPlaylists(i,c.details,null==(h=this.levelLastLoaded)?void 0:h.details);i.alignedSliding||(pr(i,u),i.alignedSliding||mr(i,u),d=i.fragmentStart)}c.details=i,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(u,d),this.hls.trigger(l.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state!==Ar||this.waitForCdnTuneIn(i)||(this.state=br),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=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=r?r.index:-1,s=-1!==t,a=new $t(n.level,n.sn,n.stats.chunkCount,i.byteLength,t,s);d.push(i,f,c,"",n,r,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:r,cache:new Nr,complete:!1};e.push(new Uint8Array(i)),this.state!==_r&&(this.state=Sr)}}_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&&K(t.frag)&&(this.mainFragLoading=t,this.state===br&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type===p)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(K(n)){this.fragPrevious=n;const e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(l.AUDIO_TRACK_SWITCHED,x({},e)))}this.fragBufferedComplete(n,r),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=Dr;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!==Ar||(null==(n=t.context)?void 0:n.type)!==d||(this.state=br);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!==X&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==X){this.flushing=!1,this.bufferFlushed=!0,this.state===Tr&&(this.state=br);const e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,p),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,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:m}=i;if(!this.fragContextChanged(o)&&d){if(this.state=kr,this.switchingTrack&&h&&this.completeAudioSwitch(this.switchingTrack),null!=m&&m.tracks){const e=o.initSegment||o;if(this.unhandledEncryptionError(m,o))return;this._bufferInitSegment(c,m.tracks,e,s),r.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:m.tracks})}if(h){const{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=h;u&&(u.elementaryStreams[Y]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),o.setElementaryStreamInfo(Y,e,t,n,r),this.bufferFragmentData(h,o,u,s)}if(null!=p&&null!=(t=p.samples)&&t.length){const e=_({id:n,frag:o,details:d},p);r.trigger(l.FRAG_PARSING_METADATA,e)}if(f){const e=_({id:n,frag:o,details:d},f);r.trigger(l.FRAG_PARSING_USERDATA,e)}}else this.fragmentTracker.removeFragment(o)}_bufferInitSegment(e,t,n,r){if(this.state!==kr)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const i=t.audio;i.id=p;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&1===s.split(",").length&&(i.levelCodec=s),this.hls.trigger(l.BUFFER_CODECS,t);const a=i.initSegment;if(null!=a&&a.byteLength){const e={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:a};this.hls.trigger(l.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);var i;if(this.switchingTrack||r===Nt||r===Mt)if(K(e))if(null!=(i=t.details)&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Sr;const n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&mr(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:r,characteristics:i,audioCodec:s,channels:a}=this.bufferedTrack;ot({name:t,lang:n,assocLang:r,characteristics:i,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,x({},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:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r)return void this.warn(`Audio track with id:${n} and group:${r} 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:${r} loaded [${i.startSN}-${i.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,r=this.groupIds;let i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==r?void 0:r.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(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!i&&t){const n=at(t,e,lt);if(n>-1)i=e[n];else{const e=at(t,this.tracks);i=this.tracks[e]}}let r=this.findTrackId(i);-1===r&&i&&(r=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!==r&&-1===c)this.setAudioTrack(r);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 r=this.currentTrack;if(r&&ot(e,r,lt))return r;const i=at(e,this.tracksInGroup,lt);if(i>-1){const e=this.tracksInGroup[i];return this.setAudioTrack(i),e}if(r){let r=t.loadLevel;-1===r&&(r=t.firstAutoLevel);const i=function(e,t,n,r,i){const s=t[r],a=t.reduce(((e,t,n)=>{const r=t.uri;return(e[r]||(e[r]=[])).push(n),e}),{})[s.uri];a.length>1&&(r=Math.max.apply(Math,a));const o=s.videoRange,l=s.frameRate,u=s.codecSet.substring(0,4),c=ut(t,r,(t=>{if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;const r=t.audioGroups,s=n.filter((e=>!r||-1!==r.indexOf(e.groupId)));return at(e,s,i)>-1}));return c>-1?c:ut(t,r,(t=>{const r=t.audioGroups,s=n.filter((e=>!r||-1!==r.indexOf(e.groupId)));return at(e,s,i)>-1}))}(e,t.levels,n,r,lt);if(-1===i)return null;t.nextLoadLevel=i}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,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;if(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(l.AUDIO_TRACK_SWITCHING,x({},r)),i)return;const s=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||ot(e,r,lt)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:a,channels:o}=e;for(let e=0;e<t.length;e++){if(ot({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:a,channels:o},t[e],lt))return e}for(let n=0;n<t.length;n++){const r=t[n];if(cs(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const r=t[n];if(cs(e.attrs,r.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,r=e.groupId,i=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:${r}${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:""):""} ${i}`),this.hls.trigger(l.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,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,r=this.hls.levels[t.level],i=this.getObjectType(t),s={d:1e3*(n||t).duration,ot:i};i!==_s.VIDEO&&i!==_s.AUDIO&&i!=_s.MUXED||(s.br=r.bitrate/1e3,s.tb=this.getTopBandwidth(i)/1e3,s.bl=this.getBufferLength(i));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,r;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(r=t.tracks.video)?void 0:r.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:r}=this;r&&(t=Object.keys(t).reduce(((e,n)=>(r.includes(n)&&(e[n]=t[n]),e)),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),la(e.headers,t,i)):e.url=da(e.url,t,i)}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:r}=e,i=null==(t=this.hls.levels[r.level])||null==(t=t.details)?void 0:t.partList;if(i){const{sn:e}=r;for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.index===n&&r.fragment.sn===e)return i[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 r=this.hls;if(e===_s.AUDIO)t=r.audioTracks;else{const e=r.maxAutoLevel,n=e>-1?e+1:r.levels.length;t=r.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,r){t(e),this.loader.load(e,n,r)}}}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,r){t(e),this.loader.load(e,n,r)}}}},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)===kt&&n.flags===St){const e=this.levels;let r=this._pathwayPriority,i=this.pathwayId;if(t.context){const{groupId:n,pathwayId:r,type:s}=t.context;n&&e?i=this.getPathwayForGroupId(n,s,i):r&&(i=r)}i in this.penalizedPathways||(this.penalizedPathways[i]=performance.now()),!r&&e&&(r=this.pathways()),r&&r.length>1&&(this.updatePathwayPriority(r),n.resolved=this.pathwayId!==i),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: ${i} levels: ${e?e.length:e} priorities: ${nt(r)} 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,r=performance.now();Object.keys(n).forEach((e=>{r-n[e]>3e5&&delete n[e]}));for(let r=0;r<e.length;r++){const i=e[r];if(i in n)continue;if(i===this.pathwayId)return;const s=this.hls.nextLoadLevel,a=this.hls.levels[s];if(t=this.getLevelsForPathway(i),t.length>0){this.log(`Setting Pathway to "${i}"`),this.pathwayId=i,lr(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 r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n<r.length;n++)if(t===d&&r[n].hasAudioGroup(e)||t===h&&r[n].hasSubtitleGroup(e))return r[n].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach((e=>{const{ID:i,"BASE-ID":s,"URI-REPLACEMENT":a}=e;if(t.some((e=>e.pathwayId===i)))return;const o=this.getLevelsForPathway(s).map((e=>{const t=new cn(e.attrs);t["PATHWAY-ID"]=i;const s=t.AUDIO&&`${t.AUDIO}_clone_${i}`,o=t.SUBTITLES&&`${t.SUBTITLES}_clone_${i}`;s&&(n[t.AUDIO]=s,t.AUDIO=s),o&&(r[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_${i}`);if(e.subtitleGroups)for(let t=1;t<e.subtitleGroups.length;t++)u.addGroupId("text",`${e.subtitleGroups[t]}_clone_${i}`);return u}));t.push(...o),ha(this.audioTracks,n,a,i),ha(this.subtitleTracks,r,a,i)}))}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;let r;this.loader&&this.loader.destroy(),this.loader=new n(t);try{r=new self.URL(e)}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest URI: ${e}`)}if("data:"!==r.protocol){const e=0|(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate);r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+e)}const i={responseType:"json",url:r.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,i)=>{this.log(`Loaded steering manifest: "${r}"`);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,r).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:r.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,c),u&&this.updatePathwayPriority(u)},onError:(e,t,n,r)=>{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 i=1e3*this.timeToLoad;if(429!==e.code)this.scheduleRefresh(this.uri||t.url,i);else{const e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(i=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: ${r}`),this.loader.load(i,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 r=this.playingItem;if(!r)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule(!0)}if(this.checkBuffer(),n&&e<r.start||e>=r.end){var i;const t=this.findItemIndex(r);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(r)&&null!=(i=this.media)&&i.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(r)){const t=r.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=r.event)&&l.appendInPlace&&(this.clearInterstitial(r.event,r),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 r=this.playingItem,i=n.events||[],s=n.items||[],a=n.durations,o=e.map((e=>e.identifier)),u=!(!i.length&&!o.length);(u||t)&&this.log(`INTERSTITIALS_UPDATED (${i.length}): ${i}\nSchedule: ${s.map((e=>Ma(e)))} pos: ${this.timelinePos}`),o.length&&this.log(`Removed events ${o}`);let c=null,d=null;r&&(c=this.updateItem(r,this.timelinePos),this.itemsMatch(r,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(r){Math.abs(n)>ka&&this.warn(`${r} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}})),u||t){if(this.hls.trigger(l.INTERSTITIALS_UPDATED,{events:i.slice(0),schedule:s.slice(0),durations:a,removedIds:o}),this.isInterstitial(r)&&o.includes(r.event.identifier))return this.warn(`Interstitial "${r.event.identifier}" removed while playing`),void this.primaryFallback(r.event);r&&this.trimInPlace(c,r),h&&d!==c&&this.trimInPlace(d,h),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Oa(e),this.schedule=new Ra(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){vr(e,"play",this.onPlay),vr(e,"pause",this.onPause),vr(e,"seeking",this.onSeeking),vr(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;gr(n,"seeking",this.onSeeking),gr(n,"timeupdate",this.onTimeupdate),gr(n,"play",this.onPlay),gr(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!r){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,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),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,r=(t,r,s,a,o)=>{if(t){let l=t[r].start;const u=t.event;if(u){if("playout"===r||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?i():e[a])-t.start}return l}return 0},i=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?s("primary"):Math.max(t,0)},s=t=>{var n,r;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:(null==(r=e.schedule)?void 0:r.durations[t])||0},a=(t,i)=>{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} "${i}"`);const l=e.effectivePlayingItem,u=e.schedule.findItemIndexAtTime(t,i),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"===i?a.currentTime:r(l,i,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"!==i){const e=t-c[i].start;n=c.start+e}const r=!e.isInterstitial(c);if(e.isInterstitial(l)&&!l.event.appendInPlace||!r&&!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(r)e.timelinePos=n,e.checkBuffer();else{const e=c.event.assetList,n=t-(c[i]||c).start;for(let t=e.length;t--;){const r=e[t];if(r.duration&&n>=r.startOffset&&n<r.startOffset+r.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 r=t();return e.isInterstitial(r)?r:null},l={get bufferedEnd(){const n=t(),i=e.bufferingItem;var s;return i&&i===n&&(r(i,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-i.playout.start||(null==(s=e.bufferingAsset)?void 0:s.startOffset))||0},get currentTime(){const t=o(),n=e.effectivePlayingItem;return n&&n===t?r(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(t){const n=o(),r=e.effectivePlayingItem;r&&r===n&&a(t+r.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 i()},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 r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(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 r;if(0!==t&&"primary"!==n&&null!=(r=e.schedule)&&r.length){var i;const r=e.schedule.findItemIndexAtTime(t),s=null==(i=e.schedule.items)?void 0:i[r];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 r=e.findItemIndex(t);if(n.appendInPlace){const e=t.playout.start+t.event.duration;a(e+.001,"playout")}else e.advanceAfterAssetEnded(n,r,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 i=this.media;!i&&null!=(e=this.bufferingItem)&&null!=(e=e.event)&&e.appendInPlace&&(i=this.primaryMedia);const s=null==(t=i)?void 0:t.currentTime;return void 0!==s&&r(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,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r)return void(this.detachedData={media:r});const n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${nt(n)}`),this.detachedData=n}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,a=e!==s,o=a&&e.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let u;if(s.media)o&&(i=s.transferMedia(),this.detachedData=i),u="Primary";else if(l){const e=this.getBufferingPlayer();e?(i=e.transferMedia(),u=`${e}`):u="detached MediaSource"}else u="detached media";if(!i)if(l)i=this.detachedData,this.log(`using detachedData: MediaSource ${nt(i)}`);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=i&&"mediaSource"in i&&"closed"!==(null==(r=i.mediaSource)?void 0:r.readyState),d=c&&i?i:t;this.log(`${c?"transfering MediaSource":"attaching media"} to ${a?e:"Primary"} from ${u} (media.currentTime: ${t.currentTime})`);const h=this.schedule;if(d===i&&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,r=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.log(ja("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,r=e.findItemIndexAtTime(t);this.setSchedulePosition(r)}}else if(r&&!this.playingItem){const t=e.findItemIndex(r);this.setSchedulePosition(t)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),i=La(n,r);if(n.isAssetPastPlayoutLimit(i)){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,i)}advanceAfterAssetEnded(e,t,n){const r=La(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){const n=this.schedule.items;if(n){const r=t+1;if(r>=n.length)return void this.setSchedulePosition(-1);const i=e.resumeTime;this.timelinePos<i&&(this.log(ja("advanceAfterAssetEnded",i)),this.timelinePos=i,e.appendInPlace&&this.advanceInPlace(i),this.checkBuffer(this.bufferedPos<i)),this.setSchedulePosition(r)}}}else{if(e.appendInPlace){const t=e.assetList[r];t&&this.advanceInPlace(t.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,i=n.getEvent(r);if(i){const t=n.findEventIndex(r),s=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,t,s-1)}}setSchedulePosition(e,t){var n;const r=null==(n=this.schedule)?void 0:n.items;if(!r||this.playbackDisabled)return;const i=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i?Ma(i):i}) 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,i)||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:r.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,i),!h.media||null!=(o=this.detachedData)&&o.mediaSource||h.detachMedia()}if(!this.eventItemsMatch(s,i)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${n} ${Ma(s)}`),n.hasPlayed=!0,this.hls.trigger(l.INTERSTITIAL_ENDED,{event:n,schedule:r.slice(0),scheduleIndex:e}),n.cue.once)){var u;this.updateSchedule();const e=null==(u=this.schedule)?void 0:u.items;if(i&&e){const n=this.findItemIndex(i);this.advanceSchedule(n,e,t,s,a)}return}}this.advanceSchedule(e,r,t,s,a)}advanceSchedule(e,t,n,r,i){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,r=s.findEventIndex(n.identifier);(r<e||r>e+1)&&this.clearInterstitial(n,a)})),this.isInterstitial(a)){this.timelinePos=Math.min(Math.max(this.timelinePos,a.start),a.end);const i=a.event;if(void 0===n){const t=La(i,(n=s.findAssetIndex(i,this.timelinePos))-1);if(i.isAssetPastPlayoutLimit(t)||i.appendInPlace&&this.timelinePos===a.end)return void this.advanceAfterAssetEnded(i,e,n);n=t}const u=this.waitingItem;this.assetsBuffered(a,o)||this.setBufferingItem(a);let c=this.preloadAssets(i,n);if(this.eventItemsMatch(a,u||r)||(this.waitingItem=a,this.log(`INTERSTITIAL_STARTED ${Ma(a)} ${i.appendInPlace?"append in place":""}`),this.hls.trigger(l.INTERSTITIAL_STARTED,{event:i,schedule:t.slice(0),scheduleIndex:e})),!i.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${i}`);if(i.assetListLoader&&(i.assetListLoader.destroy(),i.assetListLoader=void 0),!o)return void this.log(`Waiting for attachMedia to start Interstitial ${i}`);this.waitingItem=this.endedItem=null,this.playingItem=a;const d=i.assetList[n];if(!d)return void this.advanceAfterAssetEnded(i,e,n||0);if(c||(c=this.getAssetPlayer(d.identifier)),null===c||c.destroyed){const e=i.assetList.length;this.warn(`asset ${n+1}/${e} player destroyed ${i}`),c=this.createAssetPlayer(i,d,n),c.loadSource()}if(!this.eventItemsMatch(a,this.bufferingItem)&&i.appendInPlace&&this.isAssetBuffered(d))return;this.startAssetPlayer(c,n,t,e,o),this.shouldPlay&&Fa(c.media)}else a?(this.resumePrimary(a,e,r),this.shouldPlay&&Fa(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return!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 r,i;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Ma(e)}`),null==(r=this.detachedData)||!r.mediaSource){let n=this.timelinePos;(n<e.start||n>=e.end)&&(n=this.getPrimaryResumption(e,t),this.log(ja("resumePrimary",n)),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;const s=null==(i=this.schedule)?void 0:i.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Ma(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 r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(ja("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs(((null==(n=r.mainForwardBufferInfo)?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.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 r=x(x({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r)return void(this.altSelection=x(x({},this.altSelection),{},{audio:n}));const i=x(x({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r)return void(this.altSelection=x(x({},this.altSelection),{},{subtitles:n}));const i=x(x({},r),{},{subtitles:n});this.mediaSelection=i}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 r=t[e];if(r.cue.post){var n;const e=this.schedule.findEventIndex(r.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 r=null==(n=this.schedule)?void 0:n.items;if(e&&r){return r[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,r=tn.bufferInfo(this.primaryMedia,n,0);if(r.end>n||(r.nextStart||0)>n){this.log(`trim buffered interstitial ${Ma(e)} (was ${Ma(t)})`);const r=!0;this.attachPrimary(n,null,r),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 r=tn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e||!r)return;if(1===t.length&&this.itemsMatch(t[0],i))return void(this.bufferedPos=e);const s=this.playingItem,a=this.findItemIndex(s);let o=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var l;const n=this.findItemIndex(i),r=Math.min(n+1,t.length-1),s=t[r];if((-1===o&&i&&e>=i.end||null!=(l=s.event)&&l.appendInPlace&&e+.01>=s.start)&&(o=r),this.isInterstitial(i)){const e=i.event;if(r-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,i)&&(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:r,events:i}=n;if(!r||!i)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 ${Ma(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 r=this.getAssetPlayer(e.identifier);r&&(n===t&&r.loadSource(),r.resumeBuffering())}))}else this.hls.resumeBuffering(),this.playerQueue.forEach((e=>e.pauseBuffering()));this.hls.trigger(l.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(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,r=0===n.assetList.length&&!n.assetListLoader,i=n.cue.once;if(r||!i){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,r=e.assetList.length,i=0===r&&!e.assetListLoader,s=e.cue.once;if(i){const i=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(i+.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-i;e>0&&(s=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${s?` live-start: ${o} start-offset: ${s}`:""}`),n)return this.createAsset(e,0,0,i,e.duration,n);const l=this.assetListLoader.loadAssetList(e,s);l&&(e.assetListLoader=l)}else if(!s&&r){for(let n=t;n<r;n++){const t=e.assetList[n],r=this.getAssetPlayerQueueIndex(t.identifier);-1!==r&&!this.playerQueue[r].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,r,i,s){const a={parentIdentifier:e.identifier,identifier:Ta(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,a,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let s=i.videoPreference;const u=r.loadLevelObj||r.levels[r.currentLevel];(s||u)&&(s=_({},s),u.videoCodec&&(s.videoCodec=u.videoCodec),u.videoRange&&(s.allowedVideoRanges=[u.videoRange]));const c=r.audioTracks[r.audioTrack],d=r.subtitleTracks[r.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=x(x({},i),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:f,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:h,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:c||i.audioPreference,subtitlePreference:d||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(p.timelineOffset=t.timelineStart));const m=p.cmcd;null!=m&&m.sessionId&&m.contentId&&(p.cmcd=_({},m,{contentId:Aa(t.uri)})),this.getAssetPlayer(f)&&this.warn(`Duplicate date range identifier ${e} and asset ${f}`);const g=new Na(this.HlsPlayerClass,p,e,t);this.playerQueue.push(g),e.assetList[n]=t;let v=!0;const y=r=>{if(r.live){var i;const t=new Error(`Interstitials MUST be VOD assets ${e}`),r={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},s=(null==(i=this.schedule)?void 0:i.findEventIndex(e.identifier))||-1;return void this.handleAssetItemError(r,e,s,n,t.message)}const s=r.edge-r.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())};g.on(l.LEVEL_UPDATED,((e,{details:t})=>y(t))),g.on(l.LEVEL_PTS_UPDATED,((e,{details:t})=>y(t))),g.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)}};g.on(l.BUFFER_CODECS,b);g.on(l.BUFFERED_TO_END,(()=>{var n;const r=this.getAssetPlayer(f);if(this.log(`buffered to end of asset ${r}`),!r||!this.schedule)return;const i=this.schedule.findEventIndex(e.identifier),s=null==(n=this.schedule.items)?void 0:n[i];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 g.once(l.MEDIA_ENDED,w(n)),g.once(l.PLAYOUT_LIMIT_REACHED,w(1/0)),g.on(l.ERROR,((t,r)=>{if(!this.schedule)return;const i=this.getAssetPlayer(f);if(r.details===o.BUFFER_STALLED_ERROR)return null!=i&&i.appendInPlace?void this.handleInPlaceStall(e):(this.onTimeupdate(),void this.checkBuffer(!0));this.handleAssetItemError(r,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${r.error} ${e}`)})),g.on(l.DESTROYING,(()=>{if(!this.getAssetPlayer(f)||!this.schedule)return;const t=new Error(`Asset player destroyed unexpectedly ${f}`),r={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(r,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:g}),g}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?Ma(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,r,i){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[r]),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:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;if(!this.schedule)return;const{interstitial:i,assetItem:s}=e,l=this.schedule.findEventIndex(i.identifier),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=i.appendInPlace;if(d&&!1===(null==c?void 0:c.interstitial.appendInPlace))return;const h=(null==c?void 0:c.tracks)||(null==(r=this.detachedData)?void 0:r.tracks)||this.requiredTracks;if(d&&s!==this.playingAsset){if(!e.tracks)return void this.log(`Waiting for track info before buffering ${e}`);if(h&&!P(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},r=i.findAssetIndex(s);return void this.handleAssetItemError(n,i,l,r,t.message)}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,i=t.findAssetIndex(e,r),s=e.assetList[i];if(s){const a=this.getAssetPlayer(s.identifier);if(a){const o=a.currentTime||r-s.timelineStart,l=a.duration-o;if(this.warn(`Stalled at ${o} of ${o+l} in ${a} ${e} (media.currentTime: ${r})`),o&&(l/n.playbackRate<.5||a.bufferedInPlaceToEnd(n))&&a.hls){const n=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,i)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,i){if(e.details===o.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||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:r,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,m=new Error(i);if(s&&(this.clearAssetPlayer(a,null),s.error=m),t.assetList.some((e=>!e.error)))for(let e=r;e<t.assetList.length;e++)this.resetAssetPlayer(t.assetList[e].identifier);else t.error=m;this.updateSchedule(!0),t.error?this.primaryFallback(t):f&&f.identifier===a?this.advanceAfterAssetEnded(t,n,r):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: ${Ma(n)} error: ${e.error}`);let r=this.timelinePos;-1===r&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n,r;const i=t.event,s=i.identifier,a=t.assetListResponse.ASSETS;if(null==(n=this.schedule)||!n.hasEvent(s))return;const o=i.timelineStart,l=i.duration;let u=0;a.forEach(((e,t)=>{const n=parseFloat(e.DURATION);this.createAsset(i,t,u,o+u,n,e.URI),u+=n})),i.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${l}) ${i}`);const c=this.waitingItem,d=(null==c?void 0:c.event.identifier)===s;this.updateSchedule();const h=null==(r=this.bufferingItem)?void 0:r.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 i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),this.updateSchedule(!0),void this.primaryFallback(i)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==h?void 0:h.identifier)===s){const e=i.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 Uo(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(Uo):Object.keys(e).reduce(((t,n)=>(t[n]=Uo(e[n]),t)),{}):e}function Yo(e,t){const n=e.loader;if(n!==Fo&&n!==Ho)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 Xo 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;gr(n,"playing",this.onMediaPlaying),gr(n,"waiting",this.onMediaWaiting),gr(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(vr(n,"playing",this.onMediaPlaying),vr(n,"waiting",this.onMediaWaiting),vr(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,r;const i=null==(n=this.hls)?void 0:n.config;if(!i)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,i.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=Go(this.hls.inFlightFragments,e),n=d.len>2,r=!h||t||h-e>2&&!f.getPartialFragment(e);if(n||r)return;this.moved=!1}const p=null==(r=this.hls)?void 0:r.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,r=Ko(e,f);if(t>0&&(t<=n||r))return void(s.paused||this._trySkipBufferHole(r))}const m=i.detectStallWithCurrentTimeMs,g=self.performance.now(),v=this.waiting;let y=this.stalled;if(null===y){if(!(v>0&&g-v<m))return void(this.stalled=g);y=this.stalled=v}const _=g-y;if(!a&&(_>=m||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 x=tn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(x,_,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 r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&r&&r.length>1&&e>r.end(0)){const n=tn.bufferedInfo(tn.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){const n=tn.timeRangesToArray(r),i=tn.bufferedInfo(n,t,0).bufferedIndex;if(i>-1&&i<n.length-1){const t=tn.bufferedInfo(n,e,0).bufferedIndex,r=n[i].end,s=n[i+1].start;if((-1===t||t>i)&&s-r<1&&e-r<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${r} -> ${s} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;let i=Ko(e,this.fragmentTracker);i&&"fragment"in i?i=i.fragment:i||(i=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:i,buffer:u.len,bufferInfo:u})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:s,media:a}=this,o=null==(r=this.hls)?void 0:r.config;if(!a||!s||!o)return;const l=null==(i=this.hls)?void 0:i.latestLevelDetails,u=Ko(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,r=e.nextStart;if(n&&r){const e=n.getFragAtPos(t,f),i=n.getFragAtPos(r,f);if(e&&i)return i.sn-e.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&null!==i&&n&&t){this.stallReported=!0;const r=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${nt(e)})`);this.warn(r.message),t.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_STALLED_ERROR,fatal:!1,error:r,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=null==(t=this.hls)?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,u=tn.bufferInfo(r,s,0),c=s<u.start?u.start:u.nextStart;if(c&&this.hls){const t=u.len<=i.maxBufferHole,h=u.len>0&&u.len<1&&r.readyState<3,p=c-s;if(p>0&&(t||h)){if(p>i.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(Go(this.hls.inFlightFragments,c))return 0;let t=!1,r=e.end;for(;r<c;){const e=Ko(r,n);if(!e){t=!0;break}r+=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,r.currentTime=t,null==e||!e.gap){const n=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${t}`),r={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?r.part=e:r.frag=e),this.hls.trigger(l.ERROR,r)}return t}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=null==t?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const u=s+(r+1)*i.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 ${i.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 Go(e,t){const n=Wo(e.main);if(n&&n.start<=t)return n;const r=Wo(e.audio);return r&&r.start<=t?r:null}function Wo(e){if(!e)return null;switch(e.state){case br:case _r:case Tr:case Dr:return null}return e.frag}function Ko(e,t){return t.getAppendedFrag(e,f)||t.getPartialFragment(e)}function Vo(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Qo(e,t,n,r,i){let s=new e(t,n,"");try{s.value=r,i&&(s.type=i)}catch(a){s=new e(t,n,nt(i?x({type:i},r):r))}return s}const qo=(()=>{const e=Vo();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&&xa(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:r}=this.hls.config;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Vo();if(s)for(let e=0;e<i.length;e++){const t=i[e].type;if(t===oi.emsg&&!n||!r)continue;const a=ri(i[e].data),o=i[e].pts;let l=o+i[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(!ii(n)){this.updateId3CueEnds(o,t);const e=Qo(s,o,l,n,t);e&&this.id3Track.addCue(e)}}}}updateId3CueEnds(e,t){var n;const r=null==(n=this.id3Track)?void 0:n.cues;if(r)for(let n=r.length;n--;){const i=r[n];i.type===t&&i.startTime<e&&i.endTime===qo&&(i.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:a,enableID3MetadataCues:o}}=s;if(i&&(a||o)){let e;e="audio"===r?e=>e.type===oi.audioId3&&o:"video"===r?e=>e.type===oi.emsg&&a:e=>e.type===oi.audioId3&&o||e.type===oi.emsg&&a,wa(i,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:i,enableDateRangeMetadataCues:s,interstitialsController:a}=this.hls.config;if(!s)return;const o=Vo();if(n&&i&&!a){const{fragmentStart:t,fragmentEnd:r}=e;let i=this.assetCue;i?(i.startTime=t,i.endTime=r):o&&(i=this.assetCue=Qo(o,t,r,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),i&&(i.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(i),i.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],r=null==(f=d[n])?void 0:f.cues;delete d[n],r&&Object.keys(r).forEach((e=>{const t=r[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&&r(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],r=n.startTime,i=d[t],s=(null==i?void 0:i.cues)||{};let l=(null==i?void 0:i.durationKnown)||!1,h=qo;const{duration:f,endDate:p}=n;if(p&&null!==f)h=r+f,l=!0;else if(n.endOnNext&&!l){const e=c.reduce(((e,t)=>{if(t!==n.id){const r=u[t];if(r.class===n.class&&r.startDate>n.startDate&&(!e||n.startDate<e.startDate))return r}return e}),null);e&&(h=e.startTime,l=!0)}const g=Object.keys(n.attr);for(let e=0;e<g.length;e++){const u=g[e];if("ID"===(m=u)||"CLASS"===m||"CUE"===m||"START-DATE"===m||"DURATION"===m||"END-DATE"===m||"END-ON-NEXT"===m)continue;const c=s[u];if(c)!l||null!=i&&i.durationKnown?Math.abs(c.startTime-r)>.01&&(c.startTime=r,c.endTime=h):c.endTime=h;else if(o){let e=n.attr[u];dn(u)&&(e=N(e));const i=Qo(o,r,h,{key:u,data:e},oi.dateRange);i&&(i.id=t,this.id3Track.addCue(i),s[u]=i,a&&("X-ASSET-LIST"!==u&&"X-ASSET-URL"!==u||i.addEventListener("enter",this.onEventCueEnter)))}}d[t]={cues:s,dateRange:n,durationKnown:l}}var m}}}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:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||1===i||!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,i)),n=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,r=Math.min(t,Math.max(1,n));this.changeMediaPlaybackRate(e,r)}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:r}=e,{liveSyncDuration:i,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!==i?i:s*r);const u=r;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 r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,a=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),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,r;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(r=this.targetLatency)?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return 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,r=[],i={},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:m,"FRAME-RATE":g,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:_,"VIDEO-RANGE":b}=t,x=`${`${y||"."}-`}${e.bitrate}-${_}-${g}-${m}-${b}-${v}`;if(i[x])if(i[x].uri===e.url||e.attrs["PATHWAY-ID"])i[x].addGroupId("audio",t.AUDIO),i[x].addGroupId("text",t.SUBTITLES);else{const t=s[x]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const n=this.createLevel(e);i[x]=n,r.push(n)}else{const t=this.createLevel(e);i[x]=t,s[x]=1,r.push(t)}})),this.filterAndSortMediaOptions(r,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=He(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,r,i){var s;let u=[],c=[],d=e;const h=(null==(s=t.stats)?void 0:s.parsing)||{};if((n||r)&&i&&(d=d.filter((({videoCodec:e,videoRange:t,width:n,height:r})=>{return(!!e||!(!n||!r))&&(!!(i=t)&&We.indexOf(i)>-1);var i}))),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 r=new Error(e);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:r,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=Se(e.videoCodec),r=Se(t.videoCodec);if(n!==r)return r-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const n=Pe(e.codecSet),r=Pe(t.codecSet);if(n!==r)return r-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 m;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==(m=this.hls.userConfig)?void 0:m.abrEwmaDefaultEstimate)){const e=Math.min(t,this.hls.config.abrEwmaDefaultEstimateMax);e>n&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}const g=i&&!r,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:i,video:r,altAudio:y&&!g&&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"),r=e<0;if(this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.LEVEL_SWITCH_ERROR,level:e,fatal:r,error:n,reason:n.message}),r)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===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}${i?" with Pathway "+i:""}`);const c={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,c);const d=s.details;if(!d||d.live){const e=this.switchParams(s.uri,null==r?void 0:r.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:r,details:i}=t,s=t.levelInfo;var a;if(!s)return this.warn(`Invalid level index ${r}`),void(null!=(a=t.deliveryDirectives)&&a.skip&&(i.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(r,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,a=null==s?void 0:s.age;this.log(`Loading level index ${r}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(l.LEVEL_LOADING,{url:n,level:r,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)));lr(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 r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),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 rl(){if(!S())return!1;const e=nl();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}class il extends Lr{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||!r(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:r}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=r.startLevel;-1===e&&(r.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=r.firstAutoLevel),r.nextLoadLevel=e,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=br,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=_r}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Pr:{const{levels:e,level:t}=this,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=br;break}if(this.hls.nextLoadLevel!==this.level){this.state=br;break}break}case Er:this.checkRetryDate()}this.state===br&&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:r}=this;if(null===t||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==n||!n[i])return;const s=n[i],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=Tr)}if(!this.buffering)return;e.loadLevel!==i&&-1===e.manualLevel&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const u=s.details;if(!u||this.state===Pr||this.waitForLive(s))return this.level=i,this.state=Pr,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&&K(p)&&this.fragmentTracker.getState(p)!==Ot){var m;const e=(null!=(m=this.backtrackFragment)?m: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?Y:X,t=(e===X?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 r=this.fragmentTracker.getState(e);r===Nt||r===Mt?K(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 r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(null!=i&&i.live){const e=this.getMainFwdBufferInfo();if(!e||e.len<2*i.targetduration)return}if(!t.paused&&e){const t=e[this.hls.nextLoadLevel],r=this.fragLastKbps;n=r&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*r)+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,r=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(r,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 xr:case wr:case Er:case kr:case Cr:this.state=br}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;gr(n,"playing",this.onMediaPlaying),gr(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(vr(n,"playing",this.onMediaPlaying),vr(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,r=!1;for(let e=0;e<t.levels.length;e++){const i=t.levels[e].audioCodec;i&&(n=n||-1!==i.indexOf("mp4a.40.2"),r=r||-1!==i.indexOf("mp4a.40.5"))}this.audioCodecSwitch=n&&r&&!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!==br)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=Pr)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,a=t.details,o=a.totalduration;if(!r)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!==wr&&this.state!==Er||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,i||this.setStartPosition(a,d),this.hls.trigger(l.LEVEL_UPDATED,{details:a,level:s}),this.state===Pr){if(this.waitForCdnTuneIn(a))return;this.state=br}i&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,a=e.edge,o=i>=s-t.maxFragLookUpTolerance&&i<=a;if(null!==r&&n.duration>r&&(i<r||!o)){const s=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!o&&n.readyState<4||i<a-s)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${r.toFixed(3)}`),"buffered"===this.config.liveSyncMode){var l;const e=tn.bufferInfo(n,r,0);if(null==(l=e.buffered)||!l.length)return void(n.currentTime=r);if(e.start<=i)return void(n.currentTime=r);const{nextStart:t}=tn.bufferedInfo(e.buffered,i,0);t&&(n.currentTime=t)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s)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=r?r.index:-1,m=-1!==p,g=new $t(n.level,n.sn,n.stats.chunkCount,i.byteLength,p,m),v=this.initPTS[n.cc];h.push(i,c,d,l,n,r,o.totalduration,u,g,v)}onAudioTrackSwitching(e,t){const n=this.hls,r=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(r)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 r,i,s=!1;for(const e in n){const t=n[e];if("main"===t.id){if(i=e,r=t,"video"===e){const t=n[e];t&&(this.videoBuffer=t.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===f;if(i){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===Cr&&(this.state=br));const e=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),K(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&tn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal)this.state=Dr;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!==Pr||(null==(n=t.context)?void 0:n.type)!==c||(this.state=br);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=br,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==Y||!this.altAudio){const e=(t===X?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 r=this.timelineOffset;r&&n&&(n+=r);const i=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==i?void 0:i.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,r=null==e?void 0:e.frag;if(!r||this.fragContextChanged(r))return;t.fragmentError=0,this.state=br,this.startFragRequested=!1,this.bitrateTest=!1;const i=r.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),n.trigger(l.FRAG_LOADED,e),r.bitrateTest=!1})).catch((t=>{this.state!==_r&&this.state!==Dr&&(this.warn(t),this.resetFragmentLoading(e))}))}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:i,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}=i,{details:m}=c,g=this.altAudio?void 0:i.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=kr,p){const e=p.tracks;if(e){const r=o.initSegment||o;if(this.unhandledEncryptionError(p,o))return;this._bufferInitSegment(c,e,r,s),n.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:r,id:t,tracks:e})}const i=p.initPTS,a=p.timescale,u=this.initPTS[o.cc];if(r(i)&&(!u||u.baseTime!==i||u.timescale!==a)){const e=p.trackId;this.initPTS[o.cc]={baseTime:i,timescale:a,trackId:e},n.trigger(l.INIT_PTS_FOUND,{frag:o,id:t,initPTS:i,timescale:a,trackId:e})}}if(d&&m){g&&"audiovideo"===d.type&&this.logMuxedErr(o);const e=m.fragments[o.sn-1-m.startSN],t=o.sn===m.startSN,n=!e||o.cc>e.cc;if(!1!==i.independent){const{startPTS:e,endPTS:r,startDTS:i,endDTS:a}=d;if(u)u.elementaryStreams[d.type]={startPTS:e,endPTS:r,startDTS:i,endDTS:a};else if(d.firstKeyFrame&&d.independent&&1===s.id&&!n&&(this.couldBacktrack=!0),d.dropped&&d.independent){const i=this.getMainFwdBufferInfo(),s=(i?i.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,r,o.start,a,!0)}else t&&e-(m.appliedTimelineOffset||0)>2&&(o.gap=!0);o.setElementaryStreamInfo(d.type,e,r,i,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(g){const{startPTS:e,endPTS:t,startDTS:n,endDTS:r}=g;u&&(u.elementaryStreams[Y]={startPTS:e,endPTS:t,startDTS:n,endDTS:r}),o.setElementaryStreamInfo(Y,e,t,n,r),this.bufferFragmentData(g,o,u,s)}if(m&&null!=f&&f.samples.length){const e={id:t,frag:o,details:m,samples:f.samples};n.trigger(l.FRAG_PARSING_METADATA,e)}if(m&&h){const e={id:t,frag:o,details:m,samples:h.samples};n.trigger(l.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn(`${K(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==kr)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:a}=t;if(i){const n=e.audioCodec;let r=Re(i.codec,n);"mp4a"===r&&(r="mp4a.40.5");const s=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){r&&(r=-1!==r.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=i.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===s.indexOf("firefox")&&(r="mp4a.40.5")}r&&-1!==r.indexOf("mp4a.40.5")&&-1!==s.indexOf("android")&&"audio/mpeg"!==i.container&&(r="mp4a.40.2",this.log(`Android: force audio codec to ${r}`)),n&&n!==r&&this.log(`Swapping manifest audio codec "${n}" for "${r}"`),i.levelCodec=r,i.id=f,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${r||""}/${n||""}/${i.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 i=t[e].initSegment;null!=i&&i.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:e,data:i,frag:n,part:null,chunkMeta:r,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=br}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 r(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(r(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 r=e+1e3*(t-n.start);return new Date(r)}}}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 r=this.keyIdToKeyInfo[n].loader;if(r){var t;if(e&&e!==(null==(t=r.context)?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e].loader;t&&t.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(e,t=o.KEY_LOAD_ERROR,n,r,i){return new qt({type:a.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(e.cc<=s.cc&&(!K(e)||!K(s)||e.sn<s.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(s).then((e=>{if(!this.emeController)return;s.setKeyFormat(e);const t=Dn(e);return t?this.emeController.getKeySystemAccess([t]):void 0}))}if(this.config.requireKeySystemAccessOnStart){const e=Pn(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,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){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=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,o.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const a=al(i);let l=this.keyIdToKeyInfo[a];if(null!=(n=l)&&n.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if(this.emeController&&null!=(r=l)&&r.keyLoadPromise){switch(this.emeController.getKeyStatus(l.decryptdata)){case"usable":case"usable-in-future":return l.keyLoadPromise.then((t=>{const{keyInfo:n}=t;return i.key=n.decryptdata.key,{frag:e,keyInfo:n}}))}}switch(this.log(`${this.keyIdToKeyInfo[a]?"Rel":"L"}oading${i.keyId?" keyId: "+I(i.keyId):""} URI: ${i.uri} from ${e.type} ${e.level}`),l=this.keyIdToKeyInfo[a]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.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: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);return(e.keyLoadPromise=r.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,r=new(0,n.loader)(n);return t.keyLoader=e.loader=r,e.keyLoadPromise=new Promise(((i,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,r)=>{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"),r));l.decryptdata.key=a.decryptdata.key=new Uint8Array(e.data),a.keyLoader=null,l.loader=null,i({frag:a,keyInfo:l})},onError:(e,n,r,i)=>{this.resetLoader(n),s(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,new Error(`HTTP Error ${e.code} loading key ${e.text}`),r,x({url:a.url,data:void 0},e)))},onTimeout:(e,n,r)=>{this.resetLoader(n),s(this.createKeyLoadError(t,o.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),r))},onAbort:(e,n,r)=>{this.resetLoader(n),s(this.createKeyLoadError(t,o.INTERNAL_ABORTED,new Error("key loading aborted"),r))}};r.load(a,u,c)}))}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null);const s=al(n.decryptdata)||r;delete this.keyIdToKeyInfo[s],i&&i.destroy()}}function al(e){if(e.keyFormat!==kn){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 m;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,r=t.loader,i=new(n||r)(t);return this.loaders[e.type]=i,i}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:r,pathwayId:i,url:s,deliveryDirectives:a,levelInfo:o}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:c,url:s,deliveryDirectives:a,levelOrTrack:o})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:d,url:i,deliveryDirectives:s,levelOrTrack:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:a}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:h,url:i,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 i,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(i=e.type===u?n.manifestLoadPolicy.default:_({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(e),r(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);i=_({},i,{maxTimeToFirstByteMs:Math.min(t,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,i.maxTimeToFirstByteMs)})}}}const a=i.errorRetry||i.timeoutRetry||{},o={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(e,t,n,r)=>{const i=this.getInternalLoader(n);this.resetInternalLoader(n.type);const s=e.data;t.parsing.start=performance.now(),zn.isMediaPlaylist(s)||n.type!==u?this.handleTrackOrLevelPlaylist(e,t,n,r||null,i):this.handleMasterPlaylist(e,t,n,r)},onError:(e,t,n,r)=>{this.handleNetworkError(t,n,!1,e,r)},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,r){const i=this.hls,s=e.data,a=ll(e,n),o=zn.parseMasterPlaylist(s,a);if(o.playlistParsingError)return t.parsing.end=performance.now(),void this.handleManifestParsingError(e,n,o.playlistParsingError,r,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:r,videoCodec:i}=e;for(let s=t.length;s--;){const a=t[s];Ce(a,"audio",n)?(e.audioCodec=r=r?`${r},${a}`:a,Ae.audio[r.substring(0,4)]=2,t.splice(s,1)):Ce(a,"video",n)&&(e.videoCodec=i=i?`${i},${a}`:a,Ae.video[i.substring(0,4)]=2,t.splice(s,1))}}}));const{AUDIO:m=[],SUBTITLES:g,"CLOSED-CAPTIONS":v}=zn.parseMasterPlaylistMedia(s,a,o);if(m.length){m.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"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new cn({}),bitrate:0,url:""}))}i.trigger(l.MANIFEST_LOADED,{levels:c,audioTracks:m,subtitles:g,captions:v,contentSteering:u,url:a,stats:t,networkDetails:r,sessionData:d,sessionKeys:h,startTimeOffset:f,variableList:p})}handleTrackOrLevelPlaylist(e,t,n,i,s){const a=this.hls,{id:o,level:c,type:d}=n,h=ll(e,n),f=r(c)?c:r(o)?o:0,p=ol(n),m=zn.parseLevelPlaylist(e.data,h,f,p,0,this.variableList);if(d===u){const e={attrs:new cn({}),bitrate:0,details:m,name:"",url:h};m.requestScheduled=t.loading.start+ir(m,0),a.trigger(l.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:h,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=m,this.handlePlaylistLoaded(m,e,t,n,i,s)}handleManifestParsingError(e,t,n,r,i){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:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===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,m=!1;const g=this.getInternalLoader(e);switch(e.type){case u:p=n?o.MANIFEST_LOAD_TIMEOUT:o.MANIFEST_LOAD_ERROR,m=!0;break;case c:p=n?o.LEVEL_LOAD_TIMEOUT:o.LEVEL_LOAD_ERROR,m=!1;break;case d:p=n?o.AUDIO_TRACK_LOAD_TIMEOUT:o.AUDIO_TRACK_LOAD_ERROR,m=!1;break;case h:p=n?o.SUBTITLE_TRACK_LOAD_TIMEOUT:o.SUBTITLE_LOAD_ERROR,m=!1}g&&this.resetInternalLoader(e.type);const v={type:a.NETWORK_ERROR,details:p,fatal:m,url:e.url,loader:g,context:e,error:f,networkDetails:t,stats:i};if(r){const n=(null==t?void 0:t.url)||e.url;v.response=x({url:n,data:void 0},r)}this.hls.trigger(l.ERROR,v)}handlePlaylistLoaded(e,t,n,r,i,s){const p=this.hls,{type:m,level:g,levelOrTrack:v,id:y,groupId:_,deliveryDirectives:b}=r,x=ll(t,r),w=ol(r);let E="number"==typeof r.level&&w===f?g:void 0;const A=e.playlistParsingError;if(A){if(this.hls.logger.warn(`${A} ${e.url}`),!p.config.ignorePlaylistParsingErrors)return void p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:x,error:A,reason:A.message,response:t,context:r,level:E,parent:w,networkDetails:i,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)),m){case u:case c:if(E)if(v){if(v!==p.levels[E]){const e=p.levels.indexOf(v);e>-1&&(E=e)}}else E=0;p.trigger(l.LEVEL_LOADED,{details:e,levelInfo:v||p.levels[0],level:E||0,id:y||0,stats:n,networkDetails:i,deliveryDirectives:b,withoutMultiVariant:m===u});break;case d:p.trigger(l.AUDIO_TRACK_LOADED,{details:e,track:v,id:y||0,groupId:_||"",stats:n,networkDetails:i,deliveryDirectives:b});break;case h:p.trigger(l.SUBTITLE_TRACK_LOADED,{details:e,track:v,id:y||0,groupId:_||"",stats:n,networkDetails:i,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:x,error:s,reason:s.message,response:t,context:r,level:E,parent:w,networkDetails:i,stats:n})}}}class cl{static get version(){return jr}static isMSESupported(){return rl()}static isSupported(){return function(){if(!rl())return!1;const e=S();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(De(t,"video"))))||["mp4a.40.2","fLaC"].some((t=>e.isTypeSupported(De(t,"audio")))))}()}static getMediaSource(){return S()}static get Events(){return l}static get MetadataSchema(){return oi}static get ErrorTypes(){return a}static get ErrorDetails(){return o}static get DefaultConfig(){return cl.defaultConfig?cl.defaultConfig:Zo}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 Fr,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 r=k();if("object"==typeof console&&!0===e||"object"==typeof e){const i=["debug","log","info","warn","error"];i.forEach((t=>{r[t]=C(t,e,n)}));try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.12`)}catch(e){return k()}i.forEach((t=>{T[t]=C(t,e)}))}else _(T,r);return r}(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 r=Uo(e),i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((e=>{const s=`${"level"===e?"playlist":e}LoadPolicy`,a=void 0===t[s],o=[];i.forEach((n=>{const i=`${e}Loading${n}`,l=t[i];if(void 0!==l&&a){o.push(i);const e=r[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])}`)})),x(x({},r),t)}(cl.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Yo(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:a,fpsController:o}=n,u=new a(this),c=this.abrController=new r(this),d=new Ft(this),h=n.interstitialsController,f=h?this.interstitialsController=new h(this,cl):null,p=this.bufferController=new i(this,d),m=this.capLevelController=new s(this),g=new o(this),v=new ul(this),y=n.contentSteeringController,b=y?new y(this):null,w=this.levelController=new el(this,b),E=new Jo(this),A=new sl(this.config,this.logger),D=this.streamController=new il(this,d,A),S=this.gapController=new Xo(this,d);m.setStreamController(D),g.setStreamController(D);const P=[v,w,D];f&&P.splice(1,0,f),b&&P.splice(1,0,b),this.networkControllers=P;const L=[c,p,S,m,g,E,d];this.audioTrackController=this.createController(n.audioTrackController,P);const I=n.audioStreamController;I&&P.push(this.audioStreamController=new I(this,d,A)),this.subtitleTrackController=this.createController(n.subtitleTrackController,P);const N=n.subtitleStreamController;N&&P.push(this.subtititleStreamController=new N(this,d,A)),this.createController(n.timelineController,L),A.emeController=this.emeController=this.createController(n.emeController,L),this.cmcdController=this.createController(n.cmcdController,L),this.latencyController=this.createController($o,L),this.coreComponents=L,P.push(u);const R=u.onErrorOut;"function"==typeof R&&this.on(l.ERROR,R,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,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(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,r=t?e:{media:n};this._media=n,this.trigger(l.MEDIA_ATTACHING,r)}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,r=this._url=Z.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(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[m]=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 Ge.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 r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(r=-1===t&&null!=e&&e.length?e.length-1:t,n)for(let t=r;t--;){const r=e[t].attrs["HDCP-LEVEL"];if(r&&r<=n)return t}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(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 Ue(e,it(t),navigator.mediaCapabilities)}}cl.defaultConfig=void 0}}]); |