You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1331 lines
1.4 MiB
1331 lines
1.4 MiB
!(function(){var Zl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[5402],{70557:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},84105:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},18785:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},73331:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},15277:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},33853:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},62772:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},38819:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},47472:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return re}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},ve=xe,$=E(7657),p=function(ue,G){return te.createElement($.Z,(0,S.Z)({},ue,{ref:G,icon:ve}))},he=te.forwardRef(p),re=he},35593:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return Bt}});var S=E(77321),te=E(52487),xe=E(74416),ve=E(43403),$=E(92310),p=E.n($),he=E(29301),re=E(76846),o=E(96452),ue=E(6089),G=E(80402),v=E(34280),x=E(49658),A=E(59301),T=E(72308),Z=E(77900),ie=E(8654);function M(me){var ce=me.prefixCls,j=me.align,pe=me.arrow,Re=me.arrowPos,P=pe||{},ne=P.className,fe=P.content,ye=Re.x,ke=ye===void 0?0:ye,Oe=Re.y,Ze=Oe===void 0?0:Oe,it=A.useRef();if(!j||!j.points)return null;var Ye={position:"absolute"};if(j.autoArrow!==!1){var Ke=j.points[0],Tt=j.points[1],St=Ke[0],wt=Ke[1],$t=Tt[0],Yt=Tt[1];St===$t||!["t","b"].includes(St)?Ye.top=Ze:St==="t"?Ye.top=0:Ye.bottom=0,wt===Yt||!["l","r"].includes(wt)?Ye.left=ke:wt==="l"?Ye.left=0:Ye.right=0}return A.createElement("div",{ref:it,className:p()("".concat(ce,"-arrow"),ne),style:Ye},fe)}function U(me){var ce=me.prefixCls,j=me.open,pe=me.zIndex,Re=me.mask,P=me.motion;return Re?A.createElement(Z.default,(0,T.Z)({},P,{motionAppear:!0,visible:j,removeOnLeave:!0}),function(ne){var fe=ne.className;return A.createElement("div",{style:{zIndex:pe},className:p()("".concat(ce,"-mask"),fe)})}):null}var W=A.memo(function(me){var ce=me.children;return ce},function(me,ce){return ce.cache}),le=W,k=A.forwardRef(function(me,ce){var j=me.popup,pe=me.className,Re=me.prefixCls,P=me.style,ne=me.target,fe=me.onVisibleChanged,ye=me.open,ke=me.keepDom,Oe=me.fresh,Ze=me.onClick,it=me.mask,Ye=me.arrow,Ke=me.arrowPos,Tt=me.align,St=me.motion,wt=me.maskMotion,$t=me.forceRender,Yt=me.getPopupContainer,Nt=me.autoDestroy,Jt=me.portal,nn=me.zIndex,w=me.onMouseEnter,R=me.onMouseLeave,ft=me.onPointerEnter,ee=me.ready,Ie=me.offsetX,pn=me.offsetY,ze=me.offsetR,Ge=me.offsetB,Je=me.onAlign,ae=me.onPrepare,Ee=me.stretch,De=me.targetWidth,He=me.targetHeight,q=typeof j=="function"?j():j,Ut=ye||ke,Pe=(Yt==null?void 0:Yt.length)>0,Qt=A.useState(!Yt||!Pe),an=(0,te.Z)(Qt,2),kt=an[0],It=an[1];if((0,v.Z)(function(){!kt&&Pe&&ne&&It(!0)},[kt,Pe,ne]),!kt)return null;var Et="auto",xt={left:"-1000vw",top:"-1000vh",right:Et,bottom:Et};if(ee||!ye){var rn,_e=Tt.points,Ae=Tt.dynamicInset||((rn=Tt._experimental)===null||rn===void 0?void 0:rn.dynamicInset),ct=Ae&&_e[0][1]==="r",We=Ae&&_e[0][0]==="b";ct?(xt.right=ze,xt.left=Et):(xt.left=Ie,xt.right=Et),We?(xt.bottom=Ge,xt.top=Et):(xt.top=pn,xt.bottom=Et)}var at={};return Ee&&(Ee.includes("height")&&He?at.height=He:Ee.includes("minHeight")&&He&&(at.minHeight=He),Ee.includes("width")&&De?at.width=De:Ee.includes("minWidth")&&De&&(at.minWidth=De)),ye||(at.pointerEvents="none"),A.createElement(Jt,{open:$t||Ut,getContainer:Yt&&function(){return Yt(ne)},autoDestroy:Nt},A.createElement(U,{prefixCls:Re,open:ye,zIndex:nn,mask:it,motion:wt}),A.createElement(he.Z,{onResize:Je,disabled:!ye},function(bt){return A.createElement(Z.default,(0,T.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$t,leavedClassName:"".concat(Re,"-hidden")},St,{onAppearPrepare:ae,onEnterPrepare:ae,visible:ye,onVisibleChanged:function(Xt){var cn;St==null||(cn=St.onVisibleChanged)===null||cn===void 0||cn.call(St,Xt),fe(Xt)}}),function(Ct,Xt){var cn=Ct.className,Wt=Ct.style,xn=p()(Re,cn,pe);return A.createElement("div",{ref:(0,ie.sQ)(bt,ce,Xt),className:xn,style:(0,S.Z)((0,S.Z)((0,S.Z)((0,S.Z)({"--arrow-x":"".concat(Ke.x||0,"px"),"--arrow-y":"".concat(Ke.y||0,"px")},xt),at),Wt),{},{boxSizing:"border-box",zIndex:nn},P),onMouseEnter:w,onMouseLeave:R,onPointerEnter:ft,onClick:Ze},Ye&&A.createElement(M,{prefixCls:Re,arrow:Ye,arrowPos:Ke,align:Tt}),A.createElement(le,{cache:!ye&&!Oe},q))})}))}),Y=k,se=A.forwardRef(function(me,ce){var j=me.children,pe=me.getTriggerDOMNode,Re=(0,ie.Yr)(j),P=A.useCallback(function(fe){(0,ie.mH)(ce,pe?pe(fe):fe)},[pe]),ne=(0,ie.x1)(P,j.ref);return Re?A.cloneElement(j,{ref:ne}):j}),J=se,ge=A.createContext(null),Ce=ge;function Te(me){return me?Array.isArray(me)?me:[me]:[]}function Fe(me,ce,j,pe){return A.useMemo(function(){var Re=Te(j!=null?j:ce),P=Te(pe!=null?pe:ce),ne=new Set(Re),fe=new Set(P);return me&&(ne.has("hover")&&(ne.delete("hover"),ne.add("click")),fe.has("hover")&&(fe.delete("hover"),fe.add("click"))),[ne,fe]},[me,ce,j,pe])}var Q=E(29194);function O(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2?arguments[2]:void 0;return j?me[0]===ce[0]:me[0]===ce[0]&&me[1]===ce[1]}function K(me,ce,j,pe){for(var Re=j.points,P=Object.keys(me),ne=0;ne<P.length;ne+=1){var fe,ye=P[ne];if(O((fe=me[ye])===null||fe===void 0?void 0:fe.points,Re,pe))return"".concat(ce,"-placement-").concat(ye)}return""}function I(me,ce,j,pe){return ce||(j?{motionName:"".concat(me,"-").concat(j)}:pe?{motionName:pe}:null)}function X(me){return me.ownerDocument.defaultView}function z(me){for(var ce=[],j=me==null?void 0:me.parentElement,pe=["hidden","scroll","clip","auto"];j;){var Re=X(j).getComputedStyle(j),P=Re.overflowX,ne=Re.overflowY,fe=Re.overflow;[P,ne,fe].some(function(ye){return pe.includes(ye)})&&ce.push(j),j=j.parentElement}return ce}function g(me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(me)?ce:me}function b(me){return g(parseFloat(me),0)}function B(me,ce){var j=(0,S.Z)({},me);return(ce||[]).forEach(function(pe){if(!(pe instanceof HTMLBodyElement||pe instanceof HTMLHtmlElement)){var Re=X(pe).getComputedStyle(pe),P=Re.overflow,ne=Re.overflowClipMargin,fe=Re.borderTopWidth,ye=Re.borderBottomWidth,ke=Re.borderLeftWidth,Oe=Re.borderRightWidth,Ze=pe.getBoundingClientRect(),it=pe.offsetHeight,Ye=pe.clientHeight,Ke=pe.offsetWidth,Tt=pe.clientWidth,St=b(fe),wt=b(ye),$t=b(ke),Yt=b(Oe),Nt=g(Math.round(Ze.width/Ke*1e3)/1e3),Jt=g(Math.round(Ze.height/it*1e3)/1e3),nn=(Ke-Tt-$t-Yt)*Nt,w=(it-Ye-St-wt)*Jt,R=St*Jt,ft=wt*Jt,ee=$t*Nt,Ie=Yt*Nt,pn=0,ze=0;if(P==="clip"){var Ge=b(ne);pn=Ge*Nt,ze=Ge*Jt}var Je=Ze.x+ee-pn,ae=Ze.y+R-ze,Ee=Je+Ze.width+2*pn-ee-Ie-nn,De=ae+Ze.height+2*ze-R-ft-w;j.left=Math.max(j.left,Je),j.top=Math.max(j.top,ae),j.right=Math.min(j.right,Ee),j.bottom=Math.min(j.bottom,De)}}),j}function F(me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j="".concat(ce),pe=j.match(/^(.*)\%$/);return pe?me*(parseFloat(pe[1])/100):parseFloat(j)}function Se(me,ce){var j=ce||[],pe=(0,te.Z)(j,2),Re=pe[0],P=pe[1];return[F(me.width,Re),F(me.height,P)]}function we(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[me[0],me[1]]}function Ne(me,ce){var j=ce[0],pe=ce[1],Re,P;return j==="t"?P=me.y:j==="b"?P=me.y+me.height:P=me.y+me.height/2,pe==="l"?Re=me.x:pe==="r"?Re=me.x+me.width:Re=me.x+me.width/2,{x:Re,y:P}}function je(me,ce){var j={t:"b",b:"t",l:"r",r:"l"};return me.map(function(pe,Re){return Re===ce?j[pe]||"c":pe}).join("")}function et(me,ce,j,pe,Re,P,ne){var fe=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Re[pe]||{}}),ye=(0,te.Z)(fe,2),ke=ye[0],Oe=ye[1],Ze=A.useRef(0),it=A.useMemo(function(){return ce?z(ce):[]},[ce]),Ye=A.useRef({}),Ke=function(){Ye.current={}};me||Ke();var Tt=(0,ue.Z)(function(){if(ce&&j&&me){let Ar=function(Tr,Zr){var ni=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xn,Gr=q.x+Tr,Nr=q.y+Zr,or=Gr+rn,Jn=Nr+xt,qn=Math.max(Gr,ni.left),Lr=Math.max(Nr,ni.top),Fr=Math.min(or,ni.right),ri=Math.min(Jn,ni.bottom);return Math.max(0,(Fr-qn)*(ri-Lr))},ar=function(){Tn=q.y+vn,Hn=Tn+xt,jn=q.x+bn,$r=jn+rn};var $t,Yt,Nt=ce,Jt=Nt.ownerDocument,nn=X(Nt),w=nn.getComputedStyle(Nt),R=w.width,ft=w.height,ee=w.position,Ie=Nt.style.left,pn=Nt.style.top,ze=Nt.style.right,Ge=Nt.style.bottom,Je=Nt.style.overflow,ae=(0,S.Z)((0,S.Z)({},Re[pe]),P),Ee=Jt.createElement("div");($t=Nt.parentElement)===null||$t===void 0||$t.appendChild(Ee),Ee.style.left="".concat(Nt.offsetLeft,"px"),Ee.style.top="".concat(Nt.offsetTop,"px"),Ee.style.position=ee,Ee.style.height="".concat(Nt.offsetHeight,"px"),Ee.style.width="".concat(Nt.offsetWidth,"px"),Nt.style.left="0",Nt.style.top="0",Nt.style.right="auto",Nt.style.bottom="auto",Nt.style.overflow="hidden";var De;if(Array.isArray(j))De={x:j[0],y:j[1],width:0,height:0};else{var He=j.getBoundingClientRect();De={x:He.x,y:He.y,width:He.width,height:He.height}}var q=Nt.getBoundingClientRect(),Ut=Jt.documentElement,Pe=Ut.clientWidth,Qt=Ut.clientHeight,an=Ut.scrollWidth,kt=Ut.scrollHeight,It=Ut.scrollTop,Et=Ut.scrollLeft,xt=q.height,rn=q.width,_e=De.height,Ae=De.width,ct={left:0,top:0,right:Pe,bottom:Qt},We={left:-Et,top:-It,right:an-Et,bottom:kt-It},at=ae.htmlRegion,bt="visible",Ct="visibleFirst";at!=="scroll"&&at!==Ct&&(at=bt);var Xt=at===Ct,cn=B(We,it),Wt=B(ct,it),xn=at===bt?Wt:cn,on=Xt?Wt:xn;Nt.style.left="auto",Nt.style.top="auto",Nt.style.right="0",Nt.style.bottom="0";var Pn=Nt.getBoundingClientRect();Nt.style.left=Ie,Nt.style.top=pn,Nt.style.right=ze,Nt.style.bottom=Ge,Nt.style.overflow=Je,(Yt=Nt.parentElement)===null||Yt===void 0||Yt.removeChild(Ee);var Gt=g(Math.round(rn/parseFloat(R)*1e3)/1e3),Vt=g(Math.round(xt/parseFloat(ft)*1e3)/1e3);if(Gt===0||Vt===0||(0,re.Sh)(j)&&!(0,Q.Z)(j))return;var Sn=ae.offset,En=ae.targetOffset,gn=Se(q,Sn),Yn=(0,te.Z)(gn,2),An=Yn[0],fn=Yn[1],tt=Se(De,En),Qe=(0,te.Z)(tt,2),gt=Qe[0],Lt=Qe[1];De.x-=gt,De.y-=Lt;var ot=ae.points||[],zt=(0,te.Z)(ot,2),At=zt[0],jt=zt[1],en=we(jt),qt=we(At),wn=Ne(De,en),Cn=Ne(q,qt),Kn=(0,S.Z)({},ae),bn=wn.x-Cn.x+An,vn=wn.y-Cn.y+fn,nr=Ar(bn,vn),ir=Ar(bn,vn,Wt),Rn=Ne(De,["t","l"]),On=Ne(q,["t","l"]),Nn=Ne(De,["b","r"]),Un=Ne(q,["b","r"]),Bn=ae.overflow||{},Wn=Bn.adjustX,ur=Bn.adjustY,sr=Bn.shiftX,Qn=Bn.shiftY,lt=function(Zr){return typeof Zr=="boolean"?Zr:Zr>=0},Tn,Hn,jn,$r;ar();var Vn=lt(ur),gr=qt[0]===en[0];if(Vn&&qt[0]==="t"&&(Hn>on.bottom||Ye.current.bt)){var kn=vn;gr?kn-=xt-_e:kn=Rn.y-Un.y-fn;var Ir=Ar(bn,kn),Br=Ar(bn,kn,Wt);Ir>nr||Ir===nr&&(!Xt||Br>=ir)?(Ye.current.bt=!0,vn=kn,fn=-fn,Kn.points=[je(qt,0),je(en,0)]):Ye.current.bt=!1}if(Vn&&qt[0]==="b"&&(Tn<on.top||Ye.current.tb)){var pr=vn;gr?pr+=xt-_e:pr=Nn.y-On.y-fn;var ui=Ar(bn,pr),si=Ar(bn,pr,Wt);ui>nr||ui===nr&&(!Xt||si>=ir)?(Ye.current.tb=!0,vn=pr,fn=-fn,Kn.points=[je(qt,0),je(en,0)]):Ye.current.tb=!1}var Yr=lt(Wn),Xr=qt[1]===en[1];if(Yr&&qt[1]==="l"&&($r>on.right||Ye.current.rl)){var _n=bn;Xr?_n-=rn-Ae:_n=Rn.x-Un.x-An;var cr=Ar(_n,vn),dr=Ar(_n,vn,Wt);cr>nr||cr===nr&&(!Xt||dr>=ir)?(Ye.current.rl=!0,bn=_n,An=-An,Kn.points=[je(qt,1),je(en,1)]):Ye.current.rl=!1}if(Yr&&qt[1]==="r"&&(jn<on.left||Ye.current.lr)){var vr=bn;Xr?vr+=rn-Ae:vr=Nn.x-On.x-An;var Qr=Ar(vr,vn),kr=Ar(vr,vn,Wt);Qr>nr||Qr===nr&&(!Xt||kr>=ir)?(Ye.current.lr=!0,bn=vr,An=-An,Kn.points=[je(qt,1),je(en,1)]):Ye.current.lr=!1}ar();var xr=sr===!0?0:sr;typeof xr=="number"&&(jn<Wt.left&&(bn-=jn-Wt.left-An,De.x+Ae<Wt.left+xr&&(bn+=De.x-Wt.left+Ae-xr)),$r>Wt.right&&(bn-=$r-Wt.right-An,De.x>Wt.right-xr&&(bn+=De.x-Wt.right+xr)));var Hr=Qn===!0?0:Qn;typeof Hr=="number"&&(Tn<Wt.top&&(vn-=Tn-Wt.top-fn,De.y+_e<Wt.top+Hr&&(vn+=De.y-Wt.top+_e-Hr)),Hn>Wt.bottom&&(vn-=Hn-Wt.bottom-fn,De.y>Wt.bottom-Hr&&(vn+=De.y-Wt.bottom+Hr)));var hr=q.x+bn,ai=hr+rn,In=q.y+vn,li=In+xt,oi=De.x,ti=oi+Ae,rr=De.y,di=rr+_e,_i=Math.max(hr,oi),hi=Math.min(ai,ti),zn=(_i+hi)/2,fi=zn-hr,yi=Math.max(In,rr),tn=Math.min(li,di),Vr=(yi+tn)/2,pi=Vr-In;ne==null||ne(ce,Kn);var ci=Pn.right-q.x-(bn+q.width),wr=Pn.bottom-q.y-(vn+q.height);Oe({ready:!0,offsetX:bn/Gt,offsetY:vn/Vt,offsetR:ci/Gt,offsetB:wr/Vt,arrowX:fi/Gt,arrowY:pi/Vt,scaleX:Gt,scaleY:Vt,align:Kn})}}),St=function(){Ze.current+=1;var Yt=Ze.current;Promise.resolve().then(function(){Ze.current===Yt&&Tt()})},wt=function(){Oe(function(Yt){return(0,S.Z)((0,S.Z)({},Yt),{},{ready:!1})})};return(0,v.Z)(wt,[pe]),(0,v.Z)(function(){me||wt()},[me]),[ke.ready,ke.offsetX,ke.offsetY,ke.offsetR,ke.offsetB,ke.arrowX,ke.arrowY,ke.scaleX,ke.scaleY,ke.align,St]}var qe=E(80702);function rt(me,ce,j,pe,Re){(0,v.Z)(function(){if(me&&ce&&j){let Ze=function(){pe(),Re()};var P=ce,ne=j,fe=z(P),ye=z(ne),ke=X(ne),Oe=new Set([ke].concat((0,qe.Z)(fe),(0,qe.Z)(ye)));return Oe.forEach(function(it){it.addEventListener("scroll",Ze,{passive:!0})}),ke.addEventListener("resize",Ze,{passive:!0}),pe(),function(){Oe.forEach(function(it){it.removeEventListener("scroll",Ze),ke.removeEventListener("resize",Ze)})}}},[me,ce,j])}var yt=E(48736),Dt=E(16089);function pt(me,ce,j,pe,Re,P,ne,fe){var ye=A.useRef(me),ke=A.useRef(!1);ye.current!==me&&(ke.current=!0,ye.current=me),A.useEffect(function(){var Oe=(0,Dt.Z)(function(){ke.current=!1});return function(){Dt.Z.cancel(Oe)}},[me]),A.useEffect(function(){if(ce&&pe&&(!Re||P)){var Oe=function(){var ee=!1,Ie=function(Ge){var Je=Ge.target;ee=ne(Je)},pn=function(Ge){var Je=Ge.target;!ke.current&&ye.current&&!ee&&!ne(Je)&&fe(!1)};return[Ie,pn]},Ze=Oe(),it=(0,te.Z)(Ze,2),Ye=it[0],Ke=it[1],Tt=Oe(),St=(0,te.Z)(Tt,2),wt=St[0],$t=St[1],Yt=X(pe);Yt.addEventListener("mousedown",Ye,!0),Yt.addEventListener("click",Ke,!0),Yt.addEventListener("contextmenu",Ke,!0);var Nt=(0,o.A)(j);if(Nt&&(Nt.addEventListener("mousedown",wt,!0),Nt.addEventListener("click",$t,!0),Nt.addEventListener("contextmenu",$t,!0)),0)var Jt,nn,w,R;return function(){Yt.removeEventListener("mousedown",Ye,!0),Yt.removeEventListener("click",Ke,!0),Yt.removeEventListener("contextmenu",Ke,!0),Nt&&(Nt.removeEventListener("mousedown",wt,!0),Nt.removeEventListener("click",$t,!0),Nt.removeEventListener("contextmenu",$t,!0))}}},[ce,j,pe,Re,P])}var vt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ot(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ve.Z,ce=A.forwardRef(function(j,pe){var Re=j.prefixCls,P=Re===void 0?"rc-trigger-popup":Re,ne=j.children,fe=j.action,ye=fe===void 0?"hover":fe,ke=j.showAction,Oe=j.hideAction,Ze=j.popupVisible,it=j.defaultPopupVisible,Ye=j.onPopupVisibleChange,Ke=j.afterPopupVisibleChange,Tt=j.mouseEnterDelay,St=j.mouseLeaveDelay,wt=St===void 0?.1:St,$t=j.focusDelay,Yt=j.blurDelay,Nt=j.mask,Jt=j.maskClosable,nn=Jt===void 0?!0:Jt,w=j.getPopupContainer,R=j.forceRender,ft=j.autoDestroy,ee=j.destroyPopupOnHide,Ie=j.popup,pn=j.popupClassName,ze=j.popupStyle,Ge=j.popupPlacement,Je=j.builtinPlacements,ae=Je===void 0?{}:Je,Ee=j.popupAlign,De=j.zIndex,He=j.stretch,q=j.getPopupClassNameFromAlign,Ut=j.fresh,Pe=j.alignPoint,Qt=j.onPopupClick,an=j.onPopupAlign,kt=j.arrow,It=j.popupMotion,Et=j.maskMotion,xt=j.popupTransitionName,rn=j.popupAnimation,_e=j.maskTransitionName,Ae=j.maskAnimation,ct=j.className,We=j.getTriggerDOMNode,at=(0,xe.Z)(j,vt),bt=ft||ee||!1,Ct=A.useState(!1),Xt=(0,te.Z)(Ct,2),cn=Xt[0],Wt=Xt[1];(0,v.Z)(function(){Wt((0,x.Z)())},[]);var xn=A.useRef({}),on=A.useContext(Ce),Pn=A.useMemo(function(){return{registerSubPopup:function(Ln,Pr){xn.current[Ln]=Pr,on==null||on.registerSubPopup(Ln,Pr)}}},[on]),Gt=(0,G.Z)(),Vt=A.useState(null),Sn=(0,te.Z)(Vt,2),En=Sn[0],gn=Sn[1],Yn=(0,ue.Z)(function(mn){(0,re.Sh)(mn)&&En!==mn&&gn(mn),on==null||on.registerSubPopup(Gt,mn)}),An=A.useState(null),fn=(0,te.Z)(An,2),tt=fn[0],Qe=fn[1],gt=A.useRef(null),Lt=(0,ue.Z)(function(mn){(0,re.Sh)(mn)&&tt!==mn&&(Qe(mn),gt.current=mn)}),ot=A.Children.only(ne),zt=(ot==null?void 0:ot.props)||{},At={},jt=(0,ue.Z)(function(mn){var Ln,Pr,Ur=tt;return(Ur==null?void 0:Ur.contains(mn))||((Ln=(0,o.A)(Ur))===null||Ln===void 0?void 0:Ln.host)===mn||mn===Ur||(En==null?void 0:En.contains(mn))||((Pr=(0,o.A)(En))===null||Pr===void 0?void 0:Pr.host)===mn||mn===En||Object.values(xn.current).some(function(_r){return(_r==null?void 0:_r.contains(mn))||mn===_r})}),en=I(P,It,rn,xt),qt=I(P,Et,Ae,_e),wn=A.useState(it||!1),Cn=(0,te.Z)(wn,2),Kn=Cn[0],bn=Cn[1],vn=Ze!=null?Ze:Kn,nr=(0,ue.Z)(function(mn){Ze===void 0&&bn(mn)});(0,v.Z)(function(){bn(Ze||!1)},[Ze]);var ir=A.useRef(vn);ir.current=vn;var Rn=A.useRef([]);Rn.current=[];var On=(0,ue.Z)(function(mn){var Ln;nr(mn),((Ln=Rn.current[Rn.current.length-1])!==null&&Ln!==void 0?Ln:vn)!==mn&&(Rn.current.push(mn),Ye==null||Ye(mn))}),Nn=A.useRef(),Un=function(){clearTimeout(Nn.current)},Bn=function(Ln){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Un(),Pr===0?On(Ln):Nn.current=setTimeout(function(){On(Ln)},Pr*1e3)};A.useEffect(function(){return Un},[]);var Wn=A.useState(!1),ur=(0,te.Z)(Wn,2),sr=ur[0],Qn=ur[1];(0,v.Z)(function(mn){(!mn||vn)&&Qn(!0)},[vn]);var lt=A.useState(null),Tn=(0,te.Z)(lt,2),Hn=Tn[0],jn=Tn[1],$r=A.useState([0,0]),Vn=(0,te.Z)($r,2),gr=Vn[0],kn=Vn[1],Ir=function(Ln){kn([Ln.clientX,Ln.clientY])},Br=et(vn,En,Pe?gr:tt,Ge,ae,Ee,an),pr=(0,te.Z)(Br,11),ui=pr[0],si=pr[1],Yr=pr[2],Xr=pr[3],_n=pr[4],cr=pr[5],dr=pr[6],vr=pr[7],Qr=pr[8],kr=pr[9],xr=pr[10],Hr=Fe(cn,ye,ke,Oe),hr=(0,te.Z)(Hr,2),ai=hr[0],In=hr[1],li=ai.has("click"),oi=In.has("click")||In.has("contextMenu"),ti=(0,ue.Z)(function(){sr||xr()}),rr=function(){ir.current&&Pe&&oi&&Bn(!1)};rt(vn,tt,En,ti,rr),(0,v.Z)(function(){ti()},[gr,Ge]),(0,v.Z)(function(){vn&&!(ae!=null&&ae[Ge])&&ti()},[JSON.stringify(Ee)]);var di=A.useMemo(function(){var mn=K(ae,P,kr,Pe);return p()(mn,q==null?void 0:q(kr))},[kr,q,ae,P,Pe]);A.useImperativeHandle(pe,function(){return{nativeElement:gt.current,forceAlign:ti}});var _i=A.useState(0),hi=(0,te.Z)(_i,2),zn=hi[0],fi=hi[1],yi=A.useState(0),tn=(0,te.Z)(yi,2),Vr=tn[0],pi=tn[1],ci=function(){if(He&&tt){var Ln=tt.getBoundingClientRect();fi(Ln.width),pi(Ln.height)}},wr=function(){ci(),ti()},Ar=function(Ln){Qn(!1),xr(),Ke==null||Ke(Ln)},ar=function(){return new Promise(function(Ln){ci(),jn(function(){return Ln})})};(0,v.Z)(function(){Hn&&(xr(),Hn(),jn(null))},[Hn]);function Tr(mn,Ln,Pr,Ur){At[mn]=function(_r){var Ci;Ur==null||Ur(_r),Bn(Ln,Pr);for(var ki=arguments.length,Di=new Array(ki>1?ki-1:0),Ri=1;Ri<ki;Ri++)Di[Ri-1]=arguments[Ri];(Ci=zt[mn])===null||Ci===void 0||Ci.call.apply(Ci,[zt,_r].concat(Di))}}(li||oi)&&(At.onClick=function(mn){var Ln;ir.current&&oi?Bn(!1):!ir.current&&li&&(Ir(mn),Bn(!0));for(var Pr=arguments.length,Ur=new Array(Pr>1?Pr-1:0),_r=1;_r<Pr;_r++)Ur[_r-1]=arguments[_r];(Ln=zt.onClick)===null||Ln===void 0||Ln.call.apply(Ln,[zt,mn].concat(Ur))}),pt(vn,oi,tt,En,Nt,nn,jt,Bn);var Zr=ai.has("hover"),ni=In.has("hover"),Gr,Nr;Zr&&(Tr("onMouseEnter",!0,Tt,function(mn){Ir(mn)}),Tr("onPointerEnter",!0,Tt,function(mn){Ir(mn)}),Gr=function(Ln){(vn||sr)&&En!==null&&En!==void 0&&En.contains(Ln.target)&&Bn(!0,Tt)},Pe&&(At.onMouseMove=function(mn){var Ln;(Ln=zt.onMouseMove)===null||Ln===void 0||Ln.call(zt,mn)})),ni&&(Tr("onMouseLeave",!1,wt),Tr("onPointerLeave",!1,wt),Nr=function(){Bn(!1,wt)}),ai.has("focus")&&Tr("onFocus",!0,$t),In.has("focus")&&Tr("onBlur",!1,Yt),ai.has("contextMenu")&&(At.onContextMenu=function(mn){var Ln;ir.current&&In.has("contextMenu")?Bn(!1):(Ir(mn),Bn(!0)),mn.preventDefault();for(var Pr=arguments.length,Ur=new Array(Pr>1?Pr-1:0),_r=1;_r<Pr;_r++)Ur[_r-1]=arguments[_r];(Ln=zt.onContextMenu)===null||Ln===void 0||Ln.call.apply(Ln,[zt,mn].concat(Ur))}),ct&&(At.className=p()(zt.className,ct));var or=(0,S.Z)((0,S.Z)({},zt),At),Jn={},qn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];qn.forEach(function(mn){at[mn]&&(Jn[mn]=function(){for(var Ln,Pr=arguments.length,Ur=new Array(Pr),_r=0;_r<Pr;_r++)Ur[_r]=arguments[_r];(Ln=or[mn])===null||Ln===void 0||Ln.call.apply(Ln,[or].concat(Ur)),at[mn].apply(at,Ur)})});var Lr=A.cloneElement(ot,(0,S.Z)((0,S.Z)({},or),Jn)),Fr={x:cr,y:dr},ri=kt?(0,S.Z)({},kt!==!0?kt:{}):null;return A.createElement(A.Fragment,null,A.createElement(he.Z,{disabled:!vn,ref:Lt,onResize:wr},A.createElement(J,{getTriggerDOMNode:We},Lr)),A.createElement(Ce.Provider,{value:Pn},A.createElement(Y,{portal:me,ref:Yn,prefixCls:P,popup:Ie,className:p()(pn,di),style:ze,target:tt,onMouseEnter:Gr,onMouseLeave:Nr,onPointerEnter:Gr,zIndex:De,open:vn,keepDom:sr,fresh:Ut,onClick:Qt,mask:Nt,motion:en,maskMotion:qt,onVisibleChanged:Ar,onPrepare:ar,forceRender:R,autoDestroy:bt,getPopupContainer:w,align:kr,arrow:ri,arrowPos:Fr,ready:ui,offsetX:si,offsetY:Yr,offsetR:Xr,offsetB:_n,onAlign:ti,stretch:He,targetWidth:zn/vr,targetHeight:Vr/Qr})))});return ce}var Bt=Ot(ve.Z)},50304:function(){"use strict"},76895:function(Kt,nt){"use strict";nt.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},8797:function(Kt,nt,E){"use strict";var S=E(59301),te=E(93314),xe=E(3113),ve=Object.defineProperty,$=Object.defineProperties,p=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,ue=(A,T,Z)=>T in A?ve(A,T,{enumerable:!0,configurable:!0,writable:!0,value:Z}):A[T]=Z,G=(A,T)=>{for(var Z in T||(T={}))re.call(T,Z)&&ue(A,Z,T[Z]);if(he)for(var Z of he(T))o.call(T,Z)&&ue(A,Z,T[Z]);return A},v=(A,T)=>$(A,p(T));const x=({img:A,buttonProps:T={},styles:Z={},customText:ie,ButtonText:M,ButtonClick:U,Buttonclass:W,ButtonTwo:le,imgStyles:k,loading:Y=!1,className:se=""})=>S.createElement("section",{className:`tc animated fadeIn ${se}`,style:G({color:"#999",margin:"100px auto",visibility:Y?"hidden":"visible"},Z)},S.createElement("img",{src:A||te,style:v(G({},k),{pointerEvents:"none",userSelect:"none"})}),S.createElement("p",{className:"mt20 font14"},ie||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),M&&S.createElement(xe.ZP,G({className:W,onClick:U},T),M),le&&le);nt.Z=x},23210:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return W}});var S=E(59301),te={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},xe=E(3113),ve=E(70557),$=E(23954),p=E(6848),he=E(955),re=E(94941),o=E(8797),ue=E(3294),G=E(19381),v=E(59301),x=Object.defineProperty,A=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,ie=(le,k,Y)=>k in le?x(le,k,{enumerable:!0,configurable:!0,writable:!0,value:Y}):le[k]=Y,M=(le,k)=>{for(var Y in k||(k={}))T.call(k,Y)&&ie(le,Y,k[Y]);if(A)for(var Y of A(k))Z.call(k,Y)&&ie(le,Y,k[Y]);return le},U=(le,k,Y)=>new Promise((se,J)=>{var ge=Fe=>{try{Te(Y.next(Fe))}catch(Q){J(Q)}},Ce=Fe=>{try{Te(Y.throw(Fe))}catch(Q){J(Q)}},Te=Fe=>Fe.done?se(Fe.value):Promise.resolve(Fe.value).then(ge,Ce);Te((Y=Y.apply(le,k)).next())}),W=({editOffice:le="view",data:k,theme:Y,type:se,filename:J,monacoEditor:ge,className:Ce,style:Te,close:Fe,onClose:Q,hasMask:O,disabledDownload:K,onImgDimensions:I,showNodata:X,recordInfo:z})=>{const[g,b]=(0,S.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[B,F]=(0,S.useState)(""),[Se,we]=(0,S.useState)(),Ne=window.ENV==="build"?"/react/build":"",je=location.host.startsWith("localhost")?ue.Z.PROXY_SERVER:ue.Z.API_SERVER,qe=10*(1024*1024),rt=(0,S.useRef)();k!=null&&k.startsWith("/api")&&se!=="txt"&&(k=ue.Z.API_SERVER+k);const yt=Ot=>Ot.substring(Ot.lastIndexOf("/")+1).split(".").pop();J&&ge&&(ge.filename=J),(0,S.useEffect)(()=>{var Ot,Bt;const me=(Bt=(Ot=document.cookie)==null?void 0:Ot.replace(/\s/g,""))==null?void 0:Bt.split(";");me==null||me.map(ce=>{let j=ce.split("=");j[0]==="_educoder_session"&&F(j[1])})},[]),(0,S.useEffect)(()=>{se==="office"&&(k.indexOf("bigfilescdn.")>-1||k.indexOf("bigfiles1")>-1?we({url:k,fileType:yt(k),model:k.indexOf("model=edit")?"edit":"view"}):Dt())},[se,k]);const Dt=()=>U(void 0,null,function*(){console.log("data:",k);let Ot=k;k.startsWith("http")||(Ot=location.origin+Ot);let Bt=new URL(Ot).pathname.split("/").pop();const me=yield(0,re.gJ)({attachment_id:Bt});me.url=je+me.url,we(me)}),pt=()=>{if(k.startsWith("http")||k.startsWith("blob:")){vt();return}(0,he.Sv)(J||"educoder",k,J)},vt=()=>{z&&(0,G.fc)({id:z==null?void 0:z.id,watch_type:1,course_id:z==null?void 0:z.course_id}),(0,he.Nd)(J||"educoder",decodeURIComponent(k))};return v.createElement("div",{style:M({},Te||{}),className:`${O&&te.bgBlack} ${se?te.wrp:"hide"}`},Fe&&v.createElement("div",{className:te.close,ref:rt},!!I&&v.createElement(p.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>rt.current},v.createElement("span",{onClick:()=>{Q(),I()}},v.createElement("i",{className:"icon-yulanpizhu"}))),!K&&v.createElement(p.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>rt.current},v.createElement("span",{onClick:vt},v.createElement("i",{className:"icon-quxiaozhiding"}))),v.createElement(p.Z,{title:"\u5173\u95ED",getPopupContainer:()=>rt.current},v.createElement("span",{className:"",onClick:Q},v.createElement("i",{className:"icon-guanbi1"})))),v.createElement("div",{className:`${te[Ce]} ${Ce} ${te.monaco} ${se==="txt"?"show":"hide"}`},se==="txt"&&v.createElement(v.Fragment,null,v.createElement($.ZP,M({},ge)))),se==="audio"&&v.createElement("audio",{src:`${(k==null?void 0:k.indexOf("http://"))>-1||(k==null?void 0:k.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${k}`,autoPlay:!0}),se==="video"&&v.createElement(v.Fragment,null,(k==null?void 0:k.indexOf("http"))>-1?v.createElement("video",{controls:!0,src:`${k}`,autoPlay:!0}):v.createElement("video",{controls:!0,src:`data:video/mp4;base64,${k}`,autoPlay:!0})),se==="office"&&Se&&v.createElement("iframe",{src:`${Ne}/office.html?key=${Se.key}&url=${btoa(Se.url)}&callbackUrl=${je+(Se.callbackUrl||"")}&fileType=${Se.fileType}&title=${Se.title||""}&model=${le}&officeServer=${ue.Z.ONLYOFFICE}&disabledDownload=${!!K}`}),se==="html"&&v.createElement("iframe",{src:k+"&disposition=inline"}),se==="pdf"&&v.createElement("iframe",{src:`${Ne}/js/pdfview/index.html?filename=${J||"educoder.pdf"}&url=${encodeURIComponent(k)}&disabledDownload=${!!K}`}),se==="image"&&v.createElement("img",{src:`${(k==null?void 0:k.indexOf("http://"))>-1||(k==null?void 0:k.indexOf("https://"))>-1?"":"data:image/png;base64,"}${k}`}),(se==="other"||se==="download")&&v.createElement(v.Fragment,null,X?v.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:v.createElement(xe.ZP,{icon:v.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:pt,disabled:K},"\u4E0B\u8F7D")}):v.createElement(xe.ZP,{type:"primary",size:"middle",onClick:pt,disabled:K},v.createElement(ve.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Kt,nt,E){"use strict";E.d(nt,{z:function(){return se},Z:function(){return J}});var S=E(59301),te=E(50304),xe=E(24768),ve=E(64018),$=E(46284),p=E(3294),he=E(955),re=E(15342),o=E(1012),ue=E(23210),G=E(59301),x=({html:ge})=>{const Ce=(0,S.useRef)(null),Te=(0,S.useRef)(null),Fe=`.markdown-body p {
|
|
margin: 0 0 16px 0 !important;
|
|
line-height: 28px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
li {
|
|
list-style-type: none
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
dl {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.markdown-body {
|
|
-ms-text-size-adjust: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: #333;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
word-break: break-word;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-body ul>li {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.markdown-body ol>li {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.markdown-body a {
|
|
background: transparent;
|
|
}
|
|
|
|
.markdown-body a:active,
|
|
.markdown-body a:hover {
|
|
outline: 0;
|
|
}
|
|
|
|
.markdown-body strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
.markdown-body img {
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-body code,
|
|
.markdown-body kbd,
|
|
.markdown-body pre {
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body input {
|
|
color: inherit;
|
|
font: inherit;
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body html input[disabled] {
|
|
cursor: default;
|
|
}
|
|
|
|
.markdown-body input {
|
|
line-height: normal;
|
|
}
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.markdown-body td,
|
|
.markdown-body th {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body * {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body input {
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
}
|
|
|
|
.markdown-body a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body a:hover,
|
|
.markdown-body a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
height: 0;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body hr:before {
|
|
display: table;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body hr:after {
|
|
display: table;
|
|
clear: both;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ul.linenums,
|
|
ol.linenums {
|
|
padding: 16px 0 0 36px !important;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
|
|
.markdown-body ol ol,
|
|
.markdown-body ul ol {
|
|
list-style-type: lower-roman;
|
|
}
|
|
|
|
.markdown-body ul ul ol,
|
|
.markdown-body ul ol ol,
|
|
.markdown-body ol ul ol,
|
|
.markdown-body ol ol ol {
|
|
list-style-type: lower-alpha;
|
|
}
|
|
|
|
.markdown-body dd {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.markdown-body code {
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
.markdown-body .octicon {
|
|
font: normal normal 16px octicons-anchor;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.markdown-body .octicon-link:before {
|
|
content: '\f05c';
|
|
}
|
|
|
|
.markdown-body>*:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.markdown-body>*:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.markdown-body .anchor {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
padding-right: 6px;
|
|
padding-left: 30px;
|
|
margin-left: -30px;
|
|
}
|
|
|
|
.markdown-body .anchor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
.markdown-body h2 .octicon-link,
|
|
.markdown-body h3 .octicon-link,
|
|
.markdown-body h4 .octicon-link,
|
|
.markdown-body h5 .octicon-link,
|
|
.markdown-body h6 .octicon-link {
|
|
display: none;
|
|
color: #000;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
.markdown-body h2:hover .anchor,
|
|
.markdown-body h3:hover .anchor,
|
|
.markdown-body h4:hover .anchor,
|
|
.markdown-body h5:hover .anchor,
|
|
.markdown-body h6:hover .anchor {
|
|
padding-left: 8px;
|
|
margin-left: -30px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.25em;
|
|
line-height: 1.2;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h1 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.75em;
|
|
line-height: 1.225;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h2 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
line-height: 1.43;
|
|
}
|
|
|
|
.markdown-body h3 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h4 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body h5 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 1em;
|
|
color: #777;
|
|
}
|
|
|
|
.markdown-body h6 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body ul ul,
|
|
.markdown-body ul ol,
|
|
.markdown-body ol ol,
|
|
.markdown-body ol ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body li>p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.markdown-body dl {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body dl dt {
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
font-size: 1em;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body dl dd {
|
|
padding: 0 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
padding: 0 15px;
|
|
color: #777;
|
|
border-left: 4px solid #ddd;
|
|
}
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.markdown-body table th {
|
|
font-weight: bold;
|
|
text-align: revert;
|
|
}
|
|
|
|
.markdown-body table th,
|
|
.markdown-body table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body code {
|
|
padding: 0;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body code:has(.katex) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-body code:before,
|
|
.markdown-body code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
|
|
.markdown-body pre>code {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 100%;
|
|
word-break: normal;
|
|
white-space: pre;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body .highlight {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body .highlight pre,
|
|
.markdown-body pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f7f7f7;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body .highlight pre {
|
|
margin-bottom: 0;
|
|
word-break: normal;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body pre code:before,
|
|
.markdown-body pre code:after {
|
|
content: normal;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .pl-c {
|
|
color: #969896;
|
|
}
|
|
|
|
.markdown-body .pl-c1,
|
|
.markdown-body .pl-mdh,
|
|
.markdown-body .pl-mm,
|
|
.markdown-body .pl-mp,
|
|
.markdown-body .pl-mr,
|
|
.markdown-body .pl-s1 .pl-v,
|
|
.markdown-body .pl-s3,
|
|
.markdown-body .pl-sc,
|
|
.markdown-body .pl-sv {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.markdown-body .pl-e,
|
|
.markdown-body .pl-en {
|
|
color: #795da3;
|
|
}
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
.markdown-body .pl-smi,
|
|
.markdown-body .pl-smp,
|
|
.markdown-body .pl-stj,
|
|
.markdown-body .pl-vo,
|
|
.markdown-body .pl-vpf {
|
|
color: #333;
|
|
}
|
|
|
|
.markdown-body .pl-ent {
|
|
color: #63a35c;
|
|
}
|
|
|
|
.markdown-body .pl-k,
|
|
.markdown-body .pl-s,
|
|
.markdown-body .pl-st {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.markdown-body .pl-pds,
|
|
.markdown-body .pl-s1,
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
.markdown-body .pl-sr,
|
|
.markdown-body .pl-sr .pl-cce,
|
|
.markdown-body .pl-sr .pl-sra,
|
|
.markdown-body .pl-sr .pl-sre,
|
|
.markdown-body .pl-src {
|
|
color: #df5000;
|
|
}
|
|
|
|
.markdown-body .pl-mo,
|
|
.markdown-body .pl-v {
|
|
color: #1d3e81;
|
|
}
|
|
|
|
.markdown-body .pl-id {
|
|
color: #b52a1d;
|
|
}
|
|
|
|
.markdown-body .pl-ii {
|
|
background-color: #b52a1d;
|
|
color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
color: #63a35c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-ml {
|
|
color: #693a17;
|
|
}
|
|
|
|
.markdown-body .pl-mh,
|
|
.markdown-body .pl-mh .pl-en,
|
|
.markdown-body .pl-ms {
|
|
color: #1d3e81;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-mq {
|
|
color: #008080;
|
|
}
|
|
|
|
.markdown-body .pl-mi {
|
|
color: #333;
|
|
font-style: italic;
|
|
}
|
|
|
|
.markdown-body .pl-mb {
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-md,
|
|
.markdown-body .pl-mdhf {
|
|
background-color: #ffecec;
|
|
color: #bd2c00;
|
|
}
|
|
|
|
.markdown-body .pl-mdht,
|
|
.markdown-body .pl-mi1 {
|
|
background-color: #eaffea;
|
|
color: #55a532;
|
|
}
|
|
|
|
.markdown-body .pl-mdr {
|
|
color: #795da3;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.markdown-body .task-list-item input {
|
|
float: left;
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
z-index: 1;
|
|
position: relative;
|
|
border-color: #4183c4;
|
|
}
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
.pln {
|
|
color: #000
|
|
}
|
|
|
|
/* plain text */
|
|
|
|
@media screen {
|
|
.str {
|
|
color: #080
|
|
}
|
|
|
|
/* string content */
|
|
.kwd {
|
|
color: #008
|
|
}
|
|
|
|
/* a keyword */
|
|
.com {
|
|
color: #800
|
|
}
|
|
|
|
/* a comment */
|
|
.typ {
|
|
color: #606
|
|
}
|
|
|
|
/* a type name */
|
|
.lit {
|
|
color: #066
|
|
}
|
|
|
|
/* a literal value */
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #660
|
|
}
|
|
|
|
.tag {
|
|
color: #008
|
|
}
|
|
|
|
/* a markup tag name */
|
|
.atn {
|
|
color: #606
|
|
}
|
|
|
|
/* a markup attribute name */
|
|
.atv {
|
|
color: #080
|
|
}
|
|
|
|
/* a markup attribute value */
|
|
.dec,
|
|
.var {
|
|
color: #606
|
|
}
|
|
|
|
/* a declaration; a variable name */
|
|
.fun {
|
|
color: red
|
|
}
|
|
|
|
/* a function name */
|
|
}
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
@media print,
|
|
projection {
|
|
.str {
|
|
color: #060
|
|
}
|
|
|
|
.kwd {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.com {
|
|
color: #600;
|
|
font-style: italic
|
|
}
|
|
|
|
.typ {
|
|
color: #404;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lit {
|
|
color: #044
|
|
}
|
|
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #440
|
|
}
|
|
|
|
.tag {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.atn {
|
|
color: #404
|
|
}
|
|
|
|
.atv {
|
|
color: #060
|
|
}
|
|
}
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
pre.prettyprint {
|
|
padding: 2px;
|
|
/* border: 1px solid #888 */
|
|
}
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
ol.linenums {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
/* IE indents via margin-left */
|
|
li.L0,
|
|
li.L1,
|
|
li.L2,
|
|
li.L3,
|
|
li.L5,
|
|
li.L6,
|
|
li.L7,
|
|
li.L8 {
|
|
list-style-type: none
|
|
}
|
|
|
|
/* Alternate shading for lines */
|
|
li.L1,
|
|
li.L3,
|
|
li.L5,
|
|
li.L7,
|
|
li.L9 {
|
|
background: #eee
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}`;return(0,S.useEffect)(()=>{const Q=Ce.current.attachShadow({mode:"open"});Te.current=document.createElement("div"),Te.current.className="markdown-body",Te.current.innerHTML=ge,Q.appendChild(Te.current);const O=document.createElement("style");return O.textContent=Fe,Q.appendChild(O),()=>{Q.innerHTML=""}},[]),(0,S.useEffect)(()=>{Te.current&&(Te.current.innerHTML=ge)},[ge]),G.createElement("div",{ref:Ce})},A=Object.defineProperty,T=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,M=(ge,Ce,Te)=>Ce in ge?A(ge,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ge[Ce]=Te,U=(ge,Ce)=>{for(var Te in Ce||(Ce={}))Z.call(Ce,Te)&&M(ge,Te,Ce[Te]);if(T)for(var Te of T(Ce))ie.call(Ce,Te)&&M(ge,Te,Ce[Te]);return ge};const W="@\u2581\u2581@",le="@\u2581@",k=/<pre[^>]*>/g;function Y(ge){let Ce=document.createElement("div");return Ce.innerHTML=ge,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const se=(ge,Ce)=>{ge=ge||"";const Te=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Fe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Q=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,O=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?ge.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Te,(K,I,X,z,g,b,B)=>{const F=I||z||b,Se=X||g||B||"?";return p.Z.API_SERVER+"/api/attachments/"+F+Se+"&t="+(0,he.Jn)(F,Date.now())+(K.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ge=ge.replace(O,(K,I,X,z,g,b,B)=>{const F=I||z||b,Se=X||g||B||"?";return p.Z.API_SERVER+"/attachments/download/"+F+Se+"&t="+(0,he.Jn)(F,Date.now())+(K.indexOf(")")>-1?")":"&")}).replace(Te,(K,I,X,z,g,b,B)=>{const F=I||z||b,Se=X||g||B||"?";return p.Z.API_SERVER+"/api/attachments/"+F+Se+"&t="+(0,he.Jn)(F,Date.now())+(K.indexOf(")")>-1?")":"&")}).replace(Fe,(K,I,X,z,g)=>{const b=I||z,B=X||g||"";return'"'+p.Z.API_SERVER+"/api/attachments/"+b+B+b+B+"&t="+(0,he.Jn)(b,Date.now())}).replace(Q,(K,I,X,z,g)=>{const b=I||z,B=X||g||"";return"("+p.Z.API_SERVER+"/files/uploads/"+b+B+b+B+"&t="+(0,he.Jn)(b,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,`
|
|
`),ge)};var J=({value:ge="",className:Ce,showTextOnly:Te,showLines:Fe,style:Q={},stylesPrev:O={},highlightKeywords:K,showProgramFill:I,isProgramFill:X,disabledFill:z=!1,programFillValue:g,onFillChange:b=Se=>{},onFillBlur:B=()=>{},onFillFocus:F=()=>{}})=>{let Se=String(ge);const[we,Ne]=(0,S.useState)(""),[je,et]=(0,S.useState)("office"),[qe,rt]=(0,S.useState)([]),yt=(0,S.useRef)("a"+(0,o.Z)()),Dt={},pt=(ye,ke,Oe)=>{const Ze=document.createElement(ye===le?"input":"textarea");Ze.style.width="100%",Ze.style.height=ye===le?"40px":"151px",Ze.rows=5,Ze.spellcheck=!1,Ze.name="edu-program-fill",Ze.placeholder="\u8BF7\u8F93\u5165",Ze.dataset.id=ke;const it=Object.keys(Dt).length;return Dt[it]=Ze,`<span class="edu-program-fill-wrap ${ye===le?"":"show"}" style="width:${ye===le?"400px":"100%"}" title=${Oe||""}><span>${Ze.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function vt(ye){return ye=ye.replace(/!\[.*?\]\(.*?\)/g,""),ye=ye.replace(/\[.*?\]\(.*?\)/g,""),ye=ye.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ye=ye.replace(/<embed.*?>/g,""),ye=ye.replace(/<img.*?>/g,""),ye=ye.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ye=ye.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ye=ye.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ye=ye.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ye}const Ot=ye=>ye.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ke,Oe){let Ze=Oe.replace(/(\n|\r)/g,"").split("}"),it=[];return Ze.map(Ye=>{Ye!=""&&it.push(`.${yt.current} ${Ye}`)}),`<style>${it.join("}")}</style>`}),Bt=(0,S.useMemo)(()=>{try{const Ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,it=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ye=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ke=/\(\/attachments\/download\//g;Se=Se.replace(Ke,"("+p.Z.API_SERVER+"/attachments/download/").replace(Ze,"("+p.Z.API_SERVER+"/api/attachments/").replace(it,'"'+p.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+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,`
|
|
`)}catch(Ze){}if(I){let Ze=-1;return Se=Se.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(it,Ye,Ke){var Tt;return++Ze,pt(it,Ze,(Tt=g==null?void 0:g[Ze])==null?void 0:Tt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ot(Se||"")}</pre>`}let ye=Ot(Se);ye=(0,xe.ZP)(ye);const ke=(0,xe.ez)();Se.match(/\[TOC\]/)&&(ye=ye.replace("<p>[TOC]</p>",(0,xe.Qv)()),(0,xe.Iy)()),ye=ye.replace(/(__special_katext_id_\d+__)/g,(Ze,it)=>{const{type:Ye,expression:Ke}=ke[it];return(0,re.renderToString)(Y(Ke)||"",{displayMode:Ye==="block",throwOnError:!1,output:"html"})}),ye=ye.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const Oe=document.createElement("div");if(Oe.innerHTML=ye,Te)return Oe.innerText;if(K){const Ze=K.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return pe(Oe,Ze),Oe.innerHTML}return setTimeout(()=>ne(),500),Oe.innerHTML},[Se,K]);(0,S.useEffect)(()=>{Re.current&&Re.current.querySelectorAll(["input","textarea"]).forEach(ke=>{ke.oninput=me,ke.onblur=ce,ke.onfocus=j})},[qe]),(0,S.useEffect)(()=>{var ye,ke,Oe,Ze,it;if(g!=null&&g.length)try{const Ye=Re.current.querySelectorAll(".edu-program-fill-score"),Ke=Re.current.querySelectorAll('[name="edu-program-fill"]');for(const[Tt,St]of Ke.entries())St.value=((ye=g==null?void 0:g[Tt])==null?void 0:ye.value)||"",((ke=g==null?void 0:g[Tt])==null?void 0:ke.type)==="warning"?St.className="program-fill-warning":((Oe=g==null?void 0:g[Tt])==null?void 0:Oe.type)==="success"?St.className="program-fill-success":St.className="";for(const[Tt,St]of Ye.entries())St.innerHTML=(Ze=g==null?void 0:g[Tt])!=null&&Ze.score?`${(it=g==null?void 0:g[Tt])==null?void 0:it.score}\u5206`:"";rt(g)}catch(Ye){console.log(Ye,"error")}},[g]);const me=ye=>{qe[ye.target.dataset.id]=qe[ye.target.dataset.id]||{},qe[ye.target.dataset.id].value=ye.target.value,rt([...qe]),b(qe,ye.target.dataset.id)},ce=ye=>{qe[ye.target.dataset.id]=qe[ye.target.dataset.id]||{},qe[ye.target.dataset.id].value=ye.target.value,rt([...qe]),B(qe,ye.target.dataset.id)},j=ye=>{qe[ye.target.dataset.id]=qe[ye.target.dataset.id]||{},qe[ye.target.dataset.id].value=ye.target.value,rt([...qe]),F(qe,ye.target.dataset.id)};function pe(ye,ke){return ye.childNodes.forEach(Oe=>{var Ze;if(Oe.childNodes.length>0)pe(Oe,ke);else if(Oe.nodeName!=="IMG")if(Oe.innerHTML)Oe.innerHTML=(Ze=Oe.innerHTML)==null?void 0:Ze.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const it=document.createElement("span");it.innerHTML=Oe.textContent.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Oe.replaceWith(it)}})}const Re=(0,S.useRef)();xe.jb.WebkitLineClamp=Fe,Fe&&(Q=U(U({},Q),xe.jb));function P(ye){let ke=ye.target;if(ke.tagName.toUpperCase()==="A"){let Oe=ke.getAttribute("href");if(Oe.indexOf("office")>-1)ye.preventDefault(),Ne(Oe),et("office");else if(Oe.indexOf("application/pdf")>-1)ye.preventDefault(),Ne(Oe),et("pdf");else if(Oe.indexOf("text/html")>-1)ye.preventDefault(),Ne(Oe),et("html");else if(Oe.startsWith("#")){ye.preventDefault();let Ze=document.getElementById(Oe.replace("#",""));Ze&&Ze.scrollIntoView(!0)}}}const ne=()=>{var ye;const ke=(ye=Re.current)==null?void 0:ye.querySelectorAll("video");ke==null||ke.forEach(Oe=>{if(Oe.oncontextmenu=()=>!1,Oe.src.indexOf(".m3u8")>-1&&!Oe.canPlayType("application/vnd.apple.mpegurl")){if($.ZP.isSupported()){var Ze=new $.ZP;Ze.loadSource(Oe.src),Ze.attachMedia(Oe)}}})};(0,S.useEffect)(()=>{if(Re.current&&Bt&&Bt.match(k)&&window.PR.prettyPrint(),Re.current)return Re.current.addEventListener("click",P),()=>{var ye;(ye=Re.current)==null||ye.removeEventListener("click",P),(0,xe.AL)(),(0,xe.Iy)()}},[Bt,Re.current,P]),(0,S.useEffect)(()=>{var ye;const ke=Oe=>{Oe.preventDefault(),Oe.clipboardData.setData("text",window.getSelection().toString())};return(ye=Re.current)==null||ye.addEventListener("copy",ke),()=>{var Oe;(Oe=Re.current)==null||Oe.removeEventListener("copy",ke)}},[Re.current]);const fe=ye=>/<style[\s\S]*?>/i.test(ye||"");return S.createElement(S.Fragment,null,Te&&S.createElement("div",{ref:Re},Bt),!Te&&!fe(Bt)&&S.createElement("div",{ref:Re,style:U({},Q),className:`${Ce||""} ${z?"disabled-fill":""} markdown-body ${yt.current}`,dangerouslySetInnerHTML:{__html:Bt}}),!Te&&fe(Bt)&&S.createElement(x,{html:Bt}),S.createElement(ue.Z,{close:!0,data:we,type:we!=null&&we.length?je:"",style:U({},O),onClose:()=>Ne("")}))}},23954:function(Kt,nt,E){"use strict";E.d(nt,{SV:function(){return Re},ZP:function(){return pe}});var S=E(59301),te=E(76374);const xe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ve={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},$={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},p={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(`
|
|
`)}]},he={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var re=E(53184),o=E.n(re),ue=Object.defineProperty,G=Object.defineProperties,v=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,Z=(P,ne,fe)=>ne in P?ue(P,ne,{enumerable:!0,configurable:!0,writable:!0,value:fe}):P[ne]=fe,ie=(P,ne)=>{for(var fe in ne||(ne={}))A.call(ne,fe)&&Z(P,fe,ne[fe]);if(x)for(var fe of x(ne))T.call(ne,fe)&&Z(P,fe,ne[fe]);return P},M=(P,ne)=>G(P,v(ne)),U=(P,ne,fe)=>new Promise((ye,ke)=>{var Oe=Ye=>{try{it(fe.next(Ye))}catch(Ke){ke(Ke)}},Ze=Ye=>{try{it(fe.throw(Ye))}catch(Ke){ke(Ke)}},it=Ye=>Ye.done?ye(Ye.value):Promise.resolve(Ye.value).then(Oe,Ze);it((fe=fe.apply(P,ne)).next())});const W={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"]}},le=(P,ne)=>ne.map(fe=>({label:fe,kind:P.languages.CompletionItemKind.Keyword,insertText:fe})),k=P=>Object.keys(W.tables).map(ne=>({label:ne,kind:P.languages.CompletionItemKind.Variable,insertText:ne})),Y=(P,ne)=>{const fe=W.tables[P];return fe?fe.map(ye=>({label:ye,kind:ne.languages.CompletionItemKind.Field,insertText:ye})):[]};function se(P,ne,fe,ye,ke){let Oe=ne.getWordUntilPosition(fe),Ze={startLineNumber:fe.lineNumber,endLineNumber:fe.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},it=ye.map(Ye=>({label:Ye,kind:P.languages.CompletionItemKind.Keyword,insertText:Ye,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ze}));return ke.map(Ye=>{it.push(M(ie({},Ye),{range:Ze}))}),it}var J=P=>{W.languages.map(ke=>(P.languages.registerDocumentFormattingEditProvider(ke,{provideDocumentFormattingEdits(Oe,Ze,it){return U(this,null,function*(){const Ye=o()(Oe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Oe.getFullModelRange(),text:Ye}]})}}),ke));const ne=$.quickKey.map(ke=>({label:ke.label,kind:P.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet})),fe=p.quickKey.map(ke=>({label:ke.label,kind:P.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ye=ve.quickKey.map(ke=>({label:ke.label,kind:P.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet}));P.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Oe){var Ze=ke.getWordUntilPosition(Oe),it={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Ye=ke.getLineContent(Oe.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...$.keywords.map(Ke=>({label:Ke,kind:P.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it})),...$.quickKey.map(Ke=>({label:Ke.label,kind:P.languages.CompletionItemKind.Function,documentation:Ke.content,insertText:Ye.startsWith("#")?Ke.content.replace(/#/,""):Ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}))]}}}),P.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Oe){var Ze=ke.getWordUntilPosition(Oe),it={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn};return{suggestions:[...xe.keywords.map(Ye=>({label:Ye,kind:P.languages.CompletionItemKind.Function,documentation:Ye,insertText:Ye,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}))]}}}),P.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Oe){var Ze=ke.getWordUntilPosition(Oe),it={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Ye=ke.getLineContent(Oe.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...ve.keywords.map(Ke=>({label:Ke,kind:P.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it})),...ve.quickKey.map(Ke=>({label:Ke.label,kind:P.languages.CompletionItemKind.Function,documentation:Ke.content,insertText:Ye.startsWith("#")?Ke.content.replace(/#/,""):Ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}))]}}}),P.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ke,Oe){var Ze=ke.getWordUntilPosition(Oe),it={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Ye=ke.getLineContent(Oe.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...he.keywords.map(Ke=>({label:Ke,kind:P.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it})),...he.quickKey.map(Ke=>({label:Ke.label,kind:P.languages.CompletionItemKind.Function,documentation:Ke.content,insertText:Ye.startsWith("#")?Ke.content.replace(/#/,""):Ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}))]}}}),P.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Oe){var Ze=ke.getWordUntilPosition(Oe),it={startLineNumber:Oe.lineNumber,endLineNumber:Oe.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Ye=ke.getLineContent(Oe.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...p.keywords.map(Ke=>({label:Ke,kind:P.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it})),...p.quickKey.map(Ke=>({label:Ke.label,kind:P.languages.CompletionItemKind.Function,documentation:Ke.content,insertText:Ye.startsWith("#")?Ke.content.replace(/#/,""):Ke.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}))]}}})};const ge="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ce=Object.defineProperty,Te=(P,ne,fe)=>ne in P?Ce(P,ne,{enumerable:!0,configurable:!0,writable:!0,value:fe}):P[ne]=fe,Fe=(P,ne,fe)=>Te(P,typeof ne!="symbol"?ne+"":ne,fe);const Q=class Yl{constructor(ne,fe,ye){this.placeholder=ne,this.editor=fe,this.monaco=ye,fe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Yl.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Fe(Q,"ID","editor.widget.placeholderHint");var K=Q,I=E(96236),X=E(8591),z=E(6848),g=E(89392),b=E(34604),B=E(56102),F=Object.defineProperty,Se=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,qe=(P,ne,fe)=>ne in P?F(P,ne,{enumerable:!0,configurable:!0,writable:!0,value:fe}):P[ne]=fe,rt=(P,ne)=>{for(var fe in ne||(ne={}))je.call(ne,fe)&&qe(P,fe,ne[fe]);if(Ne)for(var fe of Ne(ne))et.call(ne,fe)&&qe(P,fe,ne[fe]);return P},yt=(P,ne)=>Se(P,we(ne)),Dt=(P,ne)=>{var fe={};for(var ye in P)je.call(P,ye)&&ne.indexOf(ye)<0&&(fe[ye]=P[ye]);if(P!=null&&Ne)for(var ye of Ne(P))ne.indexOf(ye)<0&&et.call(P,ye)&&(fe[ye]=P[ye]);return fe},pt=(P,ne,fe)=>new Promise((ye,ke)=>{var Oe=Ye=>{try{it(fe.next(Ye))}catch(Ke){ke(Ke)}},Ze=Ye=>{try{it(fe.throw(Ye))}catch(Ke){ke(Ke)}},it=Ye=>Ye.done?ye(Ye.value):Promise.resolve(Ye.value).then(Oe,Ze);it((fe=fe.apply(P,ne)).next())});function vt(P){return/^\d+$/.test(P)?`${P}px`:P}function Ot(){}let Bt=!1;const me={"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 ce(P=[]){let ne=P;if(Array.isArray(P)){for(let fe=0;fe<P.length;fe++){let ye=me[P[fe]];if(ye)return ye}return ne[0]}return me[ne]||ne}let j=null;var pe=P=>{var ne=P,{width:fe="100%",height:ye="100%",value:ke,language:Oe="javascript",style:Ze={},options:it={},overrideServices:Ye={},theme:Ke="vs-dark",onEditBlur:Tt,isCopy:St=!1,onSave:wt,autoHeight:$t=!1,forbidCopy:Yt=!1,onChange:Nt=Ot,editorDidMount:Jt=Ot,onFocus:nn=Ot,onBreakPoint:w=Ot,breakPointValue:R=[],filename:ft="educoder.txt",errorLine:ee,errorContent:Ie="",highlightLine:pn,openBreakPoint:ze=!1,placeholder:Ge="",showMiniMap:Je=!0}=ne,ae=Dt(ne,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Ee=(0,S.useRef)(),De=(0,S.useRef)({}),He=(0,S.useRef)(),q=(0,S.useRef)(),Ut=(0,S.useRef)([]),Pe=(0,S.useRef)(!1),Qt=(0,S.useRef)(),an=(0,S.useRef)(),kt=(0,S.useRef)(!1),[It,Et]=(0,S.useState)(!1);function xt(){let Gt;return Ee.current&&(Gt=new te.Z(Vt=>{for(let Sn of Vt)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&De.current.instance.layout()}),Gt.observe(Ee.current)),Gt}function rn(){X.ZP.warning({content:decodeURIComponent(ge),key:"monaco-editor-tip"})}const _e=()=>{let Gt=De.current.instance;if(ke!=null&&Gt&&It){const Vt=Gt.getModel();Vt&&ke!==Vt.getValue()&&(Bt=!0,Vt.setValue(ke),Gt.layout(),Bt=!1)}};(0,S.useEffect)(()=>{const Gt=b.Z.subscribe("formatDocument",Vt=>{var Sn;let En=De.current.instance;(Sn=En==null?void 0:En.getAction)==null||Sn.call(En,"editor.action.formatDocument").run()});return window.updateMonacoValue=Vt=>{Nt(Vt)},Gt},[]),(0,S.useEffect)(()=>{var Gt;let Vt=De.current.instance;q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{_e()},500),ke&&(ke!=null&&ke.length)&&((Gt=Vt==null?void 0:Vt.updateOptions)==null||Gt.call(Vt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[ke,It,De.current]),(0,S.useEffect)(()=>{if(ee&&De.current&&De.current.instance){let Vt=De.current.instance;Vt.changeViewZones(function(Sn){var En=document.createElement("div");En.style.padding="10px 20px",En.style.width="calc(100% - 20px)",En.className="my-error-line-wrp",En.innerHTML=Ie,Sn.addZone({afterLineNumber:ee||11,heightInLines:3,domNode:En})});var Gt={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}};Vt.addOverlayWidget(Gt),Vt.revealPositionInCenter({lineNumber:20,column:1})}},[ee,De.current,It]);const Ae=(Gt="",Vt)=>{if(!Gt||Gt.trim()==="")return!0;const En=De.current.instance.getModel().getLineTokens(Vt);let gn=!1;for(let Yn=0;Yn<2;Yn++)En.getStandardTokenType(Yn)===1&&(gn=!0);return gn};(0,S.useEffect)(()=>{var Gt;const Vt=(Gt=De.current)==null?void 0:Gt.instance;if(Vt&&It&&Yt){const Sn=Vt.onDidBlurEditorWidget(()=>{kt.current=!1}),En=Vt.onDidFocusEditorText(()=>{kt.current=!0});return()=>{Sn.dispose(),En.dispose()}}},[De.current,It,Yt]),(0,S.useEffect)(()=>{var Gt;if((Gt=De.current)!=null&&Gt.instance&&It&&ze){let Vt=De.current.instance,Sn=Vt.getModel();if(!Sn)return;(()=>{var At;let jt=[],en=[];const qt=Sn.getAllDecorations();for(let Cn of qt)Cn.options.className==="highlighted-line"&&(jt.push((At=Cn==null?void 0:Cn.range)==null?void 0:At.startLineNumber),en.push(Cn==null?void 0:Cn.id));if(pn===jt[0])return;Sn.deltaDecorations(en,[]);const wn=Sn.getLineCount();pn&&pn<=wn&&(Vt.deltaDecorations([],[{range:new j.Range(pn,1,pn,Sn.getLineMaxColumn(pn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Vt.revealLineInCenter(pn))})();const gn=(At=!1)=>{var jt;let en=[],qt=[];const wn=Sn.getAllDecorations();for(let Cn of wn)Cn.options.linesDecorationsClassName==="breakpoints-select"&&(en.push((jt=Cn==null?void 0:Cn.range)==null?void 0:jt.startLineNumber),qt.push(Cn==null?void 0:Cn.id));if(At)return{lines:en,ids:qt};w(en)},Yn=At=>pt(void 0,null,function*(){let jt={range:new j.Range(At,1,At,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Sn.deltaDecorations([],[jt]),gn()}),An=At=>pt(void 0,null,function*(){let jt=[];const en=Vt.getLineDecorations(At);for(let qt of en)qt.options.linesDecorationsClassName==="breakpoints-select"&&jt.push(qt.id);yield Sn.deltaDecorations(jt,[]),gn()}),fn=At=>{let jt=Vt.getLineDecorations(At);for(let en of jt)if(en.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(R,gn(!0).lines)){Sn.deltaDecorations(gn(!0).ids,[]);const At=R.map(jt=>({range:new j.Range(jt,1,jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Sn.deltaDecorations([],At)}const tt=Vt.onDidChangeModelContent(At=>{let jt=Vt.getPosition();if(jt){let en=jt.lineNumber;clearTimeout(an.current),an.current=setTimeout(()=>{Ae(Sn.getLineContent(en),en)?An(en):fn(en)?(An(en),Yn(en)):gn()},100)}}),Qe=Vt.onMouseDown(At=>{var jt,en,qt;if(At.target.detail&&((qt=(en=(jt=At.target)==null?void 0:jt.element)==null?void 0:en.className)!=null&&qt.includes("line-numbers"))){let wn=At.target.position.lineNumber;if(Ae(Sn.getLineContent(wn),wn))return;fn(wn)?An(wn):Yn(wn)}}),gt=At=>{let jt={range:new j.Range(At,1,At,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ut.current=Vt.deltaDecorations(Ut.current,[jt])},Lt=()=>{Ut.current=Vt.deltaDecorations(Ut.current,[])},ot=Vt.onMouseMove(At=>{var jt,en,qt;if(Lt(),At.target.detail&&((qt=(en=(jt=At.target)==null?void 0:jt.element)==null?void 0:en.className)!=null&&qt.includes("line-numbers"))){let wn=At.target.position.lineNumber;if(Ae(Sn.getLineContent(wn),wn))return;gt(wn)}}),zt=Vt.onMouseLeave(()=>{Lt()});return()=>{tt.dispose(),Qe.dispose(),ot.dispose(),zt.dispose()}}},[De.current,It,R,pn,ze,Oe]),(0,S.useEffect)(()=>{var Gt;(Gt=De.current)!=null&&Gt.instance&&ze&&De.current.instance.setPosition({lineNumber:0,column:0})},[pn]);function ct(){let Gt=De.current.instance;if(Gt){const Vt=Gt.getSelection(),Sn=De.current.pastePos||{},En=new j.Range(Sn.startLineNumber||Vt.endLineNumber,Sn.startColumn||Vt.endColumn,Sn.endLineNumber||Vt.endLineNumber,Sn.endColumn||Vt.endColumn);setTimeout(()=>{Gt.executeEdits("",[{range:En,text:""}])},300)}}function We(Gt){(window.navigator.platform.match("Mac")?Gt.metaKey:Gt.ctrlKey)&&Gt.keyCode==83&&(Gt.preventDefault(),wt())}const at=()=>{if($t&&De.current.instance){const Gt=De.current.instance.getContentHeight();on(Gt<ye?ye:Gt)}else on(ye)};function bt(Gt){var Vt=document.createEvent("MouseEvents");Vt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Vt)}const Ct=Gt=>{if(!kt.current)return;const{keyCode:Vt,ctrlKey:Sn,metaKey:En,target:gn,type:Yn}=Gt;return(Yn==="paste"||(Vt===67||Vt===86)&&(En||Sn))&&gn.nodeName==="TEXTAREA"&&(rn(),Gt.preventDefault()),!1};function Xt(Gt,Vt){var Sn=window.URL||window.webkitURL||window,En=new Blob([Vt]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=Sn.createObjectURL(En),gn.download=Gt,bt(gn)}(0,S.useEffect)(()=>{at()},[at]),(0,S.useEffect)(()=>{Ee.current&&!It&&Promise.all([E.e(8909),E.e(3267)]).then(E.bind(E,71448)).then(Gt=>{try{j=Gt,De.current.instance=j.editor.create(Ee.current,{value:ke,language:ce(Oe),theme:Ke,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Je||!1}},Ye);const Vt=De.current.instance;let gn=[...I.BH._menuItems].find(tt=>tt[0]._debugName=="EditorContext")[1],Yn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],An=(tt,Qe)=>{var gt,Lt;let ot=tt._first;do Qe.includes((Lt=(gt=ot.element)==null?void 0:gt.command)==null?void 0:Lt.id)&&tt._remove(ot);while(ot=ot.next)};if(Jt(Vt,j),setTimeout(()=>{at(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Xt(ft||"educoder.txt",Vt.getValue())}})},500),De.current.subscription=Vt.onDidChangeModelContent(tt=>{Pe.current?clearTimeout(Qt.current):(at(),Nt(Vt.getValue(),tt)),Qt.current=setTimeout(()=>{Pe.current=!1},500)}),window.Monaco||J(j,ce(Oe)),Yt&&(An(gn,Yn),Ee.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ct),window.removeEventListener("paste",Ct),window.addEventListener("keydown",Ct),window.addEventListener("paste",Ct)),window.Monaco=j,Tt&&Vt.onDidBlurEditorWidget(()=>{Tt(Vt.getValue())}),nn&&Vt.onDidFocusEditorText(()=>{nn(Vt.getValue())}),Yt)try{Vt.onDidPaste(tt=>{const Qe=Vt.getSelection(),gt=De.current.pastePos||{},Lt=new j.Range(gt.startLineNumber||Qe.endLineNumber,gt.startColumn||Qe.endColumn,gt.endLineNumber||Qe.endLineNumber,gt.endColumn||Qe.endColumn);Vt.executeEdits("",[{range:tt.range,text:""}])})}catch(tt){}let fn=xt();return Ge&&typeof Ge=="string"&&new K(Ge,Vt,j),Et(!0),()=>{const tt=De.current.instance;tt.dispose();const Qe=tt.getModel();Qe&&Qe.dispose(),De.current.subscription&&De.current.subscription.dispose(),fn.unobserve(Ee.current)}}catch(Vt){}})},[]),(0,S.useEffect)(()=>{if(De.current.instance&&It)return document.addEventListener("keydown",We,!1),()=>{document.removeEventListener("keydown",We)}},[wt,It]),(0,S.useEffect)(()=>{let Gt=De.current.instance;if(Gt&&It){let Vt=ce(Oe);j.editor.setModelLanguage(Gt.getModel(),Vt)}},[Oe,It]),(0,S.useEffect)(()=>{De.current.instance&&It&&j.editor.setTheme(Ke)},[Ke,It]),(0,S.useEffect)(()=>{let Gt=De.current.instance;He.current=it,Gt&&It&&(Gt.updateOptions(rt({},it)),setTimeout(()=>{Gt.getModel().updateOptions(rt({},it))},200))},[JSON.stringify(it),It]),(0,S.useEffect)(()=>{let Gt=De.current.instance;Gt&&It&&Gt.layout()},[fe,ye,It]);const[cn,Wt]=(0,S.useState)(vt(fe)),[xn,on]=(0,S.useState)(vt(ye)),Pn=yt(rt({},Ze),{width:cn,height:xn,position:"relative"});return S.createElement("div",{className:"my-monaco-editor",ref:Ee,style:Pn},St&&S.createElement(B.CopyToClipboard,{text:ke,onCopy:()=>X.ZP.success("\u590D\u5236\u6210\u529F")},S.createElement(z.Z,{title:"\u590D\u5236\u4EE3\u7801"},S.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},S.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Re({width:P="100%",height:ne="100%",original:fe,modified:ye,language:ke,options:Oe={}}){const Ze=(0,S.useRef)(),[it,Ye]=(0,S.useState)(null);function Ke($t){let Yt;return Ze.current&&(Yt=new te.Z(Nt=>{for(let Jt of Nt)(Jt.target.offsetHeight>0||Jt.target.offsetWidth>0)&&$t.layout()}),Yt.observe(Ze.current)),Yt}(0,S.useEffect)(()=>(Ze.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then($t=>{j=$t;const Yt=j.editor.createDiffEditor(Ze.current,yt(rt({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},Oe),{wordWrap:!0}));Ye(Yt);let Nt=Ke(Yt);return()=>{Yt.dispose();const Jt=Yt.getModel();Jt&&Jt.dispose(),Nt.unobserve(Ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,S.useEffect)(()=>{it&&it.setModel({original:j.editor.createModel(fe,ke),modified:j.editor.createModel(ye,ke)})},[fe,ye,ke,it]);const Tt=vt(P),St=vt(ne),wt={width:Tt,height:St};return S.createElement("div",{className:"my-diff-editor",ref:Ze,style:wt})}},85057:function(Kt,nt,E){"use strict";E.d(nt,{jL:function(){return $},w9:function(){return je},QD:function(){return Nt},cQ:function(){return B},op:function(){return Ke},O5:function(){return an},_b:function(){return ee},t7:function(){return M},Gi:function(){return pt},YG:function(){return yt},qp:function(){return G},vr:function(){return w},qE:function(){return wt},Je:function(){return le},wb:function(){return I},cq:function(){return j},tp:function(){return A}});var S=E(59301),te={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",$=({dataSource:kt=[],img:It,imgWidth:Et=346,title:xt,sunTitle:rn,bannerExtraContent:_e})=>S.createElement("div",{className:te.banner},S.createElement("div",{className:te.content},S.createElement("aside",null,S.createElement("p",null,S.createElement("b",null,xt),S.createElement("span",null,rn)),kt.length>0&&S.createElement("div",{className:te.btns},kt.map((Ae,ct)=>S.createElement("div",{key:ct,onClick:Ae.click},Ae.name,Ae.sign?S.createElement("img",{src:xe,width:39}):null))),_e),It&&S.createElement("img",{style:{marginTop:33,marginRight:38},src:It,width:Et}))),p={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},he=E(92310),re=E.n(he),o=E(89392),G=({dataSource:kt=[],value:It,onChange:Et,onTitleChange:xt,className:rn,title:_e,titleWidth:Ae=41,style:ct={},fontColor:We="#6A7283",showCount:at})=>{const[bt,Ct]=(0,S.useState)(0),[Xt,cn]=(0,S.useState)(!1),Wt=(0,S.useRef)(null),xn=(0,S.useRef)(null);return(0,S.useEffect)(()=>{var on;kt.length!==0&&(((on=Wt==null?void 0:Wt.current)==null?void 0:on.clientHeight)>97?Ct(1):Ct(0)),kt.length===0&&Ct(0),cn(!1)},[kt]),S.createElement("div",{className:re()(p.row,rn),style:ct},S.createElement("div",{onClick:(0,o.throttle)(()=>xt==null?void 0:xt(),2e3),style:{width:Ae,marginTop:Xt?12:4},className:`${p.title} ${xt?"current":""}`},_e),S.createElement("div",{className:Xt?`${p.tagsWrap} ${p.tagsBorderWrap}`:p.tagsWrap},S.createElement("div",{className:p.bar,ref:xn,style:bt>0?{height:bt===1?97:"auto",overflow:bt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},S.createElement("div",{className:p.tag,ref:Wt},kt==null?void 0:kt.map(on=>S.createElement("span",{onClick:()=>Et(on.id),key:on.id,style:{color:We},className:It===on.id?p.active:""},S.createElement("span",{title:on.name,className:p.name},on.name),!!at&&S.createElement("span",{className:p.num},on.count))))),!!bt&&S.createElement(S.Fragment,null,bt===1?S.createElement("div",{onClick:()=>{var on;Ct(2),((on=Wt==null?void 0:Wt.current)==null?void 0:on.clientHeight)>245?cn(!0):cn(!1)},className:p.action},"\u5C55\u5F00",S.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):S.createElement("div",{onClick:()=>{xn.current.scrollTop=0,Ct(1),cn(!1)},className:p.action},"\u6536\u8D77",S.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},v={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},A=({dataSource:kt=[],value:It,onChange:Et,className:xt,style:rn={}})=>S.createElement("div",{style:rn,className:re()(v.tabs,xt)},kt.map(_e=>S.createElement("span",{onClick:()=>Et(_e.id),className:It===_e.id?v.active:"",key:_e.id},_e.name))),T={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Z=E(92832),M=({dataSource:kt=[],value:It="",onChange:Et,onInputChange:xt=()=>{},className:rn,style:_e={},placeholder:Ae,allowClear:ct=!1})=>{var We;const[at,bt]=(0,S.useState)(""),[Ct,Xt]=(0,S.useState)("");(0,S.useEffect)(()=>{var xn;let on=It;(xn=JSON.stringify(It))!=null&&xn.includes("{")&&(bt(It.id),on=It.value||"");try{Xt(decodeURIComponent(on||""))}catch(Pn){Xt(decodeURIComponent(on||""))}},[It]);const cn=()=>{Et(encodeURIComponent(Ct),at||null)},Wt=xn=>{xn!==at&&(bt(xn),Et(encodeURIComponent(Ct),xn))};return S.createElement("div",{className:re()(T.input,rn),style:_e},!!kt.length&&S.createElement("div",{className:T.dropdown},S.createElement("div",{className:T.text},(We=kt.find(xn=>xn.id===at))==null?void 0:We.name,S.createElement("i",{className:"iconfont icon-zhankai4"}),S.createElement("b",{className:T.b1}),S.createElement("b",{className:T.b2})),S.createElement("div",{className:T.menu},kt.map((xn,on)=>S.createElement("div",{key:on,onClick:()=>Wt(xn.id)},xn.name)))),S.createElement(Z.default,{onPressEnter:cn,value:Ct,onChange:xn=>{Xt(xn.target.value),xt(encodeURIComponent(xn.target.value),at||null)},bordered:!1,placeholder:Ae}),S.createElement("i",{onClick:cn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},U={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},le=({value:kt,onChange:It,className:Et,total:xt,pageSize:rn,style:_e={}})=>{const Ae=kt<2,ct=kt>=Math.ceil(xt/rn);return xt<=rn?S.createElement(S.Fragment,null):S.createElement("div",{className:re()(U.quickPager,Et),style:_e},S.createElement("div",{onClick:()=>{Ae||It(kt-1,"prev")},className:Ae?U.disabled:""},"\u4E0A\u4E00\u9875"),S.createElement("div",{onClick:()=>{ct||It(kt+1,"next")},className:ct?U.disabled:""},"\u4E0B\u4E00\u9875"))},k={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Y=E(71418),se=E(6848),J=E(13570),ge=E(3294),Ce=E(955),Te=E(96908),Fe=E(57177),Q=E(81378),O=E(8797),I=({className:kt,dataSource:It=[],col:Et=4,right:xt,bottom:rn=23,precision:_e=0,wrapWidth:Ae=1200,trackEventItems:ct,loading:We})=>{const at=Math.floor((Ae-(Et-1)*xt)/Et);return S.createElement(Y.Z,{spinning:We},S.createElement("div",{className:re()(k.list,kt)},!!It.length&&It.map((bt,Ct)=>{const{name:Xt,id:cn,identifier:Wt,power:xn,cover_image_id:on,pic:Pn}=bt;return S.createElement("div",{className:k.wrap,key:cn,style:{width:at,marginRight:(1+Ct)%Et===0?0:xt+_e,marginBottom:rn}},S.createElement("a",{target:"_blank",href:`/shixuns/${Wt}/challenges`,className:k.li,onClick:Gt=>{Gt.preventDefault(),ct&&(0,Ce.L9)([ct]),xn&&(0,Ce.xg)(`/shixuns/${Wt}/challenges`)}},S.createElement("div",{className:k.img},S.createElement("img",{className:k.cover,src:`${Pn}`}),bt.is_jupyter&&S.createElement("img",{className:k.sign,src:Te}),bt.is_jupyter_lab&&S.createElement("img",{className:k.sign,src:Fe}),bt.is_unity_3d&&S.createElement("img",{className:k.sign,src:Q})),S.createElement("div",{className:k.name},S.createElement(se.Z,{title:Xt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},S.createElement("span",{className:k.e},Xt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),S.createElement("div",{className:k.tags},S.createElement(se.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},S.createElement("span",null,S.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),S.createElement("span",null,bt.challenges_count))),!!bt.myshixuns_count&&S.createElement(se.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},S.createElement("span",null,S.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),S.createElement("span",null,bt.myshixuns_count))),S.createElement(se.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},S.createElement("span",null,S.createElement("span",null,bt.level))),S.createElement("div",{className:k.rate},S.createElement(J.Z,{allowHalf:!0,disabled:!0,defaultValue:bt.score_info}),S.createElement("span",null,"\xA0",bt.score_info?`${bt.score_info}\u5206`:"5\u5206")))),!xn&&S.createElement("div",{className:k.lockWrap},S.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),S.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!It.length&&S.createElement(O.Z,null)))},X={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},z=E(24065),g=E(59301),B=({className:kt,dataSource:It=[],col:Et=4,right:xt,bottom:rn=23,precision:_e=0,wrapWidth:Ae=1200,trackEventItems:ct,loading:We,onRemove:at=()=>{},isCurrent:bt=!0,showAlias:Ct=!1})=>{const Xt=Math.floor((Ae-(Et-1)*xt)/Et),cn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return g.createElement(Y.Z,{spinning:We},g.createElement("div",{className:re()(X.list,kt)},!!(It!=null&&It.length)&&(It==null?void 0:It.map((Wt,xn)=>{var on;const{name:Pn,id:Gt,identifier:Vt,featured:Sn,school_name:En,image_url:gn,excellent:Yn,is_plan:An}=Wt;return g.createElement("div",{key:Gt,className:X.wrap,style:{width:Xt,marginRight:(1+xn)%Et===0?0:xt+_e,marginBottom:rn}},g.createElement("a",{className:X.li,onClick:fn=>{fn.preventDefault(),fn.stopPropagation(),ct&&(0,Ce.L9)([ct]),(0,Ce.xg)(`/paths/${Vt}`)}},g.createElement("div",{className:X.img},g.createElement("img",{className:X.cover,src:`${gn}`}),bt&&(0,z.bg)()&&(Wt==null?void 0:Wt.studying)&&g.createElement("div",{className:`${X.movebq} user-path-items`,onClick:fn=>{fn.stopPropagation(),at(Wt)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(on=Wt==null?void 0:Wt.subject_tags)==null?void 0:on.map((fn,tt)=>{var Qe,gt;if(tt===0){const ot=(Qe=cn.find(zt=>zt.name==fn))==null?void 0:Qe.swimg;return g.createElement("img",{className:X.sign,src:ot,style:{left:"-4px"}})}const Lt=(gt=cn.find(ot=>ot.name==fn))==null?void 0:gt.ptimg;return g.createElement("img",{className:X.sign,src:Lt,style:{left:`${48+52*(tt-1)+2*tt}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Wt==null?void 0:Wt.excellent)&&g.createElement("div",{className:X.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:X.name},g.createElement(se.Z,{title:Ct&&(Wt!=null&&Wt.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Pn}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Wt==null?void 0:Wt.excellent_alias_name}`)):Pn},g.createElement("span",{className:X.e},Ct&&(Wt==null?void 0:Wt.excellent_alias_name)||Pn))),g.createElement(se.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${En}`},g.createElement("div",{className:X.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),En)),g.createElement("div",{className:X.tags},g.createElement("div",null,g.createElement(se.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,Wt.stages_count))),g.createElement(se.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.createElement("span",null,Wt.members_count)))))))})),!It.length&&g.createElement(O.Z,null)))},F={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",we=E(59301),je=({className:kt,dataSource:It=[],col:Et=4,right:xt,bottom:rn=23,precision:_e=0,wrapWidth:Ae=1200,trackEventItems:ct,loading:We,handleVery:at=()=>!0})=>{const bt=Math.floor((Ae-(Et-1)*xt)/Et);return we.createElement(Y.Z,{spinning:We},we.createElement("div",{className:re()(F.list,kt)},!!It.length&&It.map((Ct,Xt)=>{const{subject_identifier:cn,id:Wt,identifier:xn,power:on}=Ct,Pn=Ct.is_public!=0&&Ct.is_public;return we.createElement("div",{className:F.wrap,key:Wt,style:{width:bt,marginRight:(1+Xt)%Et===0?0:xt+_e,marginBottom:rn}},we.createElement("a",{className:F.li,onClick:Gt=>{Gt.preventDefault(),at(Ct==null?void 0:Ct.first_category_url)&&(ct&&(0,Ce.L9)([ct]),(0,Ce.xg)(Ct.first_category_url))}},we.createElement("div",{className:F.top},we.createElement(se.Z,{title:Ct.name},we.createElement("div",{className:F.name},Ct.name)),we.createElement("img",{className:F.img,src:ge.Z.IMG_SERVER+"/images/"+Ct.avatar_url}),we.createElement("div",{className:F.text,title:Ct.creator},Ct.creator),cn&&we.createElement("div",{className:F.btns},we.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),we.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Pn&&we.createElement("div",{className:F.sign},"\u516C\u5F00")),we.createElement("div",{className:F.bottom},Ct.visits>0&&we.createElement(se.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-liulanyan"}),we.createElement("span",null,Ct.visits))),Ct.course_members_count>0&&we.createElement(se.Z,{title:"\u6210\u5458",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan"}),Ct.course_members_count)),Ct.tasks_count>0&&we.createElement(se.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zuoye"}),Ct.tasks_count)),Ct.is_end?we.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):we.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ct.is_accessible&&we.createElement("div",{className:F.lockWrap},we.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),we.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!It.length&&we.createElement(O.Z,null)))},et={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},qe=E(89070),yt=({dataSource:kt=[],value:It,onChange:Et,className:xt,style:rn={},tabBarExtraContent:_e})=>S.createElement("div",{className:re()(et.tabs,xt),style:rn},S.createElement("div",{className:et.tabsWrap},kt.map((Ae,ct)=>!(Ae!=null&&Ae.hide)&&S.createElement("aside",{className:et.tab,onClick:()=>{Et(Ae.id),Ae.link&&qe.history.push(Ae.link)},key:ct},S.createElement("div",{className:It===Ae.id?et.active:""},Ae.name),(Ae==null?void 0:Ae.resetCount)==null&&(Ae==null?void 0:Ae.total)!==void 0&&S.createElement("span",null,"\uFF08",Ae==null?void 0:Ae.total,"\uFF09"),(Ae==null?void 0:Ae.resetCount)!==void 0&&(Ae==null?void 0:Ae.total)!==void 0&&S.createElement(se.Z,{title:(Ae==null?void 0:Ae.tip)!=null?Ae==null?void 0:Ae.tip:""},S.createElement("span",{style:{color:"#9096A3"}},"\uFF08",S.createElement("span",{style:{color:"#000"}},Ae==null?void 0:Ae.resetCount),"/",S.createElement("span",null,Ae==null?void 0:Ae.total),"\uFF09"))))),S.createElement("div",{className:et.tabBar},_e)),pt=({className:kt,style:It={},children:Et})=>S.createElement("div",{className:re()(kt),style:It},Et),vt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ot=E(38854),Bt=E(20834);const me=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var j=({sortValue:kt,dropValue:It,className:Et,onSort:xt,onDrop:rn,dataSource:_e=me})=>{var Ae;return S.createElement("div",{className:re()(vt.orderWrap,Et)},S.createElement(Ot.Z,{dropdownRender:()=>S.createElement(Bt.default,null,_e.map((ct,We)=>S.createElement(Bt.default.Item,{key:We,onClick:()=>rn(ct.id)},ct.name)))},S.createElement("span",{className:vt.orderTextWrap},(Ae=_e.find(ct=>It===ct.id))==null?void 0:Ae.name)),S.createElement("span",{className:vt.orderIconWrap},S.createElement("span",{className:vt.orderAsc},S.createElement("i",{className:kt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${vt.cursorPointer} ${vt.active}`:`iconfont icon-sanjiaoxing-up font12 ${vt.cursorPointer}`,onClick:()=>xt(kt==="asc"?"desc":"asc")})),S.createElement("span",{className:vt.orderDesc},S.createElement("i",{className:kt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${vt.cursorPointer} ${vt.active}`:`iconfont icon-sanjiaoxing-down font12 ${vt.cursorPointer}`,onClick:()=>xt(kt==="asc"?"desc":"asc")}))))},pe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Re=E(3113),P=Object.defineProperty,ne=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ke=(kt,It,Et)=>It in kt?P(kt,It,{enumerable:!0,configurable:!0,writable:!0,value:Et}):kt[It]=Et,Oe=(kt,It)=>{for(var Et in It||(It={}))fe.call(It,Et)&&ke(kt,Et,It[Et]);if(ne)for(var Et of ne(It))ye.call(It,Et)&&ke(kt,Et,It[Et]);return kt},Ze=(kt,It)=>{var Et={};for(var xt in kt)fe.call(kt,xt)&&It.indexOf(xt)<0&&(Et[xt]=kt[xt]);if(kt!=null&&ne)for(var xt of ne(kt))It.indexOf(xt)<0&&ye.call(kt,xt)&&(Et[xt]=kt[xt]);return Et},it=(kt,It,Et)=>new Promise((xt,rn)=>{var _e=We=>{try{ct(Et.next(We))}catch(at){rn(at)}},Ae=We=>{try{ct(Et.throw(We))}catch(at){rn(at)}},ct=We=>We.done?xt(We.value):Promise.resolve(We.value).then(_e,Ae);ct((Et=Et.apply(kt,It)).next())}),Ke=kt=>{var It=kt,{className:Et,style:xt,children:rn,loading:_e=!1,openLoading:Ae,onClick:ct=()=>{},size:We="middle",shape:at="round"}=It,bt=Ze(It,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ct,Xt]=(0,S.useState)(!1);return S.createElement(Re.ZP,Oe({onClick:(0,o.throttle)(cn=>it(void 0,null,function*(){Ae&&Xt(!0);try{yield ct(cn)}catch(Wt){console.log("error",Wt)}Ae&&Xt(!1)}),2e3,{leading:!0,trailing:!1}),className:re()(pe.btn,pe[`${We}-${at}`],Et),style:xt,size:We,shape:at,loading:Ct||_e},bt),rn)},Tt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},wt=({className:kt,style:It,children:Et=null,onClick:xt,title:rn})=>S.createElement("div",{className:re()(Tt.head,kt),style:It},S.createElement("span",{className:"primary-hover",onClick:xt},S.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),S.createElement("b",{title:rn},rn),S.createElement("div",{className:Tt.node},Et)),$t={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Nt=({confirmShow:kt=!0,confirmTitle:It,confirmClick:Et,cancelShow:xt=!0,cancelTitle:rn,cancelClick:_e,className:Ae,style:ct,confirmLoading:We=!1})=>S.createElement("div",{className:re()($t.btns,Ae),style:ct},kt&&S.createElement(Re.ZP,{loading:We,onClick:Et,type:"primary",className:$t.confirm},It),xt&&S.createElement(Re.ZP,{onClick:_e,className:$t.cancel},rn)),Jt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},w=({className:kt,style:It={},LeftContent:Et,children:xt,RightContent:rn})=>S.createElement("div",{className:re()(Jt.fixedBottom,kt),style:It},S.createElement("div",{className:Jt.wrap},S.createElement("div",{className:Jt.left},Et),S.createElement("div",{className:Jt.center},xt),S.createElement("div",{className:Jt.right},rn))),R={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ee=({className:kt,style:It={},dataSource:Et=[]})=>S.createElement("div",{className:re()(R.crumbs,kt),style:It},Et.map((xt,rn)=>rn<Et.length-1?S.createElement(S.Fragment,{key:rn},xt.path||xt.onClick?S.createElement("span",{className:R.hover,onClick:xt!=null&&xt.onClick?xt.onClick:()=>qe.history.push(xt.path)},xt.name):S.createElement("span",null,xt.name),S.createElement("span",null,"\xA0",">","\xA0")):S.createElement("span",{key:rn,style:{color:"#5F6368"}},xt.name))),Ie=E(31797),pn=Object.defineProperty,ze=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,De=(kt,It,Et)=>It in kt?pn(kt,It,{enumerable:!0,configurable:!0,writable:!0,value:Et}):kt[It]=Et,He=(kt,It)=>{for(var Et in It||(It={}))ae.call(It,Et)&&De(kt,Et,It[Et]);if(Je)for(var Et of Je(It))Ee.call(It,Et)&&De(kt,Et,It[Et]);return kt},q=(kt,It)=>ze(kt,Ge(It)),Ut=(kt,It)=>{var Et={};for(var xt in kt)ae.call(kt,xt)&&It.indexOf(xt)<0&&(Et[xt]=kt[xt]);if(kt!=null&&Je)for(var xt of Je(kt))It.indexOf(xt)<0&&Ee.call(kt,xt)&&(Et[xt]=kt[xt]);return Et};const{Countdown:Pe}=Ie.default;var an=kt=>{var It=kt,{onChange:Et}=It,xt=Ut(It,["onChange"]);const[rn,_e]=(0,S.useState)(null);(0,S.useEffect)(()=>{typeof rn=="number"&&rn>=0&&Et(rn)},[rn]);const Ae=ct=>{const We=Math.floor(ct/1e3);_e(We)};return S.createElement(Pe,q(He({},xt),{onChange:Ae}))}},69039:function(Kt,nt,E){"use strict";E.r(nt),E.d(nt,{default:function(){return Fe}});var S=E(59301),te=E(89070),xe=E(66104),ve=E(43418),$=E(99313),p=E(955),he=E(24780),re=E(3294),o=E(85149),ue=E(61186),G=E.n(ue),v={flex_box_center:"flex_box_center___dn0xX",flex_space_between:"flex_space_between___JlcX8",flex_box_vertical_center:"flex_box_vertical_center___PGWCu",flex_box_center_end:"flex_box_center_end___sRxxV",flex_box_column:"flex_box_column___WPwan",top:"top___arr9I",desc:"desc___tW8Wt",liked:"liked___Bq9NY",likedActive:"likedActive___XzpPk",reply:"reply___12llT",replyList:"replyList___NJsYv",comment:"comment___RWWH5",headpic:"headpic___v_77H"};G().locale("ZH-cn");const x=({userDetail:Q,dispatch:O})=>{var K;const I=(0,te.useParams)(),X=(0,te.useLocation)();(0,S.useEffect)(()=>{var g,b;I.type=(b=(g=X.pathname)==null?void 0:g.split("/"))==null?void 0:b[6]},[X.pathname]);const{homeworkBanksDetail:z}=Q;return S.createElement("section",{className:v.bg},S.createElement("section",{className:""},S.createElement("aside",{className:[v.desc,"c-black","font14","bg-white"].join(" ")},Q.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&S.createElement(o.Z,{value:(z==null?void 0:z.description)||"\u6682\u65E0\uFF5E"}),(K=z==null?void 0:z.attachments)==null?void 0:K.map((g,b)=>S.createElement("div",null,S.createElement("a",{href:`${re.Z.API_SERVER}${g.url}`},S.createElement("span",{className:"iconfont icon-fujian c-green font14"}),S.createElement("span",{className:"ml10 c-black"},g.title),S.createElement("span",{className:"c-light-black ml20 font12"},g.filesize)))),I.type==="group"&&S.createElement(S.Fragment,null,(z.min_num||z.max_num)&&S.createElement("div",{className:"mt10"},S.createElement("span",{className:"c-grey-666"},"\u5206\u7EC4\u8981\u6C42\uFF1A"),S.createElement("span",{className:"c-black-051"},z.min_num,"~ ",z.max_num," \u4EBA\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09")),z.base_on_project?S.createElement("p",null,S.createElement("span",{className:"c-grey-666"},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),S.createElement("span",{className:"c-black-051"},"\uFF08\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")):S.createElement("p",null,S.createElement("span",{className:"c-grey-666"},"\u4E0D\u57FA\u4E8E\u9879\u76EE"),S.createElement("span",{className:"c-black-051"},"\uFF08\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09"))))))};var A=(0,te.connect)(({userDetail:Q})=>({userDetail:Q}))(x),T=E(8797),Z={flex_box_center:"flex_box_center___ukees",flex_space_between:"flex_space_between___PHPo4",flex_box_vertical_center:"flex_box_vertical_center___MgEzw",flex_box_center_end:"flex_box_center_end___owDkz",flex_box_column:"flex_box_column____I7hO",top:"top___DHLWM",desc:"desc___JJR8P",liked:"liked___knpCw",likedActive:"likedActive___KPZCk",reply:"reply___n7kXe",replyList:"replyList___MVu52",comment:"comment___Leq7e",headpic:"headpic___HL9zI"};G().locale("ZH-cn");const ie=({userDetail:Q,dispatch:O})=>{var K,I;const{homeworkBanksDetail:X}=Q;return S.createElement("section",{className:Z.bg},S.createElement("section",{className:""},S.createElement("aside",{className:[Z.desc,"c-black","font14","bg-white"].join(" ")},X!=null&&X.reference_answer||(K=X==null?void 0:X.reference_attachments)!=null&&K.length?S.createElement(S.Fragment,null,S.createElement(o.Z,{value:(X==null?void 0:X.reference_answer)||""}),(I=X==null?void 0:X.reference_attachments)==null?void 0:I.map((z,g)=>S.createElement("div",null,S.createElement("a",{href:`${re.Z.API_SERVER}${z.url}`},S.createElement("span",{className:"iconfont icon-fujian c-green font14"}),S.createElement("span",{className:"ml10 c-black"},z.title),S.createElement("span",{className:"c-light-black ml20 font12"},z.filesize))))):S.createElement(T.Z,null))))};var M=(0,te.connect)(({userDetail:Q})=>({userDetail:Q}))(ie),U={flex_box_center:"flex_box_center___vHDeL",flex_space_between:"flex_space_between___rLrGx",flex_box_vertical_center:"flex_box_vertical_center___iGSf0",flex_box_center_end:"flex_box_center_end___mqG_2",flex_box_column:"flex_box_column___x9EJv",title:"title___LcvG_",export:"export___M5wlK",bg:"bg___XfKxA",tabs:"tabs___esytV"},W=E(93018),le=Object.defineProperty,k=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,J=(Q,O,K)=>O in Q?le(Q,O,{enumerable:!0,configurable:!0,writable:!0,value:K}):Q[O]=K,ge=(Q,O)=>{for(var K in O||(O={}))Y.call(O,K)&&J(Q,K,O[K]);if(k)for(var K of k(O))se.call(O,K)&&J(Q,K,O[K]);return Q},Ce=(Q,O,K)=>new Promise((I,X)=>{var z=B=>{try{b(K.next(B))}catch(F){X(F)}},g=B=>{try{b(K.throw(B))}catch(F){X(F)}},b=B=>B.done?I(B.value):Promise.resolve(B.value).then(z,g);b((K=K.apply(Q,O)).next())});const Te=({userDetail:Q,dispatch:O,history:K})=>{const[I]=(0,te.useSearchParams)(),X=(0,te.useParams)(),z=(0,te.useLocation)(),[g,b]=(0,S.useState)(I.get("tabs")||0),{homeworkBanksDetail:B}=Q;(0,S.useEffect)(()=>{var we,Ne;X.type=(Ne=(we=z.pathname)==null?void 0:we.split("/"))==null?void 0:Ne[6],O({type:"userDetail/getHomeworkBanksDetail",payload:ge({},X)})},[X.topicId,z.pathname]);const F=()=>{O({type:"userDetail/setActionTabs",payload:{key:"UserDetail-SendToClass",params:{object_id:[X.topicId],object_type:X.type}}})},Se=[{name:"\u5185\u5BB9\u8BE6\u60C5",id:0,compontent:S.createElement("div",{className:"minH500"},S.createElement(A,null))},{name:"\u53C2\u8003\u7B54\u6848",id:1,compontent:S.createElement(M,null)}];return S.createElement("section",{className:U.bg},S.createElement("div",{className:"edu-container"},S.createElement("section",{className:"animated fadeIn"},S.createElement("aside",{className:"mt10"},S.createElement(xe.Z,{separator:">"},S.createElement(xe.Z.Item,null,S.createElement(te.Link,{to:`/users/${X.username}/${X.topictype==="personal"?"topics":"topicbank"}/${X.topictype}`},X.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),S.createElement(xe.Z.Item,null,"\u8BE6\u60C5"))),S.createElement("aside",{className:[U.title,"mt20"].join(" ")},S.createElement("strong",{className:"font20 ml5"},B.name),B.is_public&&S.createElement(p.VV,{status:["\u516C\u5F00"]}))),S.createElement("aside",{className:"mt30 relative bg-white mb20"},S.createElement("div",{className:U.export},(B==null?void 0:B.authorize)&&S.createElement(S.Fragment,null,S.createElement("a",{onClick:we=>{we.preventDefault(),ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Ce(void 0,null,function*(){(yield(0,he.Tv)({object_type:"normal",object_id:[X.topicId]})).status===0&&K.push(`/users/${X.username}/topics/personal`)})})}},"\u5220\u9664"),S.createElement(te.Link,{to:`/users/${X.username}/topics/${X.topicId}/${X.topictype}/${X.type}/edit`},"\u7F16\u8F91")),S.createElement("a",{onClick:we=>{we.preventDefault(),F()}},"\u53D1\u9001")),S.createElement($.default,{defaultActiveKey:g,className:U.tabs},Se.map((we,Ne)=>S.createElement($.default.TabPane,{tab:we.name,key:we.id},we.compontent))))),S.createElement(W.Z,null))};var Fe=(0,te.connect)(({userDetail:Q,loading:O})=>({userDetail:Q,loading:O.effects}))(Te)},93018:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return Q}});var S=E(59301),te=E(89070),xe=E(8591),ve=E(43418),$=E(99313),p=E(61621),he=E(5112),re={title:"title___XAxiE",radioWrap:"radioWrap___k0pOB",radio:"radio___x9kMt",colorFF0000:"colorFF0000___IMgd0",pagination:"pagination___ou2ht",checkboxWrapper:"checkboxWrapper___kF7xI"},o=E(955),ue=E(85057),G=E(71418),v=E(24905),x=E(24780),A=E(26724),T=E.n(A),Z=(O,K,I)=>new Promise((X,z)=>{var g=F=>{try{B(I.next(F))}catch(Se){z(Se)}},b=F=>{try{B(I.throw(F))}catch(Se){z(Se)}},B=F=>F.done?X(F.value):Promise.resolve(F.value).then(g,b);B((I=I.apply(O,K)).next())}),M=({username:O,setStages:K,stages:I,hasError:X,setHasError:z})=>{const[g,b]=(0,S.useState)(""),[B,F]=(0,S.useState)(1),[Se,we]=(0,S.useState)([]),[Ne,je]=(0,S.useState)(!1),[et,qe]=(0,S.useState)(0);(0,S.useEffect)(()=>{rt({page:1,search:""},!0)},[]);const rt=(Dt,pt)=>Z(void 0,null,function*(){je(!0);const vt=yield(0,x.w3)({username:O,category:"manage",page:Dt.page,search:Dt.search});je(!1),we(Ot=>pt?vt==null?void 0:vt.subjects:[...Ot,...vt==null?void 0:vt.subjects]),qe(vt==null?void 0:vt.count)}),yt=(0,S.useRef)();return S.createElement("div",{className:re.wrap},S.createElement("div",{className:"mb10"},S.createElement(ue.t7,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:g,style:{width:500},onChange:Dt=>{b(Dt),F(1),yt.current.scrollTo({behavior:"smooth",top:0}),rt({page:1,search:Dt},!0)}})),S.createElement(G.Z,{spinning:Ne},S.createElement("div",{className:re.radioWrap,ref:yt},S.createElement(T(),{initialLoad:!1,pageStart:1,threshold:6,loadMore:()=>{F(B+1),rt({page:B+1,search:g},!1)},hasMore:Se.length<et,useWindow:!1},S.createElement(he.ZP.Group,{value:I.subjectId,onChange:Dt=>{K({subjectId:Dt.target.value,stage_ids:[]}),z(!1)}},Se.map(Dt=>{const pt=Dt.stages.map(vt=>({label:vt.name,value:vt.id}));return S.createElement("div",{key:Dt.id},S.createElement(he.ZP,{className:re.radio,value:Dt.id},Dt.name),Dt.id===I.subjectId&&S.createElement("div",{className:re.checkboxWrapper},pt.length>0&&S.createElement(v.default,{indeterminate:I.stage_ids.length>0&&I.stage_ids.length<pt.length,onChange:vt=>{K({subjectId:Dt.id,stage_ids:vt.target.checked?pt.map(Ot=>Ot.value):[]})},checked:I.stage_ids.length===pt.length},"\u5168\u9009"),S.createElement(v.default.Group,{options:pt,value:I.stage_ids,onChange:vt=>K({subjectId:Dt.id,stage_ids:vt})})))}))))),X&&S.createElement("div",{className:re.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u5B9E\u8DF5\u8BFE\u7A0B\u53CA\u7AE0\u8282"))},U=E(76895),W=E(35390),le=Object.defineProperty,k=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,J=(O,K,I)=>K in O?le(O,K,{enumerable:!0,configurable:!0,writable:!0,value:I}):O[K]=I,ge=(O,K)=>{for(var I in K||(K={}))Y.call(K,I)&&J(O,I,K[I]);if(k)for(var I of k(K))se.call(K,I)&&J(O,I,K[I]);return O},Ce=(O,K)=>{var I={};for(var X in O)Y.call(O,X)&&K.indexOf(X)<0&&(I[X]=O[X]);if(O!=null&&k)for(var X of k(O))K.indexOf(X)<0&&se.call(O,X)&&(I[X]=O[X]);return I},Te=(O,K,I)=>new Promise((X,z)=>{var g=F=>{try{B(I.next(F))}catch(Se){z(Se)}},b=F=>{try{B(I.throw(F))}catch(Se){z(Se)}},B=F=>F.done?X(F.value):Promise.resolve(F.value).then(g,b);B((I=I.apply(O,K)).next())});const Fe=O=>{var K=O,{userDetail:I,globalSetting:X,loading:z,user:g,dispatch:b}=K,B=Ce(K,["userDetail","globalSetting","loading","user","dispatch"]),F,Se,we,Ne,je;const[et,qe]=(0,S.useState)("course"),[rt,yt]=(0,S.useState)(""),[Dt,pt]=(0,S.useState)([]),[vt,Ot]=(0,S.useState)(),[Bt,me]=(0,S.useState)(!1),[ce,j]=(0,S.useState)(!1);(0,S.useEffect)(()=>{I.actionTabs.key==="UserDetail-SendToClass"&&pe(rt)},[I.actionTabs.key]);const pe=fe=>Te(void 0,null,function*(){me(!0);const ye=yield b({type:"userDetail/topicGetCourseList",payload:{search:fe}});ye&&pt((ye==null?void 0:ye.courses)||[]),me(!1)}),[Re,P]=(0,S.useState)({subjectId:"",stage_ids:[]}),ne=()=>Te(void 0,null,function*(){var fe,ye,ke,Oe,Ze,it;if(et==="course"){if(!vt){j(!0);return}const Ye=yield b({type:"userDetail/topicSendToClass",payload:ge({course_id:vt},(fe=I.actionTabs)==null?void 0:fe.params)});if(b({type:"userDetail/setActionTabs",payload:{}}),Ye&&Ye.status===0){const Ke={normal:"common_homework",group:"group_homework",exercise:"exercise",poll:"poll",videos:"video"};(0,o.xg)(`/classrooms/${vt}/${Ke[(ke=(ye=I.actionTabs)==null?void 0:ye.params)==null?void 0:ke.object_type]}`)}}else{if(!Re.subjectId||!Re.stage_ids.length){j(!0);return}(yield(0,W.nI)({id:(Ze=(Oe=I.actionTabs)==null?void 0:Oe.params)==null?void 0:Ze.object_id,login:(it=g.userInfo)==null?void 0:it.login},{stage_ids:Re.stage_ids})).status===0&&(xe.ZP.success("\u53D1\u9001\u6210\u529F"),b({type:"userDetail/setActionTabs",payload:{}}),(0,o.xg)(`/paths/${Re.subjectId}`))}});return S.createElement(ve.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:I.actionTabs.key==="UserDetail-SendToClass",title:"\u53D1\u9001",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:z["userDetail/sendToClass"],width:600,afterClose:()=>{j(!1),pt([]),P({subjectId:"",stage_ids:[]}),yt("")},onOk:ne,wrapClassName:U.Z.CustomCss,onCancel:()=>{b({type:"userDetail/setActionTabs",payload:{}})}},S.createElement($.default,{activeKey:et,onChange:fe=>{j(!1),qe(fe)},items:[{label:"\u8BFE\u5802",key:"course",children:S.createElement("div",{className:re.wrap},S.createElement("div",{className:"mb10"},S.createElement(ue.t7,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:rt,style:{width:500},onChange:fe=>{yt(fe),pe(fe)}})),S.createElement(p.Z,{active:!0,loading:Bt},S.createElement("div",{className:re.radioWrap},S.createElement(he.ZP.Group,{value:vt,onChange:fe=>{Ot(fe.target.value),j(!1)}},Dt.map((fe,ye)=>S.createElement(he.ZP,{className:re.radio,value:fe.course_id,key:fe.course_id},fe.course_name))))),((Se=(F=I.actionTabs)==null?void 0:F.params)==null?void 0:Se.object_type)!=="videos"&&S.createElement("div",{className:re.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u9898\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),ce&&S.createElement("div",{className:re.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802")),show:!0},{label:"\u5B9E\u8DF5\u8BFE\u7A0B",key:"subject",children:S.createElement(M,{username:(we=g.userInfo)==null?void 0:we.login,stages:Re,setStages:P,hasError:ce,setHasError:j}),show:((je=(Ne=I.actionTabs)==null?void 0:Ne.params)==null?void 0:je.object_type)==="videos"}].filter(fe=>fe.show)}))};var Q=(0,te.connect)(({userDetail:O,loading:K,globalSetting:I,user:X})=>({userDetail:O,globalSetting:I,loading:K.effects,user:X}))(Fe)},24768:function(Kt,nt,E){"use strict";E.d(nt,{AL:function(){return le},Iy:function(){return G},Qv:function(){return A},ez:function(){return W},jb:function(){return v}});var S=E(32834),te=E.n(S),xe=E(11690),ve=E.n(xe);let $=1;function p(ge,Ce){const Te=ge.match(/^(\s+)(?:```)/);if(Te===null)return Ce;const Fe=Te[1];return Ce.split(`
|
|
`).map(Q=>{const O=Q.match(/^\s+/);if(O===null)return Q;const[K]=O;return K.length>=Fe.length?Q.slice(Fe.length):Q}).join(`
|
|
`)}let he=[],re=["<ul>"];const o=new(te()).Renderer,ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function G(){he.length=0,re=["<ul>"]}const v={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function x(ge,Ce,Te,Fe){if(Ce>=ge.length||ge[Ce].level<=Te)return Ce;var Q=ge[Ce];Fe.push("<li><a href='#"+$+Q.anchor+"'>"+Q.text+"</a>"),Ce++;var O=[];return Ce=x(ge,Ce,Q.level,O),O.length>0&&(Fe.push("<ul>"),O.forEach(function(K){Fe.push(K)}),Fe.push("</ul>")),Fe.push("</li>"),Ce=x(ge,Ce,Te,Fe),Ce}function A(){return x(he,0,0,re),re.push("</ul>"),re.join("")}const T={heading(ge){const Ce=ue.exec(ge);if($+=1,Ce)return{type:"heading",raw:Ce[0],depth:Ce[1].length,text:Ce[2]}},fences(ge){const Ce=this.rules.block.fences.exec(ge);if(Ce){const Te=Ce[0];let Fe=p(Te,Ce[3]||"");const Q=Ce[2]?Ce[2].trim():Ce[2];if(["latex","katex","math"].indexOf(Q)>=0){const O=M(),K=Fe;Fe=O,U[O]={type:"block",expression:K}}return{type:"code",raw:Te,lang:Q,text:Fe}}}},Z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ie=0;const M=()=>`__special_katext_id_${ie++}__`;let U={};function W(){return U}function le(){ie=0,U={}}function k(ge){return ge=ge.replace(Z,(Ce,Te)=>{const Fe=M();return U[Fe]={type:"inline",expression:Te},Fe}),ge}const Y=o.listitem;o.listitem=function(ge){return Y(k(ge))};const se=o.paragraph;o.paragraph=function(ge){return se(k(ge))};const J=o.tablecell;o.tablecell=function(ge,Ce){return J(k(ge),Ce)},o.code=function(ge,Ce,Te){const Fe=(Ce||"").match(/\S*/)[0];return Fe?["latex","katex","math"].indexOf(Fe)>=0?`<p class='editormd-tex'>${ge}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ce}">${Te?ge:(0,xe.escape)(ge,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Te?ge:(0,xe.escape)(ge,!0))+"</code></pre>"},o.heading=function(ge,Ce,Te){let Fe=this.options.headerPrefix+Te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return he.push({anchor:Fe,level:Ce,text:ge}),"<h"+Ce+' id="'+$+Fe+'">'+ge+"</h"+Ce+">"},te().setOptions({silent:!0,gfm:!0,pedantic:!1}),te().use({tokenizer:T,renderer:o}),nt.ZP=te()},36785:function(Kt,nt,E){"use strict";E.d(nt,{o2:function(){return $},yT:function(){return p}});var S=E(80702),te=E(33166);const xe=te.i.map(he=>`${he}-inverse`),ve=["success","processing","error","default","warning"];function $(he){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,S.Z)(xe),(0,S.Z)(te.i)).includes(he):te.i.includes(he)}function p(he){return ve.includes(he)}},56762:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return te}});var S=E(59301);function te(){const[,xe]=S.useReducer(ve=>ve+1,0);return xe}},79676:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return p}});var S=E(19447);function te(he,re,o,ue){if(ue===!1)return{adjustX:!1,adjustY:!1};const G=ue&&typeof ue=="object"?ue:{},v={};switch(he){case"top":case"bottom":v.shiftX=re.dropdownArrowOffset*2+o;break;case"left":case"right":v.shiftY=re.dropdownArrowOffsetVertical*2+o;break}const x=Object.assign(Object.assign({},v),G);return x.shiftX||(x.adjustX=!0),x.shiftY||(x.adjustY=!0),x}const xe={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},ve={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},$=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function p(he){const{arrowWidth:re,autoAdjustOverflow:o,arrowPointAtCenter:ue,offset:G,borderRadius:v,visibleFirst:x}=he,A=re/2,T={};return Object.keys(xe).forEach(Z=>{const ie=ue&&ve[Z]||xe[Z],M=Object.assign(Object.assign({},ie),{offset:[0,0]});switch(T[Z]=M,$.has(Z)&&(M.autoArrow=!1),Z){case"top":case"topLeft":case"topRight":M.offset[1]=-A-G;break;case"bottom":case"bottomLeft":case"bottomRight":M.offset[1]=A+G;break;case"left":case"leftTop":case"leftBottom":M.offset[0]=-A-G;break;case"right":case"rightTop":case"rightBottom":M.offset[0]=A+G;break}const U=(0,S.fS)({contentRadius:v,limitVerticalRadius:!0});if(ue)switch(Z){case"topLeft":case"bottomLeft":M.offset[0]=-U.dropdownArrowOffset-A;break;case"topRight":case"bottomRight":M.offset[0]=U.dropdownArrowOffset+A;break;case"leftTop":case"rightTop":M.offset[1]=-U.dropdownArrowOffset-A;break;case"leftBottom":case"rightBottom":M.offset[1]=U.dropdownArrowOffset+A;break}M.overflow=te(Z,U,re,o),x&&(M.htmlRegion="visibleFirst")}),T}},19080:function(Kt,nt,E){"use strict";E.d(nt,{F:function(){return $},Z:function(){return ve}});var S=E(92310),te=E.n(S);const xe=null;function ve(p,he,re){return te()({[`${p}-status-success`]:he==="success",[`${p}-status-warning`]:he==="warning",[`${p}-status-error`]:he==="error",[`${p}-status-validating`]:he==="validating",[`${p}-has-feedback`]:re})}const $=(p,he)=>he||p},66104:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return K}});var S=E(92310),te=E.n(S),xe=E(11592),ve=E(26112),$=E(59301),p=E(92343),he=E(36355),re=E(84105),o=E(91857);const ue=I=>{let{children:X}=I;const{getPrefixCls:z}=$.useContext(he.E_),g=z("breadcrumb");return $.createElement("li",{className:`${g}-separator`,"aria-hidden":"true"},X===""?X:X||"/")};ue.__ANT_BREADCRUMB_SEPARATOR=!0;var G=ue,v=function(I,X){var z={};for(var g in I)Object.prototype.hasOwnProperty.call(I,g)&&X.indexOf(g)<0&&(z[g]=I[g]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,g=Object.getOwnPropertySymbols(I);b<g.length;b++)X.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(I,g[b])&&(z[g[b]]=I[g[b]]);return z};function x(I,X){if(I.title===void 0||I.title===null)return null;const z=Object.keys(X).join("|");return typeof I.title=="object"?I.title:String(I.title).replace(new RegExp(`:(${z})`,"g"),(g,b)=>X[b]||g)}function A(I,X,z,g){if(z==null)return null;const{className:b,onClick:B}=X,F=v(X,["className","onClick"]),Se=Object.assign(Object.assign({},(0,ve.Z)(F,{data:!0,aria:!0})),{onClick:B});return g!==void 0?$.createElement("a",Object.assign({},Se,{className:te()(`${I}-link`,b),href:g}),z):$.createElement("span",Object.assign({},Se,{className:te()(`${I}-link`,b)}),z)}function T(I,X){return(g,b,B,F,Se)=>{if(X)return X(g,b,B,F);const we=x(g,b);return A(I,g,we,Se)}}var Z=function(I,X){var z={};for(var g in I)Object.prototype.hasOwnProperty.call(I,g)&&X.indexOf(g)<0&&(z[g]=I[g]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,g=Object.getOwnPropertySymbols(I);b<g.length;b++)X.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(I,g[b])&&(z[g[b]]=I[g[b]]);return z};const ie=I=>{const{prefixCls:X,separator:z="/",children:g,menu:b,overlay:B,dropdownProps:F,href:Se}=I,Ne=(je=>{if(b||B){const et=Object.assign({},F);if(b){const qe=b||{},{items:rt}=qe,yt=Z(qe,["items"]);et.menu=Object.assign(Object.assign({},yt),{items:rt==null?void 0:rt.map((Dt,pt)=>{var{key:vt,title:Ot,label:Bt,path:me}=Dt,ce=Z(Dt,["key","title","label","path"]);let j=Bt!=null?Bt:Ot;return me&&(j=$.createElement("a",{href:`${Se}${me}`},j)),Object.assign(Object.assign({},ce),{key:vt!=null?vt:pt,label:j})})})}else B&&(et.overlay=B);return $.createElement(o.Z,Object.assign({placement:"bottom"},et),$.createElement("span",{className:`${X}-overlay-link`},je,$.createElement(re.Z,null)))}return je})(g);return Ne!=null?$.createElement($.Fragment,null,$.createElement("li",null,Ne),z&&$.createElement(G,null,z)):null},M=I=>{const{prefixCls:X,children:z,href:g}=I,b=Z(I,["prefixCls","children","href"]),{getPrefixCls:B}=$.useContext(he.E_),F=B("breadcrumb",X);return $.createElement(ie,Object.assign({},b,{prefixCls:F}),A(F,b,z,g))};M.__ANT_BREADCRUMB_ITEM=!0;var U=M,W=E(17313),le=E(83116),k=E(37613);const Y=I=>{const{componentCls:X,iconCls:z}=I;return{[X]:Object.assign(Object.assign({},(0,W.Wf)(I)),{color:I.itemColor,fontSize:I.fontSize,[z]:{fontSize:I.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:I.linkColor,transition:`color ${I.motionDurationMid}`,padding:`0 ${I.paddingXXS}px`,borderRadius:I.borderRadiusSM,height:I.lineHeight*I.fontSize,display:"inline-block",marginInline:-I.marginXXS,"&:hover":{color:I.linkHoverColor,backgroundColor:I.colorBgTextHover}},(0,W.Qy)(I)),"li:last-child":{color:I.lastItemColor},[`${X}-separator`]:{marginInline:I.separatorMargin,color:I.separatorColor},[`${X}-link`]:{[`
|
|
> ${z} + span,
|
|
> ${z} + a
|
|
`]:{marginInlineStart:I.marginXXS}},[`${X}-overlay-link`]:{borderRadius:I.borderRadiusSM,height:I.lineHeight*I.fontSize,display:"inline-block",padding:`0 ${I.paddingXXS}px`,marginInline:-I.marginXXS,[`> ${z}`]:{marginInlineStart:I.marginXXS,fontSize:I.fontSizeIcon},"&:hover":{color:I.linkHoverColor,backgroundColor:I.colorBgTextHover,a:{color:I.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${I.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,le.Z)("Breadcrumb",I=>{const X=(0,k.TS)(I,{});return[Y(X)]},I=>({itemColor:I.colorTextDescription,lastItemColor:I.colorText,iconFontSize:I.fontSize,linkColor:I.colorTextDescription,linkHoverColor:I.colorText,separatorColor:I.colorTextDescription,separatorMargin:I.marginXS})),J=function(I,X){var z={};for(var g in I)Object.prototype.hasOwnProperty.call(I,g)&&X.indexOf(g)<0&&(z[g]=I[g]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,g=Object.getOwnPropertySymbols(I);b<g.length;b++)X.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(I,g[b])&&(z[g[b]]=I[g[b]]);return z};function ge(I){const{breadcrumbName:X,children:z}=I,g=J(I,["breadcrumbName","children"]),b=Object.assign({title:X},g);return z&&(b.menu={items:z.map(B=>{var{breadcrumbName:F}=B,Se=J(B,["breadcrumbName"]);return Object.assign(Object.assign({},Se),{title:F})})}),b}function Ce(I,X){return(0,$.useMemo)(()=>I||(X?X.map(ge):null),[I,X])}var Te=function(I,X){var z={};for(var g in I)Object.prototype.hasOwnProperty.call(I,g)&&X.indexOf(g)<0&&(z[g]=I[g]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,g=Object.getOwnPropertySymbols(I);b<g.length;b++)X.indexOf(g[b])<0&&Object.prototype.propertyIsEnumerable.call(I,g[b])&&(z[g[b]]=I[g[b]]);return z};const Fe=(I,X)=>{if(X===void 0)return X;let z=(X||"").replace(/^\//,"");return Object.keys(I).forEach(g=>{z=z.replace(`:${g}`,I[g])}),z},Q=I=>{const{prefixCls:X,separator:z="/",style:g,className:b,rootClassName:B,routes:F,items:Se,children:we,itemRender:Ne,params:je={}}=I,et=Te(I,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:qe,direction:rt,breadcrumb:yt}=$.useContext(he.E_);let Dt;const pt=qe("breadcrumb",X),[vt,Ot]=se(pt),Bt=Ce(Se,F),me=T(pt,Ne);if(Bt&&Bt.length>0){const pe=[],Re=Se||F;Dt=Bt.map((P,ne)=>{const{path:fe,key:ye,type:ke,menu:Oe,overlay:Ze,onClick:it,className:Ye,separator:Ke,dropdownProps:Tt}=P,St=Fe(je,fe);St!==void 0&&pe.push(St);const wt=ye!=null?ye:ne;if(ke==="separator")return $.createElement(G,{key:wt},Ke);const $t={},Yt=ne===Bt.length-1;Oe?$t.menu=Oe:Ze&&($t.overlay=Ze);let{href:Nt}=P;return pe.length&&St!==void 0&&(Nt=`#/${pe.join("/")}`),$.createElement(ie,Object.assign({key:wt},$t,(0,ve.Z)(P,{data:!0,aria:!0}),{className:Ye,dropdownProps:Tt,href:Nt,separator:Yt?"":z,onClick:it,prefixCls:pt}),me(P,je,Re,pe,Nt))})}else if(we){const pe=(0,xe.Z)(we).length;Dt=(0,xe.Z)(we).map((Re,P)=>{if(!Re)return Re;const ne=P===pe-1;return(0,p.Tm)(Re,{separator:ne?"":z,key:P})})}const ce=te()(pt,yt==null?void 0:yt.className,{[`${pt}-rtl`]:rt==="rtl"},b,B,Ot),j=Object.assign(Object.assign({},yt==null?void 0:yt.style),g);return vt($.createElement("nav",Object.assign({className:ce,style:j},et),$.createElement("ol",null,Dt)))};Q.Item=U,Q.Separator=G;var O=Q,K=O},24905:function(Kt,nt,E){"use strict";E.d(nt,{default:function(){return se}});var S=E(92310),te=E.n(S),xe=E(5630),ve=E(59301),$=E(36355),p=E(1684),he=E(32441),o=ve.createContext(null),ue=E(98447),G=E(14088),v=E(4572),x=function(J,ge){var Ce={};for(var Te in J)Object.prototype.hasOwnProperty.call(J,Te)&&ge.indexOf(Te)<0&&(Ce[Te]=J[Te]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Te=Object.getOwnPropertySymbols(J);Fe<Te.length;Fe++)ge.indexOf(Te[Fe])<0&&Object.prototype.propertyIsEnumerable.call(J,Te[Fe])&&(Ce[Te[Fe]]=J[Te[Fe]]);return Ce};const A=(J,ge)=>{var Ce;const{prefixCls:Te,className:Fe,rootClassName:Q,children:O,indeterminate:K=!1,style:I,onMouseEnter:X,onMouseLeave:z,skipGroup:g=!1,disabled:b}=J,B=x(J,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:F,direction:Se,checkbox:we}=ve.useContext($.E_),Ne=ve.useContext(o),{isFormItemInput:je}=ve.useContext(he.aM),et=ve.useContext(p.Z),qe=(Ce=(Ne==null?void 0:Ne.disabled)||b)!==null&&Ce!==void 0?Ce:et,rt=ve.useRef(B.value);ve.useEffect(()=>{Ne==null||Ne.registerValue(B.value)},[]),ve.useEffect(()=>{if(!g)return B.value!==rt.current&&(Ne==null||Ne.cancelValue(rt.current),Ne==null||Ne.registerValue(B.value),rt.current=B.value),()=>Ne==null?void 0:Ne.cancelValue(B.value)},[B.value]);const yt=F("checkbox",Te),[Dt,pt]=(0,ue.ZP)(yt),vt=Object.assign({},B);Ne&&!g&&(vt.onChange=function(){B.onChange&&B.onChange.apply(B,arguments),Ne.toggleOption&&Ne.toggleOption({label:O,value:B.value})},vt.name=Ne.name,vt.checked=Ne.value.includes(B.value));const Ot=te()(`${yt}-wrapper`,{[`${yt}-rtl`]:Se==="rtl",[`${yt}-wrapper-checked`]:vt.checked,[`${yt}-wrapper-disabled`]:qe,[`${yt}-wrapper-in-form-item`]:je},we==null?void 0:we.className,Fe,Q,pt),Bt=te()({[`${yt}-indeterminate`]:K},v.A,pt),me=K?"mixed":void 0;return Dt(ve.createElement(G.Z,{component:"Checkbox",disabled:qe},ve.createElement("label",{className:Ot,style:Object.assign(Object.assign({},we==null?void 0:we.style),I),onMouseEnter:X,onMouseLeave:z},ve.createElement(xe.Z,Object.assign({"aria-checked":me},vt,{prefixCls:yt,className:Bt,disabled:qe,ref:ge})),O!==void 0&&ve.createElement("span",null,O))))};var Z=ve.forwardRef(A),ie=E(80702),M=E(2738),U=function(J,ge){var Ce={};for(var Te in J)Object.prototype.hasOwnProperty.call(J,Te)&&ge.indexOf(Te)<0&&(Ce[Te]=J[Te]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Te=Object.getOwnPropertySymbols(J);Fe<Te.length;Fe++)ge.indexOf(Te[Fe])<0&&Object.prototype.propertyIsEnumerable.call(J,Te[Fe])&&(Ce[Te[Fe]]=J[Te[Fe]]);return Ce};const W=(J,ge)=>{const{defaultValue:Ce,children:Te,options:Fe=[],prefixCls:Q,className:O,rootClassName:K,style:I,onChange:X}=J,z=U(J,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:b}=ve.useContext($.E_),[B,F]=ve.useState(z.value||Ce||[]),[Se,we]=ve.useState([]);ve.useEffect(()=>{"value"in z&&F(z.value||[])},[z.value]);const Ne=ve.useMemo(()=>Fe.map(ce=>typeof ce=="string"||typeof ce=="number"?{label:ce,value:ce}:ce),[Fe]),je=ce=>{we(j=>j.filter(pe=>pe!==ce))},et=ce=>{we(j=>[].concat((0,ie.Z)(j),[ce]))},qe=ce=>{const j=B.indexOf(ce.value),pe=(0,ie.Z)(B);j===-1?pe.push(ce.value):pe.splice(j,1),"value"in z||F(pe),X==null||X(pe.filter(Re=>Se.includes(Re)).sort((Re,P)=>{const ne=Ne.findIndex(ye=>ye.value===Re),fe=Ne.findIndex(ye=>ye.value===P);return ne-fe}))},rt=g("checkbox",Q),yt=`${rt}-group`,[Dt,pt]=(0,ue.ZP)(rt),vt=(0,M.Z)(z,["value","disabled"]),Ot=Fe.length?Ne.map(ce=>ve.createElement(Z,{prefixCls:rt,key:ce.value.toString(),disabled:"disabled"in ce?ce.disabled:z.disabled,value:ce.value,checked:B.includes(ce.value),onChange:ce.onChange,className:`${yt}-item`,style:ce.style,title:ce.title},ce.label)):Te,Bt={toggleOption:qe,value:B,disabled:z.disabled,name:z.name,registerValue:et,cancelValue:je},me=te()(yt,{[`${yt}-rtl`]:b==="rtl"},O,K,pt);return Dt(ve.createElement("div",Object.assign({className:me,style:I},vt,{ref:ge}),ve.createElement(o.Provider,{value:Bt},Ot)))},le=ve.forwardRef(W);var k=ve.memo(le);const Y=Z;Y.Group=k,Y.__ANT_CHECKBOX=!0;var se=Y},98447:function(Kt,nt,E){"use strict";E.d(nt,{C2:function(){return $}});var S=E(17313),te=E(37613),xe=E(83116);const ve=p=>{const{checkboxCls:he}=p,re=`${he}-wrapper`;return[{[`${he}-group`]:Object.assign(Object.assign({},(0,S.Wf)(p)),{display:"inline-flex",flexWrap:"wrap",columnGap:p.marginXS,[`> ${p.antCls}-row`]:{flex:1}}),[re]:Object.assign(Object.assign({},(0,S.Wf)(p)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${re}`]:{marginInlineStart:0},[`&${re}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[he]:Object.assign(Object.assign({},(0,S.Wf)(p)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:p.borderRadiusSM,alignSelf:"center",[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${he}-inner`]:Object.assign({},(0,S.oN)(p))},[`${he}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:p.checkboxSize,height:p.checkboxSize,direction:"ltr",backgroundColor:p.colorBgContainer,border:`${p.lineWidth}px ${p.lineType} ${p.colorBorder}`,borderRadius:p.borderRadiusSM,borderCollapse:"separate",transition:`all ${p.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:p.checkboxSize/14*5,height:p.checkboxSize/14*8,border:`${p.lineWidthBold}px solid ${p.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${p.motionDurationFast} ${p.motionEaseInBack}, opacity ${p.motionDurationFast}`}},"& + span":{paddingInlineStart:p.paddingXS,paddingInlineEnd:p.paddingXS}})},{[`
|
|
${re}:not(${re}-disabled),
|
|
${he}:not(${he}-disabled)
|
|
`]:{[`&:hover ${he}-inner`]:{borderColor:p.colorPrimary}},[`${re}:not(${re}-disabled)`]:{[`&:hover ${he}-checked:not(${he}-disabled) ${he}-inner`]:{backgroundColor:p.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${he}-checked:not(${he}-disabled):after`]:{borderColor:p.colorPrimaryHover}}},{[`${he}-checked`]:{[`${he}-inner`]:{backgroundColor:p.colorPrimary,borderColor:p.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${p.motionDurationMid} ${p.motionEaseOutBack} ${p.motionDurationFast}`}}},[`
|
|
${re}-checked:not(${re}-disabled),
|
|
${he}-checked:not(${he}-disabled)
|
|
`]:{[`&:hover ${he}-inner`]:{backgroundColor:p.colorPrimaryHover,borderColor:"transparent"}}},{[he]:{"&-indeterminate":{[`${he}-inner`]:{backgroundColor:p.colorBgContainer,borderColor:p.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:p.fontSizeLG/2,height:p.fontSizeLG/2,backgroundColor:p.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${re}-disabled`]:{cursor:"not-allowed"},[`${he}-disabled`]:{[`&, ${he}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${he}-inner`]:{background:p.colorBgContainerDisabled,borderColor:p.colorBorder,"&:after":{borderColor:p.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:p.colorTextDisabled},[`&${he}-indeterminate ${he}-inner::after`]:{background:p.colorTextDisabled}}}]};function $(p,he){const re=(0,te.TS)(he,{checkboxCls:`.${p}`,checkboxSize:he.controlInteractiveSize});return[ve(re)]}nt.ZP=(0,xe.Z)("Checkbox",(p,he)=>{let{prefixCls:re}=he;return[$(re,p)]})},91857:function(Kt,nt,E){"use strict";var S=E(59301),te=E(38819),xe=E(92310),ve=E.n(xe),$=E(31561),p=E(70425),he=E(18929),re=E(2738),o=E(79676),ue=E(53487),G=E(92343),v=E(36355),x=E(20834),A=E(40875),T=E(88088),Z=E(47211);const ie=null,M=k=>{const{menu:Y,arrow:se,prefixCls:J,children:ge,trigger:Ce,disabled:Te,dropdownRender:Fe,getPopupContainer:Q,overlayClassName:O,rootClassName:K,open:I,onOpenChange:X,visible:z,onVisibleChange:g,mouseEnterDelay:b=.15,mouseLeaveDelay:B=.1,autoAdjustOverflow:F=!0,placement:Se="",overlay:we,transitionName:Ne}=k,{getPopupContainer:je,getPrefixCls:et,direction:qe}=S.useContext(v.E_),rt=S.useMemo(()=>{const Oe=et();return Ne!==void 0?Ne:Se.includes("top")?`${Oe}-slide-down`:`${Oe}-slide-up`},[et,Se,Ne]),yt=S.useMemo(()=>Se?Se.includes("Center")?Se.slice(0,Se.indexOf("Center")):Se:qe==="rtl"?"bottomRight":"bottomLeft",[Se,qe]),Dt=et("dropdown",J),[pt,vt]=(0,Z.Z)(Dt),[,Ot]=(0,T.Z)(),Bt=S.Children.only(ge),me=(0,G.Tm)(Bt,{className:ve()(`${Dt}-trigger`,{[`${Dt}-rtl`]:qe==="rtl"},Bt.props.className),disabled:Te}),ce=Te?[]:Ce;let j;ce&&ce.includes("contextMenu")&&(j=!0);const[pe,Re]=(0,he.Z)(!1,{value:I!=null?I:z}),P=(0,p.useEvent)(Oe=>{X==null||X(Oe),g==null||g(Oe),Re(Oe)}),ne=ve()(O,K,vt,{[`${Dt}-rtl`]:qe==="rtl"}),fe=(0,o.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:F,offset:Ot.marginXXS,arrowWidth:se?Ot.sizePopupArrow:0,borderRadius:Ot.borderRadius}),ye=S.useCallback(()=>{Re(!1)},[]),ke=()=>{let Oe;return Y!=null&&Y.items?Oe=S.createElement(x.default,Object.assign({},Y)):typeof we=="function"?Oe=we():Oe=we,Fe&&(Oe=Fe(Oe)),Oe=S.Children.only(typeof Oe=="string"?S.createElement("span",null,Oe):Oe),S.createElement(A.J,{prefixCls:`${Dt}-menu`,expandIcon:S.createElement("span",{className:`${Dt}-menu-submenu-arrow`},S.createElement(te.Z,{className:`${Dt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ye,validator:Ze=>{let{mode:it}=Ze}},Oe)};return pt(S.createElement($.Z,Object.assign({alignPoint:j},(0,re.Z)(k,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:B,visible:pe,builtinPlacements:fe,arrow:!!se,overlayClassName:ne,prefixCls:Dt,getPopupContainer:Q||je,transitionName:rt,trigger:ce,overlay:ke,placement:yt,onVisibleChange:P}),me))};function U(k){return Object.assign(Object.assign({},k),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const W=(0,ue.Z)(M,"dropdown",k=>k,U),le=k=>S.createElement(W,Object.assign({},k),S.createElement("span",null));M._InternalPanelDoNotUseOrYouWillBeFired=le,nt.Z=M},38854:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return T}});var S=E(91857),te=E(92310),xe=E.n(te),ve=E(59301),$=E(18785),p=E(3113),he=E(36355),re=E(81327),o=E(33234),ue=E(47211),G=function(Z,ie){var M={};for(var U in Z)Object.prototype.hasOwnProperty.call(Z,U)&&ie.indexOf(U)<0&&(M[U]=Z[U]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,U=Object.getOwnPropertySymbols(Z);W<U.length;W++)ie.indexOf(U[W])<0&&Object.prototype.propertyIsEnumerable.call(Z,U[W])&&(M[U[W]]=Z[U[W]]);return M};const v=Z=>{const{getPopupContainer:ie,getPrefixCls:M,direction:U}=ve.useContext(he.E_),{prefixCls:W,type:le="default",danger:k,disabled:Y,loading:se,onClick:J,htmlType:ge,children:Ce,className:Te,menu:Fe,arrow:Q,autoFocus:O,overlay:K,trigger:I,align:X,open:z,onOpenChange:g,placement:b,getPopupContainer:B,href:F,icon:Se=ve.createElement($.Z,null),title:we,buttonsRender:Ne=ke=>ke,mouseEnterDelay:je,mouseLeaveDelay:et,overlayClassName:qe,overlayStyle:rt,destroyPopupOnHide:yt,dropdownRender:Dt}=Z,pt=G(Z,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),vt=M("dropdown",W),Ot=`${vt}-button`,[Bt,me]=(0,ue.Z)(vt),ce={menu:Fe,arrow:Q,autoFocus:O,align:X,disabled:Y,trigger:Y?[]:I,onOpenChange:g,getPopupContainer:B||ie,mouseEnterDelay:je,mouseLeaveDelay:et,overlayClassName:qe,overlayStyle:rt,destroyPopupOnHide:yt,dropdownRender:Dt},{compactSize:j,compactItemClassnames:pe}=(0,o.ri)(vt,U),Re=xe()(Ot,pe,Te,me);"overlay"in Z&&(ce.overlay=K),"open"in Z&&(ce.open=z),"placement"in Z?ce.placement=b:ce.placement=U==="rtl"?"bottomLeft":"bottomRight";const P=ve.createElement(p.ZP,{type:le,danger:k,disabled:Y,loading:se,onClick:J,htmlType:ge,href:F,title:we},Ce),ne=ve.createElement(p.ZP,{type:le,danger:k,icon:Se}),[fe,ye]=Ne([P,ne]);return Bt(ve.createElement(re.Z.Compact,Object.assign({className:Re,size:j,block:!0},pt),fe,ve.createElement(S.Z,Object.assign({},ce),ye)))};v.__ANT_BUTTON=!0;var x=v;const A=S.Z;A.Button=x;var T=A},47211:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return G}});var S=E(17313),te=E(13826),xe=E(92899),ve=E(29878),$=E(19447),p=E(83116),he=E(37613),o=v=>{const{componentCls:x,menuCls:A,colorError:T,colorTextLightSolid:Z}=v,ie=`${A}-item`;return{[`${x}, ${x}-menu-submenu`]:{[`${A} ${ie}`]:{[`&${ie}-danger:not(${ie}-disabled)`]:{color:T,"&:hover":{color:Z,backgroundColor:T}}}}}};const ue=v=>{const{componentCls:x,menuCls:A,zIndexPopup:T,dropdownArrowDistance:Z,sizePopupArrow:ie,antCls:M,iconCls:U,motionDurationMid:W,dropdownPaddingVertical:le,fontSize:k,dropdownEdgeChildPadding:Y,colorTextDisabled:se,fontSizeIcon:J,controlPaddingHorizontal:ge,colorBgElevated:Ce}=v;return[{[x]:Object.assign(Object.assign({},(0,S.Wf)(v)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-Z+ie/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${M}-btn`]:{[`& > ${U}-down, & > ${M}-btn-icon > ${U}-down`]:{fontSize:J}},[`${x}-wrap`]:{position:"relative",[`${M}-btn > ${U}-down`]:{fontSize:J},[`${U}-down::before`]:{transition:`transform ${W}`}},[`${x}-wrap-open`]:{[`${U}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${M}-slide-down-enter${M}-slide-down-enter-active${x}-placement-bottomLeft,
|
|
&${M}-slide-down-appear${M}-slide-down-appear-active${x}-placement-bottomLeft,
|
|
&${M}-slide-down-enter${M}-slide-down-enter-active${x}-placement-bottom,
|
|
&${M}-slide-down-appear${M}-slide-down-appear-active${x}-placement-bottom,
|
|
&${M}-slide-down-enter${M}-slide-down-enter-active${x}-placement-bottomRight,
|
|
&${M}-slide-down-appear${M}-slide-down-appear-active${x}-placement-bottomRight`]:{animationName:te.fJ},[`&${M}-slide-up-enter${M}-slide-up-enter-active${x}-placement-topLeft,
|
|
&${M}-slide-up-appear${M}-slide-up-appear-active${x}-placement-topLeft,
|
|
&${M}-slide-up-enter${M}-slide-up-enter-active${x}-placement-top,
|
|
&${M}-slide-up-appear${M}-slide-up-appear-active${x}-placement-top,
|
|
&${M}-slide-up-enter${M}-slide-up-enter-active${x}-placement-topRight,
|
|
&${M}-slide-up-appear${M}-slide-up-appear-active${x}-placement-topRight`]:{animationName:te.Qt},[`&${M}-slide-down-leave${M}-slide-down-leave-active${x}-placement-bottomLeft,
|
|
&${M}-slide-down-leave${M}-slide-down-leave-active${x}-placement-bottom,
|
|
&${M}-slide-down-leave${M}-slide-down-leave-active${x}-placement-bottomRight`]:{animationName:te.Uw},[`&${M}-slide-up-leave${M}-slide-up-leave-active${x}-placement-topLeft,
|
|
&${M}-slide-up-leave${M}-slide-up-leave-active${x}-placement-top,
|
|
&${M}-slide-up-leave${M}-slide-up-leave-active${x}-placement-topRight`]:{animationName:te.ly}})},(0,$.ZP)(v,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${x} ${A}`]:{position:"relative",margin:0},[`${A}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${x}, ${x}-menu-submenu`]:{[A]:Object.assign(Object.assign({padding:Y,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:v.borderRadiusLG,outline:"none",boxShadow:v.boxShadowSecondary},(0,S.Qy)(v)),{[`${A}-item-group-title`]:{padding:`${le}px ${ge}px`,color:v.colorTextDescription,transition:`all ${W}`},[`${A}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${A}-item-icon`]:{minWidth:k,marginInlineEnd:v.marginXS,fontSize:v.fontSizeSM},[`${A}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${W}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${A}-item, ${A}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${le}px ${ge}px`,color:v.colorText,fontWeight:"normal",fontSize:k,lineHeight:v.lineHeight,cursor:"pointer",transition:`all ${W}`,borderRadius:v.borderRadiusSM,"&:hover, &-active":{backgroundColor:v.controlItemBgHover}},(0,S.Qy)(v)),{"&-selected":{color:v.colorPrimary,backgroundColor:v.controlItemBgActive,"&:hover, &-active":{backgroundColor:v.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${v.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:v.colorSplit},[`${x}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:v.paddingXS,[`${x}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:v.colorTextDescription,fontSize:J,fontStyle:"normal"}}}),[`${A}-item-group-list`]:{margin:`0 ${v.marginXS}px`,padding:0,listStyle:"none"},[`${A}-submenu-title`]:{paddingInlineEnd:ge+v.fontSizeSM},[`${A}-submenu-vertical`]:{position:"relative"},[`${A}-submenu${A}-submenu-disabled ${x}-menu-submenu-title`]:{[`&, ${x}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:Ce,cursor:"not-allowed"}},[`${A}-submenu-selected ${x}-menu-submenu-title`]:{color:v.colorPrimary}})}},[(0,te.oN)(v,"slide-up"),(0,te.oN)(v,"slide-down"),(0,xe.Fm)(v,"move-up"),(0,xe.Fm)(v,"move-down"),(0,ve._y)(v,"zoom-big")]]};var G=(0,p.Z)("Dropdown",(v,x)=>{let{rootPrefixCls:A}=x;const{marginXXS:T,sizePopupArrow:Z,controlHeight:ie,fontSize:M,lineHeight:U,paddingXXS:W,componentCls:le,borderRadiusLG:k}=v,Y=(ie-M*U)/2,{dropdownArrowOffset:se}=(0,$.fS)({contentRadius:k}),J=(0,he.TS)(v,{menuCls:`${le}-menu`,rootPrefixCls:A,dropdownArrowDistance:Z/2+T,dropdownArrowOffset:se,dropdownPaddingVertical:Y,dropdownEdgeChildPadding:W});return[ue(J),o(J)]},v=>({zIndexPopup:v.zIndexPopupBase+50}))},9432:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return U},n:function(){return ie}});var S=E(19248),te=E(92310),xe=E.n(te),ve=E(93681),$=E(8654),p=E(59301),he=E(19080),re=E(36355),o=E(1684),ue=E(19716),G=E(32441),v=E(33234),x=E(59412),A=E(9937);function T(W){return!!(W.prefix||W.suffix||W.allowClear)}var Z=function(W,le){var k={};for(var Y in W)Object.prototype.hasOwnProperty.call(W,Y)&&le.indexOf(Y)<0&&(k[Y]=W[Y]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Y=Object.getOwnPropertySymbols(W);se<Y.length;se++)le.indexOf(Y[se])<0&&Object.prototype.propertyIsEnumerable.call(W,Y[se])&&(k[Y[se]]=W[Y[se]]);return k};function ie(W,le){if(!W)return;W.focus(le);const{cursor:k}=le||{};if(k){const Y=W.value.length;switch(k){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(Y,Y);break;default:W.setSelectionRange(0,Y);break}}}var U=(0,p.forwardRef)((W,le)=>{var k;const{prefixCls:Y,bordered:se=!0,status:J,size:ge,disabled:Ce,onBlur:Te,onFocus:Fe,suffix:Q,allowClear:O,addonAfter:K,addonBefore:I,className:X,style:z,styles:g,rootClassName:b,onChange:B,classNames:F}=W,Se=Z(W,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:we,direction:Ne,input:je}=p.useContext(re.E_),et=we("input",Y),qe=(0,p.useRef)(null),[rt,yt]=(0,A.ZP)(et),{compactSize:Dt,compactItemClassnames:pt}=(0,v.ri)(et,Ne),vt=(0,ue.Z)(it=>{var Ye;return(Ye=ge!=null?ge:Dt)!==null&&Ye!==void 0?Ye:it}),Ot=p.useContext(o.Z),Bt=Ce!=null?Ce:Ot,{status:me,hasFeedback:ce,feedbackIcon:j}=(0,p.useContext)(G.aM),pe=(0,he.F)(me,J),Re=T(W)||!!ce,P=(0,p.useRef)(Re);(0,p.useEffect)(()=>{var it;Re&&P.current,P.current=Re},[Re]);const ne=(0,x.Z)(qe,!0),fe=it=>{ne(),Te==null||Te(it)},ye=it=>{ne(),Fe==null||Fe(it)},ke=it=>{ne(),B==null||B(it)},Oe=(ce||Q)&&p.createElement(p.Fragment,null,Q,ce&&j);let Ze;return typeof O=="object"&&(O!=null&&O.clearIcon)?Ze=O:O&&(Ze={clearIcon:p.createElement(S.Z,null)}),rt(p.createElement(ve.default,Object.assign({ref:(0,$.sQ)(le,qe),prefixCls:et,autoComplete:je==null?void 0:je.autoComplete},Se,{disabled:Bt,onBlur:fe,onFocus:ye,style:Object.assign(Object.assign({},je==null?void 0:je.style),z),styles:Object.assign(Object.assign({},je==null?void 0:je.styles),g),suffix:Oe,allowClear:Ze,className:xe()(X,b,pt,je==null?void 0:je.className),onChange:ke,addonAfter:K&&p.createElement(v.BR,null,p.createElement(G.Ux,{override:!0,status:!0},K)),addonBefore:I&&p.createElement(v.BR,null,p.createElement(G.Ux,{override:!0,status:!0},I)),classNames:Object.assign(Object.assign(Object.assign({},F),je==null?void 0:je.classNames),{input:xe()({[`${et}-sm`]:vt==="small",[`${et}-lg`]:vt==="large",[`${et}-rtl`]:Ne==="rtl",[`${et}-borderless`]:!se},!Re&&(0,he.Z)(et,pe),F==null?void 0:F.input,(k=je==null?void 0:je.classNames)===null||k===void 0?void 0:k.input,yt)}),classes:{affixWrapper:xe()({[`${et}-affix-wrapper-sm`]:vt==="small",[`${et}-affix-wrapper-lg`]:vt==="large",[`${et}-affix-wrapper-rtl`]:Ne==="rtl",[`${et}-affix-wrapper-borderless`]:!se},(0,he.Z)(`${et}-affix-wrapper`,pe,ce),yt),wrapper:xe()({[`${et}-group-rtl`]:Ne==="rtl"},yt),group:xe()({[`${et}-group-wrapper-sm`]:vt==="small",[`${et}-group-wrapper-lg`]:vt==="large",[`${et}-group-wrapper-rtl`]:Ne==="rtl",[`${et}-group-wrapper-disabled`]:Bt},(0,he.Z)(`${et}-group-wrapper`,pe,ce),yt)}})))})},1643:function(Kt,nt,E){"use strict";var S=E(19248),te=E(92310),xe=E.n(te),ve=E(9296),$=E(59301),p=E(19080),he=E(36355),re=E(1684),o=E(19716),ue=E(32441),G=E(9432),v=E(9937),x=function(T,Z){var ie={};for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&Z.indexOf(M)<0&&(ie[M]=T[M]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,M=Object.getOwnPropertySymbols(T);U<M.length;U++)Z.indexOf(M[U])<0&&Object.prototype.propertyIsEnumerable.call(T,M[U])&&(ie[M[U]]=T[M[U]]);return ie};const A=(0,$.forwardRef)((T,Z)=>{const{prefixCls:ie,bordered:M=!0,size:U,disabled:W,status:le,allowClear:k,showCount:Y,classNames:se,rootClassName:J,className:ge}=T,Ce=x(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Te,direction:Fe}=$.useContext(he.E_),Q=(0,o.Z)(U),O=$.useContext(re.Z),K=W!=null?W:O,{status:I,hasFeedback:X,feedbackIcon:z}=$.useContext(ue.aM),g=(0,p.F)(I,le),b=$.useRef(null);$.useImperativeHandle(Z,()=>{var Ne;return{resizableTextArea:(Ne=b.current)===null||Ne===void 0?void 0:Ne.resizableTextArea,focus:je=>{var et,qe;(0,G.n)((qe=(et=b.current)===null||et===void 0?void 0:et.resizableTextArea)===null||qe===void 0?void 0:qe.textArea,je)},blur:()=>{var je;return(je=b.current)===null||je===void 0?void 0:je.blur()}}});const B=Te("input",ie);let F;typeof k=="object"&&(k!=null&&k.clearIcon)?F=k:k&&(F={clearIcon:$.createElement(S.Z,null)});const[Se,we]=(0,v.ZP)(B);return Se($.createElement(ve.default,Object.assign({},Ce,{disabled:K,allowClear:F,className:xe()(ge,J),classes:{affixWrapper:xe()(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:Fe==="rtl",[`${B}-affix-wrapper-borderless`]:!M,[`${B}-affix-wrapper-sm`]:Q==="small",[`${B}-affix-wrapper-lg`]:Q==="large",[`${B}-textarea-show-count`]:Y},(0,p.Z)(`${B}-affix-wrapper`,g),we)},classNames:Object.assign(Object.assign({},se),{textarea:xe()({[`${B}-borderless`]:!M,[`${B}-sm`]:Q==="small",[`${B}-lg`]:Q==="large"},(0,p.Z)(B,g),we,se==null?void 0:se.textarea)}),prefixCls:B,suffix:X&&$.createElement("span",{className:`${B}-textarea-suffix`},z),showCount:Y,ref:b})))});nt.Z=A},59412:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return te}});var S=E(59301);function te(xe,ve){const $=(0,S.useRef)([]),p=()=>{$.current.push(setTimeout(()=>{var he,re,o,ue;!((he=xe.current)===null||he===void 0)&&he.input&&((re=xe.current)===null||re===void 0?void 0:re.input.getAttribute("type"))==="password"&&(!((o=xe.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((ue=xe.current)===null||ue===void 0||ue.input.removeAttribute("value"))}))};return(0,S.useEffect)(()=>(ve&&p(),()=>$.current.forEach(he=>{he&&clearTimeout(he)})),[]),p}},92832:function(Kt,nt,E){"use strict";E.d(nt,{default:function(){return Q}});var S=E(92310),te=E.n(S),xe=E(59301),ve=E(36355),$=E(32441),p=E(9937),re=O=>{const{getPrefixCls:K,direction:I}=(0,xe.useContext)(ve.E_),{prefixCls:X,className:z}=O,g=K("input-group",X),b=K("input"),[B,F]=(0,p.ZP)(b),Se=te()(g,{[`${g}-lg`]:O.size==="large",[`${g}-sm`]:O.size==="small",[`${g}-compact`]:O.compact,[`${g}-rtl`]:I==="rtl"},F,z),we=(0,xe.useContext)($.aM),Ne=(0,xe.useMemo)(()=>Object.assign(Object.assign({},we),{isFormItemInput:!1}),[we]);return B(xe.createElement("span",{className:Se,style:O.style,onMouseEnter:O.onMouseEnter,onMouseLeave:O.onMouseLeave,onFocus:O.onFocus,onBlur:O.onBlur},xe.createElement($.aM.Provider,{value:Ne},O.children)))},o=E(9432),ue=E(73331),G=E(15277),v=E(2738),x=E(8654),A=E(59412),T=function(O,K){var I={};for(var X in O)Object.prototype.hasOwnProperty.call(O,X)&&K.indexOf(X)<0&&(I[X]=O[X]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,X=Object.getOwnPropertySymbols(O);z<X.length;z++)K.indexOf(X[z])<0&&Object.prototype.propertyIsEnumerable.call(O,X[z])&&(I[X[z]]=O[X[z]]);return I};const Z=O=>O?xe.createElement(G.Z,null):xe.createElement(ue.Z,null),ie={click:"onClick",hover:"onMouseOver"};var U=xe.forwardRef((O,K)=>{const{visibilityToggle:I=!0}=O,X=typeof I=="object"&&I.visible!==void 0,[z,g]=(0,xe.useState)(()=>X?I.visible:!1),b=(0,xe.useRef)(null);xe.useEffect(()=>{X&&g(I.visible)},[X,I]);const B=(0,A.Z)(b),F=()=>{const{disabled:Bt}=O;Bt||(z&&B(),g(me=>{var ce;const j=!me;return typeof I=="object"&&((ce=I.onVisibleChange)===null||ce===void 0||ce.call(I,j)),j}))},Se=Bt=>{const{action:me="click",iconRender:ce=Z}=O,j=ie[me]||"",pe=ce(z),Re={[j]:F,className:`${Bt}-icon`,key:"passwordIcon",onMouseDown:P=>{P.preventDefault()},onMouseUp:P=>{P.preventDefault()}};return xe.cloneElement(xe.isValidElement(pe)?pe:xe.createElement("span",null,pe),Re)},{className:we,prefixCls:Ne,inputPrefixCls:je,size:et}=O,qe=T(O,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rt}=xe.useContext(ve.E_),yt=rt("input",je),Dt=rt("input-password",Ne),pt=I&&Se(Dt),vt=te()(Dt,we,{[`${Dt}-${et}`]:!!et}),Ot=Object.assign(Object.assign({},(0,v.Z)(qe,["suffix","iconRender","visibilityToggle"])),{type:z?"text":"password",className:vt,prefixCls:yt,suffix:pt});return et&&(Ot.size=et),xe.createElement(o.Z,Object.assign({ref:(0,x.sQ)(K,b)},Ot))}),W=E(47472),le=E(92343),k=E(3113),Y=E(19716),se=E(33234),J=function(O,K){var I={};for(var X in O)Object.prototype.hasOwnProperty.call(O,X)&&K.indexOf(X)<0&&(I[X]=O[X]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,X=Object.getOwnPropertySymbols(O);z<X.length;z++)K.indexOf(X[z])<0&&Object.prototype.propertyIsEnumerable.call(O,X[z])&&(I[X[z]]=O[X[z]]);return I},Ce=xe.forwardRef((O,K)=>{const{prefixCls:I,inputPrefixCls:X,className:z,size:g,suffix:b,enterButton:B=!1,addonAfter:F,loading:Se,disabled:we,onSearch:Ne,onChange:je,onCompositionStart:et,onCompositionEnd:qe}=O,rt=J(O,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:yt,direction:Dt}=xe.useContext(ve.E_),pt=xe.useRef(!1),vt=yt("input-search",I),Ot=yt("input",X),{compactSize:Bt}=(0,se.ri)(vt,Dt),me=(0,Y.Z)(Ke=>{var Tt;return(Tt=g!=null?g:Bt)!==null&&Tt!==void 0?Tt:Ke}),ce=xe.useRef(null),j=Ke=>{Ke&&Ke.target&&Ke.type==="click"&&Ne&&Ne(Ke.target.value,Ke,{source:"clear"}),je&&je(Ke)},pe=Ke=>{var Tt;document.activeElement===((Tt=ce.current)===null||Tt===void 0?void 0:Tt.input)&&Ke.preventDefault()},Re=Ke=>{var Tt,St;Ne&&Ne((St=(Tt=ce.current)===null||Tt===void 0?void 0:Tt.input)===null||St===void 0?void 0:St.value,Ke,{source:"input"})},P=Ke=>{pt.current||Se||Re(Ke)},ne=typeof B=="boolean"?xe.createElement(W.Z,null):null,fe=`${vt}-button`;let ye;const ke=B||{},Oe=ke.type&&ke.type.__ANT_BUTTON===!0;Oe||ke.type==="button"?ye=(0,le.Tm)(ke,Object.assign({onMouseDown:pe,onClick:Ke=>{var Tt,St;(St=(Tt=ke==null?void 0:ke.props)===null||Tt===void 0?void 0:Tt.onClick)===null||St===void 0||St.call(Tt,Ke),Re(Ke)},key:"enterButton"},Oe?{className:fe,size:me}:{})):ye=xe.createElement(k.ZP,{className:fe,type:B?"primary":void 0,size:me,disabled:we,key:"enterButton",onMouseDown:pe,onClick:Re,loading:Se,icon:ne},B),F&&(ye=[ye,(0,le.Tm)(F,{key:"addonAfter"})]);const Ze=te()(vt,{[`${vt}-rtl`]:Dt==="rtl",[`${vt}-${me}`]:!!me,[`${vt}-with-button`]:!!B},z),it=Ke=>{pt.current=!0,et==null||et(Ke)},Ye=Ke=>{pt.current=!1,qe==null||qe(Ke)};return xe.createElement(o.Z,Object.assign({ref:(0,x.sQ)(ce,K),onPressEnter:P},rt,{size:me,onCompositionStart:it,onCompositionEnd:Ye,prefixCls:Ot,addonAfter:ye,suffix:b,onChange:j,className:Ze,disabled:we}))}),Te=E(1643);const Fe=o.Z;Fe.Group=re,Fe.Search=Ce,Fe.TextArea=Te.Z,Fe.Password=U;var Q=Fe},9937:function(Kt,nt,E){"use strict";E.d(nt,{M1:function(){return he},TM:function(){return le},Xy:function(){return re},bi:function(){return G},e5:function(){return W},ik:function(){return v},nz:function(){return $},pU:function(){return p},s7:function(){return x},x0:function(){return ue}});var S=E(17313),te=E(74207),xe=E(37613),ve=E(83116);const $=k=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:k,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),p=k=>({borderColor:k.hoverBorderColor}),he=k=>({borderColor:k.activeBorderColor,boxShadow:k.activeShadow,outline:0}),re=k=>({color:k.colorTextDisabled,backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},p((0,xe.TS)(k,{hoverBorderColor:k.colorBorder})))}),o=k=>{const{paddingBlockLG:Y,fontSizeLG:se,lineHeightLG:J,borderRadiusLG:ge,paddingInlineLG:Ce}=k;return{padding:`${Y}px ${Ce}px`,fontSize:se,lineHeight:J,borderRadius:ge}},ue=k=>({padding:`${k.paddingBlockSM}px ${k.paddingInlineSM}px`,borderRadius:k.borderRadiusSM}),G=(k,Y)=>{const{componentCls:se,colorError:J,colorWarning:ge,errorActiveShadow:Ce,warningActiveShadow:Te,colorErrorBorderHover:Fe,colorWarningBorderHover:Q}=k;return{[`&-status-error:not(${Y}-disabled):not(${Y}-borderless)${Y}`]:{borderColor:J,"&:hover":{borderColor:Fe},"&:focus, &-focused":Object.assign({},he((0,xe.TS)(k,{activeBorderColor:J,activeShadow:Ce}))),[`${se}-prefix, ${se}-suffix`]:{color:J}},[`&-status-warning:not(${Y}-disabled):not(${Y}-borderless)${Y}`]:{borderColor:ge,"&:hover":{borderColor:Q},"&:focus, &-focused":Object.assign({},he((0,xe.TS)(k,{activeBorderColor:ge,activeShadow:Te}))),[`${se}-prefix, ${se}-suffix`]:{color:ge}}}},v=k=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${k.paddingBlock}px ${k.paddingInline}px`,color:k.colorText,fontSize:k.fontSize,lineHeight:k.lineHeight,backgroundColor:k.colorBgContainer,backgroundImage:"none",borderWidth:k.lineWidth,borderStyle:k.lineType,borderColor:k.colorBorder,borderRadius:k.borderRadius,transition:`all ${k.motionDurationMid}`},$(k.colorTextPlaceholder)),{"&:hover":Object.assign({},p(k)),"&:focus, &-focused":Object.assign({},he(k)),"&-disabled, &[disabled]":Object.assign({},re(k)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:k.controlHeight,lineHeight:k.lineHeight,verticalAlign:"bottom",transition:`all ${k.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(k)),"&-sm":Object.assign({},ue(k)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),x=k=>{const{componentCls:Y,antCls:se}=k;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:k.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Y}, &-lg > ${Y}-group-addon`]:Object.assign({},o(k)),[`&-sm ${Y}, &-sm > ${Y}-group-addon`]:Object.assign({},ue(k)),[`&-lg ${se}-select-single ${se}-select-selector`]:{height:k.controlHeightLG},[`&-sm ${se}-select-single ${se}-select-selector`]:{height:k.controlHeightSM},[`> ${Y}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Y}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${k.paddingInline}px`,color:k.colorText,fontWeight:"normal",fontSize:k.fontSize,textAlign:"center",backgroundColor:k.colorFillAlter,border:`${k.lineWidth}px ${k.lineType} ${k.colorBorder}`,borderRadius:k.borderRadius,transition:`all ${k.motionDurationSlow}`,lineHeight:1,[`${se}-select`]:{margin:`-${k.paddingBlock+1}px -${k.paddingInline}px`,[`&${se}-select-single:not(${se}-select-customize-input)`]:{[`${se}-select-selector`]:{backgroundColor:"inherit",border:`${k.lineWidth}px ${k.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${se}-select-selector`]:{color:k.colorPrimary}}},[`${se}-cascader-picker`]:{margin:`-9px -${k.paddingInline}px`,backgroundColor:"transparent",[`${se}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Y}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Y}-search-with-button &`]:{zIndex:0}}},[`> ${Y}:first-child, ${Y}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Y}-affix-wrapper`]:{[`&:not(:first-child) ${Y}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Y}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Y}:last-child, ${Y}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Y}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Y}-search &`]:{borderStartStartRadius:k.borderRadius,borderEndStartRadius:k.borderRadius}},[`&:not(:first-child), ${Y}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Y}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,S.dF)()),{[`${Y}-group-addon, ${Y}-group-wrap, > ${Y}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:k.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
& > ${Y}-affix-wrapper,
|
|
& > ${Y}-number-affix-wrapper,
|
|
& > ${se}-picker-range
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-k.lineWidth,borderInlineEndWidth:k.lineWidth},[`${Y}`]:{float:"none"},[`& > ${se}-select > ${se}-select-selector,
|
|
& > ${se}-select-auto-complete ${Y},
|
|
& > ${se}-cascader-picker ${Y},
|
|
& > ${Y}-group-wrapper ${Y}`]:{borderInlineEndWidth:k.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${se}-select-focused`]:{zIndex:1},[`& > ${se}-select > ${se}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
& > ${se}-select:first-child > ${se}-select-selector,
|
|
& > ${se}-select-auto-complete:first-child ${Y},
|
|
& > ${se}-cascader-picker:first-child ${Y}`]:{borderStartStartRadius:k.borderRadius,borderEndStartRadius:k.borderRadius},[`& > *:last-child,
|
|
& > ${se}-select:last-child > ${se}-select-selector,
|
|
& > ${se}-cascader-picker:last-child ${Y},
|
|
& > ${se}-cascader-picker-focused:last-child ${Y}`]:{borderInlineEndWidth:k.lineWidth,borderStartEndRadius:k.borderRadius,borderEndEndRadius:k.borderRadius},[`& > ${se}-select-auto-complete ${Y}`]:{verticalAlign:"top"},[`${Y}-group-wrapper + ${Y}-group-wrapper`]:{marginInlineStart:-k.lineWidth,[`${Y}-affix-wrapper`]:{borderRadius:0}},[`${Y}-group-wrapper:not(:last-child)`]:{[`&${Y}-search > ${Y}-group`]:{[`& > ${Y}-group-addon > ${Y}-search-button`]:{borderRadius:0},[`& > ${Y}`]:{borderStartStartRadius:k.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:k.borderRadius}}}})}},A=k=>{const{componentCls:Y,controlHeightSM:se,lineWidth:J}=k,Ce=(se-J*2-16)/2;return{[Y]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.Wf)(k)),v(k)),G(k,Y)),{'&[type="color"]':{height:k.controlHeight,[`&${Y}-lg`]:{height:k.controlHeightLG},[`&${Y}-sm`]:{height:se,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},T=k=>{const{componentCls:Y}=k;return{[`${Y}-clear-icon`]:{margin:0,color:k.colorTextQuaternary,fontSize:k.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${k.motionDurationSlow}`,"&:hover":{color:k.colorTextTertiary},"&:active":{color:k.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${k.inputAffixPadding}px`}}}},Z=k=>{const{componentCls:Y,inputAffixPadding:se,colorTextDescription:J,motionDurationSlow:ge,colorIcon:Ce,colorIconHover:Te,iconCls:Fe}=k;return{[`${Y}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(k)),{display:"inline-flex",[`&:not(${Y}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},p(k)),{zIndex:1,[`${Y}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Y}[disabled]`]:{background:"transparent"}},[`> input${Y}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Y}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:k.paddingXS}},"&-show-count-suffix":{color:J},"&-show-count-has-suffix":{marginInlineEnd:k.paddingXXS},"&-prefix":{marginInlineEnd:se},"&-suffix":{marginInlineStart:se}}}),T(k)),{[`${Fe}${Y}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${ge}`,"&:hover":{color:Te}}}),G(k,`${Y}-affix-wrapper`))}},ie=k=>{const{componentCls:Y,colorError:se,colorWarning:J,borderRadiusLG:ge,borderRadiusSM:Ce}=k;return{[`${Y}-group`]:Object.assign(Object.assign(Object.assign({},(0,S.Wf)(k)),x(k)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Y}-group-addon`]:{borderRadius:ge,fontSize:k.fontSizeLG}},"&-sm":{[`${Y}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${Y}-group-addon`]:{color:se,borderColor:se}},"&-status-warning":{[`${Y}-group-addon`]:{color:J,borderColor:J}},"&-disabled":{[`${Y}-group-addon`]:Object.assign({},re(k))},[`&:not(${Y}-compact-first-item):not(${Y}-compact-last-item)${Y}-compact-item`]:{[`${Y}, ${Y}-group-addon`]:{borderRadius:0}},[`&:not(${Y}-compact-last-item)${Y}-compact-first-item`]:{[`${Y}, ${Y}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Y}-compact-first-item)${Y}-compact-last-item`]:{[`${Y}, ${Y}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},M=k=>{const{componentCls:Y,antCls:se}=k,J=`${Y}-search`;return{[J]:{[`${Y}`]:{"&:hover, &:focus":{borderColor:k.colorPrimaryHover,[`+ ${Y}-group-addon ${J}-button:not(${se}-btn-primary)`]:{borderInlineStartColor:k.colorPrimaryHover}}},[`${Y}-affix-wrapper`]:{borderRadius:0},[`${Y}-lg`]:{lineHeight:k.lineHeightLG-2e-4},[`> ${Y}-group`]:{[`> ${Y}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${J}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:k.borderRadius,borderEndEndRadius:k.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${J}-button:not(${se}-btn-primary)`]:{color:k.colorTextDescription,"&:hover":{color:k.colorPrimaryHover},"&:active":{color:k.colorPrimaryActive},[`&${se}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${J}-button`]:{height:k.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${J}-button`]:{height:k.controlHeightLG},[`&-small ${J}-button`]:{height:k.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Y}-compact-item`]:{[`&:not(${Y}-compact-last-item)`]:{[`${Y}-group-addon`]:{[`${Y}-search-button`]:{marginInlineEnd:-k.lineWidth,borderRadius:0}}},[`&:not(${Y}-compact-first-item)`]:{[`${Y},${Y}-affix-wrapper`]:{borderRadius:0}},[`> ${Y}-group-addon ${Y}-search-button,
|
|
> ${Y},
|
|
${Y}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Y}-affix-wrapper-focused`]:{zIndex:2}}}}},U=k=>{const{componentCls:Y,paddingLG:se}=k,J=`${Y}-textarea`;return{[J]:{position:"relative","&-show-count":{[`> ${Y}`]:{height:"100%"},[`${Y}-data-count`]:{position:"absolute",bottom:-k.fontSize*k.lineHeight,insetInlineEnd:0,color:k.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Y}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${J}-has-feedback`]:{[`${Y}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${Y}-affix-wrapper`]:{padding:0,[`> textarea${Y}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Y}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Y}-clear-icon`]:{position:"absolute",insetInlineEnd:k.paddingXS,insetBlockStart:k.paddingXS},[`${J}-suffix`]:{position:"absolute",top:0,insetInlineEnd:k.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function W(k){return(0,xe.TS)(k,{inputAffixPadding:k.paddingXXS})}const le=k=>{const{controlHeight:Y,fontSize:se,lineHeight:J,lineWidth:ge,controlHeightSM:Ce,controlHeightLG:Te,fontSizeLG:Fe,lineHeightLG:Q,paddingSM:O,controlPaddingHorizontalSM:K,controlPaddingHorizontal:I,colorFillAlter:X,colorPrimaryHover:z,controlOutlineWidth:g,controlOutline:b,colorErrorOutline:B,colorWarningOutline:F}=k;return{paddingBlock:Math.max(Math.round((Y-se*J)/2*10)/10-ge,3),paddingBlockSM:Math.max(Math.round((Ce-se*J)/2*10)/10-ge,0),paddingBlockLG:Math.ceil((Te-Fe*Q)/2*10)/10-ge,paddingInline:O-ge,paddingInlineSM:K-ge,paddingInlineLG:I-ge,addonBg:X,activeBorderColor:z,hoverBorderColor:z,activeShadow:`0 0 0 ${g}px ${b}`,errorActiveShadow:`0 0 0 ${g}px ${B}`,warningActiveShadow:`0 0 0 ${g}px ${F}`}};nt.ZP=(0,ve.Z)("Input",k=>{const Y=(0,xe.TS)(k,W(k));return[A(Y),U(Y),Z(Y),ie(Y),M(Y),(0,te.c)(Y)]},le)},45818:function(Kt,nt,E){"use strict";E.d(nt,{D:function(){return W},Z:function(){return Y}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ve=xe,$=E(7657),p=function(J,ge){return te.createElement($.Z,(0,S.Z)({},J,{ref:ge,icon:ve}))},he=te.forwardRef(p),re=he,o=E(33853),ue=E(38819),G=E(92310),v=E.n(G),x=E(2738),T=se=>!isNaN(parseFloat(se))&&isFinite(se),Z=E(36355),ie=E(84966),M=function(se,J){var ge={};for(var Ce in se)Object.prototype.hasOwnProperty.call(se,Ce)&&J.indexOf(Ce)<0&&(ge[Ce]=se[Ce]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(se);Te<Ce.length;Te++)J.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,Ce[Te])&&(ge[Ce[Te]]=se[Ce[Te]]);return ge};const U={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},W=te.createContext({}),le=(()=>{let se=0;return function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${J}${se}`}})();var Y=te.forwardRef((se,J)=>{const{prefixCls:ge,className:Ce,trigger:Te,children:Fe,defaultCollapsed:Q=!1,theme:O="dark",style:K={},collapsible:I=!1,reverseArrow:X=!1,width:z=200,collapsedWidth:g=80,zeroWidthTriggerStyle:b,breakpoint:B,onCollapse:F,onBreakpoint:Se}=se,we=M(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ne}=(0,te.useContext)(ie.Gs),[je,et]=(0,te.useState)("collapsed"in se?se.collapsed:Q),[qe,rt]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in se&&et(se.collapsed)},[se.collapsed]);const yt=(me,ce)=>{"collapsed"in se||et(me),F==null||F(me,ce)},Dt=(0,te.useRef)();Dt.current=me=>{rt(me.matches),Se==null||Se(me.matches),je!==me.matches&&yt(me.matches,"responsive")},(0,te.useEffect)(()=>{function me(j){return Dt.current(j)}let ce;if(typeof window!="undefined"){const{matchMedia:j}=window;if(j&&B&&B in U){ce=j(`(max-width: ${U[B]})`);try{ce.addEventListener("change",me)}catch(pe){ce.addListener(me)}me(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",me)}catch(j){ce==null||ce.removeListener(me)}}},[B]),(0,te.useEffect)(()=>{const me=le("ant-sider-");return Ne.addSider(me),()=>Ne.removeSider(me)},[]);const pt=()=>{yt(!je,"clickTrigger")},{getPrefixCls:vt}=(0,te.useContext)(Z.E_),Ot=()=>{const me=vt("layout-sider",ge),ce=(0,x.Z)(we,["collapsed"]),j=je?g:z,pe=T(j)?`${j}px`:String(j),Re=parseFloat(String(g||0))===0?te.createElement("span",{onClick:pt,className:v()(`${me}-zero-width-trigger`,`${me}-zero-width-trigger-${X?"right":"left"}`),style:b},Te||te.createElement(re,null)):null,fe={expanded:X?te.createElement(ue.Z,null):te.createElement(o.Z,null),collapsed:X?te.createElement(o.Z,null):te.createElement(ue.Z,null)}[je?"collapsed":"expanded"],ye=Te!==null?Re||te.createElement("div",{className:`${me}-trigger`,onClick:pt,style:{width:pe}},Te||fe):null,ke=Object.assign(Object.assign({},K),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),Oe=v()(me,`${me}-${O}`,{[`${me}-collapsed`]:!!je,[`${me}-has-trigger`]:I&&Te!==null&&!Re,[`${me}-below`]:!!qe,[`${me}-zero-width`]:parseFloat(pe)===0},Ce);return te.createElement("aside",Object.assign({className:Oe},ce,{style:ke,ref:J}),te.createElement("div",{className:`${me}-children`},Fe),I||qe&&Re?ye:null)},Bt=te.useMemo(()=>({siderCollapsed:je}),[je]);return te.createElement(W.Provider,{value:Bt},Ot())})},84966:function(Kt,nt,E){"use strict";E.d(nt,{VY:function(){return W},$_:function(){return U},h4:function(){return M},Gs:function(){return x},ZP:function(){return le}});var S=E(80702),te=E(92310),xe=E.n(te),ve=E(2738),$=E(59301),p=E(36355),he=E(83116),o=k=>{const{componentCls:Y,bodyBg:se,lightSiderBg:J,lightTriggerBg:ge,lightTriggerColor:Ce}=k;return{[`${Y}-sider-light`]:{background:J,[`${Y}-sider-trigger`]:{color:Ce,background:ge},[`${Y}-sider-zero-width-trigger`]:{color:Ce,background:ge,border:`1px solid ${se}`,borderInlineStart:0}}}};const ue=k=>{const{antCls:Y,componentCls:se,colorText:J,triggerColor:ge,footerBg:Ce,triggerBg:Te,headerHeight:Fe,headerPadding:Q,headerColor:O,footerPadding:K,triggerHeight:I,zeroTriggerHeight:X,zeroTriggerWidth:z,motionDurationMid:g,motionDurationSlow:b,fontSize:B,borderRadius:F,bodyBg:Se,headerBg:we,siderBg:Ne}=k;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Se,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:Ne,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Y}-menu${Y}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:I},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:I,color:ge,lineHeight:`${I}px`,textAlign:"center",background:Te,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Fe,insetInlineEnd:-z,zIndex:1,width:z,height:X,color:ge,fontSize:k.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ne,borderStartStartRadius:0,borderStartEndRadius:F,borderEndEndRadius:F,borderEndStartRadius:0,cursor:"pointer",transition:`background ${b} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${b}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-z,borderStartStartRadius:F,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:F}}}}},o(k)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:Fe,padding:Q,color:O,lineHeight:`${Fe}px`,background:we,[`${Y}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:K,color:J,fontSize:B,background:Ce},[`${se}-content`]:{flex:"auto",minHeight:0}}};var G=(0,he.Z)("Layout",k=>[ue(k)],k=>{const{colorBgLayout:Y,controlHeight:se,controlHeightLG:J,colorText:ge,controlHeightSM:Ce,marginXXS:Te,colorTextLightSolid:Fe,colorBgContainer:Q}=k,O=J*1.25;return{colorBgHeader:"#001529",colorBgBody:Y,colorBgTrigger:"#002140",bodyBg:Y,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${O}px`,headerColor:ge,footerPadding:`${Ce}px ${O}px`,footerBg:Y,siderBg:"#001529",triggerHeight:J+Te*2,triggerBg:"#002140",triggerColor:Fe,zeroTriggerWidth:J,zeroTriggerHeight:J,lightSiderBg:Q,lightTriggerBg:Q,lightTriggerColor:ge}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),v=function(k,Y){var se={};for(var J in k)Object.prototype.hasOwnProperty.call(k,J)&&Y.indexOf(J)<0&&(se[J]=k[J]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,J=Object.getOwnPropertySymbols(k);ge<J.length;ge++)Y.indexOf(J[ge])<0&&Object.prototype.propertyIsEnumerable.call(k,J[ge])&&(se[J[ge]]=k[J[ge]]);return se};const x=$.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function A(k){let{suffixCls:Y,tagName:se,displayName:J}=k;return ge=>$.forwardRef((Te,Fe)=>$.createElement(ge,Object.assign({ref:Fe,suffixCls:Y,tagName:se},Te)))}const T=$.forwardRef((k,Y)=>{const{prefixCls:se,suffixCls:J,className:ge,tagName:Ce}=k,Te=v(k,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Fe}=$.useContext(p.E_),Q=Fe("layout",se),[O,K]=G(Q),I=J?`${Q}-${J}`:Q;return O($.createElement(Ce,Object.assign({className:xe()(se||I,ge,K),ref:Y},Te)))}),Z=$.forwardRef((k,Y)=>{const{direction:se}=$.useContext(p.E_),[J,ge]=$.useState([]),{prefixCls:Ce,className:Te,rootClassName:Fe,children:Q,hasSider:O,tagName:K,style:I}=k,X=v(k,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),z=(0,ve.Z)(X,["suffixCls"]),{getPrefixCls:g,layout:b}=$.useContext(p.E_),B=g("layout",Ce),[F,Se]=G(B),we=xe()(B,{[`${B}-has-sider`]:typeof O=="boolean"?O:J.length>0,[`${B}-rtl`]:se==="rtl"},b==null?void 0:b.className,Te,Fe,Se),Ne=$.useMemo(()=>({siderHook:{addSider:je=>{ge(et=>[].concat((0,S.Z)(et),[je]))},removeSider:je=>{ge(et=>et.filter(qe=>qe!==je))}}}),[]);return F($.createElement(x.Provider,{value:Ne},$.createElement(K,Object.assign({ref:Y,className:we,style:Object.assign(Object.assign({},b==null?void 0:b.style),I)},z),Q)))}),ie=A({tagName:"div",displayName:"Layout"})(Z),M=A({suffixCls:"header",tagName:"header",displayName:"Header"})(T),U=A({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),W=A({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var le=ie},40875:function(Kt,nt,E){"use strict";E.d(nt,{J:function(){return p}});var S=E(59301),te=E(33234),xe=E(70425),ve=function(he,re){var o={};for(var ue in he)Object.prototype.hasOwnProperty.call(he,ue)&&re.indexOf(ue)<0&&(o[ue]=he[ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,ue=Object.getOwnPropertySymbols(he);G<ue.length;G++)re.indexOf(ue[G])<0&&Object.prototype.propertyIsEnumerable.call(he,ue[G])&&(o[ue[G]]=he[ue[G]]);return o};const $=S.createContext(null),p=S.forwardRef((he,re)=>{const{children:o}=he,ue=ve(he,["children"]),G=S.useContext($),v=S.useMemo(()=>Object.assign(Object.assign({},G),ue),[G,ue.prefixCls,ue.mode,ue.selectable]);return S.createElement($.Provider,{value:v},S.createElement(te.BR,null,(0,xe.supportNodeRef)(o)?S.cloneElement(o,{ref:re}):o))});nt.Z=$},20834:function(Kt,nt,E){"use strict";E.d(nt,{default:function(){return Bt}});var S=E(15285),te=E(59301),xe=E(45818),ve=E(92310),$=E.n(ve),p=E(36355),he=function(me,ce){var j={};for(var pe in me)Object.prototype.hasOwnProperty.call(me,pe)&&ce.indexOf(pe)<0&&(j[pe]=me[pe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,pe=Object.getOwnPropertySymbols(me);Re<pe.length;Re++)ce.indexOf(pe[Re])<0&&Object.prototype.propertyIsEnumerable.call(me,pe[Re])&&(j[pe[Re]]=me[pe[Re]]);return j},o=me=>{const{prefixCls:ce,className:j,dashed:pe}=me,Re=he(me,["prefixCls","className","dashed"]),{getPrefixCls:P}=te.useContext(p.E_),ne=P("menu",ce),fe=$()({[`${ne}-item-divider-dashed`]:!!pe},j);return te.createElement(S.iz,Object.assign({className:fe},Re))},ue=E(11592),G=E(2738),v=E(6848),x=E(92343),T=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ie=me=>{var ce;const{className:j,children:pe,icon:Re,title:P,danger:ne}=me,{prefixCls:fe,firstLevel:ye,direction:ke,disableMenuItemTitleTooltip:Oe,inlineCollapsed:Ze}=te.useContext(T),it=$t=>{const Yt=te.createElement("span",{className:`${fe}-title-content`},pe);return(!Re||(0,x.l$)(pe)&&pe.type==="span")&&pe&&$t&&ye&&typeof pe=="string"?te.createElement("div",{className:`${fe}-inline-collapsed-noicon`},pe.charAt(0)):Yt},{siderCollapsed:Ye}=te.useContext(xe.D);let Ke=P;typeof P=="undefined"?Ke=ye?pe:"":P===!1&&(Ke="");const Tt={title:Ke};!Ye&&!Ze&&(Tt.title=null,Tt.open=!1);const St=(0,ue.Z)(pe).length;let wt=te.createElement(S.ck,Object.assign({},(0,G.Z)(me,["title","icon","danger"]),{className:$()({[`${fe}-item-danger`]:ne,[`${fe}-item-only-child`]:(Re?St+1:St)===1},j),title:typeof P=="string"?P:void 0}),(0,x.Tm)(Re,{className:$()((0,x.l$)(Re)?(ce=Re.props)===null||ce===void 0?void 0:ce.className:"",`${fe}-item-icon`)}),it(Ze));return Oe||(wt=te.createElement(v.Z,Object.assign({},Tt,{placement:ke==="rtl"?"left":"right",overlayClassName:`${fe}-inline-collapsed-tooltip`}),wt)),wt},U=me=>{var ce;const{popupClassName:j,icon:pe,title:Re,theme:P}=me,ne=te.useContext(T),{prefixCls:fe,inlineCollapsed:ye,theme:ke}=ne,Oe=(0,S.Xl)();let Ze;if(!pe)Ze=ye&&!Oe.length&&Re&&typeof Re=="string"?te.createElement("div",{className:`${fe}-inline-collapsed-noicon`},Re.charAt(0)):te.createElement("span",{className:`${fe}-title-content`},Re);else{const Ye=(0,x.l$)(Re)&&Re.type==="span";Ze=te.createElement(te.Fragment,null,(0,x.Tm)(pe,{className:$()((0,x.l$)(pe)?(ce=pe.props)===null||ce===void 0?void 0:ce.className:"",`${fe}-item-icon`)}),Ye?Re:te.createElement("span",{className:`${fe}-title-content`},Re))}const it=te.useMemo(()=>Object.assign(Object.assign({},ne),{firstLevel:!1}),[ne]);return te.createElement(T.Provider,{value:it},te.createElement(S.Wd,Object.assign({},(0,G.Z)(me,["icon"]),{title:Ze,popupClassName:$()(fe,j,`${fe}-${P||ke}`)})))},W=E(18785),le=E(70425),k=E(62892),Y=E(40875),se=function(me,ce){var j={};for(var pe in me)Object.prototype.hasOwnProperty.call(me,pe)&&ce.indexOf(pe)<0&&(j[pe]=me[pe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,pe=Object.getOwnPropertySymbols(me);Re<pe.length;Re++)ce.indexOf(pe[Re])<0&&Object.prototype.propertyIsEnumerable.call(me,pe[Re])&&(j[pe[Re]]=me[pe[Re]]);return j};function J(me){return(me||[]).map((ce,j)=>{if(ce&&typeof ce=="object"){const pe=ce,{label:Re,children:P,key:ne,type:fe}=pe,ye=se(pe,["label","children","key","type"]),ke=ne!=null?ne:`tmp-${j}`;return P||fe==="group"?fe==="group"?te.createElement(S.BW,Object.assign({key:ke},ye,{title:Re}),J(P)):te.createElement(U,Object.assign({key:ke},ye,{title:Re}),J(P)):fe==="divider"?te.createElement(o,Object.assign({key:ke},ye)):te.createElement(ie,Object.assign({key:ke},ye),Re)}return null}).filter(ce=>ce)}function ge(me){return te.useMemo(()=>me&&J(me),[me])}var Ce=E(64993),Te=E(17313),Fe=E(8378),Q=E(13826),O=E(29878),K=E(83116),I=E(37613),z=me=>{const{componentCls:ce,motionDurationSlow:j,horizontalLineHeight:pe,colorSplit:Re,lineWidth:P,lineType:ne,itemPaddingInline:fe}=me;return{[`${ce}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${P}px ${ne} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ce}-item, ${ce}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:fe},[`> ${ce}-item:hover,
|
|
> ${ce}-item-active,
|
|
> ${ce}-submenu ${ce}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ce}-item, ${ce}-submenu-title`]:{transition:[`border-color ${j}`,`background ${j}`].join(",")},[`${ce}-submenu-arrow`]:{display:"none"}}}},b=me=>{let{componentCls:ce,menuArrowOffset:j}=me;return{[`${ce}-rtl`]:{direction:"rtl"},[`${ce}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ce}-rtl${ce}-vertical,
|
|
${ce}-submenu-rtl ${ce}-vertical`]:{[`${ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${j})`},"&::after":{transform:`rotate(45deg) translateY(${j})`}}}}};const B=me=>Object.assign({},(0,Te.oN)(me));var Se=(me,ce)=>{const{componentCls:j,itemColor:pe,itemSelectedColor:Re,groupTitleColor:P,itemBg:ne,subMenuItemBg:fe,itemSelectedBg:ye,activeBarHeight:ke,activeBarWidth:Oe,activeBarBorderWidth:Ze,motionDurationSlow:it,motionEaseInOut:Ye,motionEaseOut:Ke,itemPaddingInline:Tt,motionDurationMid:St,itemHoverColor:wt,lineType:$t,colorSplit:Yt,itemDisabledColor:Nt,dangerItemColor:Jt,dangerItemHoverColor:nn,dangerItemSelectedColor:w,dangerItemActiveBg:R,dangerItemSelectedBg:ft,itemHoverBg:ee,itemActiveBg:Ie,menuSubMenuBg:pn,horizontalItemSelectedColor:ze,horizontalItemSelectedBg:Ge,horizontalItemBorderRadius:Je,horizontalItemHoverBg:ae,popupBg:Ee}=me;return{[`${j}-${ce}, ${j}-${ce} > ${j}`]:{color:pe,background:ne,[`&${j}-root:focus-visible`]:Object.assign({},B(me)),[`${j}-item-group-title`]:{color:P},[`${j}-submenu-selected`]:{[`> ${j}-submenu-title`]:{color:Re}},[`${j}-item-disabled, ${j}-submenu-disabled`]:{color:`${Nt} !important`},[`${j}-item:not(${j}-item-selected):not(${j}-submenu-selected)`]:{[`&:hover, > ${j}-submenu-title:hover`]:{color:wt}},[`&:not(${j}-horizontal)`]:{[`${j}-item:not(${j}-item-selected)`]:{"&:hover":{backgroundColor:ee},"&:active":{backgroundColor:Ie}},[`${j}-submenu-title`]:{"&:hover":{backgroundColor:ee},"&:active":{backgroundColor:Ie}}},[`${j}-item-danger`]:{color:Jt,[`&${j}-item:hover`]:{[`&:not(${j}-item-selected):not(${j}-submenu-selected)`]:{color:nn}},[`&${j}-item:active`]:{background:R}},[`${j}-item a`]:{"&, &:hover":{color:"inherit"}},[`${j}-item-selected`]:{color:Re,[`&${j}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${j}-item-selected`]:{backgroundColor:ye,[`&${j}-item-danger`]:{backgroundColor:ft}},[`${j}-item, ${j}-submenu-title`]:{[`&:not(${j}-item-disabled):focus-visible`]:Object.assign({},B(me))},[`&${j}-submenu > ${j}`]:{backgroundColor:pn},[`&${j}-popup > ${j}`]:{backgroundColor:Ee},[`&${j}-horizontal`]:Object.assign(Object.assign({},ce==="dark"?{borderBottom:0}:{}),{[`> ${j}-item, > ${j}-submenu`]:{top:Ze,marginTop:-Ze,marginBottom:0,borderRadius:Je,"&::after":{position:"absolute",insetInline:Tt,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${it} ${Ye}`,content:'""'},"&:hover, &-active, &-open":{background:ae,"&::after":{borderBottomWidth:ke,borderBottomColor:ze}},"&-selected":{color:ze,backgroundColor:Ge,"&:hover":{backgroundColor:Ge},"&::after":{borderBottomWidth:ke,borderBottomColor:ze}}}}),[`&${j}-root`]:{[`&${j}-inline, &${j}-vertical`]:{borderInlineEnd:`${Ze}px ${$t} ${Yt}`}},[`&${j}-inline`]:{[`${j}-sub${j}-inline`]:{background:fe},[`${j}-item, ${j}-submenu-title`]:Ze&&Oe?{width:`calc(100% + ${Ze}px)`}:{},[`${j}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Oe}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${St} ${Ke}`,`opacity ${St} ${Ke}`].join(","),content:'""'},[`&${j}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${j}-selected, ${j}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${St} ${Ye}`,`opacity ${St} ${Ye}`].join(",")}}}}}};const we=me=>{const{componentCls:ce,itemHeight:j,itemMarginInline:pe,padding:Re,menuArrowSize:P,marginXS:ne,itemMarginBlock:fe}=me,ye=Re+P+ne;return{[`${ce}-item`]:{position:"relative",overflow:"hidden"},[`${ce}-item, ${ce}-submenu-title`]:{height:j,lineHeight:`${j}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:fe,width:`calc(100% - ${pe*2}px)`},[`> ${ce}-item,
|
|
> ${ce}-submenu > ${ce}-submenu-title`]:{height:j,lineHeight:`${j}px`},[`${ce}-item-group-list ${ce}-submenu-title,
|
|
${ce}-submenu-title`]:{paddingInlineEnd:ye}}};var je=me=>{const{componentCls:ce,iconCls:j,itemHeight:pe,colorTextLightSolid:Re,dropdownWidth:P,controlHeightLG:ne,motionDurationMid:fe,motionEaseOut:ye,paddingXL:ke,itemMarginInline:Oe,fontSizeLG:Ze,motionDurationSlow:it,paddingXS:Ye,boxShadowSecondary:Ke,collapsedWidth:Tt,collapsedIconSize:St}=me,wt={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ce]:{"&-inline, &-vertical":Object.assign({[`&${ce}-root`]:{boxShadow:"none"}},we(me))},[`${ce}-submenu-popup`]:{[`${ce}-vertical`]:Object.assign(Object.assign({},we(me)),{boxShadow:Ke})}},{[`${ce}-submenu-popup ${ce}-vertical${ce}-sub`]:{minWidth:P,maxHeight:`calc(100vh - ${ne*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ce}-inline`]:{width:"100%",[`&${ce}-root`]:{[`${ce}-item, ${ce}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${it}`,`background ${it}`,`padding ${fe} ${ye}`].join(","),[`> ${ce}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ce}-sub${ce}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ce}-submenu > ${ce}-submenu-title`]:wt,[`& ${ce}-item-group-title`]:{paddingInlineStart:ke}},[`${ce}-item`]:wt}},{[`${ce}-inline-collapsed`]:{width:Tt,[`&${ce}-root`]:{[`${ce}-item, ${ce}-submenu ${ce}-submenu-title`]:{[`> ${ce}-inline-collapsed-noicon`]:{fontSize:Ze,textAlign:"center"}}},[`> ${ce}-item,
|
|
> ${ce}-item-group > ${ce}-item-group-list > ${ce}-item,
|
|
> ${ce}-item-group > ${ce}-item-group-list > ${ce}-submenu > ${ce}-submenu-title,
|
|
> ${ce}-submenu > ${ce}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ze/2}px - ${Oe}px)`,textOverflow:"clip",[`
|
|
${ce}-submenu-arrow,
|
|
${ce}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ce}-item-icon, ${j}`]:{margin:0,fontSize:St,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ce}-item-icon, ${j}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ce}-item-icon, ${j}`]:{display:"none"},"a, a:hover":{color:Re}},[`${ce}-item-group-title`]:Object.assign(Object.assign({},Te.vS),{paddingInline:Ye})}}]};const et=me=>{const{componentCls:ce,motionDurationSlow:j,motionDurationMid:pe,motionEaseInOut:Re,motionEaseOut:P,iconCls:ne,iconSize:fe,iconMarginInlineEnd:ye}=me;return{[`${ce}-item, ${ce}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${j}`,`background ${j}`,`padding ${j} ${Re}`].join(","),[`${ce}-item-icon, ${ne}`]:{minWidth:fe,fontSize:fe,transition:[`font-size ${pe} ${P}`,`margin ${j} ${Re}`,`color ${j}`].join(","),"+ span":{marginInlineStart:ye,opacity:1,transition:[`opacity ${j} ${Re}`,`margin ${j}`,`color ${j}`].join(",")}},[`${ce}-item-icon`]:Object.assign({},(0,Te.Ro)()),[`&${ce}-item-only-child`]:{[`> ${ne}, > ${ce}-item-icon`]:{marginInlineEnd:0}}},[`${ce}-item-disabled, ${ce}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ce}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qe=me=>{const{componentCls:ce,motionDurationSlow:j,motionEaseInOut:pe,borderRadius:Re,menuArrowSize:P,menuArrowOffset:ne}=me;return{[`${ce}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:me.margin,width:P,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${j} ${pe}, opacity ${j}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:P*.6,height:P*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${j} ${pe}`,`transform ${j} ${pe}`,`top ${j} ${pe}`,`color ${j} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ne})`},"&::after":{transform:`rotate(-45deg) translateY(${ne})`}}}}},rt=me=>{const{antCls:ce,componentCls:j,fontSize:pe,motionDurationSlow:Re,motionDurationMid:P,motionEaseInOut:ne,paddingXS:fe,padding:ye,colorSplit:ke,lineWidth:Oe,zIndexPopup:Ze,borderRadiusLG:it,subMenuItemBorderRadius:Ye,menuArrowSize:Ke,menuArrowOffset:Tt,lineType:St,menuPanelMaskInset:wt,groupTitleLineHeight:$t,groupTitleFontSize:Yt}=me;return[{"":{[`${j}`]:Object.assign(Object.assign({},(0,Te.dF)()),{"&-hidden":{display:"none"}})},[`${j}-submenu-hidden`]:{display:"none"}},{[j]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Te.Wf)(me)),(0,Te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${j}-item`]:{flex:"none"}},[`${j}-item, ${j}-submenu, ${j}-submenu-title`]:{borderRadius:me.itemBorderRadius},[`${j}-item-group-title`]:{padding:`${fe}px ${ye}px`,fontSize:Yt,lineHeight:$t,transition:`all ${Re}`},[`&-horizontal ${j}-submenu`]:{transition:[`border-color ${Re} ${ne}`,`background ${Re} ${ne}`].join(",")},[`${j}-submenu, ${j}-submenu-inline`]:{transition:[`border-color ${Re} ${ne}`,`background ${Re} ${ne}`,`padding ${P} ${ne}`].join(",")},[`${j}-submenu ${j}-sub`]:{cursor:"initial",transition:[`background ${Re} ${ne}`,`padding ${Re} ${ne}`].join(",")},[`${j}-title-content`]:{transition:`color ${Re}`},[`${j}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${j}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:St,borderWidth:0,borderTopWidth:Oe,marginBlock:Oe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(me)),{[`${j}-item-group`]:{[`${j}-item-group-list`]:{margin:0,padding:0,[`${j}-item, ${j}-submenu-title`]:{paddingInline:`${pe*2}px ${ye}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ze,borderRadius:it,boxShadow:"none",transformOrigin:"0 0",[`&${j}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${wt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:wt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:me.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:me.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:me.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:me.paddingXS},[`> ${j}`]:Object.assign(Object.assign(Object.assign({borderRadius:it},et(me)),qe(me)),{[`${j}-item, ${j}-submenu > ${j}-submenu-title`]:{borderRadius:Ye},[`${j}-submenu-title::after`]:{transition:`transform ${Re} ${ne}`}})}}),qe(me)),{[`&-inline-collapsed ${j}-submenu-arrow,
|
|
&-inline ${j}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Tt})`},"&::after":{transform:`rotate(45deg) translateX(-${Tt})`}},[`${j}-submenu-open${j}-submenu-inline > ${j}-submenu-title > ${j}-submenu-arrow`]:{transform:`translateY(-${Ke*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Tt})`},"&::before":{transform:`rotate(45deg) translateX(${Tt})`}}})},{[`${ce}-layout-header`]:{[j]:{lineHeight:"inherit"}}}]};var yt=(me,ce)=>(0,K.Z)("Menu",pe=>{if(ce===!1)return[];const{colorBgElevated:Re,colorPrimary:P,colorTextLightSolid:ne,controlHeightLG:fe,fontSize:ye,darkItemColor:ke,darkDangerItemColor:Oe,darkItemBg:Ze,darkSubMenuItemBg:it,darkItemSelectedColor:Ye,darkItemSelectedBg:Ke,darkDangerItemSelectedBg:Tt,darkItemHoverBg:St,darkGroupTitleColor:wt,darkItemHoverColor:$t,darkItemDisabledColor:Yt,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:Jt,darkDangerItemActiveBg:nn}=pe,w=ye/7*5,R=(0,I.TS)(pe,{menuArrowSize:w,menuHorizontalHeight:fe*1.15,menuArrowOffset:`${w*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),ft=(0,I.TS)(R,{itemColor:ke,itemHoverColor:$t,groupTitleColor:wt,itemSelectedColor:Ye,itemBg:Ze,popupBg:Ze,subMenuItemBg:it,itemActiveBg:"transparent",itemSelectedBg:Ke,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:St,itemDisabledColor:Yt,dangerItemColor:Oe,dangerItemHoverColor:Nt,dangerItemSelectedColor:Jt,dangerItemActiveBg:nn,dangerItemSelectedBg:Tt,menuSubMenuBg:it,horizontalItemSelectedColor:ne,horizontalItemSelectedBg:P});return[rt(R),z(R),je(R),Se(R,"light"),Se(ft,"dark"),b(R),(0,Fe.Z)(R),(0,Q.oN)(R,"slide-up"),(0,Q.oN)(R,"slide-down"),(0,O._y)(R,"zoom-big")]},pe=>{const{colorPrimary:Re,colorError:P,colorTextDisabled:ne,colorErrorBg:fe,colorText:ye,colorTextDescription:ke,colorBgContainer:Oe,colorFillAlter:Ze,colorFillContent:it,lineWidth:Ye,lineWidthBold:Ke,controlItemBgActive:Tt,colorBgTextHover:St,controlHeightLG:wt,lineHeight:$t,colorBgElevated:Yt,marginXXS:Nt,padding:Jt,fontSize:nn,controlHeightSM:w,fontSizeLG:R,colorTextLightSolid:ft,colorErrorHover:ee}=pe,Ie=new Ce.C(ft).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:ye,itemColor:ye,colorItemTextHover:ye,itemHoverColor:ye,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Oe,itemBg:Oe,colorItemBgHover:St,itemHoverBg:St,colorItemBgActive:it,itemActiveBg:Tt,colorSubItemBg:Ze,subMenuItemBg:Ze,colorItemBgSelected:Tt,itemSelectedBg:Tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ke,activeBarHeight:Ke,colorActiveBarBorderSize:Ye,activeBarBorderWidth:Ye,colorItemTextDisabled:ne,itemDisabledColor:ne,colorDangerItemText:P,dangerItemColor:P,colorDangerItemTextHover:P,dangerItemHoverColor:P,colorDangerItemTextSelected:P,dangerItemSelectedColor:P,colorDangerItemBgActive:fe,dangerItemActiveBg:fe,colorDangerItemBgSelected:fe,dangerItemSelectedBg:fe,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:wt,groupTitleLineHeight:$t,collapsedWidth:wt*2,popupBg:Yt,itemMarginBlock:Nt,itemPaddingInline:Jt,horizontalLineHeight:`${wt*1.15}px`,iconSize:nn,iconMarginInlineEnd:w-nn,collapsedIconSize:R,groupTitleFontSize:nn,darkItemDisabledColor:new Ce.C(ft).setAlpha(.25).toRgbString(),darkItemColor:Ie,darkDangerItemColor:P,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ft,darkItemSelectedBg:Re,darkDangerItemSelectedBg:P,darkItemHoverBg:"transparent",darkGroupTitleColor:Ie,darkItemHoverColor:ft,darkDangerItemHoverColor:ee,darkDangerItemSelectedColor:ft,darkDangerItemActiveBg:P}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(me),Dt=function(me,ce){var j={};for(var pe in me)Object.prototype.hasOwnProperty.call(me,pe)&&ce.indexOf(pe)<0&&(j[pe]=me[pe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,pe=Object.getOwnPropertySymbols(me);Re<pe.length;Re++)ce.indexOf(pe[Re])<0&&Object.prototype.propertyIsEnumerable.call(me,pe[Re])&&(j[pe[Re]]=me[pe[Re]]);return j},vt=(0,te.forwardRef)((me,ce)=>{var j,pe;const Re=te.useContext(Y.Z),P=Re||{},{getPrefixCls:ne,getPopupContainer:fe,direction:ye,menu:ke}=te.useContext(p.E_),Oe=ne(),{prefixCls:Ze,className:it,style:Ye,theme:Ke="light",expandIcon:Tt,_internalDisableMenuItemTitleTooltip:St,inlineCollapsed:wt,siderCollapsed:$t,items:Yt,children:Nt,rootClassName:Jt,mode:nn,selectable:w,onClick:R,overflowedIndicatorPopupClassName:ft}=me,ee=Dt(me,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ie=(0,G.Z)(ee,["collapsedWidth"]),pn=ge(Yt)||Nt;(j=P.validator)===null||j===void 0||j.call(P,{mode:nn});const ze=(0,le.useEvent)(function(){var an;R==null||R.apply(void 0,arguments),(an=P.onClick)===null||an===void 0||an.call(P)}),Ge=P.mode||nn,Je=w!=null?w:P.selectable,ae=te.useMemo(()=>$t!==void 0?$t:wt,[wt,$t]),Ee={horizontal:{motionName:`${Oe}-slide-up`},inline:(0,k.Z)(Oe),other:{motionName:`${Oe}-zoom-big`}},De=ne("menu",Ze||P.prefixCls),[He,q]=yt(De,!Re),Ut=$()(`${De}-${Ke}`,ke==null?void 0:ke.className,it);let Pe;if(typeof Tt=="function")Pe=Tt;else if(Tt===null||Tt===!1)Pe=null;else if(P.expandIcon===null||P.expandIcon===!1)Pe=null;else{const an=Tt!=null?Tt:P.expandIcon;Pe=(0,x.Tm)(an,{className:$()(`${De}-submenu-expand-icon`,(0,x.l$)(an)?(pe=an.props)===null||pe===void 0?void 0:pe.className:"")})}const Qt=te.useMemo(()=>({prefixCls:De,inlineCollapsed:ae||!1,direction:ye,firstLevel:!0,theme:Ke,mode:Ge,disableMenuItemTitleTooltip:St}),[De,ae,ye,St,Ke]);return He(te.createElement(Y.Z.Provider,{value:null},te.createElement(T.Provider,{value:Qt},te.createElement(S.ZP,Object.assign({getPopupContainer:fe,overflowedIndicator:te.createElement(W.Z,null),overflowedIndicatorPopupClassName:$()(De,`${De}-${Ke}`,ft),mode:Ge,selectable:Je,onClick:ze},Ie,{inlineCollapsed:ae,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Ye),className:Ut,prefixCls:De,direction:ye,defaultMotions:Ee,expandIcon:Pe,ref:ce,rootClassName:$()(Jt,q)}),pn))))});const Ot=(0,te.forwardRef)((me,ce)=>{const j=(0,te.useRef)(null),pe=te.useContext(xe.D);return(0,te.useImperativeHandle)(ce,()=>({menu:j.current,focus:Re=>{var P;(P=j.current)===null||P===void 0||P.focus(Re)}})),te.createElement(vt,Object.assign({ref:j},me,pe))});Ot.Item=ie,Ot.SubMenu=U,Ot.Divider=o,Ot.ItemGroup=S.BW;var Bt=Ot},5112:function(Kt,nt,E){"use strict";E.d(nt,{ZP:function(){return b}});var S=E(92310),te=E.n(S),xe=E(18929),ve=E(26112),$=E(59301),p=E(36355),he=E(19716);const re=$.createContext(null),o=re.Provider;var ue=re;const G=$.createContext(null),v=G.Provider;var x=E(5630),A=E(8654),T=E(1684),Z=E(32441),ie=E(17313),M=E(83116),U=E(37613);const W=B=>{const{componentCls:F,antCls:Se}=B,we=`${F}-group`;return{[we]:Object.assign(Object.assign({},(0,ie.Wf)(B)),{display:"inline-block",fontSize:0,[`&${we}-rtl`]:{direction:"rtl"},[`${Se}-badge ${Se}-badge-count`]:{zIndex:1},[`> ${Se}-badge:not(:first-child) > ${Se}-button-wrapper`]:{borderInlineStart:"none"}})}},le=B=>{const{componentCls:F,wrapperMarginInlineEnd:Se,colorPrimary:we,radioSize:Ne,motionDurationSlow:je,motionDurationMid:et,motionEaseInOutCirc:qe,colorBgContainer:rt,colorBorder:yt,lineWidth:Dt,dotSize:pt,colorBgContainerDisabled:vt,colorTextDisabled:Ot,paddingXS:Bt,dotColorDisabled:me,lineType:ce,radioDotDisabledSize:j,wireframe:pe,colorWhite:Re}=B,P=`${F}-inner`;return{[`${F}-wrapper`]:Object.assign(Object.assign({},(0,ie.Wf)(B)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Se,cursor:"pointer",[`&${F}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:B.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${F}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Dt}px ${ce} ${we}`,borderRadius:"50%",visibility:"hidden",content:'""'},[F]:Object.assign(Object.assign({},(0,ie.Wf)(B)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${F}-wrapper:hover &,
|
|
&:hover ${P}`]:{borderColor:we},[`${F}-input:focus-visible + ${P}`]:Object.assign({},(0,ie.oN)(B)),[`${F}:hover::after, ${F}-wrapper:hover &::after`]:{visibility:"visible"},[`${F}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ne,height:Ne,marginBlockStart:Ne/-2,marginInlineStart:Ne/-2,backgroundColor:pe?we:Re,borderBlockStart:0,borderInlineStart:0,borderRadius:Ne,transform:"scale(0)",opacity:0,transition:`all ${je} ${qe}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ne,height:Ne,backgroundColor:rt,borderColor:yt,borderStyle:"solid",borderWidth:Dt,borderRadius:"50%",transition:`all ${et}`},[`${F}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${F}-checked`]:{[P]:{borderColor:we,backgroundColor:pe?rt:we,"&::after":{transform:`scale(${pt/Ne})`,opacity:1,transition:`all ${je} ${qe}`}}},[`${F}-disabled`]:{cursor:"not-allowed",[P]:{backgroundColor:vt,borderColor:yt,cursor:"not-allowed","&::after":{backgroundColor:me}},[`${F}-input`]:{cursor:"not-allowed"},[`${F}-disabled + span`]:{color:Ot,cursor:"not-allowed"},[`&${F}-checked`]:{[P]:{"&::after":{transform:`scale(${j/Ne})`}}}},[`span${F} + *`]:{paddingInlineStart:Bt,paddingInlineEnd:Bt}})}},k=B=>{const{buttonColor:F,controlHeight:Se,componentCls:we,lineWidth:Ne,lineType:je,colorBorder:et,motionDurationSlow:qe,motionDurationMid:rt,buttonPaddingInline:yt,fontSize:Dt,buttonBg:pt,fontSizeLG:vt,controlHeightLG:Ot,controlHeightSM:Bt,paddingXS:me,borderRadius:ce,borderRadiusSM:j,borderRadiusLG:pe,buttonCheckedBg:Re,buttonSolidCheckedColor:P,colorTextDisabled:ne,colorBgContainerDisabled:fe,buttonCheckedBgDisabled:ye,buttonCheckedColorDisabled:ke,colorPrimary:Oe,colorPrimaryHover:Ze,colorPrimaryActive:it,buttonSolidCheckedBg:Ye,buttonSolidCheckedHoverBg:Ke,buttonSolidCheckedActiveBg:Tt}=B;return{[`${we}-button-wrapper`]:{position:"relative",display:"inline-block",height:Se,margin:0,paddingInline:yt,paddingBlock:0,color:F,fontSize:Dt,lineHeight:`${Se-Ne*2}px`,background:pt,border:`${Ne}px ${je} ${et}`,borderBlockStartWidth:Ne+.02,borderInlineStartWidth:0,borderInlineEndWidth:Ne,cursor:"pointer",transition:[`color ${rt}`,`background ${rt}`,`box-shadow ${rt}`].join(","),a:{color:F},[`> ${we}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Ne,insetInlineStart:-Ne,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ne,paddingInline:0,backgroundColor:et,transition:`background-color ${qe}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ne}px ${je} ${et}`,borderStartStartRadius:ce,borderEndStartRadius:ce},"&:last-child":{borderStartEndRadius:ce,borderEndEndRadius:ce},"&:first-child:last-child":{borderRadius:ce},[`${we}-group-large &`]:{height:Ot,fontSize:vt,lineHeight:`${Ot-Ne*2}px`,"&:first-child":{borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe}},[`${we}-group-small &`]:{height:Bt,paddingInline:me-Ne,paddingBlock:0,lineHeight:`${Bt-Ne*2}px`,"&:first-child":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover":{position:"relative",color:Oe},"&:has(:focus-visible)":Object.assign({},(0,ie.oN)(B)),[`${we}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${we}-button-wrapper-disabled)`]:{zIndex:1,color:Oe,background:Re,borderColor:Oe,"&::before":{backgroundColor:Oe},"&:first-child":{borderColor:Oe},"&:hover":{color:Ze,borderColor:Ze,"&::before":{backgroundColor:Ze}},"&:active":{color:it,borderColor:it,"&::before":{backgroundColor:it}}},[`${we}-group-solid &-checked:not(${we}-button-wrapper-disabled)`]:{color:P,background:Ye,borderColor:Ye,"&:hover":{color:P,background:Ke,borderColor:Ke},"&:active":{color:P,background:Tt,borderColor:Tt}},"&-disabled":{color:ne,backgroundColor:fe,borderColor:et,cursor:"not-allowed","&:first-child, &:hover":{color:ne,backgroundColor:fe,borderColor:et}},[`&-disabled${we}-button-wrapper-checked`]:{color:ke,backgroundColor:ye,borderColor:et,boxShadow:"none"}}}},Y=B=>B-4*2;var se=(0,M.Z)("Radio",B=>{const{controlOutline:F,controlOutlineWidth:Se,radioSize:we}=B,Ne=`0 0 0 ${Se}px ${F}`,je=Ne,et=Y(we),qe=(0,U.TS)(B,{radioDotDisabledSize:et,radioFocusShadow:Ne,radioButtonFocusShadow:je});return[W(qe),le(qe),k(qe)]},B=>{const{wireframe:F,padding:Se,marginXS:we,lineWidth:Ne,fontSizeLG:je,colorText:et,colorBgContainer:qe,colorTextDisabled:rt,controlItemBgActiveDisabled:yt,colorTextLightSolid:Dt,colorPrimary:pt,colorPrimaryHover:vt,colorPrimaryActive:Ot}=B,Bt=4,me=je,ce=F?Y(me):me-(Bt+Ne)*2;return{radioSize:me,dotSize:ce,dotColorDisabled:rt,buttonSolidCheckedColor:Dt,buttonSolidCheckedBg:pt,buttonSolidCheckedHoverBg:vt,buttonSolidCheckedActiveBg:Ot,buttonBg:qe,buttonCheckedBg:qe,buttonColor:et,buttonCheckedBgDisabled:yt,buttonCheckedColorDisabled:rt,buttonPaddingInline:Se-Ne,wrapperMarginInlineEnd:we}}),J=E(14088),ge=E(4572),Ce=function(B,F){var Se={};for(var we in B)Object.prototype.hasOwnProperty.call(B,we)&&F.indexOf(we)<0&&(Se[we]=B[we]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(B);Ne<we.length;Ne++)F.indexOf(we[Ne])<0&&Object.prototype.propertyIsEnumerable.call(B,we[Ne])&&(Se[we[Ne]]=B[we[Ne]]);return Se};const Te=(B,F)=>{var Se,we;const Ne=$.useContext(ue),je=$.useContext(G),{getPrefixCls:et,direction:qe,radio:rt}=$.useContext(p.E_),yt=$.useRef(null),Dt=(0,A.sQ)(F,yt),{isFormItemInput:pt}=$.useContext(Z.aM),vt=it=>{var Ye,Ke;(Ye=B.onChange)===null||Ye===void 0||Ye.call(B,it),(Ke=Ne==null?void 0:Ne.onChange)===null||Ke===void 0||Ke.call(Ne,it)},{prefixCls:Ot,className:Bt,rootClassName:me,children:ce,style:j}=B,pe=Ce(B,["prefixCls","className","rootClassName","children","style"]),Re=et("radio",Ot),P=((Ne==null?void 0:Ne.optionType)||je)==="button",ne=P?`${Re}-button`:Re,[fe,ye]=se(Re),ke=Object.assign({},pe),Oe=$.useContext(T.Z);Ne&&(ke.name=Ne.name,ke.onChange=vt,ke.checked=B.value===Ne.value,ke.disabled=(Se=ke.disabled)!==null&&Se!==void 0?Se:Ne.disabled),ke.disabled=(we=ke.disabled)!==null&&we!==void 0?we:Oe;const Ze=te()(`${ne}-wrapper`,{[`${ne}-wrapper-checked`]:ke.checked,[`${ne}-wrapper-disabled`]:ke.disabled,[`${ne}-wrapper-rtl`]:qe==="rtl",[`${ne}-wrapper-in-form-item`]:pt},rt==null?void 0:rt.className,Bt,me,ye);return fe($.createElement(J.Z,{component:"Radio",disabled:ke.disabled},$.createElement("label",{className:Ze,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),j),onMouseEnter:B.onMouseEnter,onMouseLeave:B.onMouseLeave},$.createElement(x.Z,Object.assign({},ke,{className:te()(ke.className,!P&&ge.A),type:"radio",prefixCls:ne,ref:Dt})),ce!==void 0?$.createElement("span",null,ce):null)))};var Q=$.forwardRef(Te);const O=$.forwardRef((B,F)=>{const{getPrefixCls:Se,direction:we}=$.useContext(p.E_),[Ne,je]=(0,xe.Z)(B.defaultValue,{value:B.value}),et=Ye=>{const Ke=Ne,Tt=Ye.target.value;"value"in B||je(Tt);const{onChange:St}=B;St&&Tt!==Ke&&St(Ye)},{prefixCls:qe,className:rt,rootClassName:yt,options:Dt,buttonStyle:pt="outline",disabled:vt,children:Ot,size:Bt,style:me,id:ce,onMouseEnter:j,onMouseLeave:pe,onFocus:Re,onBlur:P}=B,ne=Se("radio",qe),fe=`${ne}-group`,[ye,ke]=se(ne);let Oe=Ot;Dt&&Dt.length>0&&(Oe=Dt.map(Ye=>typeof Ye=="string"||typeof Ye=="number"?$.createElement(Q,{key:Ye.toString(),prefixCls:ne,disabled:vt,value:Ye,checked:Ne===Ye},Ye):$.createElement(Q,{key:`radio-group-value-options-${Ye.value}`,prefixCls:ne,disabled:Ye.disabled||vt,value:Ye.value,checked:Ne===Ye.value,title:Ye.title,style:Ye.style},Ye.label)));const Ze=(0,he.Z)(Bt),it=te()(fe,`${fe}-${pt}`,{[`${fe}-${Ze}`]:Ze,[`${fe}-rtl`]:we==="rtl"},rt,yt,ke);return ye($.createElement("div",Object.assign({},(0,ve.Z)(B,{aria:!0,data:!0}),{className:it,style:me,onMouseEnter:j,onMouseLeave:pe,onFocus:Re,onBlur:P,id:ce,ref:F}),$.createElement(o,{value:{onChange:et,value:Ne,disabled:B.disabled,name:B.name,optionType:B.optionType}},Oe)))});var K=$.memo(O),I=function(B,F){var Se={};for(var we in B)Object.prototype.hasOwnProperty.call(B,we)&&F.indexOf(we)<0&&(Se[we]=B[we]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(B);Ne<we.length;Ne++)F.indexOf(we[Ne])<0&&Object.prototype.propertyIsEnumerable.call(B,we[Ne])&&(Se[we[Ne]]=B[we[Ne]]);return Se};const X=(B,F)=>{const{getPrefixCls:Se}=$.useContext(p.E_),{prefixCls:we}=B,Ne=I(B,["prefixCls"]),je=Se("radio",we);return $.createElement(v,{value:"button"},$.createElement(Q,Object.assign({prefixCls:je},Ne,{type:"radio",ref:F})))};var z=$.forwardRef(X);const g=Q;g.Button=z,g.Group=K,g.__ANT_RADIO=!0;var b=g},13570:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return B}});var S=E(72308),te=E(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},ve=xe,$=E(7657),p=function(Se,we){return te.createElement($.Z,(0,S.Z)({},Se,{ref:we,icon:ve}))},he=te.forwardRef(p),re=he,o=E(92310),ue=E.n(o),G=E(49618),v=E(52487),x=E(74416),A=E(18929),T=E(10228),Z=E(26112);function ie(F,Se){var we=F.disabled,Ne=F.prefixCls,je=F.character,et=F.characterRender,qe=F.index,rt=F.count,yt=F.value,Dt=F.allowHalf,pt=F.focused,vt=F.onHover,Ot=F.onClick,Bt=function(fe){vt(fe,qe)},me=function(fe){Ot(fe,qe)},ce=function(fe){fe.keyCode===T.Z.ENTER&&Ot(fe,qe)},j=qe+1,pe=new Set([Ne]);yt===0&&qe===0&&pt?pe.add("".concat(Ne,"-focused")):Dt&&yt+.5>=j&&yt<j?(pe.add("".concat(Ne,"-half")),pe.add("".concat(Ne,"-active")),pt&&pe.add("".concat(Ne,"-focused"))):(j<=yt?pe.add("".concat(Ne,"-full")):pe.add("".concat(Ne,"-zero")),j===yt&&pt&&pe.add("".concat(Ne,"-focused")));var Re=typeof je=="function"?je(F):je,P=te.createElement("li",{className:ue()(Array.from(pe)),ref:Se},te.createElement("div",{onClick:we?null:me,onKeyDown:we?null:ce,onMouseMove:we?null:Bt,role:"radio","aria-checked":yt>qe?"true":"false","aria-posinset":qe+1,"aria-setsize":rt,tabIndex:we?-1:0},te.createElement("div",{className:"".concat(Ne,"-first")},Re),te.createElement("div",{className:"".concat(Ne,"-second")},Re)));return et&&(P=et(P,F)),P}var M=te.forwardRef(ie);function U(){var F=te.useRef({});function Se(Ne){return F.current[Ne]}function we(Ne){return function(je){F.current[Ne]=je}}return[Se,we]}function W(F){var Se=F.pageXOffset,we="scrollLeft";if(typeof Se!="number"){var Ne=F.document;Se=Ne.documentElement[we],typeof Se!="number"&&(Se=Ne.body[we])}return Se}function le(F){var Se,we,Ne=F.ownerDocument,je=Ne.body,et=Ne&&Ne.documentElement,qe=F.getBoundingClientRect();return Se=qe.left,we=qe.top,Se-=et.clientLeft||je.clientLeft||0,we-=et.clientTop||je.clientTop||0,{left:Se,top:we}}function k(F){var Se=le(F),we=F.ownerDocument,Ne=we.defaultView||we.parentWindow;return Se.left+=W(Ne),Se.left}var Y=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(F,Se){var we,Ne=F.prefixCls,je=Ne===void 0?"rc-rate":Ne,et=F.className,qe=F.defaultValue,rt=F.value,yt=F.count,Dt=yt===void 0?5:yt,pt=F.allowHalf,vt=pt===void 0?!1:pt,Ot=F.allowClear,Bt=Ot===void 0?!0:Ot,me=F.character,ce=me===void 0?"\u2605":me,j=F.characterRender,pe=F.disabled,Re=F.direction,P=Re===void 0?"ltr":Re,ne=F.tabIndex,fe=ne===void 0?0:ne,ye=F.autoFocus,ke=F.onHoverChange,Oe=F.onChange,Ze=F.onFocus,it=F.onBlur,Ye=F.onKeyDown,Ke=F.onMouseLeave,Tt=(0,x.Z)(F,Y),St=U(),wt=(0,v.Z)(St,2),$t=wt[0],Yt=wt[1],Nt=te.useRef(null),Jt=function(){if(!pe){var We;(We=Nt.current)===null||We===void 0||We.focus()}};te.useImperativeHandle(Se,function(){return{focus:Jt,blur:function(){if(!pe){var We;(We=Nt.current)===null||We===void 0||We.blur()}}}});var nn=(0,A.Z)(qe||0,{value:rt}),w=(0,v.Z)(nn,2),R=w[0],ft=w[1],ee=(0,A.Z)(null),Ie=(0,v.Z)(ee,2),pn=Ie[0],ze=Ie[1],Ge=function(We,at){var bt=P==="rtl",Ct=We+1;if(vt){var Xt=$t(We),cn=k(Xt),Wt=Xt.clientWidth;(bt&&at-cn>Wt/2||!bt&&at-cn<Wt/2)&&(Ct-=.5)}return Ct},Je=function(We){ft(We),Oe==null||Oe(We)},ae=te.useState(!1),Ee=(0,v.Z)(ae,2),De=Ee[0],He=Ee[1],q=function(){He(!0),Ze==null||Ze()},Ut=function(){He(!1),it==null||it()},Pe=te.useState(null),Qt=(0,v.Z)(Pe,2),an=Qt[0],kt=Qt[1],It=function(We,at){var bt=Ge(at,We.pageX);bt!==pn&&(kt(bt),ze(null)),ke==null||ke(bt)},Et=function(We){pe||(kt(null),ze(null),ke==null||ke(void 0)),We&&(Ke==null||Ke(We))},xt=function(We,at){var bt=Ge(at,We.pageX),Ct=!1;Bt&&(Ct=bt===R),Et(),Je(Ct?0:bt),ze(Ct?bt:null)},rn=function(We){var at=We.keyCode,bt=P==="rtl",Ct=R;at===T.Z.RIGHT&&Ct<Dt&&!bt?(vt?Ct+=.5:Ct+=1,Je(Ct),We.preventDefault()):at===T.Z.LEFT&&Ct>0&&!bt||at===T.Z.RIGHT&&Ct>0&&bt?(vt?Ct-=.5:Ct-=1,Je(Ct),We.preventDefault()):at===T.Z.LEFT&&Ct<Dt&&bt&&(vt?Ct+=.5:Ct+=1,Je(Ct),We.preventDefault()),Ye==null||Ye(We)};te.useEffect(function(){ye&&!pe&&Jt()},[]);var _e=new Array(Dt).fill(0).map(function(ct,We){return te.createElement(M,{ref:Yt(We),index:We,count:Dt,disabled:pe,prefixCls:"".concat(je,"-star"),allowHalf:vt,value:an===null?R:an,onClick:xt,onHover:It,key:ct||We,character:ce,characterRender:j,focused:De})}),Ae=ue()(je,et,(we={},(0,G.Z)(we,"".concat(je,"-disabled"),pe),(0,G.Z)(we,"".concat(je,"-rtl"),P==="rtl"),we));return te.createElement("ul",(0,S.Z)({className:Ae,onMouseLeave:Et,tabIndex:pe?-1:fe,onFocus:pe?null:q,onBlur:pe?null:Ut,onKeyDown:pe?null:rn,ref:Nt,role:"radiogroup"},(0,Z.Z)(Tt,{aria:!0,data:!0,attr:!0})),_e)}var J=te.forwardRef(se),ge=J,Ce=E(36355),Te=E(6848),Fe=E(17313),Q=E(83116),O=E(37613);const K=F=>{const{componentCls:Se}=F;return{[`${Se}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:F.marginXS},"> div":{transition:`all ${F.motionDurationMid}, outline 0s`,"&:hover":{transform:F.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${F.lineWidth}px dashed ${F.starColor}`,transform:F.starHoverScale}},"&-first, &-second":{color:F.starBg,transition:`all ${F.motionDurationMid}`,userSelect:"none",[F.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Se}-star-first, &-half ${Se}-star-second`]:{opacity:1},[`&-half ${Se}-star-first, &-full ${Se}-star-second`]:{color:"inherit"}}}},I=F=>({[`&-rtl${F.componentCls}`]:{direction:"rtl"}}),X=F=>{const{componentCls:Se}=F;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(F)),{display:"inline-block",margin:0,padding:0,color:F.starColor,fontSize:F.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Se} ${Se}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),K(F)),{[`+ ${Se}-text`]:{display:"inline-block",marginInlineStart:F.marginXS,fontSize:F.fontSize}}),I(F))}};var z=(0,Q.Z)("Rate",F=>{const Se=(0,O.TS)(F,{});return[X(Se)]},F=>({starColor:F.yellow6,starSize:F.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:F.colorFillContent})),g=function(F,Se){var we={};for(var Ne in F)Object.prototype.hasOwnProperty.call(F,Ne)&&Se.indexOf(Ne)<0&&(we[Ne]=F[Ne]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ne=Object.getOwnPropertySymbols(F);je<Ne.length;je++)Se.indexOf(Ne[je])<0&&Object.prototype.propertyIsEnumerable.call(F,Ne[je])&&(we[Ne[je]]=F[Ne[je]]);return we},B=te.forwardRef((F,Se)=>{const{prefixCls:we,className:Ne,rootClassName:je,style:et,tooltips:qe,character:rt=te.createElement(re,null)}=F,yt=g(F,["prefixCls","className","rootClassName","style","tooltips","character"]),Dt=(pe,Re)=>{let{index:P}=Re;return qe?te.createElement(Te.Z,{title:qe[P]},pe):pe},{getPrefixCls:pt,direction:vt,rate:Ot}=te.useContext(Ce.E_),Bt=pt("rate",we),[me,ce]=z(Bt),j=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),et);return me(te.createElement(ge,Object.assign({ref:Se,character:rt,characterRender:Dt},yt,{className:ue()(Ne,je,ce,Ot==null?void 0:Ot.className),style:j,prefixCls:Bt,direction:vt})))})},61621:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return ce}});var S=E(92310),te=E.n(S),xe=E(59301),ve=E(36355),$=E(2738),he=j=>{const{prefixCls:pe,className:Re,style:P,size:ne,shape:fe}=j,ye=te()({[`${pe}-lg`]:ne==="large",[`${pe}-sm`]:ne==="small"}),ke=te()({[`${pe}-circle`]:fe==="circle",[`${pe}-square`]:fe==="square",[`${pe}-round`]:fe==="round"}),Oe=xe.useMemo(()=>typeof ne=="number"?{width:ne,height:ne,lineHeight:`${ne}px`}:{},[ne]);return xe.createElement("span",{className:te()(pe,ye,ke,Re),style:Object.assign(Object.assign({},Oe),P)})},re=E(93083),o=E(83116),ue=E(37613);const G=new re.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),v=j=>({height:j,lineHeight:`${j}px`}),x=j=>Object.assign({width:j},v(j)),A=j=>({background:j.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:G,animationDuration:j.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T=j=>Object.assign({width:j*5,minWidth:j*5},v(j)),Z=j=>{const{skeletonAvatarCls:pe,gradientFromColor:Re,controlHeight:P,controlHeightLG:ne,controlHeightSM:fe}=j;return{[`${pe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Re},x(P)),[`${pe}${pe}-circle`]:{borderRadius:"50%"},[`${pe}${pe}-lg`]:Object.assign({},x(ne)),[`${pe}${pe}-sm`]:Object.assign({},x(fe))}},ie=j=>{const{controlHeight:pe,borderRadiusSM:Re,skeletonInputCls:P,controlHeightLG:ne,controlHeightSM:fe,gradientFromColor:ye}=j;return{[`${P}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ye,borderRadius:Re},T(pe)),[`${P}-lg`]:Object.assign({},T(ne)),[`${P}-sm`]:Object.assign({},T(fe))}},M=j=>Object.assign({width:j},v(j)),U=j=>{const{skeletonImageCls:pe,imageSizeBase:Re,gradientFromColor:P,borderRadiusSM:ne}=j;return{[`${pe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:P,borderRadius:ne},M(Re*2)),{[`${pe}-path`]:{fill:"#bfbfbf"},[`${pe}-svg`]:Object.assign(Object.assign({},M(Re)),{maxWidth:Re*4,maxHeight:Re*4}),[`${pe}-svg${pe}-svg-circle`]:{borderRadius:"50%"}}),[`${pe}${pe}-circle`]:{borderRadius:"50%"}}},W=(j,pe,Re)=>{const{skeletonButtonCls:P}=j;return{[`${Re}${P}-circle`]:{width:pe,minWidth:pe,borderRadius:"50%"},[`${Re}${P}-round`]:{borderRadius:pe}}},le=j=>Object.assign({width:j*2,minWidth:j*2},v(j)),k=j=>{const{borderRadiusSM:pe,skeletonButtonCls:Re,controlHeight:P,controlHeightLG:ne,controlHeightSM:fe,gradientFromColor:ye}=j;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ye,borderRadius:pe,width:P*2,minWidth:P*2},le(P))},W(j,P,Re)),{[`${Re}-lg`]:Object.assign({},le(ne))}),W(j,ne,`${Re}-lg`)),{[`${Re}-sm`]:Object.assign({},le(fe))}),W(j,fe,`${Re}-sm`))},Y=j=>{const{componentCls:pe,skeletonAvatarCls:Re,skeletonTitleCls:P,skeletonParagraphCls:ne,skeletonButtonCls:fe,skeletonInputCls:ye,skeletonImageCls:ke,controlHeight:Oe,controlHeightLG:Ze,controlHeightSM:it,gradientFromColor:Ye,padding:Ke,marginSM:Tt,borderRadius:St,titleHeight:wt,blockRadius:$t,paragraphLiHeight:Yt,controlHeightXS:Nt,paragraphMarginTop:Jt}=j;return{[`${pe}`]:{display:"table",width:"100%",[`${pe}-header`]:{display:"table-cell",paddingInlineEnd:Ke,verticalAlign:"top",[`${Re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ye},x(Oe)),[`${Re}-circle`]:{borderRadius:"50%"},[`${Re}-lg`]:Object.assign({},x(Ze)),[`${Re}-sm`]:Object.assign({},x(it))},[`${pe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${P}`]:{width:"100%",height:wt,background:Ye,borderRadius:$t,[`+ ${ne}`]:{marginBlockStart:it}},[`${ne}`]:{padding:0,"> li":{width:"100%",height:Yt,listStyle:"none",background:Ye,borderRadius:$t,"+ li":{marginBlockStart:Nt}}},[`${ne}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${pe}-content`]:{[`${P}, ${ne} > li`]:{borderRadius:St}}},[`${pe}-with-avatar ${pe}-content`]:{[`${P}`]:{marginBlockStart:Tt,[`+ ${ne}`]:{marginBlockStart:Jt}}},[`${pe}${pe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},k(j)),Z(j)),ie(j)),U(j)),[`${pe}${pe}-block`]:{width:"100%",[`${fe}`]:{width:"100%"},[`${ye}`]:{width:"100%"}},[`${pe}${pe}-active`]:{[`
|
|
${P},
|
|
${ne} > li,
|
|
${Re},
|
|
${fe},
|
|
${ye},
|
|
${ke}
|
|
`]:Object.assign({},A(j))}}};var se=(0,o.Z)("Skeleton",j=>{const{componentCls:pe}=j,Re=(0,ue.TS)(j,{skeletonAvatarCls:`${pe}-avatar`,skeletonTitleCls:`${pe}-title`,skeletonParagraphCls:`${pe}-paragraph`,skeletonButtonCls:`${pe}-button`,skeletonInputCls:`${pe}-input`,skeletonImageCls:`${pe}-image`,imageSizeBase:j.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${j.gradientFromColor} 25%, ${j.gradientToColor} 37%, ${j.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Y(Re)]},j=>{const{colorFillContent:pe,colorFill:Re}=j,P=pe,ne=Re;return{color:P,colorGradientEnd:ne,gradientFromColor:P,gradientToColor:ne,titleHeight:j.controlHeight/2,blockRadius:j.borderRadiusSM,paragraphMarginTop:j.marginLG+j.marginXXS,paragraphLiHeight:j.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ge=j=>{const{prefixCls:pe,className:Re,rootClassName:P,active:ne,shape:fe="circle",size:ye="default"}=j,{getPrefixCls:ke}=xe.useContext(ve.E_),Oe=ke("skeleton",pe),[Ze,it]=se(Oe),Ye=(0,$.Z)(j,["prefixCls","className"]),Ke=te()(Oe,`${Oe}-element`,{[`${Oe}-active`]:ne},Re,P,it);return Ze(xe.createElement("div",{className:Ke},xe.createElement(he,Object.assign({prefixCls:`${Oe}-avatar`,shape:fe,size:ye},Ye))))},Te=j=>{const{prefixCls:pe,className:Re,rootClassName:P,active:ne,block:fe=!1,size:ye="default"}=j,{getPrefixCls:ke}=xe.useContext(ve.E_),Oe=ke("skeleton",pe),[Ze,it]=se(Oe),Ye=(0,$.Z)(j,["prefixCls"]),Ke=te()(Oe,`${Oe}-element`,{[`${Oe}-active`]:ne,[`${Oe}-block`]:fe},Re,P,it);return Ze(xe.createElement("div",{className:Ke},xe.createElement(he,Object.assign({prefixCls:`${Oe}-button`,size:ye},Ye))))};const Fe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var O=j=>{const{prefixCls:pe,className:Re,rootClassName:P,style:ne,active:fe}=j,{getPrefixCls:ye}=xe.useContext(ve.E_),ke=ye("skeleton",pe),[Oe,Ze]=se(ke),it=te()(ke,`${ke}-element`,{[`${ke}-active`]:fe},Re,P,Ze);return Oe(xe.createElement("div",{className:it},xe.createElement("div",{className:te()(`${ke}-image`,Re),style:ne},xe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},xe.createElement("path",{d:Fe,className:`${ke}-image-path`})))))},I=j=>{const{prefixCls:pe,className:Re,rootClassName:P,active:ne,block:fe,size:ye="default"}=j,{getPrefixCls:ke}=xe.useContext(ve.E_),Oe=ke("skeleton",pe),[Ze,it]=se(Oe),Ye=(0,$.Z)(j,["prefixCls"]),Ke=te()(Oe,`${Oe}-element`,{[`${Oe}-active`]:ne,[`${Oe}-block`]:fe},Re,P,it);return Ze(xe.createElement("div",{className:Ke},xe.createElement(he,Object.assign({prefixCls:`${Oe}-input`,size:ye},Ye))))},X=E(72308),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=z,b=E(7657),B=function(pe,Re){return xe.createElement(b.Z,(0,X.Z)({},pe,{ref:Re,icon:g}))},F=xe.forwardRef(B),Se=F,Ne=j=>{const{prefixCls:pe,className:Re,rootClassName:P,style:ne,active:fe,children:ye}=j,{getPrefixCls:ke}=xe.useContext(ve.E_),Oe=ke("skeleton",pe),[Ze,it]=se(Oe),Ye=te()(Oe,`${Oe}-element`,{[`${Oe}-active`]:fe},it,Re,P),Ke=ye!=null?ye:xe.createElement(Se,null);return Ze(xe.createElement("div",{className:Ye},xe.createElement("div",{className:te()(`${Oe}-image`,Re),style:ne},Ke)))},je=E(80702),qe=j=>{const pe=ke=>{const{width:Oe,rows:Ze=2}=j;if(Array.isArray(Oe))return Oe[ke];if(Ze-1===ke)return Oe},{prefixCls:Re,className:P,style:ne,rows:fe}=j,ye=(0,je.Z)(Array(fe)).map((ke,Oe)=>xe.createElement("li",{key:Oe,style:{width:pe(Oe)}}));return xe.createElement("ul",{className:te()(Re,P),style:ne},ye)},yt=j=>{let{prefixCls:pe,className:Re,width:P,style:ne}=j;return xe.createElement("h3",{className:te()(pe,Re),style:Object.assign({width:P},ne)})};function Dt(j){return j&&typeof j=="object"?j:{}}function pt(j,pe){return j&&!pe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function vt(j,pe){return!j&&pe?{width:"38%"}:j&&pe?{width:"50%"}:{}}function Ot(j,pe){const Re={};return(!j||!pe)&&(Re.width="61%"),!j&&pe?Re.rows=3:Re.rows=2,Re}const Bt=j=>{const{prefixCls:pe,loading:Re,className:P,rootClassName:ne,style:fe,children:ye,avatar:ke=!1,title:Oe=!0,paragraph:Ze=!0,active:it,round:Ye}=j,{getPrefixCls:Ke,direction:Tt,skeleton:St}=xe.useContext(ve.E_),wt=Ke("skeleton",pe),[$t,Yt]=se(wt);if(Re||!("loading"in j)){const Nt=!!ke,Jt=!!Oe,nn=!!Ze;let w;if(Nt){const ee=Object.assign(Object.assign({prefixCls:`${wt}-avatar`},pt(Jt,nn)),Dt(ke));w=xe.createElement("div",{className:`${wt}-header`},xe.createElement(he,Object.assign({},ee)))}let R;if(Jt||nn){let ee;if(Jt){const pn=Object.assign(Object.assign({prefixCls:`${wt}-title`},vt(Nt,nn)),Dt(Oe));ee=xe.createElement(yt,Object.assign({},pn))}let Ie;if(nn){const pn=Object.assign(Object.assign({prefixCls:`${wt}-paragraph`},Ot(Nt,Jt)),Dt(Ze));Ie=xe.createElement(qe,Object.assign({},pn))}R=xe.createElement("div",{className:`${wt}-content`},ee,Ie)}const ft=te()(wt,{[`${wt}-with-avatar`]:Nt,[`${wt}-active`]:it,[`${wt}-rtl`]:Tt==="rtl",[`${wt}-round`]:Ye},St==null?void 0:St.className,P,ne,Yt);return $t(xe.createElement("div",{className:ft,style:Object.assign(Object.assign({},St==null?void 0:St.style),fe)},w,R))}return typeof ye!="undefined"?ye:null};Bt.Button=Te,Bt.Avatar=ge,Bt.Input=I,Bt.Image=O,Bt.Node=Ne;var me=Bt,ce=me},81327:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return ie}});var S=E(59301),te=E(92310),xe=E.n(te),ve=E(11592),$=E(36355),p=E(33234);const he=S.createContext({latestIndex:0}),re=he.Provider;var ue=M=>{let{className:U,index:W,children:le,split:k,style:Y}=M;const{latestIndex:se}=S.useContext(he);return le==null?null:S.createElement(S.Fragment,null,S.createElement("div",{className:U,style:Y},le),W<se&&k&&S.createElement("span",{className:`${U}-split`},k))},G=E(2856);function v(M){return["small","middle","large"].includes(M)}function x(M){return M?typeof M=="number"&&!Number.isNaN(M):!1}var A=function(M,U){var W={};for(var le in M)Object.prototype.hasOwnProperty.call(M,le)&&U.indexOf(le)<0&&(W[le]=M[le]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,le=Object.getOwnPropertySymbols(M);k<le.length;k++)U.indexOf(le[k])<0&&Object.prototype.propertyIsEnumerable.call(M,le[k])&&(W[le[k]]=M[le[k]]);return W};const Z=S.forwardRef((M,U)=>{var W,le;const{getPrefixCls:k,space:Y,direction:se}=S.useContext($.E_),{size:J=(Y==null?void 0:Y.size)||"small",align:ge,className:Ce,rootClassName:Te,children:Fe,direction:Q="horizontal",prefixCls:O,split:K,style:I,wrap:X=!1,classNames:z,styles:g}=M,b=A(M,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[B,F]=Array.isArray(J)?J:[J,J],Se=v(F),we=v(B),Ne=x(F),je=x(B),et=(0,ve.Z)(Fe,{keepEmpty:!0}),qe=ge===void 0&&Q==="horizontal"?"center":ge,rt=k("space",O),[yt,Dt]=(0,G.Z)(rt),pt=xe()(rt,Y==null?void 0:Y.className,Dt,`${rt}-${Q}`,{[`${rt}-rtl`]:se==="rtl",[`${rt}-align-${qe}`]:qe,[`${rt}-gap-row-${F}`]:Se,[`${rt}-gap-col-${B}`]:we},Ce,Te),vt=xe()(`${rt}-item`,(W=z==null?void 0:z.item)!==null&&W!==void 0?W:(le=Y==null?void 0:Y.classNames)===null||le===void 0?void 0:le.item);let Ot=0;const Bt=et.map((j,pe)=>{var Re,P;j!=null&&(Ot=pe);const ne=j&&j.key||`${vt}-${pe}`;return S.createElement(ue,{className:vt,key:ne,index:pe,split:K,style:(Re=g==null?void 0:g.item)!==null&&Re!==void 0?Re:(P=Y==null?void 0:Y.styles)===null||P===void 0?void 0:P.item},j)}),me=S.useMemo(()=>({latestIndex:Ot}),[Ot]);if(et.length===0)return null;const ce={};return X&&(ce.flexWrap="wrap"),!we&&je&&(ce.columnGap=B),!Se&&Ne&&(ce.rowGap=F),yt(S.createElement("div",Object.assign({ref:U,className:pt,style:Object.assign(Object.assign(Object.assign({},ce),Y==null?void 0:Y.style),I)},b),S.createElement(re,{value:me},Bt)))});Z.Compact=p.ZP;var ie=Z},31797:function(Kt,nt,E){"use strict";E.d(nt,{default:function(){return se}});var S=E(59301),te=E(56762),xe=E(92343),ve=E(92310),$=E.n(ve),p=E(36355),he=E(61621),o=J=>{const{value:ge,formatter:Ce,precision:Te,decimalSeparator:Fe,groupSeparator:Q="",prefixCls:O}=J;let K;if(typeof Ce=="function")K=Ce(ge);else{const I=String(ge),X=I.match(/^(-?)(\d*)(\.(\d+))?$/);if(!X||I==="-")K=I;else{const z=X[1];let g=X[2]||"0",b=X[4]||"";g=g.replace(/\B(?=(\d{3})+(?!\d))/g,Q),typeof Te=="number"&&(b=b.padEnd(Te,"0").slice(0,Te>0?Te:0)),b&&(b=`${Fe}${b}`),K=[S.createElement("span",{key:"int",className:`${O}-content-value-int`},z,g),b&&S.createElement("span",{key:"decimal",className:`${O}-content-value-decimal`},b)]}}return S.createElement("span",{className:`${O}-content-value`},K)},ue=E(17313),G=E(83116),v=E(37613);const x=J=>{const{componentCls:ge,marginXXS:Ce,padding:Te,colorTextDescription:Fe,titleFontSize:Q,colorTextHeading:O,contentFontSize:K,fontFamily:I}=J;return{[`${ge}`]:Object.assign(Object.assign({},(0,ue.Wf)(J)),{[`${ge}-title`]:{marginBottom:Ce,color:Fe,fontSize:Q},[`${ge}-skeleton`]:{paddingTop:Te},[`${ge}-content`]:{color:O,fontSize:K,fontFamily:I,[`${ge}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ge}-content-prefix, ${ge}-content-suffix`]:{display:"inline-block"},[`${ge}-content-prefix`]:{marginInlineEnd:Ce},[`${ge}-content-suffix`]:{marginInlineStart:Ce}}})}};var A=(0,G.Z)("Statistic",J=>{const ge=(0,v.TS)(J,{});return[x(ge)]},J=>{const{fontSizeHeading3:ge,fontSize:Ce}=J;return{titleFontSize:Ce,contentFontSize:ge}}),Z=J=>{const{prefixCls:ge,className:Ce,rootClassName:Te,style:Fe,valueStyle:Q,value:O=0,title:K,valueRender:I,prefix:X,suffix:z,loading:g=!1,onMouseEnter:b,onMouseLeave:B,decimalSeparator:F=".",groupSeparator:Se=","}=J,{getPrefixCls:we,direction:Ne,statistic:je}=S.useContext(p.E_),et=we("statistic",ge),[qe,rt]=A(et),yt=S.createElement(o,Object.assign({decimalSeparator:F,groupSeparator:Se,prefixCls:et},J,{value:O})),Dt=$()(et,{[`${et}-rtl`]:Ne==="rtl"},je==null?void 0:je.className,Ce,Te,rt);return qe(S.createElement("div",{className:Dt,style:Object.assign(Object.assign({},je==null?void 0:je.style),Fe),onMouseEnter:b,onMouseLeave:B},K&&S.createElement("div",{className:`${et}-title`},K),S.createElement(he.Z,{paragraph:!1,loading:g,className:`${et}-skeleton`},S.createElement("div",{style:Q,className:`${et}-content`},X&&S.createElement("span",{className:`${et}-content-prefix`},X),I?I(yt):yt,z&&S.createElement("span",{className:`${et}-content-suffix`},z)))))};const ie=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function M(J,ge){let Ce=J;const Te=/\[[^\]]*]/g,Fe=(ge.match(Te)||[]).map(I=>I.slice(1,-1)),Q=ge.replace(Te,"[]"),O=ie.reduce((I,X)=>{let[z,g]=X;if(I.includes(z)){const b=Math.floor(Ce/g);return Ce-=b*g,I.replace(new RegExp(`${z}+`,"g"),B=>{const F=B.length;return b.toString().padStart(F,"0")})}return I},Q);let K=0;return O.replace(Te,()=>{const I=Fe[K];return K+=1,I})}function U(J,ge){const{format:Ce=""}=ge,Te=new Date(J).getTime(),Fe=Date.now(),Q=Math.max(Te-Fe,0);return M(Q,Ce)}const W=1e3/30;function le(J){return new Date(J).getTime()}const k=J=>{const{value:ge,format:Ce="HH:mm:ss",onChange:Te,onFinish:Fe}=J,Q=(0,te.Z)(),O=S.useRef(null),K=()=>{Fe==null||Fe(),O.current&&(clearInterval(O.current),O.current=null)},I=()=>{const g=le(ge);g>=Date.now()&&(O.current=setInterval(()=>{Q(),Te==null||Te(g-Date.now()),g<Date.now()&&K()},W))};S.useEffect(()=>(I(),()=>{O.current&&(clearInterval(O.current),O.current=null)}),[ge]);const X=(g,b)=>U(g,Object.assign(Object.assign({},b),{format:Ce})),z=g=>(0,xe.Tm)(g,{title:void 0});return S.createElement(Z,Object.assign({},J,{valueRender:z,formatter:X}))};var Y=S.memo(k);Z.Countdown=Y;var se=Z},8378:function(Kt,nt){"use strict";const E=S=>({[S.componentCls]:{[`${S.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${S.motionDurationMid} ${S.motionEaseInOut},
|
|
opacity ${S.motionDurationMid} ${S.motionEaseInOut} !important`}},[`${S.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${S.motionDurationMid} ${S.motionEaseInOut},
|
|
opacity ${S.motionDurationMid} ${S.motionEaseInOut} !important`}}});nt.Z=E},92899:function(Kt,nt,E){"use strict";E.d(nt,{Fm:function(){return v}});var S=E(93083),te=E(95406);const xe=new S.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ve=new S.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$=new S.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new S.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),he=new S.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),re=new S.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),o=new S.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ue=new S.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),G={"move-up":{inKeyframes:o,outKeyframes:ue},"move-down":{inKeyframes:xe,outKeyframes:ve},"move-left":{inKeyframes:$,outKeyframes:p},"move-right":{inKeyframes:he,outKeyframes:re}},v=(x,A)=>{const{antCls:T}=x,Z=`${T}-${A}`,{inKeyframes:ie,outKeyframes:M}=G[A];return[(0,te.R)(Z,ie,M,x.motionDurationMid),{[`
|
|
${Z}-enter,
|
|
${Z}-appear
|
|
`]:{opacity:0,animationTimingFunction:x.motionEaseOutCirc},[`${Z}-leave`]:{animationTimingFunction:x.motionEaseInOutCirc}}]}},13826:function(Kt,nt,E){"use strict";E.d(nt,{Qt:function(){return $},Uw:function(){return ve},fJ:function(){return xe},ly:function(){return p},oN:function(){return v}});var S=E(93083),te=E(95406);const xe=new S.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ve=new S.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$=new S.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),p=new S.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),he=new S.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),re=new S.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new S.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ue=new S.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),G={"slide-up":{inKeyframes:xe,outKeyframes:ve},"slide-down":{inKeyframes:$,outKeyframes:p},"slide-left":{inKeyframes:he,outKeyframes:re},"slide-right":{inKeyframes:o,outKeyframes:ue}},v=(x,A)=>{const{antCls:T}=x,Z=`${T}-${A}`,{inKeyframes:ie,outKeyframes:M}=G[A];return[(0,te.R)(Z,ie,M,x.motionDurationMid),{[`
|
|
${Z}-enter,
|
|
${Z}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:x.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Z}-leave`]:{animationTimingFunction:x.motionEaseInQuint}}]}},19447:function(Kt,nt,E){"use strict";E.d(nt,{ZP:function(){return $},fS:function(){return xe},qN:function(){return te}});var S=E(47585);const te=8;function xe(p){const he=te,{contentRadius:re,limitVerticalRadius:o}=p,ue=re>12?re+2:12;return{dropdownArrowOffset:ue,dropdownArrowOffsetVertical:o?he:ue}}function ve(p,he){return p?he:{}}function $(p,he){const{componentCls:re,sizePopupArrow:o,borderRadiusXS:ue,borderRadiusOuter:G,boxShadowPopoverArrow:v}=p,{colorBg:x,contentRadius:A=p.borderRadiusLG,limitVerticalRadius:T,arrowDistance:Z=0,arrowPlacement:ie={left:!0,right:!0,top:!0,bottom:!0}}=he,{dropdownArrowOffsetVertical:M,dropdownArrowOffset:U}=xe({contentRadius:A,limitVerticalRadius:T});return{[re]:Object.assign(Object.assign(Object.assign(Object.assign({[`${re}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,S.r)(o,ue,G,x,v)),{"&:before":{background:x}})]},ve(!!ie.top,{[[`&-placement-top ${re}-arrow`,`&-placement-topLeft ${re}-arrow`,`&-placement-topRight ${re}-arrow`].join(",")]:{bottom:Z,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${re}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${re}-arrow`]:{left:{_skip_check_:!0,value:U}},[`&-placement-topRight ${re}-arrow`]:{right:{_skip_check_:!0,value:U}}})),ve(!!ie.bottom,{[[`&-placement-bottom ${re}-arrow`,`&-placement-bottomLeft ${re}-arrow`,`&-placement-bottomRight ${re}-arrow`].join(",")]:{top:Z,transform:"translateY(-100%)"},[`&-placement-bottom ${re}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${re}-arrow`]:{left:{_skip_check_:!0,value:U}},[`&-placement-bottomRight ${re}-arrow`]:{right:{_skip_check_:!0,value:U}}})),ve(!!ie.left,{[[`&-placement-left ${re}-arrow`,`&-placement-leftTop ${re}-arrow`,`&-placement-leftBottom ${re}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Z},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${re}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${re}-arrow`]:{top:M},[`&-placement-leftBottom ${re}-arrow`]:{bottom:M}})),ve(!!ie.right,{[[`&-placement-right ${re}-arrow`,`&-placement-rightTop ${re}-arrow`,`&-placement-rightBottom ${re}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Z},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${re}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${re}-arrow`]:{top:M},[`&-placement-rightBottom ${re}-arrow`]:{bottom:M}}))}}},47585:function(Kt,nt,E){"use strict";E.d(nt,{r:function(){return S}});const S=(te,xe,ve,$,p)=>{const he=te/2,re=0,o=he,ue=ve*1/Math.sqrt(2),G=he-ve*(1-1/Math.sqrt(2)),v=he-xe*(1/Math.sqrt(2)),x=ve*(Math.sqrt(2)-1)+xe*(1/Math.sqrt(2)),A=2*he-v,T=x,Z=2*he-ue,ie=G,M=2*he-re,U=o,W=he*Math.sqrt(2)+ve*(Math.sqrt(2)-2),le=ve*(Math.sqrt(2)-1);return{pointerEvents:"none",width:te,height:te,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:te,height:te/2,background:$,clipPath:{_multi_value_:!0,value:[`polygon(${le}px 100%, 50% ${le}px, ${2*he-le}px 100%, ${le}px 100%)`,`path('M ${re} ${o} A ${ve} ${ve} 0 0 0 ${ue} ${G} L ${v} ${x} A ${xe} ${xe} 0 0 1 ${A} ${T} L ${Z} ${ie} A ${ve} ${ve} 0 0 0 ${M} ${U} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:W,height:W,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xe}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:p,zIndex:0,background:"transparent"}}}},99313:function(Kt,nt,E){"use strict";E.d(nt,{default:function(){return rn}});var S=E(99267),te=E(18785),xe=E(62772),ve=E(92310),$=E.n(ve),p=E(72308),he=E(49618),re=E(77321),o=E(52487),ue=E(62853),G=E(74416),v=E(59301),x=E(49658),A=E(18929),T=E(77900),Z=(0,v.createContext)(null),ie=v.forwardRef(function(_e,Ae){var ct=_e.prefixCls,We=_e.className,at=_e.style,bt=_e.id,Ct=_e.active,Xt=_e.tabKey,cn=_e.children;return v.createElement("div",{id:bt&&"".concat(bt,"-panel-").concat(Xt),role:"tabpanel",tabIndex:Ct?0:-1,"aria-labelledby":bt&&"".concat(bt,"-tab-").concat(Xt),"aria-hidden":!Ct,style:at,className:$()(ct,Ct&&"".concat(ct,"-active"),We),ref:Ae},cn)}),M=ie,U=["key","forceRender","style","className"];function W(_e){var Ae=_e.id,ct=_e.activeKey,We=_e.animated,at=_e.tabPosition,bt=_e.destroyInactiveTabPane,Ct=v.useContext(Z),Xt=Ct.prefixCls,cn=Ct.tabs,Wt=We.tabPane,xn="".concat(Xt,"-tabpane");return v.createElement("div",{className:$()("".concat(Xt,"-content-holder"))},v.createElement("div",{className:$()("".concat(Xt,"-content"),"".concat(Xt,"-content-").concat(at),(0,he.Z)({},"".concat(Xt,"-content-animated"),Wt))},cn.map(function(on){var Pn=on.key,Gt=on.forceRender,Vt=on.style,Sn=on.className,En=(0,G.Z)(on,U),gn=Pn===ct;return v.createElement(T.default,(0,p.Z)({key:Pn,visible:gn,forceRender:Gt,removeOnLeave:!!bt,leavedClassName:"".concat(xn,"-hidden")},We.tabPaneMotion),function(Yn,An){var fn=Yn.style,tt=Yn.className;return v.createElement(M,(0,p.Z)({},En,{prefixCls:xn,id:Ae,tabKey:Pn,animated:Wt,active:gn,style:(0,re.Z)((0,re.Z)({},Vt),fn),className:$()(Sn,tt),ref:An}))})})))}var le=E(80702),k=E(29301),Y=E(6089),se=E(8654),J={width:0,height:0,left:0,top:0};function ge(_e,Ae,ct){return(0,v.useMemo)(function(){for(var We,at=new Map,bt=Ae.get((We=_e[0])===null||We===void 0?void 0:We.key)||J,Ct=bt.left+bt.width,Xt=0;Xt<_e.length;Xt+=1){var cn=_e[Xt].key,Wt=Ae.get(cn);if(!Wt){var xn;Wt=Ae.get((xn=_e[Xt-1])===null||xn===void 0?void 0:xn.key)||J}var on=at.get(cn)||(0,re.Z)({},Wt);on.right=Ct-on.left-on.width,at.set(cn,on)}return at},[_e.map(function(We){return We.key}).join("_"),Ae,ct])}function Ce(_e,Ae){var ct=v.useRef(_e),We=v.useState({}),at=(0,o.Z)(We,2),bt=at[1];function Ct(Xt){var cn=typeof Xt=="function"?Xt(ct.current):Xt;cn!==ct.current&&Ae(cn,ct.current),ct.current=cn,bt({})}return[ct.current,Ct]}var Te=.1,Fe=.01,Q=20,O=Math.pow(.995,Q);function K(_e,Ae){var ct=(0,v.useState)(),We=(0,o.Z)(ct,2),at=We[0],bt=We[1],Ct=(0,v.useState)(0),Xt=(0,o.Z)(Ct,2),cn=Xt[0],Wt=Xt[1],xn=(0,v.useState)(0),on=(0,o.Z)(xn,2),Pn=on[0],Gt=on[1],Vt=(0,v.useState)(),Sn=(0,o.Z)(Vt,2),En=Sn[0],gn=Sn[1],Yn=(0,v.useRef)();function An(ot){var zt=ot.touches[0],At=zt.screenX,jt=zt.screenY;bt({x:At,y:jt}),window.clearInterval(Yn.current)}function fn(ot){if(at){ot.preventDefault();var zt=ot.touches[0],At=zt.screenX,jt=zt.screenY;bt({x:At,y:jt});var en=At-at.x,qt=jt-at.y;Ae(en,qt);var wn=Date.now();Wt(wn),Gt(wn-cn),gn({x:en,y:qt})}}function tt(){if(at&&(bt(null),gn(null),En)){var ot=En.x/Pn,zt=En.y/Pn,At=Math.abs(ot),jt=Math.abs(zt);if(Math.max(At,jt)<Te)return;var en=ot,qt=zt;Yn.current=window.setInterval(function(){if(Math.abs(en)<Fe&&Math.abs(qt)<Fe){window.clearInterval(Yn.current);return}en*=O,qt*=O,Ae(en*Q,qt*Q)},Q)}}var Qe=(0,v.useRef)();function gt(ot){var zt=ot.deltaX,At=ot.deltaY,jt=0,en=Math.abs(zt),qt=Math.abs(At);en===qt?jt=Qe.current==="x"?zt:At:en>qt?(jt=zt,Qe.current="x"):(jt=At,Qe.current="y"),Ae(-jt,-jt)&&ot.preventDefault()}var Lt=(0,v.useRef)(null);Lt.current={onTouchStart:An,onTouchMove:fn,onTouchEnd:tt,onWheel:gt},v.useEffect(function(){function ot(en){Lt.current.onTouchStart(en)}function zt(en){Lt.current.onTouchMove(en)}function At(en){Lt.current.onTouchEnd(en)}function jt(en){Lt.current.onWheel(en)}return document.addEventListener("touchmove",zt,{passive:!1}),document.addEventListener("touchend",At,{passive:!1}),_e.current.addEventListener("touchstart",ot,{passive:!1}),_e.current.addEventListener("wheel",jt),function(){document.removeEventListener("touchmove",zt),document.removeEventListener("touchend",At)}},[])}var I=E(34280);function X(_e){var Ae=(0,v.useState)(0),ct=(0,o.Z)(Ae,2),We=ct[0],at=ct[1],bt=(0,v.useRef)(0),Ct=(0,v.useRef)();return Ct.current=_e,(0,I.o)(function(){var Xt;(Xt=Ct.current)===null||Xt===void 0||Xt.call(Ct)},[We]),function(){bt.current===We&&(bt.current+=1,at(bt.current))}}function z(_e){var Ae=(0,v.useRef)([]),ct=(0,v.useState)({}),We=(0,o.Z)(ct,2),at=We[1],bt=(0,v.useRef)(typeof _e=="function"?_e():_e),Ct=X(function(){var cn=bt.current;Ae.current.forEach(function(Wt){cn=Wt(cn)}),Ae.current=[],bt.current=cn,at({})});function Xt(cn){Ae.current.push(cn),Ct()}return[bt.current,Xt]}var g={width:0,height:0,left:0,top:0,right:0};function b(_e,Ae,ct,We,at,bt,Ct){var Xt=Ct.tabs,cn=Ct.tabPosition,Wt=Ct.rtl,xn,on,Pn;return["top","bottom"].includes(cn)?(xn="width",on=Wt?"right":"left",Pn=Math.abs(ct)):(xn="height",on="top",Pn=-ct),(0,v.useMemo)(function(){if(!Xt.length)return[0,0];for(var Gt=Xt.length,Vt=Gt,Sn=0;Sn<Gt;Sn+=1){var En=_e.get(Xt[Sn].key)||g;if(En[on]+En[xn]>Pn+Ae){Vt=Sn-1;break}}for(var gn=0,Yn=Gt-1;Yn>=0;Yn-=1){var An=_e.get(Xt[Yn].key)||g;if(An[on]<Pn){gn=Yn+1;break}}return gn>=Vt?[0,0]:[gn,Vt]},[_e,Ae,We,at,bt,Pn,cn,Xt.map(function(Gt){return Gt.key}).join("_"),Wt])}function B(_e){var Ae;return _e instanceof Map?(Ae={},_e.forEach(function(ct,We){Ae[We]=ct})):Ae=_e,JSON.stringify(Ae)}var F="TABS_DQ";function Se(_e){return String(_e).replace(/"/g,F)}function we(_e,Ae,ct,We){return!(!ct||We||_e===!1||_e===void 0&&(Ae===!1||Ae===null))}function Ne(_e,Ae){var ct=_e.prefixCls,We=_e.editable,at=_e.locale,bt=_e.style;return!We||We.showAdd===!1?null:v.createElement("button",{ref:Ae,type:"button",className:"".concat(ct,"-nav-add"),style:bt,"aria-label":(at==null?void 0:at.addAriaLabel)||"Add tab",onClick:function(Xt){We.onEdit("add",{event:Xt})}},We.addIcon||"+")}var je=v.forwardRef(Ne),et=v.forwardRef(function(_e,Ae){var ct=_e.position,We=_e.prefixCls,at=_e.extra;if(!at)return null;var bt,Ct={};return(0,ue.Z)(at)==="object"&&!v.isValidElement(at)?Ct=at:Ct.right=at,ct==="right"&&(bt=Ct.right),ct==="left"&&(bt=Ct.left),bt?v.createElement("div",{className:"".concat(We,"-extra-content"),ref:Ae},bt):null}),qe=et,rt=E(31561),yt=E(15285),Dt=E(10228);function pt(_e,Ae){var ct=_e.prefixCls,We=_e.id,at=_e.tabs,bt=_e.locale,Ct=_e.mobile,Xt=_e.moreIcon,cn=Xt===void 0?"More":Xt,Wt=_e.moreTransitionName,xn=_e.style,on=_e.className,Pn=_e.editable,Gt=_e.tabBarGutter,Vt=_e.rtl,Sn=_e.removeAriaLabel,En=_e.onTabClick,gn=_e.getPopupContainer,Yn=_e.popupClassName,An=(0,v.useState)(!1),fn=(0,o.Z)(An,2),tt=fn[0],Qe=fn[1],gt=(0,v.useState)(null),Lt=(0,o.Z)(gt,2),ot=Lt[0],zt=Lt[1],At="".concat(We,"-more-popup"),jt="".concat(ct,"-dropdown"),en=ot!==null?"".concat(At,"-").concat(ot):null,qt=bt==null?void 0:bt.dropdownAriaLabel;function wn(Rn,On){Rn.preventDefault(),Rn.stopPropagation(),Pn.onEdit("remove",{key:On,event:Rn})}var Cn=v.createElement(yt.ZP,{onClick:function(On){var Nn=On.key,Un=On.domEvent;En(Nn,Un),Qe(!1)},prefixCls:"".concat(jt,"-menu"),id:At,tabIndex:-1,role:"listbox","aria-activedescendant":en,selectedKeys:[ot],"aria-label":qt!==void 0?qt:"expanded dropdown"},at.map(function(Rn){var On=Rn.closable,Nn=Rn.disabled,Un=Rn.closeIcon,Bn=Rn.key,Wn=Rn.label,ur=we(On,Un,Pn,Nn);return v.createElement(yt.sN,{key:Bn,id:"".concat(At,"-").concat(Bn),role:"option","aria-controls":We&&"".concat(We,"-panel-").concat(Bn),disabled:Nn},v.createElement("span",null,Wn),ur&&v.createElement("button",{type:"button","aria-label":Sn||"remove",tabIndex:0,className:"".concat(jt,"-menu-item-remove"),onClick:function(Qn){Qn.stopPropagation(),wn(Qn,Bn)}},Un||Pn.removeIcon||"\xD7"))}));function Kn(Rn){for(var On=at.filter(function(ur){return!ur.disabled}),Nn=On.findIndex(function(ur){return ur.key===ot})||0,Un=On.length,Bn=0;Bn<Un;Bn+=1){Nn=(Nn+Rn+Un)%Un;var Wn=On[Nn];if(!Wn.disabled){zt(Wn.key);return}}}function bn(Rn){var On=Rn.which;if(!tt){[Dt.Z.DOWN,Dt.Z.SPACE,Dt.Z.ENTER].includes(On)&&(Qe(!0),Rn.preventDefault());return}switch(On){case Dt.Z.UP:Kn(-1),Rn.preventDefault();break;case Dt.Z.DOWN:Kn(1),Rn.preventDefault();break;case Dt.Z.ESC:Qe(!1);break;case Dt.Z.SPACE:case Dt.Z.ENTER:ot!==null&&En(ot,Rn);break}}(0,v.useEffect)(function(){var Rn=document.getElementById(en);Rn&&Rn.scrollIntoView&&Rn.scrollIntoView(!1)},[ot]),(0,v.useEffect)(function(){tt||zt(null)},[tt]);var vn=(0,he.Z)({},Vt?"marginRight":"marginLeft",Gt);at.length||(vn.visibility="hidden",vn.order=1);var nr=$()((0,he.Z)({},"".concat(jt,"-rtl"),Vt)),ir=Ct?null:v.createElement(rt.Z,{prefixCls:jt,overlay:Cn,trigger:["hover"],visible:at.length?tt:!1,transitionName:Wt,onVisibleChange:Qe,overlayClassName:$()(nr,Yn),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:gn},v.createElement("button",{type:"button",className:"".concat(ct,"-nav-more"),style:vn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":At,id:"".concat(We,"-more"),"aria-expanded":tt,onKeyDown:bn},cn));return v.createElement("div",{className:$()("".concat(ct,"-nav-operations"),on),style:xn,ref:Ae},ir,v.createElement(je,{prefixCls:ct,locale:bt,editable:Pn}))}var vt=v.memo(v.forwardRef(pt),function(_e,Ae){return Ae.tabMoving});function Ot(_e){var Ae,ct=_e.prefixCls,We=_e.id,at=_e.active,bt=_e.tab,Ct=bt.key,Xt=bt.label,cn=bt.disabled,Wt=bt.closeIcon,xn=_e.closable,on=_e.renderWrapper,Pn=_e.removeAriaLabel,Gt=_e.editable,Vt=_e.onClick,Sn=_e.onFocus,En=_e.style,gn="".concat(ct,"-tab"),Yn=we(xn,Wt,Gt,cn);function An(Qe){cn||Vt(Qe)}function fn(Qe){Qe.preventDefault(),Qe.stopPropagation(),Gt.onEdit("remove",{key:Ct,event:Qe})}var tt=v.createElement("div",{key:Ct,"data-node-key":Se(Ct),className:$()(gn,(Ae={},(0,he.Z)(Ae,"".concat(gn,"-with-remove"),Yn),(0,he.Z)(Ae,"".concat(gn,"-active"),at),(0,he.Z)(Ae,"".concat(gn,"-disabled"),cn),Ae)),style:En,onClick:An},v.createElement("div",{role:"tab","aria-selected":at,id:We&&"".concat(We,"-tab-").concat(Ct),className:"".concat(gn,"-btn"),"aria-controls":We&&"".concat(We,"-panel-").concat(Ct),"aria-disabled":cn,tabIndex:cn?null:0,onClick:function(gt){gt.stopPropagation(),An(gt)},onKeyDown:function(gt){[Dt.Z.SPACE,Dt.Z.ENTER].includes(gt.which)&&(gt.preventDefault(),An(gt))},onFocus:Sn},Xt),Yn&&v.createElement("button",{type:"button","aria-label":Pn||"remove",tabIndex:0,className:"".concat(gn,"-remove"),onClick:function(gt){gt.stopPropagation(),fn(gt)}},Wt||Gt.removeIcon||"\xD7"));return on?on(tt):tt}var Bt=Ot,me=E(16089),ce=function(Ae){var ct=Ae.activeTabOffset,We=Ae.horizontal,at=Ae.rtl,bt=Ae.indicatorSize,Ct=(0,v.useState)(),Xt=(0,o.Z)(Ct,2),cn=Xt[0],Wt=Xt[1],xn=(0,v.useRef)(),on=function(Vt){return typeof bt=="function"?bt(Vt):typeof bt=="number"?bt:Vt};function Pn(){me.Z.cancel(xn.current)}return(0,v.useEffect)(function(){var Gt={};return ct&&(We?(at?(Gt.right=ct.right+ct.width/2,Gt.transform="translateX(50%)"):(Gt.left=ct.left+ct.width/2,Gt.transform="translateX(-50%)"),Gt.width=on(ct.width)):(Gt.top=ct.top+ct.height/2,Gt.transform="translateY(-50%)",Gt.height=on(ct.height))),Pn(),xn.current=(0,me.Z)(function(){Wt(Gt)}),Pn},[ct,We,at,bt]),{style:cn}},j=ce,pe=function(Ae){var ct=Ae.current||{},We=ct.offsetWidth,at=We===void 0?0:We,bt=ct.offsetHeight,Ct=bt===void 0?0:bt;return[at,Ct]},Re=function(Ae,ct){return Ae[ct?0:1]};function P(_e,Ae){var ct,We=v.useContext(Z),at=We.prefixCls,bt=We.tabs,Ct=_e.className,Xt=_e.style,cn=_e.id,Wt=_e.animated,xn=_e.activeKey,on=_e.rtl,Pn=_e.extra,Gt=_e.editable,Vt=_e.locale,Sn=_e.tabPosition,En=_e.tabBarGutter,gn=_e.children,Yn=_e.onTabClick,An=_e.onTabScroll,fn=_e.indicatorSize,tt=(0,v.useRef)(),Qe=(0,v.useRef)(),gt=(0,v.useRef)(),Lt=(0,v.useRef)(),ot=(0,v.useRef)(),zt=(0,v.useRef)(),At=(0,v.useRef)(),jt=Sn==="top"||Sn==="bottom",en=Ce(0,function(Jn,qn){jt&&An&&An({direction:Jn>qn?"left":"right"})}),qt=(0,o.Z)(en,2),wn=qt[0],Cn=qt[1],Kn=Ce(0,function(Jn,qn){!jt&&An&&An({direction:Jn>qn?"top":"bottom"})}),bn=(0,o.Z)(Kn,2),vn=bn[0],nr=bn[1],ir=(0,v.useState)([0,0]),Rn=(0,o.Z)(ir,2),On=Rn[0],Nn=Rn[1],Un=(0,v.useState)([0,0]),Bn=(0,o.Z)(Un,2),Wn=Bn[0],ur=Bn[1],sr=(0,v.useState)([0,0]),Qn=(0,o.Z)(sr,2),lt=Qn[0],Tn=Qn[1],Hn=(0,v.useState)([0,0]),jn=(0,o.Z)(Hn,2),$r=jn[0],Vn=jn[1],gr=z(new Map),kn=(0,o.Z)(gr,2),Ir=kn[0],Br=kn[1],pr=ge(bt,Ir,Wn[0]),ui=Re(On,jt),si=Re(Wn,jt),Yr=Re(lt,jt),Xr=Re($r,jt),_n=ui<si+Yr,cr=_n?ui-Xr:ui-Yr,dr="".concat(at,"-nav-operations-hidden"),vr=0,Qr=0;jt&&on?(vr=0,Qr=Math.max(0,si-cr)):(vr=Math.min(0,cr-si),Qr=0);function kr(Jn){return Jn<vr?vr:Jn>Qr?Qr:Jn}var xr=(0,v.useRef)(),Hr=(0,v.useState)(),hr=(0,o.Z)(Hr,2),ai=hr[0],In=hr[1];function li(){In(Date.now())}function oi(){window.clearTimeout(xr.current)}K(Lt,function(Jn,qn){function Lr(Fr,ri){Fr(function(mn){var Ln=kr(mn+ri);return Ln})}return _n?(jt?Lr(Cn,Jn):Lr(nr,qn),oi(),li(),!0):!1}),(0,v.useEffect)(function(){return oi(),ai&&(xr.current=window.setTimeout(function(){In(0)},100)),oi},[ai]);var ti=b(pr,cr,jt?wn:vn,si,Yr,Xr,(0,re.Z)((0,re.Z)({},_e),{},{tabs:bt})),rr=(0,o.Z)(ti,2),di=rr[0],_i=rr[1],hi=(0,Y.Z)(function(){var Jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xn,qn=pr.get(Jn)||{width:0,height:0,left:0,right:0,top:0};if(jt){var Lr=wn;on?qn.right<wn?Lr=qn.right:qn.right+qn.width>wn+cr&&(Lr=qn.right+qn.width-cr):qn.left<-wn?Lr=-qn.left:qn.left+qn.width>-wn+cr&&(Lr=-(qn.left+qn.width-cr)),nr(0),Cn(kr(Lr))}else{var Fr=vn;qn.top<-vn?Fr=-qn.top:qn.top+qn.height>-vn+cr&&(Fr=-(qn.top+qn.height-cr)),Cn(0),nr(kr(Fr))}}),zn={};Sn==="top"||Sn==="bottom"?zn[on?"marginRight":"marginLeft"]=En:zn.marginTop=En;var fi=bt.map(function(Jn,qn){var Lr=Jn.key;return v.createElement(Bt,{id:cn,prefixCls:at,key:Lr,tab:Jn,style:qn===0?void 0:zn,closable:Jn.closable,editable:Gt,active:Lr===xn,renderWrapper:gn,removeAriaLabel:Vt==null?void 0:Vt.removeAriaLabel,onClick:function(ri){Yn(Lr,ri)},onFocus:function(){hi(Lr),li(),Lt.current&&(on||(Lt.current.scrollLeft=0),Lt.current.scrollTop=0)}})}),yi=function(){return Br(function(){var qn=new Map;return bt.forEach(function(Lr){var Fr,ri=Lr.key,mn=(Fr=ot.current)===null||Fr===void 0?void 0:Fr.querySelector('[data-node-key="'.concat(Se(ri),'"]'));mn&&qn.set(ri,{width:mn.offsetWidth,height:mn.offsetHeight,left:mn.offsetLeft,top:mn.offsetTop})}),qn})};(0,v.useEffect)(function(){yi()},[bt.map(function(Jn){return Jn.key}).join("_")]);var tn=X(function(){var Jn=pe(tt),qn=pe(Qe),Lr=pe(gt);Nn([Jn[0]-qn[0]-Lr[0],Jn[1]-qn[1]-Lr[1]]);var Fr=pe(At);Tn(Fr);var ri=pe(zt);Vn(ri);var mn=pe(ot);ur([mn[0]-Fr[0],mn[1]-Fr[1]]),yi()}),Vr=bt.slice(0,di),pi=bt.slice(_i+1),ci=[].concat((0,le.Z)(Vr),(0,le.Z)(pi)),wr=pr.get(xn),Ar=j({activeTabOffset:wr,horizontal:jt,rtl:on,indicatorSize:fn}),ar=Ar.style;(0,v.useEffect)(function(){hi()},[xn,vr,Qr,B(wr),B(pr),jt]),(0,v.useEffect)(function(){tn()},[on]);var Tr=!!ci.length,Zr="".concat(at,"-nav-wrap"),ni,Gr,Nr,or;return jt?on?(Gr=wn>0,ni=wn!==Qr):(ni=wn<0,Gr=wn!==vr):(Nr=vn<0,or=vn!==vr),v.createElement(k.Z,{onResize:tn},v.createElement("div",{ref:(0,se.x1)(Ae,tt),role:"tablist",className:$()("".concat(at,"-nav"),Ct),style:Xt,onKeyDown:function(){li()}},v.createElement(qe,{ref:Qe,position:"left",extra:Pn,prefixCls:at}),v.createElement(k.Z,{onResize:tn},v.createElement("div",{className:$()(Zr,(ct={},(0,he.Z)(ct,"".concat(Zr,"-ping-left"),ni),(0,he.Z)(ct,"".concat(Zr,"-ping-right"),Gr),(0,he.Z)(ct,"".concat(Zr,"-ping-top"),Nr),(0,he.Z)(ct,"".concat(Zr,"-ping-bottom"),or),ct)),ref:Lt},v.createElement(k.Z,{onResize:tn},v.createElement("div",{ref:ot,className:"".concat(at,"-nav-list"),style:{transform:"translate(".concat(wn,"px, ").concat(vn,"px)"),transition:ai?"none":void 0}},fi,v.createElement(je,{ref:At,prefixCls:at,locale:Vt,editable:Gt,style:(0,re.Z)((0,re.Z)({},fi.length===0?void 0:zn),{},{visibility:Tr?"hidden":null})}),v.createElement("div",{className:$()("".concat(at,"-ink-bar"),(0,he.Z)({},"".concat(at,"-ink-bar-animated"),Wt.inkBar)),style:ar}))))),v.createElement(vt,(0,p.Z)({},_e,{removeAriaLabel:Vt==null?void 0:Vt.removeAriaLabel,ref:zt,prefixCls:at,tabs:ci,className:!Tr&&dr,tabMoving:!!ai})),v.createElement(qe,{ref:gt,position:"right",extra:Pn,prefixCls:at})))}var ne=v.forwardRef(P),fe=["renderTabBar"],ye=["label","key"];function ke(_e){var Ae=_e.renderTabBar,ct=(0,G.Z)(_e,fe),We=v.useContext(Z),at=We.tabs;if(Ae){var bt=(0,re.Z)((0,re.Z)({},ct),{},{panes:at.map(function(Ct){var Xt=Ct.label,cn=Ct.key,Wt=(0,G.Z)(Ct,ye);return v.createElement(M,(0,p.Z)({tab:Xt,key:cn,tabKey:cn},Wt))})});return Ae(bt,ne)}return v.createElement(ne,ct)}var Oe=E(48736);function Ze(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ae;return _e===!1?Ae={inkBar:!1,tabPane:!1}:_e===!0?Ae={inkBar:!0,tabPane:!1}:Ae=(0,re.Z)({inkBar:!0},(0,ue.Z)(_e)==="object"?_e:{}),Ae.tabPaneMotion&&Ae.tabPane===void 0&&(Ae.tabPane=!0),!Ae.tabPaneMotion&&Ae.tabPane&&(Ae.tabPane=!1),Ae}var it=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Ye=0;function Ke(_e,Ae){var ct,We=_e.id,at=_e.prefixCls,bt=at===void 0?"rc-tabs":at,Ct=_e.className,Xt=_e.items,cn=_e.direction,Wt=_e.activeKey,xn=_e.defaultActiveKey,on=_e.editable,Pn=_e.animated,Gt=_e.tabPosition,Vt=Gt===void 0?"top":Gt,Sn=_e.tabBarGutter,En=_e.tabBarStyle,gn=_e.tabBarExtraContent,Yn=_e.locale,An=_e.moreIcon,fn=_e.moreTransitionName,tt=_e.destroyInactiveTabPane,Qe=_e.renderTabBar,gt=_e.onChange,Lt=_e.onTabClick,ot=_e.onTabScroll,zt=_e.getPopupContainer,At=_e.popupClassName,jt=_e.indicatorSize,en=(0,G.Z)(_e,it),qt=v.useMemo(function(){return(Xt||[]).filter(function(Vn){return Vn&&(0,ue.Z)(Vn)==="object"&&"key"in Vn})},[Xt]),wn=cn==="rtl",Cn=Ze(Pn),Kn=(0,v.useState)(!1),bn=(0,o.Z)(Kn,2),vn=bn[0],nr=bn[1];(0,v.useEffect)(function(){nr((0,x.Z)())},[]);var ir=(0,A.Z)(function(){var Vn;return(Vn=qt[0])===null||Vn===void 0?void 0:Vn.key},{value:Wt,defaultValue:xn}),Rn=(0,o.Z)(ir,2),On=Rn[0],Nn=Rn[1],Un=(0,v.useState)(function(){return qt.findIndex(function(Vn){return Vn.key===On})}),Bn=(0,o.Z)(Un,2),Wn=Bn[0],ur=Bn[1];(0,v.useEffect)(function(){var Vn=qt.findIndex(function(kn){return kn.key===On});if(Vn===-1){var gr;Vn=Math.max(0,Math.min(Wn,qt.length-1)),Nn((gr=qt[Vn])===null||gr===void 0?void 0:gr.key)}ur(Vn)},[qt.map(function(Vn){return Vn.key}).join("_"),On,Wn]);var sr=(0,A.Z)(null,{value:We}),Qn=(0,o.Z)(sr,2),lt=Qn[0],Tn=Qn[1];(0,v.useEffect)(function(){We||(Tn("rc-tabs-".concat(Ye)),Ye+=1)},[]);function Hn(Vn,gr){Lt==null||Lt(Vn,gr);var kn=Vn!==On;Nn(Vn),kn&&(gt==null||gt(Vn))}var jn={id:lt,activeKey:On,animated:Cn,tabPosition:Vt,rtl:wn,mobile:vn},$r=(0,re.Z)((0,re.Z)({},jn),{},{editable:on,locale:Yn,moreIcon:An,moreTransitionName:fn,tabBarGutter:Sn,onTabClick:Hn,onTabScroll:ot,extra:gn,style:En,panes:null,getPopupContainer:zt,popupClassName:At,indicatorSize:jt});return v.createElement(Z.Provider,{value:{tabs:qt,prefixCls:bt}},v.createElement("div",(0,p.Z)({ref:Ae,id:We,className:$()(bt,"".concat(bt,"-").concat(Vt),(ct={},(0,he.Z)(ct,"".concat(bt,"-mobile"),vn),(0,he.Z)(ct,"".concat(bt,"-editable"),on),(0,he.Z)(ct,"".concat(bt,"-rtl"),wn),ct),Ct)},en),v.createElement(ke,(0,p.Z)({},$r,{renderTabBar:Qe})),v.createElement(W,(0,p.Z)({destroyInactiveTabPane:tt},jn,{animated:Cn}))))}var Tt=v.forwardRef(Ke),St=Tt,wt=St,$t=E(36355),Yt=E(19716),Jt=()=>null,nn=E(62892);const w={motionAppear:!1,motionEnter:!0,motionLeave:!0};function R(_e){let Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ct;return Ae===!1?ct={inkBar:!1,tabPane:!1}:Ae===!0?ct={inkBar:!0,tabPane:!0}:ct=Object.assign({inkBar:!0},typeof Ae=="object"?Ae:{}),ct.tabPane&&(ct.tabPaneMotion=Object.assign(Object.assign({},w),{motionName:(0,nn.m)(_e,"switch")})),ct}var ft=E(11592),ee=function(_e,Ae){var ct={};for(var We in _e)Object.prototype.hasOwnProperty.call(_e,We)&&Ae.indexOf(We)<0&&(ct[We]=_e[We]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,We=Object.getOwnPropertySymbols(_e);at<We.length;at++)Ae.indexOf(We[at])<0&&Object.prototype.propertyIsEnumerable.call(_e,We[at])&&(ct[We[at]]=_e[We[at]]);return ct};function Ie(_e){return _e.filter(Ae=>Ae)}function pn(_e,Ae){if(_e)return _e;const ct=(0,ft.Z)(Ae).map(We=>{if(v.isValidElement(We)){const{key:at,props:bt}=We,Ct=bt||{},{tab:Xt}=Ct,cn=ee(Ct,["tab"]);return Object.assign(Object.assign({key:String(at)},cn),{label:Xt})}return null});return Ie(ct)}var ze=E(17313),Ge=E(83116),Je=E(37613),ae=E(13826),De=_e=>{const{componentCls:Ae,motionDurationSlow:ct}=_e;return[{[Ae]:{[`${Ae}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ct}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ct}`}}}}},[(0,ae.oN)(_e,"slide-up"),(0,ae.oN)(_e,"slide-down")]]};const He=_e=>{const{componentCls:Ae,tabsCardPadding:ct,cardBg:We,cardGutter:at,colorBorderSecondary:bt,itemSelectedColor:Ct}=_e;return{[`${Ae}-card`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab`]:{margin:0,padding:ct,background:We,border:`${_e.lineWidth}px ${_e.lineType} ${bt}`,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`},[`${Ae}-tab-active`]:{color:Ct,background:_e.colorBgContainer},[`${Ae}-ink-bar`]:{visibility:"hidden"}},[`&${Ae}-top, &${Ae}-bottom`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab + ${Ae}-tab`]:{marginLeft:{_skip_check_:!0,value:`${at}px`}}}},[`&${Ae}-top`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab`]:{borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`},[`${Ae}-tab-active`]:{borderBottomColor:_e.colorBgContainer}}},[`&${Ae}-bottom`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab`]:{borderRadius:`0 0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px`},[`${Ae}-tab-active`]:{borderTopColor:_e.colorBgContainer}}},[`&${Ae}-left, &${Ae}-right`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab + ${Ae}-tab`]:{marginTop:`${at}px`}}},[`&${Ae}-left`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadiusLG}px 0 0 ${_e.borderRadiusLG}px`}},[`${Ae}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:_e.colorBgContainer}}}},[`&${Ae}-right`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0`}},[`${Ae}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:_e.colorBgContainer}}}}}}},q=_e=>{const{componentCls:Ae,itemHoverColor:ct,dropdownEdgeChildVerticalPadding:We}=_e;return{[`${Ae}-dropdown`]:Object.assign(Object.assign({},(0,ze.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ae}-dropdown-menu`]:{maxHeight:_e.tabsDropdownHeight,margin:0,padding:`${We}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:_e.colorBgContainer,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ze.vS),{display:"flex",alignItems:"center",minWidth:_e.tabsDropdownWidth,margin:0,padding:`${_e.paddingXXS}px ${_e.paddingSM}px`,color:_e.colorText,fontWeight:"normal",fontSize:_e.fontSize,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:_e.marginSM},color:_e.colorTextDescription,fontSize:_e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ct}},"&:hover":{background:_e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:_e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ut=_e=>{const{componentCls:Ae,margin:ct,colorBorderSecondary:We,horizontalMargin:at,verticalItemPadding:bt,verticalItemMargin:Ct}=_e;return{[`${Ae}-top, ${Ae}-bottom`]:{flexDirection:"column",[`> ${Ae}-nav, > div > ${Ae}-nav`]:{margin:at,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e.lineWidth}px ${_e.lineType} ${We}`,content:"''"},[`${Ae}-ink-bar`]:{height:_e.lineWidthBold,"&-animated":{transition:`width ${_e.motionDurationSlow}, left ${_e.motionDurationSlow},
|
|
right ${_e.motionDurationSlow}`}},[`${Ae}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:_e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowTabsOverflowRight},[`&${Ae}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ae}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ae}-top`]:{[`> ${Ae}-nav,
|
|
> div > ${Ae}-nav`]:{"&::before":{bottom:0},[`${Ae}-ink-bar`]:{bottom:0}}},[`${Ae}-bottom`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{order:1,marginTop:`${ct}px`,marginBottom:0,"&::before":{top:0},[`${Ae}-ink-bar`]:{top:0}},[`> ${Ae}-content-holder, > div > ${Ae}-content-holder`]:{order:0}},[`${Ae}-left, ${Ae}-right`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{flexDirection:"column",minWidth:_e.controlHeight*1.25,[`${Ae}-tab`]:{padding:bt,textAlign:"center"},[`${Ae}-tab + ${Ae}-tab`]:{margin:Ct},[`${Ae}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:_e.controlHeight},"&::before":{top:0,boxShadow:_e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:_e.boxShadowTabsOverflowBottom},[`&${Ae}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ae}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ae}-ink-bar`]:{width:_e.lineWidthBold,"&-animated":{transition:`height ${_e.motionDurationSlow}, top ${_e.motionDurationSlow}`}},[`${Ae}-nav-list, ${Ae}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ae}-left`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ae}-content-holder, > div > ${Ae}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${_e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${Ae}-content > ${Ae}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:_e.paddingLG}}}},[`${Ae}-right`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{order:1,[`${Ae}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ae}-content-holder, > div > ${Ae}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-_e.lineWidth},borderRight:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${Ae}-content > ${Ae}-tabpane`]:{paddingRight:{_skip_check_:!0,value:_e.paddingLG}}}}}},Pe=_e=>{const{componentCls:Ae,cardPaddingSM:ct,cardPaddingLG:We,horizontalItemPaddingSM:at,horizontalItemPaddingLG:bt}=_e;return{[Ae]:{"&-small":{[`> ${Ae}-nav`]:{[`${Ae}-tab`]:{padding:at,fontSize:_e.titleFontSizeSM}}},"&-large":{[`> ${Ae}-nav`]:{[`${Ae}-tab`]:{padding:bt,fontSize:_e.titleFontSizeLG}}}},[`${Ae}-card`]:{[`&${Ae}-small`]:{[`> ${Ae}-nav`]:{[`${Ae}-tab`]:{padding:ct}},[`&${Ae}-bottom`]:{[`> ${Ae}-nav ${Ae}-tab`]:{borderRadius:`0 0 ${_e.borderRadius}px ${_e.borderRadius}px`}},[`&${Ae}-top`]:{[`> ${Ae}-nav ${Ae}-tab`]:{borderRadius:`${_e.borderRadius}px ${_e.borderRadius}px 0 0`}},[`&${Ae}-right`]:{[`> ${Ae}-nav ${Ae}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadius}px ${_e.borderRadius}px 0`}}},[`&${Ae}-left`]:{[`> ${Ae}-nav ${Ae}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadius}px 0 0 ${_e.borderRadius}px`}}}},[`&${Ae}-large`]:{[`> ${Ae}-nav`]:{[`${Ae}-tab`]:{padding:We}}}}}},Qt=_e=>{const{componentCls:Ae,itemActiveColor:ct,itemHoverColor:We,iconCls:at,tabsHorizontalItemMargin:bt,horizontalItemPadding:Ct,itemSelectedColor:Xt,itemColor:cn}=_e,Wt=`${Ae}-tab`;return{[Wt]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ct,fontSize:_e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:cn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ct}},(0,ze.Qy)(_e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-_e.marginXXS},marginLeft:{_skip_check_:!0,value:_e.marginXS},color:_e.colorTextDescription,fontSize:_e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"&:hover":{color:_e.colorTextHeading}},"&:hover":{color:We},[`&${Wt}-active ${Wt}-btn`]:{color:Xt,textShadow:_e.tabsActiveTextShadow},[`&${Wt}-disabled`]:{color:_e.colorTextDisabled,cursor:"not-allowed"},[`&${Wt}-disabled ${Wt}-btn, &${Wt}-disabled ${Ae}-remove`]:{"&:focus, &:active":{color:_e.colorTextDisabled}},[`& ${Wt}-remove ${at}`]:{margin:0},[at]:{marginRight:{_skip_check_:!0,value:_e.marginSM}}},[`${Wt} + ${Wt}`]:{margin:{_skip_check_:!0,value:bt}}}},an=_e=>{const{componentCls:Ae,tabsHorizontalItemMarginRTL:ct,iconCls:We,cardGutter:at}=_e;return{[`${Ae}-rtl`]:{direction:"rtl",[`${Ae}-nav`]:{[`${Ae}-tab`]:{margin:{_skip_check_:!0,value:ct},[`${Ae}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[We]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${_e.marginSM}px`}},[`${Ae}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${_e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${_e.marginXXS}px`},[We]:{margin:0}}}},[`&${Ae}-left`]:{[`> ${Ae}-nav`]:{order:1},[`> ${Ae}-content-holder`]:{order:0}},[`&${Ae}-right`]:{[`> ${Ae}-nav`]:{order:0},[`> ${Ae}-content-holder`]:{order:1}},[`&${Ae}-card${Ae}-top, &${Ae}-card${Ae}-bottom`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-tab + ${Ae}-tab`]:{marginRight:{_skip_check_:!0,value:at},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ae}-dropdown-rtl`]:{direction:"rtl"},[`${Ae}-menu-item`]:{[`${Ae}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},kt=_e=>{const{componentCls:Ae,tabsCardPadding:ct,cardHeight:We,cardGutter:at,itemHoverColor:bt,itemActiveColor:Ct,colorBorderSecondary:Xt}=_e;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(_e)),{display:"flex",[`> ${Ae}-nav, > div > ${Ae}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ae}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${_e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ae}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${_e.motionDurationSlow}`},[`${Ae}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ae}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ae}-nav-more`]:{position:"relative",padding:ct,background:"transparent",border:0,color:_e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:_e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ae}-nav-add`]:Object.assign({minWidth:We,marginLeft:{_skip_check_:!0,value:at},padding:`0 ${_e.paddingXS}px`,background:"transparent",border:`${_e.lineWidth}px ${_e.lineType} ${Xt}`,borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:_e.colorText,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&:hover":{color:bt},"&:active, &:focus:not(:focus-visible)":{color:Ct}},(0,ze.Qy)(_e))},[`${Ae}-extra-content`]:{flex:"none"},[`${Ae}-ink-bar`]:{position:"absolute",background:_e.inkBarColor,pointerEvents:"none"}}),Qt(_e)),{[`${Ae}-content`]:{position:"relative",width:"100%"},[`${Ae}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ae}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ae}-centered`]:{[`> ${Ae}-nav, > div > ${Ae}-nav`]:{[`${Ae}-nav-wrap`]:{[`&:not([class*='${Ae}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var It=(0,Ge.Z)("Tabs",_e=>{const Ae=(0,Je.TS)(_e,{tabsCardPadding:_e.cardPadding||`${(_e.cardHeight-Math.round(_e.fontSize*_e.lineHeight))/2-_e.lineWidth}px ${_e.padding}px`,dropdownEdgeChildVerticalPadding:_e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e.horizontalItemGutter}px`});return[Pe(Ae),an(Ae),Ut(Ae),q(Ae),He(Ae),kt(Ae),De(Ae)]},_e=>{const Ae=_e.controlHeightLG;return{zIndexPopup:_e.zIndexPopupBase+50,cardBg:_e.colorFillAlter,cardHeight:Ae,cardPadding:"",cardPaddingSM:`${_e.paddingXXS*1.5}px ${_e.padding}px`,cardPaddingLG:`${_e.paddingXS}px ${_e.padding}px ${_e.paddingXXS*1.5}px`,titleFontSize:_e.fontSize,titleFontSizeLG:_e.fontSizeLG,titleFontSizeSM:_e.fontSize,inkBarColor:_e.colorPrimary,horizontalMargin:`0 0 ${_e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${_e.paddingSM}px 0`,horizontalItemPaddingSM:`${_e.paddingXS}px 0`,horizontalItemPaddingLG:`${_e.padding}px 0`,verticalItemPadding:`${_e.paddingXS}px ${_e.paddingLG}px`,verticalItemMargin:`${_e.margin}px 0 0 0`,itemColor:_e.colorText,itemSelectedColor:_e.colorPrimary,itemHoverColor:_e.colorPrimaryHover,itemActiveColor:_e.colorPrimaryActive,cardGutter:_e.marginXXS/2}}),Et=function(_e,Ae){var ct={};for(var We in _e)Object.prototype.hasOwnProperty.call(_e,We)&&Ae.indexOf(We)<0&&(ct[We]=_e[We]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,We=Object.getOwnPropertySymbols(_e);at<We.length;at++)Ae.indexOf(We[at])<0&&Object.prototype.propertyIsEnumerable.call(_e,We[at])&&(ct[We[at]]=_e[We[at]]);return ct};const xt=_e=>{const{type:Ae,className:ct,rootClassName:We,size:at,onEdit:bt,hideAdd:Ct,centered:Xt,addIcon:cn,popupClassName:Wt,children:xn,items:on,animated:Pn,style:Gt,indicatorSize:Vt}=_e,Sn=Et(_e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:En,moreIcon:gn=v.createElement(te.Z,null)}=Sn,{direction:Yn,tabs:An,getPrefixCls:fn,getPopupContainer:tt}=v.useContext($t.E_),Qe=fn("tabs",En),[gt,Lt]=It(Qe);let ot;Ae==="editable-card"&&(ot={onEdit:(wn,Cn)=>{let{key:Kn,event:bn}=Cn;bt==null||bt(wn==="add"?bn:Kn,wn)},removeIcon:v.createElement(S.Z,null),addIcon:cn||v.createElement(xe.Z,null),showAdd:Ct!==!0});const zt=fn(),At=pn(on,xn),jt=R(Qe,Pn),en=(0,Yt.Z)(at),qt=Object.assign(Object.assign({},An==null?void 0:An.style),Gt);return gt(v.createElement(wt,Object.assign({direction:Yn,getPopupContainer:tt,moreTransitionName:`${zt}-slide-up`},Sn,{items:At,className:$()({[`${Qe}-${en}`]:en,[`${Qe}-card`]:["card","editable-card"].includes(Ae),[`${Qe}-editable-card`]:Ae==="editable-card",[`${Qe}-centered`]:Xt},An==null?void 0:An.className,ct,We,Lt),popupClassName:$()(Wt,Lt),style:qt,editable:ot,moreIcon:gn,prefixCls:Qe,animated:jt,indicatorSize:Vt!=null?Vt:An==null?void 0:An.indicatorSize})))};xt.TabPane=Jt;var rn=xt},33166:function(Kt,nt,E){"use strict";E.d(nt,{i:function(){return S}});const S=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return te}});var S=E(33166);function te(xe,ve){return S.i.reduce(($,p)=>{const he=xe[`${p}1`],re=xe[`${p}3`],o=xe[`${p}6`],ue=xe[`${p}7`];return Object.assign(Object.assign({},$),ve(p,{lightColor:he,lightBorderColor:re,darkColor:o,textColor:ue}))},{})}},6848:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return Te}});var S=E(59301),te=E(92310),xe=E.n(te),ve=E(55477),$=E(18929),p=E(62892),he=E(79676),re=E(92343),o=E(36355),ue=E(33234),G=E(88088),v=E(17313),x=E(29878),A=E(19447),T=E(45157),Z=E(37613),ie=E(83116);const M=Fe=>{const{componentCls:Q,tooltipMaxWidth:O,tooltipColor:K,tooltipBg:I,tooltipBorderRadius:X,zIndexPopup:z,controlHeight:g,boxShadowSecondary:b,paddingSM:B,paddingXS:F,tooltipRadiusOuter:Se}=Fe;return[{[Q]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(Fe)),{position:"absolute",zIndex:z,display:"block",width:"max-content",maxWidth:O,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":I,[`${Q}-inner`]:{minWidth:g,minHeight:g,padding:`${B/2}px ${F}px`,color:K,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:I,borderRadius:X,boxShadow:b,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Q}-inner`]:{borderRadius:Math.min(X,A.qN)}},[`${Q}-content`]:{position:"relative"}}),(0,T.Z)(Fe,(we,Ne)=>{let{darkColor:je}=Ne;return{[`&${Q}-${we}`]:{[`${Q}-inner`]:{backgroundColor:je},[`${Q}-arrow`]:{"--antd-arrow-background-color":je}}}})),{"&-rtl":{direction:"rtl"}})},(0,A.ZP)((0,Z.TS)(Fe,{borderRadiusOuter:Se}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:X,limitVerticalRadius:!0}),{[`${Q}-pure`]:{position:"relative",maxWidth:"none",margin:Fe.sizePopupArrow}}]};var U=(Fe,Q)=>(0,ie.Z)("Tooltip",K=>{if(Q===!1)return[];const{borderRadius:I,colorTextLightSolid:X,colorBgDefault:z,borderRadiusOuter:g}=K,b=(0,Z.TS)(K,{tooltipMaxWidth:250,tooltipColor:X,tooltipBorderRadius:I,tooltipBg:z,tooltipRadiusOuter:g>4?4:g});return[M(b),(0,x._y)(K,"zoom-big-fast")]},K=>{let{zIndexPopupBase:I,colorBgSpotlight:X}=K;return{zIndexPopup:I+70,colorBgDefault:X}},{resetStyle:!1})(Fe),W=E(36785);function le(Fe,Q){const O=(0,W.o2)(Q),K=xe()({[`${Fe}-${Q}`]:Q&&O}),I={},X={};return Q&&!O&&(I.background=Q,X["--antd-arrow-background-color"]=Q),{className:K,overlayStyle:I,arrowStyle:X}}var Y=Fe=>{const{prefixCls:Q,className:O,placement:K="top",title:I,color:X,overlayInnerStyle:z}=Fe,{getPrefixCls:g}=S.useContext(o.E_),b=g("tooltip",Q),[B,F]=U(b,!0),Se=le(b,X),we=Se.arrowStyle,Ne=Object.assign(Object.assign({},z),Se.overlayStyle),je=xe()(F,b,`${b}-pure`,`${b}-placement-${K}`,O,Se.className);return B(S.createElement("div",{className:je,style:we},S.createElement("div",{className:`${b}-arrow`}),S.createElement(ve.G,Object.assign({},Fe,{className:F,prefixCls:b,overlayInnerStyle:Ne}),I)))},se=function(Fe,Q){var O={};for(var K in Fe)Object.prototype.hasOwnProperty.call(Fe,K)&&Q.indexOf(K)<0&&(O[K]=Fe[K]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,K=Object.getOwnPropertySymbols(Fe);I<K.length;I++)Q.indexOf(K[I])<0&&Object.prototype.propertyIsEnumerable.call(Fe,K[I])&&(O[K[I]]=Fe[K[I]]);return O};const J=(Fe,Q)=>{const O={},K=Object.assign({},Fe);return Q.forEach(I=>{Fe&&I in Fe&&(O[I]=Fe[I],delete K[I])}),{picked:O,omitted:K}};function ge(Fe,Q){const O=Fe.type;if((O.__ANT_BUTTON===!0||Fe.type==="button")&&Fe.props.disabled||O.__ANT_SWITCH===!0&&(Fe.props.disabled||Fe.props.loading)||O.__ANT_RADIO===!0&&Fe.props.disabled){const{picked:K,omitted:I}=J(Fe.props.style,["position","left","right","top","bottom","float","display","zIndex"]),X=Object.assign(Object.assign({display:"inline-block"},K),{cursor:"not-allowed",width:Fe.props.block?"100%":void 0}),z=Object.assign(Object.assign({},I),{pointerEvents:"none"}),g=(0,re.Tm)(Fe,{style:z,className:null});return S.createElement("span",{style:X,className:xe()(Fe.props.className,`${Q}-disabled-compatible-wrapper`)},g)}return Fe}const Ce=S.forwardRef((Fe,Q)=>{var O,K;const{prefixCls:I,openClassName:X,getTooltipContainer:z,overlayClassName:g,color:b,overlayInnerStyle:B,children:F,afterOpenChange:Se,afterVisibleChange:we,destroyTooltipOnHide:Ne,arrow:je=!0,title:et,overlay:qe,builtinPlacements:rt,arrowPointAtCenter:yt=!1,autoAdjustOverflow:Dt=!0}=Fe,pt=!!je,[,vt]=(0,G.Z)(),{getPopupContainer:Ot,getPrefixCls:Bt,direction:me}=S.useContext(o.E_),ce=S.useRef(null),j=()=>{var Ge;(Ge=ce.current)===null||Ge===void 0||Ge.forceAlign()};S.useImperativeHandle(Q,()=>({forceAlign:j,forcePopupAlign:()=>{j()}}));const[pe,Re]=(0,$.Z)(!1,{value:(O=Fe.open)!==null&&O!==void 0?O:Fe.visible,defaultValue:(K=Fe.defaultOpen)!==null&&K!==void 0?K:Fe.defaultVisible}),P=!et&&!qe&&et!==0,ne=Ge=>{var Je,ae;Re(P?!1:Ge),P||((Je=Fe.onOpenChange)===null||Je===void 0||Je.call(Fe,Ge),(ae=Fe.onVisibleChange)===null||ae===void 0||ae.call(Fe,Ge))},fe=S.useMemo(()=>{var Ge,Je;let ae=yt;return typeof je=="object"&&(ae=(Je=(Ge=je.pointAtCenter)!==null&&Ge!==void 0?Ge:je.arrowPointAtCenter)!==null&&Je!==void 0?Je:yt),rt||(0,he.Z)({arrowPointAtCenter:ae,autoAdjustOverflow:Dt,arrowWidth:pt?vt.sizePopupArrow:0,borderRadius:vt.borderRadius,offset:vt.marginXXS,visibleFirst:!0})},[yt,je,rt,vt]),ye=S.useMemo(()=>et===0?et:qe||et||"",[qe,et]),ke=S.createElement(ue.BR,null,typeof ye=="function"?ye():ye),{getPopupContainer:Oe,placement:Ze="top",mouseEnterDelay:it=.1,mouseLeaveDelay:Ye=.1,overlayStyle:Ke,rootClassName:Tt}=Fe,St=se(Fe,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),wt=Bt("tooltip",I),$t=Bt(),Yt=Fe["data-popover-inject"];let Nt=pe;!("open"in Fe)&&!("visible"in Fe)&&P&&(Nt=!1);const Jt=ge((0,re.l$)(F)&&!(0,re.M2)(F)?F:S.createElement("span",null,F),wt),nn=Jt.props,w=!nn.className||typeof nn.className=="string"?xe()(nn.className,X||`${wt}-open`):nn.className,[R,ft]=U(wt,!Yt),ee=le(wt,b),Ie=ee.arrowStyle,pn=Object.assign(Object.assign({},B),ee.overlayStyle),ze=xe()(g,{[`${wt}-rtl`]:me==="rtl"},ee.className,Tt,ft);return R(S.createElement(ve.Z,Object.assign({},St,{showArrow:pt,placement:Ze,mouseEnterDelay:it,mouseLeaveDelay:Ye,prefixCls:wt,overlayClassName:ze,overlayStyle:Object.assign(Object.assign({},Ie),Ke),getTooltipContainer:Oe||z||Ot,ref:ce,builtinPlacements:fe,overlay:ke,visible:Nt,onVisibleChange:ne,afterVisibleChange:Se!=null?Se:we,overlayInnerStyle:pn,arrowContent:S.createElement("span",{className:`${wt}-arrow-content`}),motion:{motionName:(0,p.m)($t,"zoom-big-fast",Fe.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ne}),Nt?(0,re.Tm)(Jt,{className:w}):Jt))});Ce._InternalPanelDoNotUseOrYouWillBeFired=Y;var Te=Ce},64018:function(){var Kt,nt,E,S=!1,te,xe;window.PR_SHOULD_USE_CONTINUATION=!0;var ve,$;(function(){var p=window,he=["break,continue,do,else,for,if,return,while"],re=[he,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[re,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],ue=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],x="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",A=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],T="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",Z=[he,"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"],ie=[he,"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"],M=[he,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],U=[ue,v,G,A,T,Z,ie,M],W=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,le="str",k="kwd",Y="com",se="typ",J="lit",ge="pun",Ce="pln",Te="tag",Fe="dec",Q="src",O="atn",K="atv",I="nocode",X="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function z(me){for(var ce=0,j=!1,pe=!1,Re=0,P=me.length;Re<P;++Re){var ne=me[Re];if(ne.ignoreCase)pe=!0;else if(/[a-z]/i.test(ne.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){j=!0,pe=!1;break}}var fe={b:8,t:9,n:10,v:11,f:12,r:13};function ye(Ye){var Ke=Ye.charCodeAt(0);if(Ke!==92)return Ke;var Tt=Ye.charAt(1);return Ke=fe[Tt],Ke||("0"<=Tt&&Tt<="7"?parseInt(Ye.substring(1),8):Tt==="u"||Tt==="x"?parseInt(Ye.substring(2),16):Ye.charCodeAt(1))}function ke(Ye){if(Ye<32)return(Ye<16?"\\x0":"\\x")+Ye.toString(16);var Ke=String.fromCharCode(Ye);return Ke==="\\"||Ke==="-"||Ke==="]"||Ke==="^"?"\\"+Ke:Ke}function Oe(Ye){var Ke=Ye.substring(1,Ye.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")),Tt=[],St=Ke[0]==="^",wt=["["];St&&wt.push("^");for(var $t=St?1:0,Yt=Ke.length;$t<Yt;++$t){var Nt=Ke[$t];if(/\\[bdsw]/i.test(Nt))wt.push(Nt);else{var Jt=ye(Nt),nn;$t+2<Yt&&Ke[$t+1]==="-"?(nn=ye(Ke[$t+2]),$t+=2):nn=Jt,Tt.push([Jt,nn]),nn<65||Jt>122||(nn<65||Jt>90||Tt.push([Math.max(65,Jt)|32,Math.min(nn,90)|32]),nn<97||Jt>122||Tt.push([Math.max(97,Jt)&-33,Math.min(nn,122)&-33]))}}Tt.sort(function(ee,Ie){return ee[0]-Ie[0]||Ie[1]-ee[1]});for(var w=[],R=[],$t=0;$t<Tt.length;++$t){var ft=Tt[$t];ft[0]<=R[1]+1?R[1]=Math.max(R[1],ft[1]):w.push(R=ft)}for(var $t=0;$t<w.length;++$t){var ft=w[$t];wt.push(ke(ft[0])),ft[1]>ft[0]&&(ft[1]+1>ft[0]&&wt.push("-"),wt.push(ke(ft[1])))}return wt.push("]"),wt.join("")}function Ze(Ye){for(var Ke=Ye.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")),Tt=Ke.length,St=[],wt=0,$t=0;wt<Tt;++wt){var Yt=Ke[wt];if(Yt==="(")++$t;else if(Yt.charAt(0)==="\\"){var Nt=+Yt.substring(1);Nt&&(Nt<=$t?St[Nt]=-1:Ke[wt]=ke(Nt))}}for(var wt=1;wt<St.length;++wt)St[wt]===-1&&(St[wt]=++ce);for(var wt=0,$t=0;wt<Tt;++wt){var Yt=Ke[wt];if(Yt==="(")++$t,St[$t]||(Ke[wt]="(?:");else if(Yt.charAt(0)==="\\"){var Nt=+Yt.substring(1);Nt&&Nt<=$t&&(Ke[wt]="\\"+St[Nt])}}for(var wt=0;wt<Tt;++wt)Ke[wt]==="^"&&Ke[wt+1]!=="^"&&(Ke[wt]="");if(Ye.ignoreCase&&j)for(var wt=0;wt<Tt;++wt){var Yt=Ke[wt],Jt=Yt.charAt(0);Yt.length>=2&&Jt==="["?Ke[wt]=Oe(Yt):Jt!=="\\"&&(Ke[wt]=Yt.replace(/[a-zA-Z]/g,function(R){var ft=R.charCodeAt(0);return"["+String.fromCharCode(ft&-33,ft|32)+"]"}))}return Ke.join("")}for(var it=[],Re=0,P=me.length;Re<P;++Re){var ne=me[Re];if(ne.global||ne.multiline)throw new Error(""+ne);it.push("(?:"+Ze(ne)+")")}return new RegExp(it.join("|"),pe?"gi":"g")}function g(me,ce){var j=/(?:^|\s)nocode(?:\s|$)/,pe=[],Re=0,P=[],ne=0;function fe(ye){var ke=ye.nodeType;if(ke==1){if(j.test(ye.className))return;for(var Oe=ye.firstChild;Oe;Oe=Oe.nextSibling)fe(Oe);var Ze=ye.nodeName.toLowerCase();(Ze==="br"||Ze==="li")&&(pe[ne]=`
|
|
`,P[ne<<1]=Re++,P[ne++<<1|1]=ye)}else if(ke==3||ke==4){var it=ye.nodeValue;it.length&&(ce?it=it.replace(/\r\n?/g,`
|
|
`):it=it.replace(/[ \t\r\n]+/g," "),pe[ne]=it,P[ne<<1]=Re,Re+=it.length,P[ne++<<1|1]=ye)}}return fe(me),{sourceCode:pe.join("").replace(/\n$/,""),spans:P}}function b(me,ce,j,pe,Re){if(j){var P={sourceNode:me,pre:1,langExtension:null,numberLines:null,sourceCode:j,spans:null,basePos:ce,decorations:null};pe(P),Re.push.apply(Re,P.decorations)}}var B=/\S/;function F(me){for(var ce=void 0,j=me.firstChild;j;j=j.nextSibling){var pe=j.nodeType;ce=pe===1?ce?me:j:pe===3&&B.test(j.nodeValue)?me:ce}return ce===me?void 0:ce}function Se(me,ce){var j={},pe;(function(){for(var ne=me.concat(ce),fe=[],ye={},ke=0,Oe=ne.length;ke<Oe;++ke){var Ze=ne[ke],it=Ze[3];if(it)for(var Ye=it.length;--Ye>=0;)j[it.charAt(Ye)]=Ze;var Ke=Ze[1],Tt=""+Ke;ye.hasOwnProperty(Tt)||(fe.push(Ke),ye[Tt]=null)}fe.push(/[\0-\uffff]/),pe=z(fe)})();var Re=ce.length,P=function(ne){for(var fe=ne.sourceCode,ye=ne.basePos,ke=ne.sourceNode,Oe=[ye,Ce],Ze=0,it=fe.match(pe)||[],Ye={},Ke=0,Tt=it.length;Ke<Tt;++Ke){var St=it[Ke],wt=Ye[St],$t=void 0,Yt;if(typeof wt=="string")Yt=!1;else{var Nt=j[St.charAt(0)];if(Nt)$t=St.match(Nt[1]),wt=Nt[0];else{for(var Jt=0;Jt<Re;++Jt)if(Nt=ce[Jt],$t=St.match(Nt[1]),$t){wt=Nt[0];break}$t||(wt=Ce)}Yt=wt.length>=5&&wt.substring(0,5)==="lang-",Yt&&!($t&&typeof $t[1]=="string")&&(Yt=!1,wt=Q),Yt||(Ye[St]=wt)}var nn=Ze;if(Ze+=St.length,!Yt)Oe.push(ye+nn,wt);else{var w=$t[1],R=St.indexOf(w),ft=R+w.length;$t[2]&&(ft=St.length-$t[2].length,R=ft-w.length);var ee=wt.substring(5);b(ke,ye+nn,St.substring(0,R),P,Oe),b(ke,ye+nn+R,w,yt(ee,w),Oe),b(ke,ye+nn+ft,St.substring(ft),P,Oe)}}ne.decorations=Oe};return P}function we(me){var ce=[],j=[];me.tripleQuotedStrings?ce.push([le,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):me.multiLineStrings?ce.push([le,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ce.push([le,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),me.verbatimStrings&&j.push([le,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var pe=me.hashComments;pe&&(me.cStyleComments?(pe>1?ce.push([Y,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ce.push([Y,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),j.push([le,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ce.push([Y,/^#[^\r\n]*/,null,"#"])),me.cStyleComments&&(j.push([Y,/^\/\/[^\r\n]*/,null]),j.push([Y,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Re=me.regexLiterals;if(Re){var P=Re>1?"":`
|
|
\r`,ne=P?".":"[\\S\\s]",fe="/(?=[^/*"+P+"])(?:[^/\\x5B\\x5C"+P+"]|\\x5C"+ne+"|\\x5B(?:[^\\x5C\\x5D"+P+"]|\\x5C"+ne+")*(?:\\x5D|$))+/";j.push(["lang-regex",RegExp("^"+X+"("+fe+")")])}var ye=me.types;ye&&j.push([se,ye]);var ke=(""+me.keywords).replace(/^ | $/g,"");ke.length&&j.push([k,new RegExp("^(?:"+ke.replace(/[\s,]+/g,"|")+")\\b"),null]),ce.push([Ce,/^\s+/,null,` \r
|
|
\xA0`]);var Oe="^.[^\\s\\w.$@'\"`/\\\\]*";return me.regexLiterals&&(Oe+="(?!s*/)"),j.push([J,/^@[a-z_$][a-z_$@0-9]*/i,null],[se,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ce,/^[a-z_$][a-z_$@0-9]*/i,null],[J,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ce,/^\\[\s\S]?/,null],[ge,new RegExp(Oe),null]),Se(ce,j)}var Ne=we({keywords:U,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(me,ce,j){for(var pe=/(?:^|\s)nocode(?:\s|$)/,Re=/\r\n?|\n/,P=me.ownerDocument,ne=P.createElement("li");me.firstChild;)ne.appendChild(me.firstChild);var fe=[ne];function ye(Ke){var Tt=Ke.nodeType;if(Tt==1&&!pe.test(Ke.className))if(Ke.nodeName==="br")ke(Ke),Ke.parentNode&&Ke.parentNode.removeChild(Ke);else for(var St=Ke.firstChild;St;St=St.nextSibling)ye(St);else if((Tt==3||Tt==4)&&j){var wt=Ke.nodeValue,$t=wt.match(Re);if($t){var Yt=wt.substring(0,$t.index);Ke.nodeValue=Yt;var Nt=wt.substring($t.index+$t[0].length);if(Nt){var Jt=Ke.parentNode;Jt.insertBefore(P.createTextNode(Nt),Ke.nextSibling)}ke(Ke),Yt||Ke.parentNode.removeChild(Ke)}}}function ke(Ke){for(;!Ke.nextSibling;)if(Ke=Ke.parentNode,!Ke)return;function Tt($t,Yt){var Nt=Yt?$t.cloneNode(!1):$t,Jt=$t.parentNode;if(Jt){var nn=Tt(Jt,1),w=$t.nextSibling;nn.appendChild(Nt);for(var R=w;R;R=w)w=R.nextSibling,nn.appendChild(R)}return Nt}for(var St=Tt(Ke.nextSibling,0),wt;(wt=St.parentNode)&&wt.nodeType===1;)St=wt;fe.push(St)}for(var Oe=0;Oe<fe.length;++Oe)ye(fe[Oe]);ce===(ce|0)&&fe[0].setAttribute("value",ce);var Ze=P.createElement("ol");Ze.className="linenums";for(var it=Math.max(0,ce-1|0)||0,Oe=0,Ye=fe.length;Oe<Ye;++Oe)ne=fe[Oe],ne.className="L"+(Oe+it)%10,ne.firstChild||ne.appendChild(P.createTextNode("\xA0")),Ze.appendChild(ne);me.appendChild(Ze)}function et(me){var ce=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ce=ce&&+ce[1]<=8;var j=/\n/g,pe=me.sourceCode,Re=pe.length,P=0,ne=me.spans,fe=ne.length,ye=0,ke=me.decorations,Oe=ke.length,Ze=0;ke[Oe]=Re;var it,Ye;for(Ye=it=0;Ye<Oe;)ke[Ye]!==ke[Ye+2]?(ke[it++]=ke[Ye++],ke[it++]=ke[Ye++]):Ye+=2;for(Oe=it,Ye=it=0;Ye<Oe;){for(var Ke=ke[Ye],Tt=ke[Ye+1],St=Ye+2;St+2<=Oe&&ke[St+1]===Tt;)St+=2;ke[it++]=Ke,ke[it++]=Tt,Ye=St}Oe=ke.length=it;var wt=me.sourceNode,$t="";wt&&($t=wt.style.display,wt.style.display="none");try{for(var Yt=null;ye<fe;){var Nt=ne[ye],Jt=ne[ye+2]||Re,nn=ke[Ze+2]||Re,St=Math.min(Jt,nn),w=ne[ye+1],R;if(w.nodeType!==1&&(R=pe.substring(P,St))){ce&&(R=R.replace(j,"\r")),w.nodeValue=R;var ft=w.ownerDocument,ee=ft.createElement("span");ee.className=ke[Ze+1];var Ie=w.parentNode;Ie.replaceChild(ee,w),ee.appendChild(w),P<Jt&&(ne[ye+1]=w=ft.createTextNode(pe.substring(St,Jt)),Ie.insertBefore(w,ee.nextSibling))}P=St,P>=Jt&&(ye+=2),P>=nn&&(Ze+=2)}}finally{wt&&(wt.style.display=$t)}}var qe={};function rt(me,ce){for(var j=ce.length;--j>=0;){var pe=ce[j];qe.hasOwnProperty(pe)?p.console&&console.warn("cannot override language handler %s",pe):qe[pe]=me}}function yt(me,ce){return me&&qe.hasOwnProperty(me)||(me=/^\s*</.test(ce)?"default-markup":"default-code"),qe[me]}rt(Ne,["default-code"]),rt(Se([],[[Ce,/^[^<?]+/],[Fe,/^<!\w[^>]*(?:>|$)/],[Y,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ge,/^(?:<[%?]|[%?]>)/],["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"]),rt(Se([[Ce,/^[\s]+/,null,` \r
|
|
`],[K,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Te,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[O,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ge,/^[=<>\/]+/],["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"]),rt(Se([],[[K,/^[\s\S]+/]]),["uq.val"]),rt(we({keywords:ue,hashComments:!0,cStyleComments:!0,types:W}),["c","cc","cpp","cxx","cyc","m"]),rt(we({keywords:"null,true,false"}),["json"]),rt(we({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:W}),["cs"]),rt(we({keywords:G,cStyleComments:!0}),["java"]),rt(we({keywords:M,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),rt(we({keywords:Z,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),rt(we({keywords:T,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),rt(we({keywords:ie,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),rt(we({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),rt(we({keywords:x,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),rt(Se([],[[le,/^[\s\S]+/]]),["regex"]);function Dt(me){var ce=me.langExtension;try{var j=g(me.sourceNode,me.pre),pe=j.sourceCode;me.sourceCode=pe,me.spans=j.spans,me.basePos=0,yt(ce,pe)(me),et(me)}catch(Re){p.console&&console.log(Re&&Re.stack||Re)}}function pt(me,ce,j){var pe=j||!1,Re=ce||null,P=document.createElement("div");P.innerHTML="<pre>"+me+"</pre>",P=P.firstChild,pe&&je(P,pe,!0);var ne={langExtension:Re,numberLines:pe,sourceNode:P,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Dt(ne),P.innerHTML}function vt(me,ce){var j=ce||document.body,pe=j.ownerDocument||document;function Re(Nt){return j.getElementsByTagName(Nt)}for(var P=[Re("pre"),Re("code"),Re("xmp")],ne=[],fe=0;fe<P.length;++fe)for(var ye=0,ke=P[fe].length;ye<ke;++ye)ne.push(P[fe][ye]);P=null;var Oe=Date;Oe.now||(Oe={now:function(){return+new Date}});var Ze=0,it=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ye=/\bprettyprint\b/,Ke=/\bprettyprinted\b/,Tt=/pre|xmp/i,St=/^code$/i,wt=/^(?:pre|code|xmp)$/i,$t={};function Yt(){for(var Nt=p.PR_SHOULD_USE_CONTINUATION?Oe.now()+250:1/0;Ze<ne.length&&Oe.now()<Nt;Ze++){for(var Jt=ne[Ze],nn=$t,w=Jt;w=w.previousSibling;){var R=w.nodeType,ft=(R===7||R===8)&&w.nodeValue;if(ft?!/^\??prettify\b/.test(ft):R!==3||/\S/.test(w.nodeValue))break;if(ft){nn={},ft.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Pe,Qt,an){nn[Qt]=an});break}}var ee=Jt.className;if((nn!==$t||Ye.test(ee))&&!Ke.test(ee)){for(var Ie=!1,pn=Jt.parentNode;pn;pn=pn.parentNode){var ze=pn.tagName;if(wt.test(ze)&&pn.className&&Ye.test(pn.className)){Ie=!0;break}}if(!Ie){Jt.className+=" prettyprinted";var Ge=nn.lang;if(!Ge){Ge=ee.match(it);var Je;!Ge&&(Je=F(Jt))&&St.test(Je.tagName)&&(Ge=Je.className.match(it)),Ge&&(Ge=Ge[1])}var ae;if(Tt.test(Jt.tagName))ae=1;else{var Ee=Jt.currentStyle,De=pe.defaultView,He=Ee?Ee.whiteSpace:De&&De.getComputedStyle?De.getComputedStyle(Jt,null).getPropertyValue("white-space"):0;ae=He&&He.substring(0,3)==="pre"}var q=nn.linenums;(q=q==="true"||+q)||(q=ee.match(/\blinenums\b(?::(\d+))?/),q=q?q[1]&&q[1].length?+q[1]:!0:!1),q&&je(Jt,q,ae);var Ut={langExtension:Ge,sourceNode:Jt,numberLines:q,pre:ae,sourceCode:null,basePos:null,spans:null,decorations:null};Dt(Ut)}}}Ze<ne.length?p.setTimeout(Yt,250):typeof me=="function"&&me()}Yt()}var Ot=p.PR={createSimpleLexer:Se,registerLangHandler:rt,sourceDecorator:we,PR_ATTRIB_NAME:O,PR_ATTRIB_VALUE:K,PR_COMMENT:Y,PR_DECLARATION:Fe,PR_KEYWORD:k,PR_LITERAL:J,PR_NOCODE:I,PR_PLAIN:Ce,PR_PUNCTUATION:ge,PR_SOURCE:Q,PR_STRING:le,PR_TAG:Te,PR_TYPE:se,prettyPrintOne:S?p.prettyPrintOne=pt:ve=pt,prettyPrint:$=S?p.prettyPrint=vt:$=vt},Bt=p.define;typeof Bt=="function"&&Bt.amd&&Bt("google-code-prettify",[],function(){return Ot})})()},25769:function(Kt,nt,E){"use strict";var S=E(98040),te={"text/plain":"Text","text/html":"Url",default:"Text"},xe="Copy to clipboard: #{key}, Enter";function ve(p){var he=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,he)}function $(p,he){var re,o,ue,G,v,x,A=!1;he||(he={}),re=he.debug||!1;try{ue=S(),G=document.createRange(),v=document.getSelection(),x=document.createElement("span"),x.textContent=p,x.ariaHidden="true",x.style.all="unset",x.style.position="fixed",x.style.top=0,x.style.clip="rect(0, 0, 0, 0)",x.style.whiteSpace="pre",x.style.webkitUserSelect="text",x.style.MozUserSelect="text",x.style.msUserSelect="text",x.style.userSelect="text",x.addEventListener("copy",function(Z){if(Z.stopPropagation(),he.format)if(Z.preventDefault(),typeof Z.clipboardData=="undefined"){re&&console.warn("unable to use e.clipboardData"),re&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ie=te[he.format]||te.default;window.clipboardData.setData(ie,p)}else Z.clipboardData.clearData(),Z.clipboardData.setData(he.format,p);he.onCopy&&(Z.preventDefault(),he.onCopy(Z.clipboardData))}),document.body.appendChild(x),G.selectNodeContents(x),v.addRange(G);var T=document.execCommand("copy");if(!T)throw new Error("copy command was unsuccessful");A=!0}catch(Z){re&&console.error("unable to copy using execCommand: ",Z),re&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(he.format||"text",p),he.onCopy&&he.onCopy(window.clipboardData),A=!0}catch(ie){re&&console.error("unable to copy using clipboardData: ",ie),re&&console.error("falling back to prompt"),o=ve("message"in he?he.message:xe),window.prompt(o,p)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(G):v.removeAllRanges()),x&&document.body.removeChild(x),ue()}return A}Kt.exports=$},53184:function(Kt,nt,E){"use strict";var S,te;function xe(ve,$,p){var he=function(re,o){return ve.js_beautify(re,o)};return he.js=ve.js_beautify,he.css=$.css_beautify,he.html=p.html_beautify,he.js_beautify=ve.js_beautify,he.css_beautify=$.css_beautify,he.html_beautify=p.html_beautify,he}S=[E(58553),E(87804),E(40998)],te=function(ve,$,p){return xe(ve,$,p)}.apply(nt,S),te!==void 0&&(Kt.exports=te)},87804:function(Kt,nt){var E,S;(function(){var te;(function(){"use strict";var ve=[,,function(re){function o(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var v=new o(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},o.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},o.prototype.has_match=function(v){for(var x=this.__items.length-1;x>=0;x--)if(this.__items[x].match(v))return!0;return!1},o.prototype.set_indent=function(v,x){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=x||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(v){this.__items.push(v);var x=v.lastIndexOf(`
|
|
`);x!==-1?this.__character_count=v.length-x:this.__character_count+=v.length},o.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function ue(v,x){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),x=x||"",v.indent_level>0&&(x=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=x,this.__base_string_length=x.length}ue.prototype.get_indent_size=function(v,x){var A=this.__base_string_length;return x=x||0,v<0&&(A=0),A+=v*this.__indent_size,A+=x,A},ue.prototype.get_indent_string=function(v,x){var A=this.__base_string;return x=x||0,v<0&&(v=0,A=""),x+=v*this.__indent_size,this.__ensure_cache(x),A+=this.__cache[x],A},ue.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},ue.prototype.__add_column=function(){var v=this.__cache.length,x=0,A="";this.__indent_size&&v>=this.__indent_size&&(x=Math.floor(v/this.__indent_size),v-=x*this.__indent_size,A=new Array(x+1).join(this.__indent_string)),v&&(A+=new Array(v+1).join(" ")),this.__cache.push(A)};function G(v,x){this.__indent_cache=new ue(v,x),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}G.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},G.prototype.get_line_number=function(){return this.__lines.length},G.prototype.get_indent_string=function(v,x){return this.__indent_cache.get_indent_string(v,x)},G.prototype.get_indent_size=function(v,x){return this.__indent_cache.get_indent_size(v,x)},G.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},G.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},G.prototype.get_code=function(v){this.trim(!0);var x=this.current_line.pop();x&&(x[x.length-1]===`
|
|
`&&(x=x.replace(/\n+$/g,"")),this.current_line.push(x)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
`);return v!==`
|
|
`&&(A=A.replace(/[\n]/g,v)),A},G.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},G.prototype.set_indent=function(v,x){return v=v||0,x=x||0,this.next_line.set_indent(v,x),this.__lines.length>1?(this.current_line.set_indent(v,x),!0):(this.current_line.set_indent(),!1)},G.prototype.add_raw_token=function(v){for(var x=0;x<v.newlines;x++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},G.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},G.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(" "))},G.prototype.remove_indent=function(v){for(var x=this.__lines.length;v<x;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},G.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&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},G.prototype.just_added_newline=function(){return this.current_line.is_empty()},G.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},G.prototype.ensure_empty_line_above=function(v,x){for(var A=this.__lines.length-2;A>=0;){var T=this.__lines[A];if(T.is_empty())break;if(T.item(0).indexOf(v)!==0&&T.item(-1)!==x){this.__lines.splice(A+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},re.exports.Output=G},,,,function(re){function o(v,x){this.raw_options=ue(v,x),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(v,x){var A=this.raw_options[v],T=x||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(T=A.concat()):typeof A=="string"&&(T=A.split(/[^a-zA-Z0-9_\/\-]+/)),T},o.prototype._get_boolean=function(v,x){var A=this.raw_options[v],T=A===void 0?!!x:!!A;return T},o.prototype._get_characters=function(v,x){var A=this.raw_options[v],T=x||"";return typeof A=="string"&&(T=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),T},o.prototype._get_number=function(v,x){var A=this.raw_options[v];x=parseInt(x,10),isNaN(x)&&(x=0);var T=parseInt(A,10);return isNaN(T)&&(T=x),T},o.prototype._get_selection=function(v,x,A){var T=this._get_selection_list(v,x,A);if(T.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
`+x+`
|
|
You passed in: '`+this.raw_options[v]+"'");return T[0]},o.prototype._get_selection_list=function(v,x,A){if(!x||x.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[x[0]],!this._is_valid_selection(A,x))throw new Error("Invalid Default Value!");var T=this._get_array(v,A);if(!this._is_valid_selection(T,x))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
`+x+`
|
|
You passed in: '`+this.raw_options[v]+"'");return T},o.prototype._is_valid_selection=function(v,x){return v.length&&x.length&&!v.some(function(A){return x.indexOf(A)===-1})};function ue(v,x){var A={};v=G(v);var T;for(T in v)T!==x&&(A[T]=v[T]);if(x&&v[x])for(T in v[x])A[T]=v[x][T];return A}function G(v){var x={},A;for(A in v){var T=A.replace(/-/g,"_");x[T]=v[A]}return x}re.exports.Options=o,re.exports.normalizeOpts=G,re.exports.mergeOpts=ue},,function(re){var o=RegExp.prototype.hasOwnProperty("sticky");function ue(G){this.__input=G||"",this.__input_length=this.__input.length,this.__position=0}ue.prototype.restart=function(){this.__position=0},ue.prototype.back=function(){this.__position>0&&(this.__position-=1)},ue.prototype.hasNext=function(){return this.__position<this.__input_length},ue.prototype.next=function(){var G=null;return this.hasNext()&&(G=this.__input.charAt(this.__position),this.__position+=1),G},ue.prototype.peek=function(G){var v=null;return G=G||0,G+=this.__position,G>=0&&G<this.__input_length&&(v=this.__input.charAt(G)),v},ue.prototype.__match=function(G,v){G.lastIndex=v;var x=G.exec(this.__input);return x&&!(o&&G.sticky)&&x.index!==v&&(x=null),x},ue.prototype.test=function(G,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(G,v):!1},ue.prototype.testChar=function(G,v){var x=this.peek(v);return G.lastIndex=0,x!==null&&G.test(x)},ue.prototype.match=function(G){var v=this.__match(G,this.__position);return v?this.__position+=v[0].length:v=null,v},ue.prototype.read=function(G,v,x){var A="",T;return G&&(T=this.match(G),T&&(A+=T[0])),v&&(T||!G)&&(A+=this.readUntil(v,x)),A},ue.prototype.readUntil=function(G,v){var x="",A=this.__position;G.lastIndex=this.__position;var T=G.exec(this.__input);return T?(A=T.index,v&&(A+=T[0].length)):A=this.__input_length,x=this.__input.substring(this.__position,A),this.__position=A,x},ue.prototype.readUntilAfter=function(G){return this.readUntil(G,!0)},ue.prototype.get_regexp=function(G,v){var x=null,A="g";return v&&o&&(A="y"),typeof G=="string"&&G!==""?x=new RegExp(G,A):G&&(x=new RegExp(G.source,A)),x},ue.prototype.get_literal_regexp=function(G){return RegExp(G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},ue.prototype.peekUntilAfter=function(G){var v=this.__position,x=this.readUntilAfter(G);return this.__position=v,x},ue.prototype.lookBack=function(G){var v=this.__position-1;return v>=G.length&&this.__input.substring(v-G.length,v).toLowerCase()===G},re.exports.InputScanner=ue},,,,,function(re){function o(ue,G){ue=typeof ue=="string"?ue:ue.source,G=typeof G=="string"?G:G.source,this.__directives_block_pattern=new RegExp(ue+/ beautify( \w+[:]\w+)+ /.source+G,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(ue+/\sbeautify\signore:end\s/.source+G,"g")}o.prototype.get_directives=function(ue){if(!ue.match(this.__directives_block_pattern))return null;var G={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(ue);v;)G[v[1]]=v[2],v=this.__directive_pattern.exec(ue);return G},o.prototype.readIgnored=function(ue){return ue.readUntilAfter(this.__directives_end_ignore_pattern)},re.exports.Directives=o},,function(re,o,ue){var G=ue(16).Beautifier,v=ue(17).Options;function x(A,T){var Z=new G(A,T);return Z.beautify()}re.exports=x,re.exports.defaultOptions=function(){return new v}},function(re,o,ue){var G=ue(17).Options,v=ue(2).Output,x=ue(8).InputScanner,A=ue(13).Directives,T=new A(/\/\*/,/\*\//),Z=/\r\n|[\r\n]/,ie=/\r\n|[\r\n]/g,M=/\s/,U=/(?:\s|\n)+/g,W=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,le=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function k(Y,se){this._source_text=Y||"",this._options=new G(se),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"]}k.prototype.eatString=function(Y){var se="";for(this._ch=this._input.next();this._ch;){if(se+=this._ch,this._ch==="\\")se+=this._input.next();else if(Y.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return se},k.prototype.eatWhitespace=function(Y){for(var se=M.test(this._input.peek()),J=0;M.test(this._input.peek());)this._ch=this._input.next(),Y&&this._ch===`
|
|
`&&(J===0||J<this._options.max_preserve_newlines)&&(J++,this._output.add_new_line(!0));return se},k.prototype.foundNestedPseudoClass=function(){for(var Y=0,se=1,J=this._input.peek(se);J;){if(J==="{")return!0;if(J==="(")Y+=1;else if(J===")"){if(Y===0)return!1;Y-=1}else if(J===";"||J==="}")return!1;se++,J=this._input.peek(se)}return!1},k.prototype.print_string=function(Y){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(Y)},k.prototype.preserveSingleSpace=function(Y){Y&&(this._output.space_before_token=!0)},k.prototype.indent=function(){this._indentLevel++},k.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},k.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Y=this._source_text,se=this._options.eol;se==="auto"&&(se=`
|
|
`,Y&&Z.test(Y||"")&&(se=Y.match(Z)[0])),Y=Y.replace(ie,`
|
|
`);var J=Y.match(/^[\t ]*/)[0];this._output=new v(this._options,J),this._input=new x(Y),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ge=0,Ce=!1,Te=!1,Fe=!1,Q=!1,O=!1,K=this._ch,I=!1,X,z,g;X=this._input.read(U),z=X!=="",g=K,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),K=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var b=this._input.read(W),B=T.get_directives(b);B&&B.ignore==="start"&&(b+=T.readIgnored(this._input)),this.print_string(b),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(le)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(z),this.print_string(this._ch);var F=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);F.match(/[ :]$/)&&(F=this.eatString(": ").replace(/\s+$/,""),this.print_string(F),this._output.space_before_token=!0),ge===0&&F.indexOf(":")!==-1&&(Te=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(z),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Se=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Se.match(/[ :]$/)&&(Se=this.eatString(": ").replace(/\s+$/,""),this.print_string(Se),this._output.space_before_token=!0),ge===0&&Se.indexOf(":")!==-1?(Te=!0,this.indent()):Se in this.NESTED_AT_RULE?(this._nestedLevel+=1,Se in this.CONDITIONAL_GROUP_RULE&&(Fe=!0)):ge===0&&!Te&&(Q=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(z),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Te&&(Te=!1,this.outdent()),Q=!1,Fe?(Fe=!1,Ce=this._indentLevel>=this._nestedLevel):Ce=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ce&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(g==="("?this._output.space_before_token=!1:g!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),g==="{"&&this._output.trim(!0),Te&&(this.outdent(),Te=!1),this.print_string(this._ch),Ce=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var we=0;we<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;we++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[we])){I=!0;break}(Ce||Fe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!Q&&ge===0?(this.print_string(":"),Te||(Te=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ne=g==='"'||g==="'";this.preserveSingleSpace(Ne||z),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")I=!1,ge===0?(Te&&(this.outdent(),Te=!1),Q=!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(),ge++,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(")")),ge&&(ge--,this.outdent()));else{var je=!1;this._input.lookBack("with")&&(je=!0),this.preserveSingleSpace(z||je),this.print_string(this._ch),Te&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),O=!0):(this.eatWhitespace(),ge++,this.indent())}else if(this._ch===")")ge&&(ge--,this.outdent()),O&&this._input.peek()===";"&&this._options.selector_separator_newline&&(O=!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&&(!Te||O)&&ge===0&&!Q?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Te&&ge===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&M.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(z),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),M.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var et=g==='"'||g==="'";this.preserveSingleSpace(et||z),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&I&&this._output.add_new_line()}var qe=this._output.get_code(se);return qe},re.exports.Beautifier=k},function(re,o,ue){var G=ue(6).Options;function v(x){G.call(this,x,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var A=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||A;var T=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var Z=0;Z<T.length;Z++)T[Z]!=="expand"?this.brace_style="collapse":this.brace_style=T[Z]}v.prototype=new G,re.exports.Options=v}],$={};function p(re){var o=$[re];if(o!==void 0)return o.exports;var ue=$[re]={exports:{}};return ve[re](ue,ue.exports,p),ue.exports}var he=p(15);te=he})();var xe=te;E=[],S=function(){return{css_beautify:xe}}.apply(nt,E),S!==void 0&&(Kt.exports=S)})()},40998:function(Kt,nt,E){var S,te;(function(){var xe;(function(){"use strict";var he=[,,function(G){function v(T){this.__parent=T,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=[]}v.prototype.clone_empty=function(){var T=new v(this.__parent);return T.set_indent(this.__indent_count,this.__alignment_count),T},v.prototype.item=function(T){return T<0?this.__items[this.__items.length+T]:this.__items[T]},v.prototype.has_match=function(T){for(var Z=this.__items.length-1;Z>=0;Z--)if(this.__items[Z].match(T))return!0;return!1},v.prototype.set_indent=function(T,Z){this.is_empty()&&(this.__indent_count=T||0,this.__alignment_count=Z||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.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)},v.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},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var T=this.__parent.current_line;return T.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),T.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),T.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,T.__items[0]===" "&&(T.__items.splice(0,1),T.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(T){this.__items.push(T);var Z=T.lastIndexOf(`
|
|
`);Z!==-1?this.__character_count=T.length-Z:this.__character_count+=T.length},v.prototype.pop=function(){var T=null;return this.is_empty()||(T=this.__items.pop(),this.__character_count-=T.length),T},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var T="";return this.is_empty()?this.__parent.indent_empty_lines&&(T=this.__parent.get_indent_string(this.__indent_count)):(T=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),T+=this.__items.join("")),T};function x(T,Z){this.__cache=[""],this.__indent_size=T.indent_size,this.__indent_string=T.indent_char,T.indent_with_tabs||(this.__indent_string=new Array(T.indent_size+1).join(T.indent_char)),Z=Z||"",T.indent_level>0&&(Z=new Array(T.indent_level+1).join(this.__indent_string)),this.__base_string=Z,this.__base_string_length=Z.length}x.prototype.get_indent_size=function(T,Z){var ie=this.__base_string_length;return Z=Z||0,T<0&&(ie=0),ie+=T*this.__indent_size,ie+=Z,ie},x.prototype.get_indent_string=function(T,Z){var ie=this.__base_string;return Z=Z||0,T<0&&(T=0,ie=""),Z+=T*this.__indent_size,this.__ensure_cache(Z),ie+=this.__cache[Z],ie},x.prototype.__ensure_cache=function(T){for(;T>=this.__cache.length;)this.__add_column()},x.prototype.__add_column=function(){var T=this.__cache.length,Z=0,ie="";this.__indent_size&&T>=this.__indent_size&&(Z=Math.floor(T/this.__indent_size),T-=Z*this.__indent_size,ie=new Array(Z+1).join(this.__indent_string)),T&&(ie+=new Array(T+1).join(" ")),this.__cache.push(ie)};function A(T,Z){this.__indent_cache=new x(T,Z),this.raw=!1,this._end_with_newline=T.end_with_newline,this.indent_size=T.indent_size,this.wrap_line_length=T.wrap_line_length,this.indent_empty_lines=T.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(T,Z){return this.__indent_cache.get_indent_string(T,Z)},A.prototype.get_indent_size=function(T,Z){return this.__indent_cache.get_indent_size(T,Z)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(T){return this.is_empty()||!T&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(T){this.trim(!0);var Z=this.current_line.pop();Z&&(Z[Z.length-1]===`
|
|
`&&(Z=Z.replace(/\n+$/g,"")),this.current_line.push(Z)),this._end_with_newline&&this.__add_outputline();var ie=this.__lines.join(`
|
|
`);return T!==`
|
|
`&&(ie=ie.replace(/[\n]/g,T)),ie},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(T,Z){return T=T||0,Z=Z||0,this.next_line.set_indent(T,Z),this.__lines.length>1?(this.current_line.set_indent(T,Z),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(T){for(var Z=0;Z<T.newlines;Z++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(T.whitespace_before),this.current_line.push(T.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(T){this.__add_space_before_token(),this.current_line.push(T),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},A.prototype.remove_indent=function(T){for(var Z=this.__lines.length;T<Z;)this.__lines[T]._remove_indent(),T++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(T){for(T=T===void 0?!1:T,this.current_line.trim();T&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(T,Z){for(var ie=this.__lines.length-2;ie>=0;){var M=this.__lines[ie];if(M.is_empty())break;if(M.item(0).indexOf(T)!==0&&M.item(-1)!==Z){this.__lines.splice(ie+1,0,new v(this)),this.previous_line=this.__lines[this.__lines.length-2];break}ie--}},G.exports.Output=A},function(G){function v(x,A,T,Z){this.type=x,this.text=A,this.comments_before=null,this.newlines=T||0,this.whitespace_before=Z||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}G.exports.Token=v},,,function(G){function v(T,Z){this.raw_options=x(T,Z),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}v.prototype._get_array=function(T,Z){var ie=this.raw_options[T],M=Z||[];return typeof ie=="object"?ie!==null&&typeof ie.concat=="function"&&(M=ie.concat()):typeof ie=="string"&&(M=ie.split(/[^a-zA-Z0-9_\/\-]+/)),M},v.prototype._get_boolean=function(T,Z){var ie=this.raw_options[T],M=ie===void 0?!!Z:!!ie;return M},v.prototype._get_characters=function(T,Z){var ie=this.raw_options[T],M=Z||"";return typeof ie=="string"&&(M=ie.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),M},v.prototype._get_number=function(T,Z){var ie=this.raw_options[T];Z=parseInt(Z,10),isNaN(Z)&&(Z=0);var M=parseInt(ie,10);return isNaN(M)&&(M=Z),M},v.prototype._get_selection=function(T,Z,ie){var M=this._get_selection_list(T,Z,ie);if(M.length!==1)throw new Error("Invalid Option Value: The option '"+T+`' can only be one of the following values:
|
|
`+Z+`
|
|
You passed in: '`+this.raw_options[T]+"'");return M[0]},v.prototype._get_selection_list=function(T,Z,ie){if(!Z||Z.length===0)throw new Error("Selection list cannot be empty.");if(ie=ie||[Z[0]],!this._is_valid_selection(ie,Z))throw new Error("Invalid Default Value!");var M=this._get_array(T,ie);if(!this._is_valid_selection(M,Z))throw new Error("Invalid Option Value: The option '"+T+`' can contain only the following values:
|
|
`+Z+`
|
|
You passed in: '`+this.raw_options[T]+"'");return M},v.prototype._is_valid_selection=function(T,Z){return T.length&&Z.length&&!T.some(function(ie){return Z.indexOf(ie)===-1})};function x(T,Z){var ie={};T=A(T);var M;for(M in T)M!==Z&&(ie[M]=T[M]);if(Z&&T[Z])for(M in T[Z])ie[M]=T[Z][M];return ie}function A(T){var Z={},ie;for(ie in T){var M=ie.replace(/-/g,"_");Z[M]=T[ie]}return Z}G.exports.Options=v,G.exports.normalizeOpts=A,G.exports.mergeOpts=x},,function(G){var v=RegExp.prototype.hasOwnProperty("sticky");function x(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}x.prototype.restart=function(){this.__position=0},x.prototype.back=function(){this.__position>0&&(this.__position-=1)},x.prototype.hasNext=function(){return this.__position<this.__input_length},x.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},x.prototype.peek=function(A){var T=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(T=this.__input.charAt(A)),T},x.prototype.__match=function(A,T){A.lastIndex=T;var Z=A.exec(this.__input);return Z&&!(v&&A.sticky)&&Z.index!==T&&(Z=null),Z},x.prototype.test=function(A,T){return T=T||0,T+=this.__position,T>=0&&T<this.__input_length?!!this.__match(A,T):!1},x.prototype.testChar=function(A,T){var Z=this.peek(T);return A.lastIndex=0,Z!==null&&A.test(Z)},x.prototype.match=function(A){var T=this.__match(A,this.__position);return T?this.__position+=T[0].length:T=null,T},x.prototype.read=function(A,T,Z){var ie="",M;return A&&(M=this.match(A),M&&(ie+=M[0])),T&&(M||!A)&&(ie+=this.readUntil(T,Z)),ie},x.prototype.readUntil=function(A,T){var Z="",ie=this.__position;A.lastIndex=this.__position;var M=A.exec(this.__input);return M?(ie=M.index,T&&(ie+=M[0].length)):ie=this.__input_length,Z=this.__input.substring(this.__position,ie),this.__position=ie,Z},x.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},x.prototype.get_regexp=function(A,T){var Z=null,ie="g";return T&&v&&(ie="y"),typeof A=="string"&&A!==""?Z=new RegExp(A,ie):A&&(Z=new RegExp(A.source,ie)),Z},x.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},x.prototype.peekUntilAfter=function(A){var T=this.__position,Z=this.readUntilAfter(A);return this.__position=T,Z},x.prototype.lookBack=function(A){var T=this.__position-1;return T>=A.length&&this.__input.substring(T-A.length,T).toLowerCase()===A},G.exports.InputScanner=x},function(G,v,x){var A=x(8).InputScanner,T=x(3).Token,Z=x(10).TokenStream,ie=x(11).WhitespacePattern,M={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},U=function(W,le){this._input=new A(W),this._options=le||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new ie(this._input)};U.prototype.tokenize=function(){this._input.restart(),this.__tokens=new Z,this._reset();for(var W,le=new T(M.START,""),k=null,Y=[],se=new Z;le.type!==M.EOF;){for(W=this._get_next_token(le,k);this._is_comment(W);)se.add(W),W=this._get_next_token(le,k);se.isEmpty()||(W.comments_before=se,se=new Z),W.parent=k,this._is_opening(W)?(Y.push(k),k=W):k&&this._is_closing(W,k)&&(W.opened=k,k.closed=W,k=Y.pop(),W.parent=k),W.previous=le,le.next=W,this.__tokens.add(W),le=W}return this.__tokens},U.prototype._is_first_token=function(){return this.__tokens.isEmpty()},U.prototype._reset=function(){},U.prototype._get_next_token=function(W,le){this._readWhitespace();var k=this._input.read(/.+/g);return k?this._create_token(M.RAW,k):this._create_token(M.EOF,"")},U.prototype._is_comment=function(W){return!1},U.prototype._is_opening=function(W){return!1},U.prototype._is_closing=function(W,le){return!1},U.prototype._create_token=function(W,le){var k=new T(W,le,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return k},U.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},G.exports.Tokenizer=U,G.exports.TOKEN=M},function(G){function v(x){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=x}v.prototype.restart=function(){this.__position=0},v.prototype.isEmpty=function(){return this.__tokens_length===0},v.prototype.hasNext=function(){return this.__position<this.__tokens_length},v.prototype.next=function(){var x=null;return this.hasNext()&&(x=this.__tokens[this.__position],this.__position+=1),x},v.prototype.peek=function(x){var A=null;return x=x||0,x+=this.__position,x>=0&&x<this.__tokens_length&&(A=this.__tokens[x]),A},v.prototype.add=function(x){this.__parent_token&&(x.parent=this.__parent_token),this.__tokens.push(x),this.__tokens_length+=1},G.exports.TokenStream=v},function(G,v,x){var A=x(12).Pattern;function T(Z,ie){A.call(this,Z,ie),ie?this._line_regexp=this._input.get_regexp(ie._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}T.prototype=new A,T.prototype.__set_whitespace_patterns=function(Z,ie){Z+="\\t ",ie+="\\n\\r",this._match_pattern=this._input.get_regexp("["+Z+ie+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+ie+"]")},T.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var Z=this._input.read(this._match_pattern);if(Z===" ")this.whitespace_before_token=" ";else if(Z){var ie=this.__split(this._newline_regexp,Z);this.newline_count=ie.length-1,this.whitespace_before_token=ie[this.newline_count]}return Z},T.prototype.matching=function(Z,ie){var M=this._create();return M.__set_whitespace_patterns(Z,ie),M._update(),M},T.prototype._create=function(){return new T(this._input,this)},T.prototype.__split=function(Z,ie){Z.lastIndex=0;for(var M=0,U=[],W=Z.exec(ie);W;)U.push(ie.substring(M,W.index)),M=W.index+W[0].length,W=Z.exec(ie);return M<ie.length?U.push(ie.substring(M,ie.length)):U.push(""),U},G.exports.WhitespacePattern=T},function(G){function v(x,A){this._input=x,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}v.prototype.read=function(){var x=this._input.read(this._starting_pattern);return(!this._starting_pattern||x)&&(x+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),x},v.prototype.read_match=function(){return this._input.match(this._match_pattern)},v.prototype.until_after=function(x){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(x),A._update(),A},v.prototype.until=function(x){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(x),A._update(),A},v.prototype.starting_with=function(x){var A=this._create();return A._starting_pattern=this._input.get_regexp(x,!0),A._update(),A},v.prototype.matching=function(x){var A=this._create();return A._match_pattern=this._input.get_regexp(x,!0),A._update(),A},v.prototype._create=function(){return new v(this._input,this)},v.prototype._update=function(){},G.exports.Pattern=v},function(G){function v(x,A){x=typeof x=="string"?x:x.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(x+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(x+/\sbeautify\signore:end\s/.source+A,"g")}v.prototype.get_directives=function(x){if(!x.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var T=this.__directive_pattern.exec(x);T;)A[T[1]]=T[2],T=this.__directive_pattern.exec(x);return A},v.prototype.readIgnored=function(x){return x.readUntilAfter(this.__directives_end_ignore_pattern)},G.exports.Directives=v},function(G,v,x){var A=x(12).Pattern,T={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function Z(ie,M){A.call(this,ie,M),this.__template_pattern=null,this._disabled=Object.assign({},T),this._excluded=Object.assign({},T),M&&(this.__template_pattern=this._input.get_regexp(M.__template_pattern),this._excluded=Object.assign(this._excluded,M._excluded),this._disabled=Object.assign(this._disabled,M._disabled));var U=new A(ie);this.__patterns={handlebars_comment:U.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:U.starting_with(/{{{/).until_after(/}}}/),handlebars:U.starting_with(/{{/).until_after(/}}/),php:U.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:U.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:U.starting_with(/{%/).until_after(/%}/),django_value:U.starting_with(/{{/).until_after(/}}/),django_comment:U.starting_with(/{#/).until_after(/#}/),smarty:U.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:U.starting_with(/{\*/).until_after(/\*}/),smarty_literal:U.starting_with(/{literal}/).until_after(/{\/literal}/)}}Z.prototype=new A,Z.prototype._create=function(){return new Z(this._input,this)},Z.prototype._update=function(){this.__set_templated_pattern()},Z.prototype.disable=function(ie){var M=this._create();return M._disabled[ie]=!0,M._update(),M},Z.prototype.read_options=function(ie){var M=this._create();for(var U in T)M._disabled[U]=ie.templating.indexOf(U)===-1;return M._update(),M},Z.prototype.exclude=function(ie){var M=this._create();return M._excluded[ie]=!0,M._update(),M},Z.prototype.read=function(){var ie="";this._match_pattern?ie=this._input.read(this._starting_pattern):ie=this._input.read(this._starting_pattern,this.__template_pattern);for(var M=this._read_template();M;)this._match_pattern?M+=this._input.read(this._match_pattern):M+=this._input.readUntil(this.__template_pattern),ie+=M,M=this._read_template();return this._until_after&&(ie+=this._input.readUntilAfter(this._until_pattern)),ie},Z.prototype.__set_templated_pattern=function(){var ie=[];this._disabled.php||ie.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||ie.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||ie.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||ie.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(ie.push(this.__patterns.django._starting_pattern.source),ie.push(this.__patterns.django_value._starting_pattern.source),ie.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||ie.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&ie.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+ie.join("|")+")")},Z.prototype._read_template=function(){var ie="",M=this._input.peek();if(M==="<"){var U=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&U==="?"&&(ie=ie||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&U==="%"&&(ie=ie||this.__patterns.erb.read())}else M==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(ie=ie||this.__patterns.handlebars_comment.read(),ie=ie||this.__patterns.handlebars_unescaped.read(),ie=ie||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(ie=ie||this.__patterns.django_value.read()),this._excluded.django||(ie=ie||this.__patterns.django_comment.read(),ie=ie||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(ie=ie||this.__patterns.smarty_comment.read(),ie=ie||this.__patterns.smarty_literal.read(),ie=ie||this.__patterns.smarty.read()));return ie},G.exports.TemplatablePattern=Z},,,,function(G,v,x){var A=x(19).Beautifier,T=x(20).Options;function Z(ie,M,U,W){var le=new A(ie,M,U,W);return le.beautify()}G.exports=Z,G.exports.defaultOptions=function(){return new T}},function(G,v,x){var A=x(20).Options,T=x(2).Output,Z=x(21).Tokenizer,ie=x(21).TOKEN,M=/\r\n|[\r\n]/,U=/\r\n|[\r\n]/g,W=function(Q,O){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=Q.max_preserve_newlines,this.preserve_newlines=Q.preserve_newlines,this._output=new T(Q,O)};W.prototype.current_line_has_match=function(Q){return this._output.current_line.has_match(Q)},W.prototype.set_space_before_token=function(Q,O){this._output.space_before_token=Q,this._output.non_breaking_space=O},W.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},W.prototype.add_raw_token=function(Q){this._output.add_raw_token(Q)},W.prototype.print_preserved_newlines=function(Q){var O=0;Q.type!==ie.TEXT&&Q.previous.type!==ie.TEXT&&(O=Q.newlines?1:0),this.preserve_newlines&&(O=Q.newlines<this.max_preserve_newlines+1?Q.newlines:this.max_preserve_newlines+1);for(var K=0;K<O;K++)this.print_newline(K>0);return O!==0},W.prototype.traverse_whitespace=function(Q){return Q.whitespace_before||Q.newlines?(this.print_preserved_newlines(Q)||(this._output.space_before_token=!0),!0):!1},W.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},W.prototype.print_newline=function(Q){this._output.add_new_line(Q)},W.prototype.print_token=function(Q){Q.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(Q.text))},W.prototype.indent=function(){this.indent_level++},W.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},W.prototype.get_full_indent=function(Q){return Q=this.indent_level+(Q||0),Q<1?"":this._output.get_indent_string(Q)};var le=function(Q){for(var O=null,K=Q.next;K.type!==ie.EOF&&Q.closed!==K;){if(K.type===ie.ATTRIBUTE&&K.text==="type"){K.next&&K.next.type===ie.EQUALS&&K.next.next&&K.next.next.type===ie.VALUE&&(O=K.next.next.text);break}K=K.next}return O},k=function(Q,O){var K=null,I=null;return O.closed?(Q==="script"?K="text/javascript":Q==="style"&&(K="text/css"),K=le(O)||K,K.search("text/css")>-1?I="css":K.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?I="javascript":K.search(/(text|application|dojo)\/(x-)?(html)/)>-1?I="html":K.search(/test\/null/)>-1&&(I="null"),I):null};function Y(Q,O){return O.indexOf(Q)!==-1}function se(Q,O,K){this.parent=Q||null,this.tag=O?O.tag_name:"",this.indent_level=K||0,this.parser_token=O||null}function J(Q){this._printer=Q,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(Q){var O=new se(this._current_frame,Q,this._printer.indent_level);this._current_frame=O},J.prototype._try_pop_frame=function(Q){var O=null;return Q&&(O=Q.parser_token,this._printer.indent_level=Q.indent_level,this._current_frame=Q.parent),O},J.prototype._get_frame=function(Q,O){for(var K=this._current_frame;K&&Q.indexOf(K.tag)===-1;){if(O&&O.indexOf(K.tag)!==-1){K=null;break}K=K.parent}return K},J.prototype.try_pop=function(Q,O){var K=this._get_frame([Q],O);return this._try_pop_frame(K)},J.prototype.indent_to_tag=function(Q){var O=this._get_frame(Q);O&&(this._printer.indent_level=O.indent_level)};function ge(Q,O,K,I){this._source_text=Q||"",O=O||{},this._js_beautify=K,this._css_beautify=I,this._tag_stack=null;var X=new A(O,"html");this._options=X,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}ge.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Q=this._source_text,O=this._options.eol;this._options.eol==="auto"&&(O=`
|
|
`,Q&&M.test(Q)&&(O=Q.match(M)[0])),Q=Q.replace(U,`
|
|
`);var K=Q.match(/^[\t ]*/)[0],I={text:"",type:""},X=new Ce(this._options),z=new W(this._options,K),g=new Z(Q,this._options).tokenize();this._tag_stack=new J(z);for(var b=null,B=g.next();B.type!==ie.EOF;)B.type===ie.TAG_OPEN||B.type===ie.COMMENT?(b=this._handle_tag_open(z,B,X,I,g),X=b):B.type===ie.ATTRIBUTE||B.type===ie.EQUALS||B.type===ie.VALUE||B.type===ie.TEXT&&!X.tag_complete?b=this._handle_inside_tag(z,B,X,I):B.type===ie.TAG_CLOSE?b=this._handle_tag_close(z,B,X):B.type===ie.TEXT?b=this._handle_text(z,B,X):B.type===ie.CONTROL_FLOW_OPEN?b=this._handle_control_flow_open(z,B):B.type===ie.CONTROL_FLOW_CLOSE?b=this._handle_control_flow_close(z,B):z.add_raw_token(B),I=b,B=g.next();var F=z._output.get_code(O);return F},ge.prototype._handle_control_flow_open=function(Q,O){var K={text:O.text,type:O.type};return Q.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),O.newlines?Q.print_preserved_newlines(O):Q.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),Q.print_token(O),Q.indent(),K},ge.prototype._handle_control_flow_close=function(Q,O){var K={text:O.text,type:O.type};return Q.deindent(),O.newlines?Q.print_preserved_newlines(O):Q.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),Q.print_token(O),K},ge.prototype._handle_tag_close=function(Q,O,K){var I={text:O.text,type:O.type};return Q.alignment_size=0,K.tag_complete=!0,Q.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),K.is_unformatted?Q.add_raw_token(O):(K.tag_start_char==="<"&&(Q.set_space_before_token(O.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&K.has_wrapped_attrs&&Q.print_newline(!1)),Q.print_token(O)),K.indent_content&&!(K.is_unformatted||K.is_content_unformatted)&&(Q.indent(),K.indent_content=!1),!K.is_inline_element&&!(K.is_unformatted||K.is_content_unformatted)&&Q.set_wrap_point(),I},ge.prototype._handle_inside_tag=function(Q,O,K,I){var X=K.has_wrapped_attrs,z={text:O.text,type:O.type};return Q.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),K.is_unformatted?Q.add_raw_token(O):K.tag_start_char==="{"&&O.type===ie.TEXT?Q.print_preserved_newlines(O)?(O.newlines=0,Q.add_raw_token(O)):Q.print_token(O):(O.type===ie.ATTRIBUTE?Q.set_space_before_token(!0):(O.type===ie.EQUALS||O.type===ie.VALUE&&O.previous.type===ie.EQUALS)&&Q.set_space_before_token(!1),O.type===ie.ATTRIBUTE&&K.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(Q.traverse_whitespace(O),X=X||O.newlines!==0),this._is_wrap_attributes_force&&K.attr_count>=this._options.wrap_attributes_min_attrs&&(I.type!==ie.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(Q.print_newline(!1),X=!0)),Q.print_token(O),X=X||Q.previous_token_wrapped(),K.has_wrapped_attrs=X),z},ge.prototype._handle_text=function(Q,O,K){var I={text:O.text,type:"TK_CONTENT"};return K.custom_beautifier_name?this._print_custom_beatifier_text(Q,O,K):K.is_unformatted||K.is_content_unformatted?Q.add_raw_token(O):(Q.traverse_whitespace(O),Q.print_token(O)),I},ge.prototype._print_custom_beatifier_text=function(Q,O,K){var I=this;if(O.text!==""){var X=O.text,z,g=1,b="",B="";K.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?z=this._js_beautify:K.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?z=this._css_beautify:K.custom_beautifier_name==="html"&&(z=function(et,qe){var rt=new ge(et,qe,I._js_beautify,I._css_beautify);return rt.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-Q.indent_level);var F=Q.get_full_indent(g);if(X=X.replace(/\n[ \t]*$/,""),K.custom_beautifier_name!=="html"&&X[0]==="<"&&X.match(/^(<!--|<!\[CDATA\[)/)){var Se=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(X);if(!Se){Q.add_raw_token(O);return}b=F+Se[1]+`
|
|
`,X=Se[4],Se[5]&&(B=F+Se[5]),X=X.replace(/\n[ \t]*$/,""),(Se[2]||Se[3].indexOf(`
|
|
`)!==-1)&&(Se=Se[3].match(/[ \t]+$/),Se&&(O.whitespace_before=Se[0]))}if(X)if(z){var we=function(){this.eol=`
|
|
`};we.prototype=this._options.raw_options;var Ne=new we;X=z(F+X,Ne)}else{var je=O.whitespace_before;je&&(X=X.replace(new RegExp(`
|
|
(`+je+")?","g"),`
|
|
`)),X=F+X.replace(/\n/g,`
|
|
`+F)}b&&(X?X=b+X+`
|
|
`+B:X=b+B),Q.print_newline(!1),X&&(O.text=X,O.whitespace_before="",O.newlines=0,Q.add_raw_token(O),Q.print_newline(!0))}},ge.prototype._handle_tag_open=function(Q,O,K,I,X){var z=this._get_tag_open_token(O);if((K.is_unformatted||K.is_content_unformatted)&&!K.is_empty_element&&O.type===ie.TAG_OPEN&&!z.is_start_tag?(Q.add_raw_token(O),z.start_tag_token=this._tag_stack.try_pop(z.tag_name)):(Q.traverse_whitespace(O),this._set_tag_position(Q,O,z,K,I),z.is_inline_element||Q.set_wrap_point(),Q.print_token(O)),z.is_start_tag&&this._is_wrap_attributes_force){var g=0,b;do b=X.peek(g),b.type===ie.ATTRIBUTE&&(z.attr_count+=1),g+=1;while(b.type!==ie.EOF&&b.type!==ie.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(z.alignment_size=O.text.length+1),!z.tag_complete&&!z.is_unformatted&&(Q.alignment_size=z.alignment_size),z};var Ce=function(Q,O,K){if(this.parent=O||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="",!K)this.tag_complete=!0;else{var I;this.tag_start_char=K.text[0],this.text=K.text,this.tag_start_char==="<"?(I=K.text.match(/^<([^\s>]*)/),this.tag_check=I?I[1]:""):(I=K.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=I?I[1]:"",(K.text.startsWith("{{#>")||K.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&K.next!==null?this.tag_check=K.next.text.split(" ")[0]:this.tag_check=K.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),K.type===ie.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||K.closed&&K.closed.text==="/>";var X=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(X=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!Q.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(X)))}};ge.prototype._get_tag_open_token=function(Q){var O=new Ce(this._options,this._tag_stack.get_parser_token(),Q);return O.alignment_size=this._options.wrap_attributes_indent_size,O.is_end_tag=O.is_end_tag||Y(O.tag_check,this._options.void_elements),O.is_empty_element=O.tag_complete||O.is_start_tag&&O.is_end_tag,O.is_unformatted=!O.tag_complete&&Y(O.tag_check,this._options.unformatted),O.is_content_unformatted=!O.is_empty_element&&Y(O.tag_check,this._options.content_unformatted),O.is_inline_element=Y(O.tag_name,this._options.inline)||this._options.inline_custom_elements&&O.tag_name.includes("-")||O.tag_start_char==="{",O},ge.prototype._set_tag_position=function(Q,O,K,I,X){if(K.is_empty_element||(K.is_end_tag?K.start_tag_token=this._tag_stack.try_pop(K.tag_name):(this._do_optional_end_element(K)&&(K.is_inline_element||Q.print_newline(!1)),this._tag_stack.record_tag(K),(K.tag_name==="script"||K.tag_name==="style")&&!(K.is_unformatted||K.is_content_unformatted)&&(K.custom_beautifier_name=k(K.tag_check,O)))),Y(K.tag_check,this._options.extra_liners)&&(Q.print_newline(!1),Q._output.just_added_blankline()||Q.print_newline(!0)),K.is_empty_element){if(K.tag_start_char==="{"&&K.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),K.indent_content=!0;var z=Q.current_line_has_match(/{{#if/);z||Q.print_newline(!1)}K.tag_name==="!--"&&X.type===ie.TAG_CLOSE&&I.is_end_tag&&K.text.indexOf(`
|
|
`)===-1||(K.is_inline_element||K.is_unformatted||Q.print_newline(!1),this._calcluate_parent_multiline(Q,K))}else if(K.is_end_tag){var g=!1;g=K.start_tag_token&&K.start_tag_token.multiline_content,g=g||!K.is_inline_element&&!(I.is_inline_element||I.is_unformatted)&&!(X.type===ie.TAG_CLOSE&&K.start_tag_token===I)&&X.type!=="TK_CONTENT",(K.is_content_unformatted||K.is_unformatted)&&(g=!1),g&&Q.print_newline(!1)}else K.indent_content=!K.custom_beautifier_name,K.tag_start_char==="<"&&(K.tag_name==="html"?K.indent_content=this._options.indent_inner_html:K.tag_name==="head"?K.indent_content=this._options.indent_head_inner_html:K.tag_name==="body"&&(K.indent_content=this._options.indent_body_inner_html)),!(K.is_inline_element||K.is_unformatted)&&(X.type!=="TK_CONTENT"||K.is_content_unformatted)&&Q.print_newline(!1),this._calcluate_parent_multiline(Q,K)},ge.prototype._calcluate_parent_multiline=function(Q,O){O.parent&&Q._output.just_added_newline()&&!((O.is_inline_element||O.is_unformatted)&&O.parent.is_inline_element)&&(O.parent.multiline_content=!0)};var Te=["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"],Fe=["a","audio","del","ins","map","noscript","video"];ge.prototype._do_optional_end_element=function(Q){var O=null;if(!(Q.is_empty_element||!Q.is_start_tag||!Q.parent)){if(Q.tag_name==="body")O=O||this._tag_stack.try_pop("head");else if(Q.tag_name==="li")O=O||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(Q.tag_name==="dd"||Q.tag_name==="dt")O=O||this._tag_stack.try_pop("dt",["dl"]),O=O||this._tag_stack.try_pop("dd",["dl"]);else if(Q.parent.tag_name==="p"&&Te.indexOf(Q.tag_name)!==-1){var K=Q.parent.parent;(!K||Fe.indexOf(K.tag_name)===-1)&&(O=O||this._tag_stack.try_pop("p"))}else Q.tag_name==="rp"||Q.tag_name==="rt"?(O=O||this._tag_stack.try_pop("rt",["ruby","rtc"]),O=O||this._tag_stack.try_pop("rp",["ruby","rtc"])):Q.tag_name==="optgroup"?O=O||this._tag_stack.try_pop("optgroup",["select"]):Q.tag_name==="option"?O=O||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):Q.tag_name==="colgroup"?O=O||this._tag_stack.try_pop("caption",["table"]):Q.tag_name==="thead"?(O=O||this._tag_stack.try_pop("caption",["table"]),O=O||this._tag_stack.try_pop("colgroup",["table"])):Q.tag_name==="tbody"||Q.tag_name==="tfoot"?(O=O||this._tag_stack.try_pop("caption",["table"]),O=O||this._tag_stack.try_pop("colgroup",["table"]),O=O||this._tag_stack.try_pop("thead",["table"]),O=O||this._tag_stack.try_pop("tbody",["table"])):Q.tag_name==="tr"?(O=O||this._tag_stack.try_pop("caption",["table"]),O=O||this._tag_stack.try_pop("colgroup",["table"]),O=O||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(Q.tag_name==="th"||Q.tag_name==="td")&&(O=O||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),O=O||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return Q.parent=this._tag_stack.get_parser_token(),O}},G.exports.Beautifier=ge},function(G,v,x){var A=x(6).Options;function T(Z){A.call(this,Z,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}T.prototype=new A,G.exports.Options=T},function(G,v,x){var A=x(9).Tokenizer,T=x(9).TOKEN,Z=x(13).Directives,ie=x(14).TemplatablePattern,M=x(12).Pattern,U={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:T.START,RAW:T.RAW,EOF:T.EOF},W=new Z(/<\!--/,/-->/),le=function(k,Y){A.call(this,k,Y),this._current_tag_name="";var se=new ie(this._input).read_options(this._options),J=new M(this._input);if(this.__patterns={word:se.until(/[\n\r\t <]/),word_control_flow_close_excluded:se.until(/[\n\r\t <}]/),single_quote:se.until_after(/'/),double_quote:se.until_after(/"/),attribute:se.until(/[\n\r\t =>]|\/>/),element_name:se.until(/[\n\r\t >\/]/),angular_control_flow_start:J.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(/<!--/).until_after(/-->/),cdata:J.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:J.starting_with(/<!\[/).until_after(/]>/),processing:J.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 ge=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(ge).until_after(ge)}};le.prototype=new A,le.prototype._is_comment=function(k){return!1},le.prototype._is_opening=function(k){return k.type===U.TAG_OPEN||k.type===U.CONTROL_FLOW_OPEN},le.prototype._is_closing=function(k,Y){return k.type===U.TAG_CLOSE&&Y&&((k.text===">"||k.text==="/>")&&Y.text[0]==="<"||k.text==="}}"&&Y.text[0]==="{"&&Y.text[1]==="{")||k.type===U.CONTROL_FLOW_CLOSE&&k.text==="}"&&Y.text.endsWith("{")},le.prototype._reset=function(){this._current_tag_name=""},le.prototype._get_next_token=function(k,Y){var se=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(U.EOF,""):(se=se||this._read_open_handlebars(J,Y),se=se||this._read_attribute(J,k,Y),se=se||this._read_close(J,Y),se=se||this._read_script_and_style(J,k),se=se||this._read_control_flows(J,Y),se=se||this._read_raw_content(J,k,Y),se=se||this._read_content_word(J,Y),se=se||this._read_comment_or_cdata(J),se=se||this._read_processing(J),se=se||this._read_open(J,Y),se=se||this._create_token(U.UNKNOWN,this._input.next()),se)},le.prototype._read_comment_or_cdata=function(k){var Y=null,se=null,J=null;if(k==="<"){var ge=this._input.peek(1);ge==="!"&&(se=this.__patterns.comment.read(),se?(J=W.get_directives(se),J&&J.ignore==="start"&&(se+=W.readIgnored(this._input))):se=this.__patterns.cdata.read()),se&&(Y=this._create_token(U.COMMENT,se),Y.directives=J)}return Y},le.prototype._read_processing=function(k){var Y=null,se=null,J=null;if(k==="<"){var ge=this._input.peek(1);(ge==="!"||ge==="?")&&(se=this.__patterns.conditional_comment.read(),se=se||this.__patterns.processing.read()),se&&(Y=this._create_token(U.COMMENT,se),Y.directives=J)}return Y},le.prototype._read_open=function(k,Y){var se=null,J=null;return(!Y||Y.type===U.CONTROL_FLOW_OPEN)&&k==="<"&&(se=this._input.next(),this._input.peek()==="/"&&(se+=this._input.next()),se+=this.__patterns.element_name.read(),J=this._create_token(U.TAG_OPEN,se)),J},le.prototype._read_open_handlebars=function(k,Y){var se=null,J=null;return(!Y||Y.type===U.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&k==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(se=this.__patterns.handlebars_comment.read(),se=se||this.__patterns.handlebars.read(),J=this._create_token(U.COMMENT,se)):(se=this.__patterns.handlebars_open.read(),J=this._create_token(U.TAG_OPEN,se))),J},le.prototype._read_control_flows=function(k,Y){var se="",J=null;if(!this._options.templating.includes("angular"))return J;if(k==="@"){if(se=this.__patterns.angular_control_flow_start.read(),se==="")return J;for(var ge=se.endsWith("(")?1:0,Ce=0;!(se.endsWith("{")&&ge===Ce);){var Te=this._input.next();if(Te===null)break;Te==="("?ge++:Te===")"&&Ce++,se+=Te}J=this._create_token(U.CONTROL_FLOW_OPEN,se)}else k==="}"&&Y&&Y.type===U.CONTROL_FLOW_OPEN&&(se=this._input.next(),J=this._create_token(U.CONTROL_FLOW_CLOSE,se));return J},le.prototype._read_close=function(k,Y){var se=null,J=null;return Y&&Y.type===U.TAG_OPEN&&(Y.text[0]==="<"&&(k===">"||k==="/"&&this._input.peek(1)===">")?(se=this._input.next(),k==="/"&&(se+=this._input.next()),J=this._create_token(U.TAG_CLOSE,se)):Y.text[0]==="{"&&k==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(U.TAG_CLOSE,"}}"))),J},le.prototype._read_attribute=function(k,Y,se){var J=null,ge="";if(se&&se.text[0]==="<")if(k==="=")J=this._create_token(U.EQUALS,this._input.next());else if(k==='"'||k==="'"){var Ce=this._input.next();k==='"'?Ce+=this.__patterns.double_quote.read():Ce+=this.__patterns.single_quote.read(),J=this._create_token(U.VALUE,Ce)}else ge=this.__patterns.attribute.read(),ge&&(Y.type===U.EQUALS?J=this._create_token(U.VALUE,ge):J=this._create_token(U.ATTRIBUTE,ge));return J},le.prototype._is_content_unformatted=function(k){return this._options.void_elements.indexOf(k)===-1&&(this._options.content_unformatted.indexOf(k)!==-1||this._options.unformatted.indexOf(k)!==-1)},le.prototype._read_raw_content=function(k,Y,se){var J="";if(se&&se.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(Y.type===U.TAG_CLOSE&&Y.opened.text[0]==="<"&&Y.text[0]!=="/"){var ge=Y.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ge)&&(J=this._input.readUntil(new RegExp("</"+ge+"[\\n\\r\\t ]*?>","ig")))}return J?this._create_token(U.TEXT,J):null},le.prototype._read_script_and_style=function(k,Y){if(Y.type===U.TAG_CLOSE&&Y.opened.text[0]==="<"&&Y.text[0]!=="/"){var se=Y.opened.text.substr(1).toLowerCase();if(se==="script"||se==="style"){var J=this._read_comment_or_cdata(k);if(J)return J.type=U.TEXT,J;var ge=this._input.readUntil(new RegExp("</"+se+"[\\n\\r\\t ]*?>","ig"));if(ge)return this._create_token(U.TEXT,ge)}}return null},le.prototype._read_content_word=function(k,Y){var se="";return this._options.unformatted_content_delimiter&&k===this._options.unformatted_content_delimiter[0]&&(se=this.__patterns.unformatted_content_delimiter.read()),se||(se=Y&&Y.type===U.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),se?this._create_token(U.TEXT,se):null},G.exports.Tokenizer=le,G.exports.TOKEN=U}],re={};function o(G){var v=re[G];if(v!==void 0)return v.exports;var x=re[G]={exports:{}};return he[G](x,x.exports,o),x.exports}var ue=o(18);xe=ue})();var ve=xe;if(1)S=[E,E(58553),E(87804)],te=function(he){var re=E(58553),o=E(87804);return{html_beautify:function(ue,G){return ve(ue,G,re.js_beautify,o.css_beautify)}}}.apply(nt,S),te!==void 0&&(Kt.exports=te);else var $,p})()},58553:function(Kt,nt){var E,S;(function(){var te;(function(){"use strict";var ve=[function(re,o,ue){var G=ue(1).Beautifier,v=ue(5).Options;function x(A,T){var Z=new G(A,T);return Z.beautify()}re.exports=x,re.exports.defaultOptions=function(){return new v}},function(re,o,ue){var G=ue(2).Output,v=ue(3).Token,x=ue(4),A=ue(5).Options,T=ue(7).Tokenizer,Z=ue(7).line_starters,ie=ue(7).positionable_operators,M=ue(7).TOKEN;function U(b,B){return B.indexOf(b)!==-1}function W(b){return b.replace(/^\s+/g,"")}function le(b){for(var B={},F=0;F<b.length;F++)B[b[F].replace(/-/g,"_")]=b[F];return B}function k(b,B){return b&&b.type===M.RESERVED&&b.text===B}function Y(b,B){return b&&b.type===M.RESERVED&&U(b.text,B)}var se=["case","return","do","if","throw","else","await","break","continue","async"],J=["before-newline","after-newline","preserve-newline"],ge=le(J),Ce=[ge.before_newline,ge.preserve_newline],Te={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Fe(b,B){B.multiline_frame||B.mode===Te.ForInitializer||B.mode===Te.Conditional||b.remove_indent(B.start_line_index)}function Q(b){b=b.replace(x.allLineBreaks,`
|
|
`);for(var B=[],F=b.indexOf(`
|
|
`);F!==-1;)B.push(b.substring(0,F)),b=b.substring(F+1),F=b.indexOf(`
|
|
`);return b.length&&B.push(b),B}function O(b){return b===Te.ArrayLiteral}function K(b){return U(b,[Te.Expression,Te.ForInitializer,Te.Conditional])}function I(b,B){for(var F=0;F<b.length;F++){var Se=b[F].trim();if(Se.charAt(0)!==B)return!1}return!0}function X(b,B){for(var F=0,Se=b.length,we;F<Se;F++)if(we=b[F],we&&we.indexOf(B)!==0)return!1;return!0}function z(b,B){B=B||{},this._source_text=b||"",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(B)}z.prototype.create_flags=function(b,B){var F=0;b&&(F=b.indentation_level,!this._output.just_added_newline()&&b.line_indent_level>F&&(F=b.line_indent_level));var Se={mode:B,parent:b,last_token:b?b.last_token:new v(M.START_BLOCK,""),last_word:b?b.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:F,alignment:0,line_indent_level:b?b.line_indent_level:F,start_line_index:this._output.get_line_number(),ternary_depth:0};return Se},z.prototype._reset=function(b){var B=b.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new G(this._options,B),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Te.BlockStatement);var F=new T(b,this._options);return this._tokens=F.tokenize(),b},z.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b,B=this._reset(this._source_text),F=this._options.eol;this._options.eol==="auto"&&(F=`
|
|
`,B&&x.lineBreak.test(B||"")&&(F=B.match(x.lineBreak)[0]));for(var Se=this._tokens.next();Se;)this.handle_token(Se),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Se,Se=this._tokens.next();return b=this._output.get_code(F),b},z.prototype.handle_token=function(b,B){b.type===M.START_EXPR?this.handle_start_expr(b):b.type===M.END_EXPR?this.handle_end_expr(b):b.type===M.START_BLOCK?this.handle_start_block(b):b.type===M.END_BLOCK?this.handle_end_block(b):b.type===M.WORD?this.handle_word(b):b.type===M.RESERVED?this.handle_word(b):b.type===M.SEMICOLON?this.handle_semicolon(b):b.type===M.STRING?this.handle_string(b):b.type===M.EQUALS?this.handle_equals(b):b.type===M.OPERATOR?this.handle_operator(b):b.type===M.COMMA?this.handle_comma(b):b.type===M.BLOCK_COMMENT?this.handle_block_comment(b,B):b.type===M.COMMENT?this.handle_comment(b,B):b.type===M.DOT?this.handle_dot(b):b.type===M.EOF?this.handle_eof(b):b.type===M.UNKNOWN?this.handle_unknown(b,B):this.handle_unknown(b,B)},z.prototype.handle_whitespace_and_comments=function(b,B){var F=b.newlines,Se=this._options.keep_array_indentation&&O(this._flags.mode);if(b.comments_before)for(var we=b.comments_before.next();we;)this.handle_whitespace_and_comments(we,B),this.handle_token(we,B),we=b.comments_before.next();if(Se)for(var Ne=0;Ne<F;Ne+=1)this.print_newline(Ne>0,B);else if(this._options.max_preserve_newlines&&F>this._options.max_preserve_newlines&&(F=this._options.max_preserve_newlines),this._options.preserve_newlines&&F>1){this.print_newline(!1,B);for(var je=1;je<F;je+=1)this.print_newline(!0,B)}};var g=["async","break","continue","return","throw","yield"];z.prototype.allow_wrap_or_preserved_newline=function(b,B){if(B=B===void 0?!1:B,!this._output.just_added_newline()){var F=this._options.preserve_newlines&&b.newlines||B,Se=U(this._flags.last_token.text,ie)||U(b.text,ie);if(Se){var we=U(this._flags.last_token.text,ie)&&U(this._options.operator_position,Ce)||U(b.text,ie);F=F&&we}if(F)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Y(this._flags.last_token,g))return;this._output.set_wrap_point()}}},z.prototype.print_newline=function(b,B){if(!B&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==M.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var F=this._tokens.peek();this._flags.mode===Te.Statement&&!(this._flags.if_block&&k(F,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(b)&&(this._flags.multiline_frame=!0)},z.prototype.print_token_line_indentation=function(b){this._output.just_added_newline()&&(this._options.keep_array_indentation&&b.newlines&&(b.text==="["||O(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(b.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))},z.prototype.print_token=function(b){if(this._output.raw){this._output.add_raw_token(b);return}if(this._options.comma_first&&b.previous&&b.previous.type===M.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var B=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(B),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(b),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(b),this._output.non_breaking_space=!0,this._output.add_token(b.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},z.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},z.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))},z.prototype.set_mode=function(b){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,b),this._flags=this.create_flags(this._previous_flags,b),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},z.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Te.Statement&&Fe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},z.prototype.start_of_object_property=function(){return this._flags.parent.mode===Te.ObjectLiteral&&this._flags.mode===Te.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Y(this._flags.last_token,["get","set"]))},z.prototype.start_of_statement=function(b){var B=!1;return B=B||Y(this._flags.last_token,["var","let","const"])&&b.type===M.WORD,B=B||k(this._flags.last_token,"do"),B=B||!(this._flags.parent.mode===Te.ObjectLiteral&&this._flags.mode===Te.Statement)&&Y(this._flags.last_token,g)&&!b.newlines,B=B||k(this._flags.last_token,"else")&&!(k(b,"if")&&!b.comments_before),B=B||this._flags.last_token.type===M.END_EXPR&&(this._previous_flags.mode===Te.ForInitializer||this._previous_flags.mode===Te.Conditional),B=B||this._flags.last_token.type===M.WORD&&this._flags.mode===Te.BlockStatement&&!this._flags.in_case&&!(b.text==="--"||b.text==="++")&&this._last_last_text!=="function"&&b.type!==M.WORD&&b.type!==M.RESERVED,B=B||this._flags.mode===Te.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Y(this._flags.last_token,["get","set"])),B?(this.set_mode(Te.Statement),this.indent(),this.handle_whitespace_and_comments(b,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(b,Y(b,["do","for","if","while"])),!0):!1},z.prototype.handle_start_expr=function(b){this.start_of_statement(b)||this.handle_whitespace_and_comments(b);var B=Te.Expression;if(b.text==="["){if(this._flags.last_token.type===M.WORD||this._flags.last_token.text===")"){Y(this._flags.last_token,Z)&&(this._output.space_before_token=!0),this.print_token(b),this.set_mode(B),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}B=Te.ArrayLiteral,O(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()),U(this._flags.last_token.type,[M.START_EXPR,M.END_EXPR,M.WORD,M.OPERATOR,M.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===M.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,B=Te.ForInitializer):U(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,B=Te.Conditional):U(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&b.whitespace_before===""?this._output.space_before_token=!1:(U(this._flags.last_token.text,Z)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===M.EQUALS||this._flags.last_token.type===M.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(b);else if(this._flags.last_token.type===M.WORD){this._output.space_before_token=!1;var F=this._tokens.peek(-3);if(this._options.space_after_named_function&&F){var Se=this._tokens.peek(-4);Y(F,["async","function"])||F.text==="*"&&Y(Se,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Te.ObjectLiteral?(F.text==="{"||F.text===","||F.text==="*"&&(Se.text==="{"||Se.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(b);(this._flags.last_token.type===M.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(U(this._last_last_text,["function","yield"])||this._flags.mode===Te.ObjectLiteral&&U(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===M.START_BLOCK?this.print_newline():(this._flags.last_token.type===M.END_EXPR||this._flags.last_token.type===M.START_EXPR||this._flags.last_token.type===M.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===M.COMMA)&&this.allow_wrap_or_preserved_newline(b,b.newlines),this.print_token(b),this.set_mode(B),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},z.prototype.handle_end_expr=function(b){for(;this._flags.mode===Te.Statement;)this.restore_mode();this.handle_whitespace_and_comments(b),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(b,b.text==="]"&&O(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===M.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(b),this.restore_mode(),Fe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Te.Conditional&&(this._previous_flags.mode=Te.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},z.prototype.handle_start_block=function(b){this.handle_whitespace_and_comments(b);var B=this._tokens.peek(),F=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===M.END_EXPR?(this.set_mode(Te.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Te.BlockStatement):F&&(U(F.text,[":",","])&&U(B.type,[M.STRING,M.WORD,M.RESERVED])||U(B.text,["get","set","..."])&&U(F.type,[M.WORD,M.RESERVED]))?U(this._last_last_text,["class","interface"])&&!U(F.text,[":",","])?this.set_mode(Te.BlockStatement):this.set_mode(Te.ObjectLiteral):this._flags.last_token.type===M.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Te.BlockStatement):U(this._flags.last_token.type,[M.EQUALS,M.START_EXPR,M.COMMA,M.OPERATOR])||Y(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Te.ObjectLiteral):this.set_mode(Te.BlockStatement),this._flags.last_token&&Y(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Se=!B.comments_before&&B.text==="}",we=Se&&this._flags.last_word==="function"&&this._flags.last_token.type===M.END_EXPR;if(this._options.brace_preserve_inline){var Ne=0,je=null;this._flags.inline_frame=!0;do if(Ne+=1,je=this._tokens.peek(Ne-1),je.newlines){this._flags.inline_frame=!1;break}while(je.type!==M.EOF&&!(je.type===M.END_BLOCK&&je.opened===b))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&b.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==M.OPERATOR&&(we||this._flags.last_token.type===M.EQUALS||Y(this._flags.last_token,se)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(O(this._previous_flags.mode)&&(this._flags.last_token.type===M.START_EXPR||this._flags.last_token.type===M.COMMA)&&((this._flags.last_token.type===M.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===M.COMMA||this._flags.last_token.type===M.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(b),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==M.OPERATOR&&this._flags.last_token.type!==M.START_EXPR&&(U(this._flags.last_token.type,[M.START_BLOCK,M.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(b),this.indent(),!Se&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},z.prototype.handle_end_block=function(b){for(this.handle_whitespace_and_comments(b);this._flags.mode===Te.Statement;)this.restore_mode();var B=this._flags.last_token.type===M.START_BLOCK;this._flags.inline_frame&&!B?this._output.space_before_token=!0:this._options.brace_style==="expand"?B||this.print_newline():B||(O(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(b)},z.prototype.handle_word=function(b){if(b.type===M.RESERVED){if(U(b.text,["set","get"])&&this._flags.mode!==Te.ObjectLiteral)b.type=M.WORD;else if(b.text==="import"&&U(this._tokens.peek().text,["(","."]))b.type=M.WORD;else if(U(b.text,["as","from"])&&!this._flags.import_block)b.type=M.WORD;else if(this._flags.mode===Te.ObjectLiteral){var B=this._tokens.peek();B.text===":"&&(b.type=M.WORD)}}if(this.start_of_statement(b)?Y(this._flags.last_token,["var","let","const"])&&b.type===M.WORD&&(this._flags.declaration_statement=!0):b.newlines&&!K(this._flags.mode)&&(this._flags.last_token.type!==M.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==M.EQUALS&&(this._options.preserve_newlines||!Y(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(b),this.print_newline()):this.handle_whitespace_and_comments(b),this._flags.do_block&&!this._flags.do_while)if(k(b,"while")){this._output.space_before_token=!0,this.print_token(b),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&k(b,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Te.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Y(b,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(b),this._flags.in_case=!0;return}if((this._flags.last_token.type===M.COMMA||this._flags.last_token.type===M.START_EXPR||this._flags.last_token.type===M.EQUALS||this._flags.last_token.type===M.OPERATOR)&&!this.start_of_object_property()&&!(U(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Te.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(b),k(b,"function")){(U(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(U(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===M.OPERATOR))&&!this._output.just_added_blankline()&&!b.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===M.RESERVED||this._flags.last_token.type===M.WORD?Y(this._flags.last_token,["get","set","new","export"])||Y(this._flags.last_token,g)?this._output.space_before_token=!0:k(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===M.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(K(this._flags.mode)||O(this._flags.mode))||this.print_newline(),this.print_token(b),this._flags.last_word=b.text;return}var F="NONE";if(this._flags.last_token.type===M.END_BLOCK?this._previous_flags.inline_frame?F="SPACE":Y(b,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&b.newlines?F="NEWLINE":(F="SPACE",this._output.space_before_token=!0):F="NEWLINE":this._flags.last_token.type===M.SEMICOLON&&this._flags.mode===Te.BlockStatement?F="NEWLINE":this._flags.last_token.type===M.SEMICOLON&&K(this._flags.mode)?F="SPACE":this._flags.last_token.type===M.STRING?F="NEWLINE":this._flags.last_token.type===M.RESERVED||this._flags.last_token.type===M.WORD||this._flags.last_token.text==="*"&&(U(this._last_last_text,["function","yield"])||this._flags.mode===Te.ObjectLiteral&&U(this._last_last_text,["{",","]))?F="SPACE":this._flags.last_token.type===M.START_BLOCK?this._flags.inline_frame?F="SPACE":F="NEWLINE":this._flags.last_token.type===M.END_EXPR&&(this._output.space_before_token=!0,F="NEWLINE"),Y(b,Z)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?F="SPACE":F="NEWLINE"),Y(b,["else","catch","finally"]))if((!(this._flags.last_token.type===M.END_BLOCK&&this._previous_flags.mode===Te.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&b.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Se=this._output.current_line;Se.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else F==="NEWLINE"?Y(this._flags.last_token,se)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Y(b,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==M.END_EXPR?(this._flags.last_token.type!==M.START_EXPR||!Y(b,["var","let","const"]))&&this._flags.last_token.text!==":"&&(k(b,"if")&&k(b.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Y(b,Z)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():F==="SPACE"&&(this._output.space_before_token=!0);b.previous&&(b.previous.type===M.WORD||b.previous.type===M.RESERVED)&&(this._output.space_before_token=!0),this.print_token(b),this._flags.last_word=b.text,b.type===M.RESERVED&&(b.text==="do"?this._flags.do_block=!0:b.text==="if"?this._flags.if_block=!0:b.text==="import"?this._flags.import_block=!0:this._flags.import_block&&k(b,"from")&&(this._flags.import_block=!1))},z.prototype.handle_semicolon=function(b){this.start_of_statement(b)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(b);for(var B=this._tokens.peek();this._flags.mode===Te.Statement&&!(this._flags.if_block&&k(B,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(b)},z.prototype.handle_string=function(b){b.text.startsWith("`")&&b.newlines===0&&b.whitespace_before===""&&(b.previous.text===")"||this._flags.last_token.type===M.WORD)||(this.start_of_statement(b)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(b),this._flags.last_token.type===M.RESERVED||this._flags.last_token.type===M.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===M.COMMA||this._flags.last_token.type===M.START_EXPR||this._flags.last_token.type===M.EQUALS||this._flags.last_token.type===M.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(b):b.text.startsWith("`")&&this._flags.last_token.type===M.END_EXPR&&(b.previous.text==="]"||b.previous.text===")")&&b.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(b)},z.prototype.handle_equals=function(b){this.start_of_statement(b)||this.handle_whitespace_and_comments(b),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(b),this._output.space_before_token=!0},z.prototype.handle_comma=function(b){this.handle_whitespace_and_comments(b,!0),this.print_token(b),this._output.space_before_token=!0,this._flags.declaration_statement?(K(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(b)):this._flags.mode===Te.ObjectLiteral||this._flags.mode===Te.Statement&&this._flags.parent.mode===Te.ObjectLiteral?(this._flags.mode===Te.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(b)},z.prototype.handle_operator=function(b){var B=b.text==="*"&&(Y(this._flags.last_token,["function","yield"])||U(this._flags.last_token.type,[M.START_BLOCK,M.COMMA,M.END_BLOCK,M.SEMICOLON])),F=U(b.text,["-","+"])&&(U(this._flags.last_token.type,[M.START_BLOCK,M.START_EXPR,M.EQUALS,M.OPERATOR])||U(this._flags.last_token.text,Z)||this._flags.last_token.text===",");if(!this.start_of_statement(b)){var Se=!B;this.handle_whitespace_and_comments(b,Se)}if(b.text==="*"&&this._flags.last_token.type===M.DOT){this.print_token(b);return}if(b.text==="::"){this.print_token(b);return}if(U(b.text,["-","+"])&&this.start_of_object_property()){this.print_token(b);return}if(this._flags.last_token.type===M.OPERATOR&&U(this._options.operator_position,Ce)&&this.allow_wrap_or_preserved_newline(b),b.text===":"&&this._flags.in_case){this.print_token(b),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==M.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var we=!0,Ne=!0,je=!1;if(b.text===":"?this._flags.ternary_depth===0?we=!1:(this._flags.ternary_depth-=1,je=!0):b.text==="?"&&(this._flags.ternary_depth+=1),!F&&!B&&this._options.preserve_newlines&&U(b.text,ie)){var et=b.text===":",qe=et&&je,rt=et&&!je;switch(this._options.operator_position){case ge.before_newline:this._output.space_before_token=!rt,this.print_token(b),(!et||qe)&&this.allow_wrap_or_preserved_newline(b),this._output.space_before_token=!0;return;case ge.after_newline:this._output.space_before_token=!0,!et||qe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(b):this._output.space_before_token=!1,this.print_token(b),this._output.space_before_token=!0;return;case ge.preserve_newline:rt||this.allow_wrap_or_preserved_newline(b),we=!(this._output.just_added_newline()||rt),this._output.space_before_token=we,this.print_token(b),this._output.space_before_token=!0;return}}if(B){this.allow_wrap_or_preserved_newline(b),we=!1;var yt=this._tokens.peek();Ne=yt&&U(yt.type,[M.WORD,M.RESERVED])}else if(b.text==="...")this.allow_wrap_or_preserved_newline(b),we=this._flags.last_token.type===M.START_BLOCK,Ne=!1;else if(U(b.text,["--","++","!","~"])||F){if((this._flags.last_token.type===M.COMMA||this._flags.last_token.type===M.START_EXPR)&&this.allow_wrap_or_preserved_newline(b),we=!1,Ne=!1,b.newlines&&(b.text==="--"||b.text==="++"||b.text==="~")){var Dt=Y(this._flags.last_token,se)&&b.newlines;Dt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Dt,!0)}this._flags.last_token.text===";"&&K(this._flags.mode)&&(we=!0),this._flags.last_token.type===M.RESERVED?we=!0:this._flags.last_token.type===M.END_EXPR?we=!(this._flags.last_token.text==="]"&&(b.text==="--"||b.text==="++")):this._flags.last_token.type===M.OPERATOR&&(we=U(b.text,["--","-","++","+"])&&U(this._flags.last_token.text,["--","-","++","+"]),U(b.text,["+","-"])&&U(this._flags.last_token.text,["--","++"])&&(Ne=!0)),(this._flags.mode===Te.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Te.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||we,this.print_token(b),this._output.space_before_token=Ne},z.prototype.handle_block_comment=function(b,B){if(this._output.raw){this._output.add_raw_token(b),b.directives&&b.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(b.directives){this.print_newline(!1,B),this.print_token(b),b.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!x.newline.test(b.text)&&!b.newlines){this._output.space_before_token=!0,this.print_token(b),this._output.space_before_token=!0;return}else this.print_block_commment(b,B)},z.prototype.print_block_commment=function(b,B){var F=Q(b.text),Se,we=!1,Ne=!1,je=b.whitespace_before,et=je.length;if(this.print_newline(!1,B),this.print_token_line_indentation(b),this._output.add_token(F[0]),this.print_newline(!1,B),F.length>1){for(F=F.slice(1),we=I(F,"*"),Ne=X(F,je),we&&(this._flags.alignment=1),Se=0;Se<F.length;Se++)we?(this.print_token_line_indentation(b),this._output.add_token(W(F[Se]))):Ne&&F[Se]?(this.print_token_line_indentation(b),this._output.add_token(F[Se].substring(et))):(this._output.current_line.set_indent(-1),this._output.add_token(F[Se])),this.print_newline(!1,B);this._flags.alignment=0}},z.prototype.handle_comment=function(b,B){b.newlines?this.print_newline(!1,B):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(b),this.print_newline(!1,B)},z.prototype.handle_dot=function(b){this.start_of_statement(b)||this.handle_whitespace_and_comments(b,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),Y(this._flags.last_token,se)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(b,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(b)},z.prototype.handle_unknown=function(b,B){this.print_token(b),b.text[b.text.length-1]===`
|
|
`&&this.print_newline(!1,B)},z.prototype.handle_eof=function(b){for(;this._flags.mode===Te.Statement;)this.restore_mode();this.handle_whitespace_and_comments(b)},re.exports.Beautifier=z},function(re){function o(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var v=new o(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},o.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},o.prototype.has_match=function(v){for(var x=this.__items.length-1;x>=0;x--)if(this.__items[x].match(v))return!0;return!1},o.prototype.set_indent=function(v,x){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=x||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(v){this.__items.push(v);var x=v.lastIndexOf(`
|
|
`);x!==-1?this.__character_count=v.length-x:this.__character_count+=v.length},o.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function ue(v,x){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),x=x||"",v.indent_level>0&&(x=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=x,this.__base_string_length=x.length}ue.prototype.get_indent_size=function(v,x){var A=this.__base_string_length;return x=x||0,v<0&&(A=0),A+=v*this.__indent_size,A+=x,A},ue.prototype.get_indent_string=function(v,x){var A=this.__base_string;return x=x||0,v<0&&(v=0,A=""),x+=v*this.__indent_size,this.__ensure_cache(x),A+=this.__cache[x],A},ue.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},ue.prototype.__add_column=function(){var v=this.__cache.length,x=0,A="";this.__indent_size&&v>=this.__indent_size&&(x=Math.floor(v/this.__indent_size),v-=x*this.__indent_size,A=new Array(x+1).join(this.__indent_string)),v&&(A+=new Array(v+1).join(" ")),this.__cache.push(A)};function G(v,x){this.__indent_cache=new ue(v,x),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}G.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},G.prototype.get_line_number=function(){return this.__lines.length},G.prototype.get_indent_string=function(v,x){return this.__indent_cache.get_indent_string(v,x)},G.prototype.get_indent_size=function(v,x){return this.__indent_cache.get_indent_size(v,x)},G.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},G.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},G.prototype.get_code=function(v){this.trim(!0);var x=this.current_line.pop();x&&(x[x.length-1]===`
|
|
`&&(x=x.replace(/\n+$/g,"")),this.current_line.push(x)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
`);return v!==`
|
|
`&&(A=A.replace(/[\n]/g,v)),A},G.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},G.prototype.set_indent=function(v,x){return v=v||0,x=x||0,this.next_line.set_indent(v,x),this.__lines.length>1?(this.current_line.set_indent(v,x),!0):(this.current_line.set_indent(),!1)},G.prototype.add_raw_token=function(v){for(var x=0;x<v.newlines;x++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},G.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},G.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(" "))},G.prototype.remove_indent=function(v){for(var x=this.__lines.length;v<x;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},G.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&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},G.prototype.just_added_newline=function(){return this.current_line.is_empty()},G.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},G.prototype.ensure_empty_line_above=function(v,x){for(var A=this.__lines.length-2;A>=0;){var T=this.__lines[A];if(T.is_empty())break;if(T.item(0).indexOf(v)!==0&&T.item(-1)!==x){this.__lines.splice(A+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},re.exports.Output=G},function(re){function o(ue,G,v,x){this.type=ue,this.text=G,this.comments_before=null,this.newlines=v||0,this.whitespace_before=x||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}re.exports.Token=o},function(re,o){var ue="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",G="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\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",x="\\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",A="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",T="(?:"+A+"|["+ue+v+"])",Z="(?:"+A+"|["+G+v+x+"])*";o.identifier=new RegExp(T+Z,"g"),o.identifierStart=new RegExp(T),o.identifierMatch=new RegExp("(?:"+A+"|["+G+v+x+"])+");var ie=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|
|
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(re,o,ue){var G=ue(6).Options,v=["before-newline","after-newline","preserve-newline"];function x(A){G.call(this,A,"js");var T=this.raw_options.brace_style||null;T==="expand-strict"?this.raw_options.brace_style="expand":T==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var Z=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var ie=0;ie<Z.length;ie++)Z[ie]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=Z[ie];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",v),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}x.prototype=new G,re.exports.Options=x},function(re){function o(v,x){this.raw_options=ue(v,x),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(v,x){var A=this.raw_options[v],T=x||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(T=A.concat()):typeof A=="string"&&(T=A.split(/[^a-zA-Z0-9_\/\-]+/)),T},o.prototype._get_boolean=function(v,x){var A=this.raw_options[v],T=A===void 0?!!x:!!A;return T},o.prototype._get_characters=function(v,x){var A=this.raw_options[v],T=x||"";return typeof A=="string"&&(T=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),T},o.prototype._get_number=function(v,x){var A=this.raw_options[v];x=parseInt(x,10),isNaN(x)&&(x=0);var T=parseInt(A,10);return isNaN(T)&&(T=x),T},o.prototype._get_selection=function(v,x,A){var T=this._get_selection_list(v,x,A);if(T.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
`+x+`
|
|
You passed in: '`+this.raw_options[v]+"'");return T[0]},o.prototype._get_selection_list=function(v,x,A){if(!x||x.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[x[0]],!this._is_valid_selection(A,x))throw new Error("Invalid Default Value!");var T=this._get_array(v,A);if(!this._is_valid_selection(T,x))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
`+x+`
|
|
You passed in: '`+this.raw_options[v]+"'");return T},o.prototype._is_valid_selection=function(v,x){return v.length&&x.length&&!v.some(function(A){return x.indexOf(A)===-1})};function ue(v,x){var A={};v=G(v);var T;for(T in v)T!==x&&(A[T]=v[T]);if(x&&v[x])for(T in v[x])A[T]=v[x][T];return A}function G(v){var x={},A;for(A in v){var T=A.replace(/-/g,"_");x[T]=v[A]}return x}re.exports.Options=o,re.exports.normalizeOpts=G,re.exports.mergeOpts=ue},function(re,o,ue){var G=ue(8).InputScanner,v=ue(9).Tokenizer,x=ue(9).TOKEN,A=ue(13).Directives,T=ue(4),Z=ue(12).Pattern,ie=ue(14).TemplatablePattern;function M(I,X){return X.indexOf(I)!==-1}var U={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:x.START,RAW:x.RAW,EOF:x.EOF},W=new A(/\/\*/,/\*\//),le=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,k=/[0-9]/,Y=/[^\d\.]/,se=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),J=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";J=J.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),J="\\?\\.(?!\\d) "+J,J=J.replace(/ /g,"|");var ge=new RegExp(J),Ce="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Te=Ce.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Fe=new RegExp("^(?:"+Te.join("|")+")$"),Q,O=function(I,X){v.call(this,I,X),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var z=new Z(this._input),g=new ie(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(T.identifier).matching(T.identifierMatch),number:z.matching(le),punct:z.matching(ge),comment:z.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:z.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:z.matching(/<!--/),html_comment_end:z.matching(/-->/),include:z.starting_with(/#include/).until_after(T.lineBreak),shebang:z.starting_with(/#!/).until_after(T.lineBreak),xml:z.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};O.prototype=new v,O.prototype._is_comment=function(I){return I.type===U.COMMENT||I.type===U.BLOCK_COMMENT||I.type===U.UNKNOWN},O.prototype._is_opening=function(I){return I.type===U.START_BLOCK||I.type===U.START_EXPR},O.prototype._is_closing=function(I,X){return(I.type===U.END_BLOCK||I.type===U.END_EXPR)&&X&&(I.text==="]"&&X.text==="["||I.text===")"&&X.text==="("||I.text==="}"&&X.text==="{")},O.prototype._reset=function(){Q=!1},O.prototype._get_next_token=function(I,X){var z=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(U.EOF,""):(z=z||this._read_non_javascript(g),z=z||this._read_string(g),z=z||this._read_pair(g,this._input.peek(1)),z=z||this._read_word(I),z=z||this._read_singles(g),z=z||this._read_comment(g),z=z||this._read_regexp(g,I),z=z||this._read_xml(g,I),z=z||this._read_punctuation(),z=z||this._create_token(U.UNKNOWN,this._input.next()),z)},O.prototype._read_word=function(I){var X;if(X=this.__patterns.identifier.read(),X!=="")return X=X.replace(T.allLineBreaks,`
|
|
`),!(I.type===U.DOT||I.type===U.RESERVED&&(I.text==="set"||I.text==="get"))&&Fe.test(X)?(X==="in"||X==="of")&&(I.type===U.WORD||I.type===U.STRING)?this._create_token(U.OPERATOR,X):this._create_token(U.RESERVED,X):this._create_token(U.WORD,X);if(X=this.__patterns.number.read(),X!=="")return this._create_token(U.WORD,X)},O.prototype._read_singles=function(I){var X=null;return I==="("||I==="["?X=this._create_token(U.START_EXPR,I):I===")"||I==="]"?X=this._create_token(U.END_EXPR,I):I==="{"?X=this._create_token(U.START_BLOCK,I):I==="}"?X=this._create_token(U.END_BLOCK,I):I===";"?X=this._create_token(U.SEMICOLON,I):I==="."&&Y.test(this._input.peek(1))?X=this._create_token(U.DOT,I):I===","&&(X=this._create_token(U.COMMA,I)),X&&this._input.next(),X},O.prototype._read_pair=function(I,X){var z=null;return I==="#"&&X==="{"&&(z=this._create_token(U.START_BLOCK,I+X)),z&&(this._input.next(),this._input.next()),z},O.prototype._read_punctuation=function(){var I=this.__patterns.punct.read();if(I!=="")return I==="="?this._create_token(U.EQUALS,I):I==="?."?this._create_token(U.DOT,I):this._create_token(U.OPERATOR,I)},O.prototype._read_non_javascript=function(I){var X="";if(I==="#"){if(this._is_first_token()&&(X=this.__patterns.shebang.read(),X))return this._create_token(U.UNKNOWN,X.trim()+`
|
|
`);if(X=this.__patterns.include.read(),X)return this._create_token(U.UNKNOWN,X.trim()+`
|
|
`);I=this._input.next();var z="#";if(this._input.hasNext()&&this._input.testChar(k)){do I=this._input.next(),z+=I;while(this._input.hasNext()&&I!=="#"&&I!=="=");return I==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(z+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(z+="{}",this._input.next(),this._input.next())),this._create_token(U.WORD,z)}this._input.back()}else if(I==="<"&&this._is_first_token()){if(X=this.__patterns.html_comment_start.read(),X){for(;this._input.hasNext()&&!this._input.testChar(T.newline);)X+=this._input.next();return Q=!0,this._create_token(U.COMMENT,X)}}else if(Q&&I==="-"&&(X=this.__patterns.html_comment_end.read(),X))return Q=!1,this._create_token(U.COMMENT,X);return null},O.prototype._read_comment=function(I){var X=null;if(I==="/"){var z="";if(this._input.peek(1)==="*"){z=this.__patterns.block_comment.read();var g=W.get_directives(z);g&&g.ignore==="start"&&(z+=W.readIgnored(this._input)),z=z.replace(T.allLineBreaks,`
|
|
`),X=this._create_token(U.BLOCK_COMMENT,z),X.directives=g}else this._input.peek(1)==="/"&&(z=this.__patterns.comment.read(),X=this._create_token(U.COMMENT,z))}return X},O.prototype._read_string=function(I){if(I==="`"||I==="'"||I==='"'){var X=this._input.next();return this.has_char_escapes=!1,I==="`"?X+=this._read_string_recursive("`",!0,"${"):X+=this._read_string_recursive(I),this.has_char_escapes&&this._options.unescape_strings&&(X=K(X)),this._input.peek()===I&&(X+=this._input.next()),X=X.replace(T.allLineBreaks,`
|
|
`),this._create_token(U.STRING,X)}return null},O.prototype._allow_regexp_or_xml=function(I){return I.type===U.RESERVED&&M(I.text,["return","case","throw","else","do","typeof","yield"])||I.type===U.END_EXPR&&I.text===")"&&I.opened.previous.type===U.RESERVED&&M(I.opened.previous.text,["if","while","for"])||M(I.type,[U.COMMENT,U.START_EXPR,U.START_BLOCK,U.START,U.END_BLOCK,U.OPERATOR,U.EQUALS,U.EOF,U.SEMICOLON,U.COMMA])},O.prototype._read_regexp=function(I,X){if(I==="/"&&this._allow_regexp_or_xml(X)){for(var z=this._input.next(),g=!1,b=!1;this._input.hasNext()&&(g||b||this._input.peek()!==I)&&!this._input.testChar(T.newline);)z+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?b=!0:this._input.peek()==="]"&&(b=!1)),this._input.next();return this._input.peek()===I&&(z+=this._input.next(),z+=this._input.read(T.identifier)),this._create_token(U.STRING,z)}return null},O.prototype._read_xml=function(I,X){if(this._options.e4x&&I==="<"&&this._allow_regexp_or_xml(X)){var z="",g=this.__patterns.xml.read_match();if(g){for(var b=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=b.indexOf("{")===0,F=0;g;){var Se=!!g[1],we=g[2],Ne=!!g[g.length-1]||we.slice(0,8)==="![CDATA[";if(!Ne&&(we===b||B&&we.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Se?--F:++F),z+=g[0],F<=0)break;g=this.__patterns.xml.read_match()}return g||(z+=this._input.match(/[\s\S]*/g)[0]),z=z.replace(T.allLineBreaks,`
|
|
`),this._create_token(U.STRING,z)}}return null};function K(I){for(var X="",z=0,g=new G(I),b=null;g.hasNext();)if(b=g.match(/([\s]|[^\\]|\\\\)+/g),b&&(X+=b[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")b=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")b=g.match(/u([0-9A-Fa-f]{4})/g),b||(b=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{X+="\\",g.hasNext()&&(X+=g.next());continue}if(!b||(z=parseInt(b[1],16),z>126&&z<=255&&b[0].indexOf("x")===0))return I;z>=0&&z<32||z>1114111?X+="\\"+b[0]:z===34||z===39||z===92?X+="\\"+String.fromCharCode(z):X+=String.fromCharCode(z)}return X}O.prototype._read_string_recursive=function(I,X,z){var g,b;I==="'"?b=this.__patterns.single_quote:I==='"'?b=this.__patterns.double_quote:I==="`"?b=this.__patterns.template_text:I==="}"&&(b=this.__patterns.template_expression);for(var B=b.read(),F="";this._input.hasNext();){if(F=this._input.next(),F===I||!X&&T.newline.test(F)){this._input.back();break}else F==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),F+=this._input.next()):z&&(z==="${"&&F==="$"&&this._input.peek()==="{"&&(F+=this._input.next()),z===F&&(I==="`"?F+=this._read_string_recursive("}",X,"`"):F+=this._read_string_recursive("`",X,"${"),this._input.hasNext()&&(F+=this._input.next())));F+=b.read(),B+=F}return B},re.exports.Tokenizer=O,re.exports.TOKEN=U,re.exports.positionable_operators=se.slice(),re.exports.line_starters=Ce.slice()},function(re){var o=RegExp.prototype.hasOwnProperty("sticky");function ue(G){this.__input=G||"",this.__input_length=this.__input.length,this.__position=0}ue.prototype.restart=function(){this.__position=0},ue.prototype.back=function(){this.__position>0&&(this.__position-=1)},ue.prototype.hasNext=function(){return this.__position<this.__input_length},ue.prototype.next=function(){var G=null;return this.hasNext()&&(G=this.__input.charAt(this.__position),this.__position+=1),G},ue.prototype.peek=function(G){var v=null;return G=G||0,G+=this.__position,G>=0&&G<this.__input_length&&(v=this.__input.charAt(G)),v},ue.prototype.__match=function(G,v){G.lastIndex=v;var x=G.exec(this.__input);return x&&!(o&&G.sticky)&&x.index!==v&&(x=null),x},ue.prototype.test=function(G,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(G,v):!1},ue.prototype.testChar=function(G,v){var x=this.peek(v);return G.lastIndex=0,x!==null&&G.test(x)},ue.prototype.match=function(G){var v=this.__match(G,this.__position);return v?this.__position+=v[0].length:v=null,v},ue.prototype.read=function(G,v,x){var A="",T;return G&&(T=this.match(G),T&&(A+=T[0])),v&&(T||!G)&&(A+=this.readUntil(v,x)),A},ue.prototype.readUntil=function(G,v){var x="",A=this.__position;G.lastIndex=this.__position;var T=G.exec(this.__input);return T?(A=T.index,v&&(A+=T[0].length)):A=this.__input_length,x=this.__input.substring(this.__position,A),this.__position=A,x},ue.prototype.readUntilAfter=function(G){return this.readUntil(G,!0)},ue.prototype.get_regexp=function(G,v){var x=null,A="g";return v&&o&&(A="y"),typeof G=="string"&&G!==""?x=new RegExp(G,A):G&&(x=new RegExp(G.source,A)),x},ue.prototype.get_literal_regexp=function(G){return RegExp(G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},ue.prototype.peekUntilAfter=function(G){var v=this.__position,x=this.readUntilAfter(G);return this.__position=v,x},ue.prototype.lookBack=function(G){var v=this.__position-1;return v>=G.length&&this.__input.substring(v-G.length,v).toLowerCase()===G},re.exports.InputScanner=ue},function(re,o,ue){var G=ue(8).InputScanner,v=ue(3).Token,x=ue(10).TokenStream,A=ue(11).WhitespacePattern,T={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Z=function(ie,M){this._input=new G(ie),this._options=M||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new A(this._input)};Z.prototype.tokenize=function(){this._input.restart(),this.__tokens=new x,this._reset();for(var ie,M=new v(T.START,""),U=null,W=[],le=new x;M.type!==T.EOF;){for(ie=this._get_next_token(M,U);this._is_comment(ie);)le.add(ie),ie=this._get_next_token(M,U);le.isEmpty()||(ie.comments_before=le,le=new x),ie.parent=U,this._is_opening(ie)?(W.push(U),U=ie):U&&this._is_closing(ie,U)&&(ie.opened=U,U.closed=ie,U=W.pop(),ie.parent=U),ie.previous=M,M.next=ie,this.__tokens.add(ie),M=ie}return this.__tokens},Z.prototype._is_first_token=function(){return this.__tokens.isEmpty()},Z.prototype._reset=function(){},Z.prototype._get_next_token=function(ie,M){this._readWhitespace();var U=this._input.read(/.+/g);return U?this._create_token(T.RAW,U):this._create_token(T.EOF,"")},Z.prototype._is_comment=function(ie){return!1},Z.prototype._is_opening=function(ie){return!1},Z.prototype._is_closing=function(ie,M){return!1},Z.prototype._create_token=function(ie,M){var U=new v(ie,M,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return U},Z.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},re.exports.Tokenizer=Z,re.exports.TOKEN=T},function(re){function o(ue){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=ue}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var ue=null;return this.hasNext()&&(ue=this.__tokens[this.__position],this.__position+=1),ue},o.prototype.peek=function(ue){var G=null;return ue=ue||0,ue+=this.__position,ue>=0&&ue<this.__tokens_length&&(G=this.__tokens[ue]),G},o.prototype.add=function(ue){this.__parent_token&&(ue.parent=this.__parent_token),this.__tokens.push(ue),this.__tokens_length+=1},re.exports.TokenStream=o},function(re,o,ue){var G=ue(12).Pattern;function v(x,A){G.call(this,x,A),A?this._line_regexp=this._input.get_regexp(A._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new G,v.prototype.__set_whitespace_patterns=function(x,A){x+="\\t ",A+="\\n\\r",this._match_pattern=this._input.get_regexp("["+x+A+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+A+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var x=this._input.read(this._match_pattern);if(x===" ")this.whitespace_before_token=" ";else if(x){var A=this.__split(this._newline_regexp,x);this.newline_count=A.length-1,this.whitespace_before_token=A[this.newline_count]}return x},v.prototype.matching=function(x,A){var T=this._create();return T.__set_whitespace_patterns(x,A),T._update(),T},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(x,A){x.lastIndex=0;for(var T=0,Z=[],ie=x.exec(A);ie;)Z.push(A.substring(T,ie.index)),T=ie.index+ie[0].length,ie=x.exec(A);return T<A.length?Z.push(A.substring(T,A.length)):Z.push(""),Z},re.exports.WhitespacePattern=v},function(re){function o(ue,G){this._input=ue,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,G&&(this._starting_pattern=this._input.get_regexp(G._starting_pattern,!0),this._match_pattern=this._input.get_regexp(G._match_pattern,!0),this._until_pattern=this._input.get_regexp(G._until_pattern),this._until_after=G._until_after)}o.prototype.read=function(){var ue=this._input.read(this._starting_pattern);return(!this._starting_pattern||ue)&&(ue+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),ue},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(ue){var G=this._create();return G._until_after=!0,G._until_pattern=this._input.get_regexp(ue),G._update(),G},o.prototype.until=function(ue){var G=this._create();return G._until_after=!1,G._until_pattern=this._input.get_regexp(ue),G._update(),G},o.prototype.starting_with=function(ue){var G=this._create();return G._starting_pattern=this._input.get_regexp(ue,!0),G._update(),G},o.prototype.matching=function(ue){var G=this._create();return G._match_pattern=this._input.get_regexp(ue,!0),G._update(),G},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},re.exports.Pattern=o},function(re){function o(ue,G){ue=typeof ue=="string"?ue:ue.source,G=typeof G=="string"?G:G.source,this.__directives_block_pattern=new RegExp(ue+/ beautify( \w+[:]\w+)+ /.source+G,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(ue+/\sbeautify\signore:end\s/.source+G,"g")}o.prototype.get_directives=function(ue){if(!ue.match(this.__directives_block_pattern))return null;var G={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(ue);v;)G[v[1]]=v[2],v=this.__directive_pattern.exec(ue);return G},o.prototype.readIgnored=function(ue){return ue.readUntilAfter(this.__directives_end_ignore_pattern)},re.exports.Directives=o},function(re,o,ue){var G=ue(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function x(A,T){G.call(this,A,T),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),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 Z=new G(A);this.__patterns={handlebars_comment:Z.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:Z.starting_with(/{{{/).until_after(/}}}/),handlebars:Z.starting_with(/{{/).until_after(/}}/),php:Z.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:Z.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:Z.starting_with(/{%/).until_after(/%}/),django_value:Z.starting_with(/{{/).until_after(/}}/),django_comment:Z.starting_with(/{#/).until_after(/#}/),smarty:Z.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:Z.starting_with(/{\*/).until_after(/\*}/),smarty_literal:Z.starting_with(/{literal}/).until_after(/{\/literal}/)}}x.prototype=new G,x.prototype._create=function(){return new x(this._input,this)},x.prototype._update=function(){this.__set_templated_pattern()},x.prototype.disable=function(A){var T=this._create();return T._disabled[A]=!0,T._update(),T},x.prototype.read_options=function(A){var T=this._create();for(var Z in v)T._disabled[Z]=A.templating.indexOf(Z)===-1;return T._update(),T},x.prototype.exclude=function(A){var T=this._create();return T._excluded[A]=!0,T._update(),T},x.prototype.read=function(){var A="";this._match_pattern?A=this._input.read(this._starting_pattern):A=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),A+=T,T=this._read_template();return this._until_after&&(A+=this._input.readUntilAfter(this._until_pattern)),A},x.prototype.__set_templated_pattern=function(){var A=[];this._disabled.php||A.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||A.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(A.push(this.__patterns.django._starting_pattern.source),A.push(this.__patterns.django_value._starting_pattern.source),A.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||A.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&A.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+A.join("|")+")")},x.prototype._read_template=function(){var A="",T=this._input.peek();if(T==="<"){var Z=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&Z==="?"&&(A=A||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&Z==="%"&&(A=A||this.__patterns.erb.read())}else T==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(A=A||this.__patterns.handlebars_comment.read(),A=A||this.__patterns.handlebars_unescaped.read(),A=A||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(A=A||this.__patterns.django_value.read()),this._excluded.django||(A=A||this.__patterns.django_comment.read(),A=A||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(A=A||this.__patterns.smarty_comment.read(),A=A||this.__patterns.smarty_literal.read(),A=A||this.__patterns.smarty.read()));return A},re.exports.TemplatablePattern=x}],$={};function p(re){var o=$[re];if(o!==void 0)return o.exports;var ue=$[re]={exports:{}};return ve[re](ue,ue.exports,p),ue.exports}var he=p(0);te=he})();var xe=te;E=[],S=function(){return{js_beautify:xe}}.apply(nt,E),S!==void 0&&(Kt.exports=S)})()},15342:function(Kt){(function(E,S){Kt.exports=S()})(typeof self!="undefined"?self:this,function(){return function(nt){var E={};function S(te){if(E[te])return E[te].exports;var xe=E[te]={i:te,l:!1,exports:{}};return nt[te].call(xe.exports,xe,xe.exports,S),xe.l=!0,xe.exports}return S.m=nt,S.c=E,S.d=function(te,xe,ve){S.o(te,xe)||Object.defineProperty(te,xe,{enumerable:!0,get:ve})},S.r=function(te){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(te,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(te,"__esModule",{value:!0})},S.t=function(te,xe){if(xe&1&&(te=S(te)),xe&8||xe&4&&typeof te=="object"&&te&&te.__esModule)return te;var ve=Object.create(null);if(S.r(ve),Object.defineProperty(ve,"default",{enumerable:!0,value:te}),xe&2&&typeof te!="string")for(var $ in te)S.d(ve,$,function(p){return te[p]}.bind(null,$));return ve},S.n=function(te){var xe=te&&te.__esModule?function(){return te.default}:function(){return te};return S.d(xe,"a",xe),xe},S.o=function(te,xe){return Object.prototype.hasOwnProperty.call(te,xe)},S.p="",S(S.s=1)}([function(nt,E,S){},function(nt,E,S){"use strict";S.r(E);var te=S(0),xe=function(){function V(u,h,f){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=u,this.start=h,this.end=f}return V.range=function(h,f){return f?!h||!h.loc||!f.loc||h.loc.lexer!==f.loc.lexer?null:new V(h.loc.lexer,h.loc.start,f.loc.end):h&&h.loc},V}(),ve=function(){function V(h,f){this.text=void 0,this.loc=void 0,this.text=h,this.loc=f}var u=V.prototype;return u.range=function(f,_){return new V(_,xe.range(this,f))},V}(),$=function V(u,h){this.position=void 0;var f="KaTeX parse error: "+u,_,D=h&&h.loc;if(D&&D.start<=D.end){var H=D.lexer.input;_=D.start;var be=D.end;_===H.length?f+=" at end of input: ":f+=" at position "+(_+1)+": ";var Le=H.slice(_,be).replace(/[^]/g,"$&\u0332"),$e;_>15?$e="\u2026"+H.slice(_-15,_):$e=H.slice(0,_);var st;be+15<H.length?st=H.slice(be,be+15)+"\u2026":st=H.slice(be),f+=$e+Le+st}var mt=new Error(f);return mt.name="ParseError",mt.__proto__=V.prototype,mt.position=_,mt};$.prototype.__proto__=Error.prototype;var p=$,he=function(u,h){return u.indexOf(h)!==-1},re=function(u,h){return u===void 0?h:u},o=/([A-Z])/g,ue=function(u){return u.replace(o,"-$1").toLowerCase()},G={"&":"&",">":">","<":"<",'"':""","'":"'"},v=/[&><"']/g;function x(V){return String(V).replace(v,function(u){return G[u]})}var A=function V(u){return u.type==="ordgroup"||u.type==="color"?u.body.length===1?V(u.body[0]):u:u.type==="font"?V(u.body):u},T=function(u){var h=A(u);return h.type==="mathord"||h.type==="textord"||h.type==="atom"},Z=function(u){if(!u)throw new Error("Expected non-null, but got "+String(u));return u},ie=function(u){var h=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(u);return h!=null?h[1]:"_relative"},M={contains:he,deflt:re,escape:x,hyphenate:ue,getBaseElem:A,isCharacterBox:T,protocolFromUrl:ie},U=function(){function V(h){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,h=h||{},this.displayMode=M.deflt(h.displayMode,!1),this.output=M.deflt(h.output,"htmlAndMathml"),this.leqno=M.deflt(h.leqno,!1),this.fleqn=M.deflt(h.fleqn,!1),this.throwOnError=M.deflt(h.throwOnError,!0),this.errorColor=M.deflt(h.errorColor,"#cc0000"),this.macros=h.macros||{},this.minRuleThickness=Math.max(0,M.deflt(h.minRuleThickness,0)),this.colorIsTextColor=M.deflt(h.colorIsTextColor,!1),this.strict=M.deflt(h.strict,"warn"),this.trust=M.deflt(h.trust,!1),this.maxSize=Math.max(0,M.deflt(h.maxSize,1/0)),this.maxExpand=Math.max(0,M.deflt(h.maxExpand,1e3))}var u=V.prototype;return u.reportNonstrict=function(f,_,D){var H=this.strict;if(typeof H=="function"&&(H=H(f,_,D)),!(!H||H==="ignore")){if(H===!0||H==="error")throw new p("LaTeX-incompatible input and strict mode is set to 'error': "+(_+" ["+f+"]"),D);H==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(_+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+_+" ["+f+"]"))}},u.useStrictBehavior=function(f,_,D){var H=this.strict;if(typeof H=="function")try{H=H(f,_,D)}catch(be){H="error"}return!H||H==="ignore"?!1:H===!0||H==="error"?!0:H==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(_+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+_+" ["+f+"]")),!1)},u.isTrusted=function(f){f.url&&!f.protocol&&(f.protocol=M.protocolFromUrl(f.url));var _=typeof this.trust=="function"?this.trust(f):this.trust;return!!_},V}(),W=function(){function V(h,f,_){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=h,this.size=f,this.cramped=_}var u=V.prototype;return u.sup=function(){return Fe[Q[this.id]]},u.sub=function(){return Fe[O[this.id]]},u.fracNum=function(){return Fe[K[this.id]]},u.fracDen=function(){return Fe[I[this.id]]},u.cramp=function(){return Fe[X[this.id]]},u.text=function(){return Fe[z[this.id]]},u.isTight=function(){return this.size>=2},V}(),le=0,k=1,Y=2,se=3,J=4,ge=5,Ce=6,Te=7,Fe=[new W(le,0,!1),new W(k,0,!0),new W(Y,1,!1),new W(se,1,!0),new W(J,2,!1),new W(ge,2,!0),new W(Ce,3,!1),new W(Te,3,!0)],Q=[J,ge,J,ge,Ce,Te,Ce,Te],O=[ge,ge,ge,ge,Te,Te,Te,Te],K=[Y,se,J,ge,Ce,Te,Ce,Te],I=[se,se,ge,ge,Te,Te,Te,Te],X=[k,k,se,se,ge,ge,Te,Te],z=[le,k,Y,se,Y,se,Y,se],g={DISPLAY:Fe[le],TEXT:Fe[Y],SCRIPT:Fe[J],SCRIPTSCRIPT:Fe[Ce]},b=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function B(V){for(var u=0;u<b.length;u++)for(var h=b[u],f=0;f<h.blocks.length;f++){var _=h.blocks[f];if(V>=_[0]&&V<=_[1])return h.name}return null}var F=[];b.forEach(function(V){return V.blocks.forEach(function(u){return F.push.apply(F,u)})});function Se(V){for(var u=0;u<F.length;u+=2)if(V>=F[u]&&V<=F[u+1])return!0;return!1}var we=80,Ne=function(u,h){return"M95,"+(622+u+h)+`
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
l`+u/2.075+" -"+u+`
|
|
c5.3,-9.3,12,-14,20,-14
|
|
H400000v`+(40+u)+`H845.2724
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
M`+(834+u)+" "+h+"h400000v"+(40+u)+"h-400000z"},je=function(u,h){return"M263,"+(601+u+h)+`c0.7,0,18,39.7,52,119
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
l`+u/2.084+" -"+u+`
|
|
c4.7,-7.3,11,-11,19,-11
|
|
H40000v`+(40+u)+`H1012.3
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
M`+(1001+u)+" "+h+"h400000v"+(40+u)+"h-400000z"},et=function(u,h){return"M983 "+(10+u+h)+`
|
|
l`+u/3.13+" -"+u+`
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+u)+`
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
M`+(1001+u)+" "+h+"h400000v"+(40+u)+"h-400000z"},qe=function(u,h){return"M424,"+(2398+u+h)+`
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
l`+u/4.223+" -"+u+`c4,-6.7,10,-10,18,-10 H400000
|
|
v`+(40+u)+`H1014.6
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
c-2,6,-10,9,-24,9
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+u)+" "+h+`
|
|
h400000v`+(40+u)+"h-400000z"},rt=function(u,h){return"M473,"+(2713+u+h)+`
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+u/5.298+" -"+u+`
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+u)+`H1017.7
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
606zM`+(1001+u)+" "+h+"h400000v"+(40+u)+"H1017.7z"},yt=function(u,h,f){var _=f-54-h-u;return"M702 "+(u+h)+"H400000"+(40+u)+`
|
|
H742v`+_+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
219 661 l218 661zM702 `+h+"H400000v"+(40+u)+"H742z"},Dt=function(u,h,f){h=1e3*h;var _="";switch(u){case"sqrtMain":_=Ne(h,we);break;case"sqrtSize1":_=je(h,we);break;case"sqrtSize2":_=et(h,we);break;case"sqrtSize3":_=qe(h,we);break;case"sqrtSize4":_=rt(h,we);break;case"sqrtTall":_=yt(h,we,f)}return _},pt={doubleleftarrow:`M262 157
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},vt=function(){function V(h){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=h,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var u=V.prototype;return u.hasClass=function(f){return M.contains(this.classes,f)},u.toNode=function(){for(var f=document.createDocumentFragment(),_=0;_<this.children.length;_++)f.appendChild(this.children[_].toNode());return f},u.toMarkup=function(){for(var f="",_=0;_<this.children.length;_++)f+=this.children[_].toMarkup();return f},u.toText=function(){var f=function(D){return D.toText()};return this.children.map(f).join("")},V}(),Ot=function(u){return u.filter(function(h){return h}).join(" ")},Bt=function(u,h,f){if(this.classes=u||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=f||{},h){h.style.isTight()&&this.classes.push("mtight");var _=h.getColor();_&&(this.style.color=_)}},me=function(u){var h=document.createElement(u);h.className=Ot(this.classes);for(var f in this.style)this.style.hasOwnProperty(f)&&(h.style[f]=this.style[f]);for(var _ in this.attributes)this.attributes.hasOwnProperty(_)&&h.setAttribute(_,this.attributes[_]);for(var D=0;D<this.children.length;D++)h.appendChild(this.children[D].toNode());return h},ce=function(u){var h="<"+u;this.classes.length&&(h+=' class="'+M.escape(Ot(this.classes))+'"');var f="";for(var _ in this.style)this.style.hasOwnProperty(_)&&(f+=M.hyphenate(_)+":"+this.style[_]+";");f&&(h+=' style="'+M.escape(f)+'"');for(var D in this.attributes)this.attributes.hasOwnProperty(D)&&(h+=" "+D+'="'+M.escape(this.attributes[D])+'"');h+=">";for(var H=0;H<this.children.length;H++)h+=this.children[H].toMarkup();return h+="</"+u+">",h},j=function(){function V(h,f,_,D){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Bt.call(this,h,_,D),this.children=f||[]}var u=V.prototype;return u.setAttribute=function(f,_){this.attributes[f]=_},u.hasClass=function(f){return M.contains(this.classes,f)},u.toNode=function(){return me.call(this,"span")},u.toMarkup=function(){return ce.call(this,"span")},V}(),pe=function(){function V(h,f,_,D){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Bt.call(this,f,D),this.children=_||[],this.setAttribute("href",h)}var u=V.prototype;return u.setAttribute=function(f,_){this.attributes[f]=_},u.hasClass=function(f){return M.contains(this.classes,f)},u.toNode=function(){return me.call(this,"a")},u.toMarkup=function(){return ce.call(this,"a")},V}(),Re=function(){function V(h,f,_){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=f,this.src=h,this.classes=["mord"],this.style=_}var u=V.prototype;return u.hasClass=function(f){return M.contains(this.classes,f)},u.toNode=function(){var f=document.createElement("img");f.src=this.src,f.alt=this.alt,f.className="mord";for(var _ in this.style)this.style.hasOwnProperty(_)&&(f.style[_]=this.style[_]);return f},u.toMarkup=function(){var f="<img src='"+this.src+" 'alt='"+this.alt+"' ",_="";for(var D in this.style)this.style.hasOwnProperty(D)&&(_+=M.hyphenate(D)+":"+this.style[D]+";");return _&&(f+=' style="'+M.escape(_)+'"'),f+="'/>",f},V}(),P={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ne=function(){function V(h,f,_,D,H,be,Le,$e){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=h,this.height=f||0,this.depth=_||0,this.italic=D||0,this.skew=H||0,this.width=be||0,this.classes=Le||[],this.style=$e||{},this.maxFontSize=0;var st=B(this.text.charCodeAt(0));st&&this.classes.push(st+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=P[this.text])}var u=V.prototype;return u.hasClass=function(f){return M.contains(this.classes,f)},u.toNode=function(){var f=document.createTextNode(this.text),_=null;this.italic>0&&(_=document.createElement("span"),_.style.marginRight=this.italic+"em"),this.classes.length>0&&(_=_||document.createElement("span"),_.className=Ot(this.classes));for(var D in this.style)this.style.hasOwnProperty(D)&&(_=_||document.createElement("span"),_.style[D]=this.style[D]);return _?(_.appendChild(f),_):f},u.toMarkup=function(){var f=!1,_="<span";this.classes.length&&(f=!0,_+=' class="',_+=M.escape(Ot(this.classes)),_+='"');var D="";this.italic>0&&(D+="margin-right:"+this.italic+"em;");for(var H in this.style)this.style.hasOwnProperty(H)&&(D+=M.hyphenate(H)+":"+this.style[H]+";");D&&(f=!0,_+=' style="'+M.escape(D)+'"');var be=M.escape(this.text);return f?(_+=">",_+=be,_+="</span>",_):be},V}(),fe=function(){function V(h,f){this.children=void 0,this.attributes=void 0,this.children=h||[],this.attributes=f||{}}var u=V.prototype;return u.toNode=function(){var f="http://www.w3.org/2000/svg",_=document.createElementNS(f,"svg");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&_.setAttribute(D,this.attributes[D]);for(var H=0;H<this.children.length;H++)_.appendChild(this.children[H].toNode());return _},u.toMarkup=function(){var f="<svg";for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&(f+=" "+_+"='"+this.attributes[_]+"'");f+=">";for(var D=0;D<this.children.length;D++)f+=this.children[D].toMarkup();return f+="</svg>",f},V}(),ye=function(){function V(h,f){this.pathName=void 0,this.alternate=void 0,this.pathName=h,this.alternate=f}var u=V.prototype;return u.toNode=function(){var f="http://www.w3.org/2000/svg",_=document.createElementNS(f,"path");return this.alternate?_.setAttribute("d",this.alternate):_.setAttribute("d",pt[this.pathName]),_},u.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+pt[this.pathName]+"'/>"},V}(),ke=function(){function V(h){this.attributes=void 0,this.attributes=h||{}}var u=V.prototype;return u.toNode=function(){var f="http://www.w3.org/2000/svg",_=document.createElementNS(f,"line");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&_.setAttribute(D,this.attributes[D]);return _},u.toMarkup=function(){var f="<line";for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&(f+=" "+_+"='"+this.attributes[_]+"'");return f+="/>",f},V}();function Oe(V){if(V instanceof ne)return V;throw new Error("Expected symbolNode but got "+String(V)+".")}function Ze(V){if(V instanceof j)return V;throw new Error("Expected span<HtmlDomNode> but got "+String(V)+".")}var it={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ye={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ke={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Tt(V,u){it[V]=u}function St(V,u,h){if(!it[u])throw new Error("Font metrics not found for font: "+u+".");var f=V.charCodeAt(0),_=it[u][f];if(!_&&V[0]in Ke&&(f=Ke[V[0]].charCodeAt(0),_=it[u][f]),!_&&h==="text"&&Se(f)&&(_=it[u][77]),_)return{depth:_[0],height:_[1],italic:_[2],skew:_[3],width:_[4]}}var wt={};function $t(V){var u;if(V>=5?u=0:V>=3?u=1:u=2,!wt[u]){var h=wt[u]={cssEmPerMu:Ye.quad[u]/18};for(var f in Ye)Ye.hasOwnProperty(f)&&(h[f]=Ye[f][u])}return wt[u]}var Yt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Nt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Jt={math:{},text:{}},nn=Jt;function w(V,u,h,f,_,D){Jt[V][_]={font:u,group:h,replace:f},D&&f&&(Jt[V][f]=Jt[V][_])}var R="math",ft="text",ee="main",Ie="ams",pn="accent-token",ze="bin",Ge="close",Je="inner",ae="mathord",Ee="op-token",De="open",He="punct",q="rel",Ut="spacing",Pe="textord";w(R,ee,q,"\u2261","\\equiv",!0),w(R,ee,q,"\u227A","\\prec",!0),w(R,ee,q,"\u227B","\\succ",!0),w(R,ee,q,"\u223C","\\sim",!0),w(R,ee,q,"\u22A5","\\perp"),w(R,ee,q,"\u2AAF","\\preceq",!0),w(R,ee,q,"\u2AB0","\\succeq",!0),w(R,ee,q,"\u2243","\\simeq",!0),w(R,ee,q,"\u2223","\\mid",!0),w(R,ee,q,"\u226A","\\ll",!0),w(R,ee,q,"\u226B","\\gg",!0),w(R,ee,q,"\u224D","\\asymp",!0),w(R,ee,q,"\u2225","\\parallel"),w(R,ee,q,"\u22C8","\\bowtie",!0),w(R,ee,q,"\u2323","\\smile",!0),w(R,ee,q,"\u2291","\\sqsubseteq",!0),w(R,ee,q,"\u2292","\\sqsupseteq",!0),w(R,ee,q,"\u2250","\\doteq",!0),w(R,ee,q,"\u2322","\\frown",!0),w(R,ee,q,"\u220B","\\ni",!0),w(R,ee,q,"\u221D","\\propto",!0),w(R,ee,q,"\u22A2","\\vdash",!0),w(R,ee,q,"\u22A3","\\dashv",!0),w(R,ee,q,"\u220B","\\owns"),w(R,ee,He,".","\\ldotp"),w(R,ee,He,"\u22C5","\\cdotp"),w(R,ee,Pe,"#","\\#"),w(ft,ee,Pe,"#","\\#"),w(R,ee,Pe,"&","\\&"),w(ft,ee,Pe,"&","\\&"),w(R,ee,Pe,"\u2135","\\aleph",!0),w(R,ee,Pe,"\u2200","\\forall",!0),w(R,ee,Pe,"\u210F","\\hbar",!0),w(R,ee,Pe,"\u2203","\\exists",!0),w(R,ee,Pe,"\u2207","\\nabla",!0),w(R,ee,Pe,"\u266D","\\flat",!0),w(R,ee,Pe,"\u2113","\\ell",!0),w(R,ee,Pe,"\u266E","\\natural",!0),w(R,ee,Pe,"\u2663","\\clubsuit",!0),w(R,ee,Pe,"\u2118","\\wp",!0),w(R,ee,Pe,"\u266F","\\sharp",!0),w(R,ee,Pe,"\u2662","\\diamondsuit",!0),w(R,ee,Pe,"\u211C","\\Re",!0),w(R,ee,Pe,"\u2661","\\heartsuit",!0),w(R,ee,Pe,"\u2111","\\Im",!0),w(R,ee,Pe,"\u2660","\\spadesuit",!0),w(ft,ee,Pe,"\xA7","\\S",!0),w(ft,ee,Pe,"\xB6","\\P",!0),w(R,ee,Pe,"\u2020","\\dag"),w(ft,ee,Pe,"\u2020","\\dag"),w(ft,ee,Pe,"\u2020","\\textdagger"),w(R,ee,Pe,"\u2021","\\ddag"),w(ft,ee,Pe,"\u2021","\\ddag"),w(ft,ee,Pe,"\u2021","\\textdaggerdbl"),w(R,ee,Ge,"\u23B1","\\rmoustache",!0),w(R,ee,De,"\u23B0","\\lmoustache",!0),w(R,ee,Ge,"\u27EF","\\rgroup",!0),w(R,ee,De,"\u27EE","\\lgroup",!0),w(R,ee,ze,"\u2213","\\mp",!0),w(R,ee,ze,"\u2296","\\ominus",!0),w(R,ee,ze,"\u228E","\\uplus",!0),w(R,ee,ze,"\u2293","\\sqcap",!0),w(R,ee,ze,"\u2217","\\ast"),w(R,ee,ze,"\u2294","\\sqcup",!0),w(R,ee,ze,"\u25EF","\\bigcirc"),w(R,ee,ze,"\u2219","\\bullet"),w(R,ee,ze,"\u2021","\\ddagger"),w(R,ee,ze,"\u2240","\\wr",!0),w(R,ee,ze,"\u2A3F","\\amalg"),w(R,ee,ze,"&","\\And"),w(R,ee,q,"\u27F5","\\longleftarrow",!0),w(R,ee,q,"\u21D0","\\Leftarrow",!0),w(R,ee,q,"\u27F8","\\Longleftarrow",!0),w(R,ee,q,"\u27F6","\\longrightarrow",!0),w(R,ee,q,"\u21D2","\\Rightarrow",!0),w(R,ee,q,"\u27F9","\\Longrightarrow",!0),w(R,ee,q,"\u2194","\\leftrightarrow",!0),w(R,ee,q,"\u27F7","\\longleftrightarrow",!0),w(R,ee,q,"\u21D4","\\Leftrightarrow",!0),w(R,ee,q,"\u27FA","\\Longleftrightarrow",!0),w(R,ee,q,"\u21A6","\\mapsto",!0),w(R,ee,q,"\u27FC","\\longmapsto",!0),w(R,ee,q,"\u2197","\\nearrow",!0),w(R,ee,q,"\u21A9","\\hookleftarrow",!0),w(R,ee,q,"\u21AA","\\hookrightarrow",!0),w(R,ee,q,"\u2198","\\searrow",!0),w(R,ee,q,"\u21BC","\\leftharpoonup",!0),w(R,ee,q,"\u21C0","\\rightharpoonup",!0),w(R,ee,q,"\u2199","\\swarrow",!0),w(R,ee,q,"\u21BD","\\leftharpoondown",!0),w(R,ee,q,"\u21C1","\\rightharpoondown",!0),w(R,ee,q,"\u2196","\\nwarrow",!0),w(R,ee,q,"\u21CC","\\rightleftharpoons",!0),w(R,Ie,q,"\u226E","\\nless",!0),w(R,Ie,q,"\uE010","\\@nleqslant"),w(R,Ie,q,"\uE011","\\@nleqq"),w(R,Ie,q,"\u2A87","\\lneq",!0),w(R,Ie,q,"\u2268","\\lneqq",!0),w(R,Ie,q,"\uE00C","\\@lvertneqq"),w(R,Ie,q,"\u22E6","\\lnsim",!0),w(R,Ie,q,"\u2A89","\\lnapprox",!0),w(R,Ie,q,"\u2280","\\nprec",!0),w(R,Ie,q,"\u22E0","\\npreceq",!0),w(R,Ie,q,"\u22E8","\\precnsim",!0),w(R,Ie,q,"\u2AB9","\\precnapprox",!0),w(R,Ie,q,"\u2241","\\nsim",!0),w(R,Ie,q,"\uE006","\\@nshortmid"),w(R,Ie,q,"\u2224","\\nmid",!0),w(R,Ie,q,"\u22AC","\\nvdash",!0),w(R,Ie,q,"\u22AD","\\nvDash",!0),w(R,Ie,q,"\u22EA","\\ntriangleleft"),w(R,Ie,q,"\u22EC","\\ntrianglelefteq",!0),w(R,Ie,q,"\u228A","\\subsetneq",!0),w(R,Ie,q,"\uE01A","\\@varsubsetneq"),w(R,Ie,q,"\u2ACB","\\subsetneqq",!0),w(R,Ie,q,"\uE017","\\@varsubsetneqq"),w(R,Ie,q,"\u226F","\\ngtr",!0),w(R,Ie,q,"\uE00F","\\@ngeqslant"),w(R,Ie,q,"\uE00E","\\@ngeqq"),w(R,Ie,q,"\u2A88","\\gneq",!0),w(R,Ie,q,"\u2269","\\gneqq",!0),w(R,Ie,q,"\uE00D","\\@gvertneqq"),w(R,Ie,q,"\u22E7","\\gnsim",!0),w(R,Ie,q,"\u2A8A","\\gnapprox",!0),w(R,Ie,q,"\u2281","\\nsucc",!0),w(R,Ie,q,"\u22E1","\\nsucceq",!0),w(R,Ie,q,"\u22E9","\\succnsim",!0),w(R,Ie,q,"\u2ABA","\\succnapprox",!0),w(R,Ie,q,"\u2246","\\ncong",!0),w(R,Ie,q,"\uE007","\\@nshortparallel"),w(R,Ie,q,"\u2226","\\nparallel",!0),w(R,Ie,q,"\u22AF","\\nVDash",!0),w(R,Ie,q,"\u22EB","\\ntriangleright"),w(R,Ie,q,"\u22ED","\\ntrianglerighteq",!0),w(R,Ie,q,"\uE018","\\@nsupseteqq"),w(R,Ie,q,"\u228B","\\supsetneq",!0),w(R,Ie,q,"\uE01B","\\@varsupsetneq"),w(R,Ie,q,"\u2ACC","\\supsetneqq",!0),w(R,Ie,q,"\uE019","\\@varsupsetneqq"),w(R,Ie,q,"\u22AE","\\nVdash",!0),w(R,Ie,q,"\u2AB5","\\precneqq",!0),w(R,Ie,q,"\u2AB6","\\succneqq",!0),w(R,Ie,q,"\uE016","\\@nsubseteqq"),w(R,Ie,ze,"\u22B4","\\unlhd"),w(R,Ie,ze,"\u22B5","\\unrhd"),w(R,Ie,q,"\u219A","\\nleftarrow",!0),w(R,Ie,q,"\u219B","\\nrightarrow",!0),w(R,Ie,q,"\u21CD","\\nLeftarrow",!0),w(R,Ie,q,"\u21CF","\\nRightarrow",!0),w(R,Ie,q,"\u21AE","\\nleftrightarrow",!0),w(R,Ie,q,"\u21CE","\\nLeftrightarrow",!0),w(R,Ie,q,"\u25B3","\\vartriangle"),w(R,Ie,Pe,"\u210F","\\hslash"),w(R,Ie,Pe,"\u25BD","\\triangledown"),w(R,Ie,Pe,"\u25CA","\\lozenge"),w(R,Ie,Pe,"\u24C8","\\circledS"),w(R,Ie,Pe,"\xAE","\\circledR"),w(ft,Ie,Pe,"\xAE","\\circledR"),w(R,Ie,Pe,"\u2221","\\measuredangle",!0),w(R,Ie,Pe,"\u2204","\\nexists"),w(R,Ie,Pe,"\u2127","\\mho"),w(R,Ie,Pe,"\u2132","\\Finv",!0),w(R,Ie,Pe,"\u2141","\\Game",!0),w(R,Ie,Pe,"\u2035","\\backprime"),w(R,Ie,Pe,"\u25B2","\\blacktriangle"),w(R,Ie,Pe,"\u25BC","\\blacktriangledown"),w(R,Ie,Pe,"\u25A0","\\blacksquare"),w(R,Ie,Pe,"\u29EB","\\blacklozenge"),w(R,Ie,Pe,"\u2605","\\bigstar"),w(R,Ie,Pe,"\u2222","\\sphericalangle",!0),w(R,Ie,Pe,"\u2201","\\complement",!0),w(R,Ie,Pe,"\xF0","\\eth",!0),w(R,Ie,Pe,"\u2571","\\diagup"),w(R,Ie,Pe,"\u2572","\\diagdown"),w(R,Ie,Pe,"\u25A1","\\square"),w(R,Ie,Pe,"\u25A1","\\Box"),w(R,Ie,Pe,"\u25CA","\\Diamond"),w(R,Ie,Pe,"\xA5","\\yen",!0),w(ft,Ie,Pe,"\xA5","\\yen",!0),w(R,Ie,Pe,"\u2713","\\checkmark",!0),w(ft,Ie,Pe,"\u2713","\\checkmark"),w(R,Ie,Pe,"\u2136","\\beth",!0),w(R,Ie,Pe,"\u2138","\\daleth",!0),w(R,Ie,Pe,"\u2137","\\gimel",!0),w(R,Ie,Pe,"\u03DD","\\digamma",!0),w(R,Ie,Pe,"\u03F0","\\varkappa"),w(R,Ie,De,"\u250C","\\ulcorner",!0),w(R,Ie,Ge,"\u2510","\\urcorner",!0),w(R,Ie,De,"\u2514","\\llcorner",!0),w(R,Ie,Ge,"\u2518","\\lrcorner",!0),w(R,Ie,q,"\u2266","\\leqq",!0),w(R,Ie,q,"\u2A7D","\\leqslant",!0),w(R,Ie,q,"\u2A95","\\eqslantless",!0),w(R,Ie,q,"\u2272","\\lesssim",!0),w(R,Ie,q,"\u2A85","\\lessapprox",!0),w(R,Ie,q,"\u224A","\\approxeq",!0),w(R,Ie,ze,"\u22D6","\\lessdot"),w(R,Ie,q,"\u22D8","\\lll",!0),w(R,Ie,q,"\u2276","\\lessgtr",!0),w(R,Ie,q,"\u22DA","\\lesseqgtr",!0),w(R,Ie,q,"\u2A8B","\\lesseqqgtr",!0),w(R,Ie,q,"\u2251","\\doteqdot"),w(R,Ie,q,"\u2253","\\risingdotseq",!0),w(R,Ie,q,"\u2252","\\fallingdotseq",!0),w(R,Ie,q,"\u223D","\\backsim",!0),w(R,Ie,q,"\u22CD","\\backsimeq",!0),w(R,Ie,q,"\u2AC5","\\subseteqq",!0),w(R,Ie,q,"\u22D0","\\Subset",!0),w(R,Ie,q,"\u228F","\\sqsubset",!0),w(R,Ie,q,"\u227C","\\preccurlyeq",!0),w(R,Ie,q,"\u22DE","\\curlyeqprec",!0),w(R,Ie,q,"\u227E","\\precsim",!0),w(R,Ie,q,"\u2AB7","\\precapprox",!0),w(R,Ie,q,"\u22B2","\\vartriangleleft"),w(R,Ie,q,"\u22B4","\\trianglelefteq"),w(R,Ie,q,"\u22A8","\\vDash",!0),w(R,Ie,q,"\u22AA","\\Vvdash",!0),w(R,Ie,q,"\u2323","\\smallsmile"),w(R,Ie,q,"\u2322","\\smallfrown"),w(R,Ie,q,"\u224F","\\bumpeq",!0),w(R,Ie,q,"\u224E","\\Bumpeq",!0),w(R,Ie,q,"\u2267","\\geqq",!0),w(R,Ie,q,"\u2A7E","\\geqslant",!0),w(R,Ie,q,"\u2A96","\\eqslantgtr",!0),w(R,Ie,q,"\u2273","\\gtrsim",!0),w(R,Ie,q,"\u2A86","\\gtrapprox",!0),w(R,Ie,ze,"\u22D7","\\gtrdot"),w(R,Ie,q,"\u22D9","\\ggg",!0),w(R,Ie,q,"\u2277","\\gtrless",!0),w(R,Ie,q,"\u22DB","\\gtreqless",!0),w(R,Ie,q,"\u2A8C","\\gtreqqless",!0),w(R,Ie,q,"\u2256","\\eqcirc",!0),w(R,Ie,q,"\u2257","\\circeq",!0),w(R,Ie,q,"\u225C","\\triangleq",!0),w(R,Ie,q,"\u223C","\\thicksim"),w(R,Ie,q,"\u2248","\\thickapprox"),w(R,Ie,q,"\u2AC6","\\supseteqq",!0),w(R,Ie,q,"\u22D1","\\Supset",!0),w(R,Ie,q,"\u2290","\\sqsupset",!0),w(R,Ie,q,"\u227D","\\succcurlyeq",!0),w(R,Ie,q,"\u22DF","\\curlyeqsucc",!0),w(R,Ie,q,"\u227F","\\succsim",!0),w(R,Ie,q,"\u2AB8","\\succapprox",!0),w(R,Ie,q,"\u22B3","\\vartriangleright"),w(R,Ie,q,"\u22B5","\\trianglerighteq"),w(R,Ie,q,"\u22A9","\\Vdash",!0),w(R,Ie,q,"\u2223","\\shortmid"),w(R,Ie,q,"\u2225","\\shortparallel"),w(R,Ie,q,"\u226C","\\between",!0),w(R,Ie,q,"\u22D4","\\pitchfork",!0),w(R,Ie,q,"\u221D","\\varpropto"),w(R,Ie,q,"\u25C0","\\blacktriangleleft"),w(R,Ie,q,"\u2234","\\therefore",!0),w(R,Ie,q,"\u220D","\\backepsilon"),w(R,Ie,q,"\u25B6","\\blacktriangleright"),w(R,Ie,q,"\u2235","\\because",!0),w(R,Ie,q,"\u22D8","\\llless"),w(R,Ie,q,"\u22D9","\\gggtr"),w(R,Ie,ze,"\u22B2","\\lhd"),w(R,Ie,ze,"\u22B3","\\rhd"),w(R,Ie,q,"\u2242","\\eqsim",!0),w(R,ee,q,"\u22C8","\\Join"),w(R,Ie,q,"\u2251","\\Doteq",!0),w(R,Ie,ze,"\u2214","\\dotplus",!0),w(R,Ie,ze,"\u2216","\\smallsetminus"),w(R,Ie,ze,"\u22D2","\\Cap",!0),w(R,Ie,ze,"\u22D3","\\Cup",!0),w(R,Ie,ze,"\u2A5E","\\doublebarwedge",!0),w(R,Ie,ze,"\u229F","\\boxminus",!0),w(R,Ie,ze,"\u229E","\\boxplus",!0),w(R,Ie,ze,"\u22C7","\\divideontimes",!0),w(R,Ie,ze,"\u22C9","\\ltimes",!0),w(R,Ie,ze,"\u22CA","\\rtimes",!0),w(R,Ie,ze,"\u22CB","\\leftthreetimes",!0),w(R,Ie,ze,"\u22CC","\\rightthreetimes",!0),w(R,Ie,ze,"\u22CF","\\curlywedge",!0),w(R,Ie,ze,"\u22CE","\\curlyvee",!0),w(R,Ie,ze,"\u229D","\\circleddash",!0),w(R,Ie,ze,"\u229B","\\circledast",!0),w(R,Ie,ze,"\u22C5","\\centerdot"),w(R,Ie,ze,"\u22BA","\\intercal",!0),w(R,Ie,ze,"\u22D2","\\doublecap"),w(R,Ie,ze,"\u22D3","\\doublecup"),w(R,Ie,ze,"\u22A0","\\boxtimes",!0),w(R,Ie,q,"\u21E2","\\dashrightarrow",!0),w(R,Ie,q,"\u21E0","\\dashleftarrow",!0),w(R,Ie,q,"\u21C7","\\leftleftarrows",!0),w(R,Ie,q,"\u21C6","\\leftrightarrows",!0),w(R,Ie,q,"\u21DA","\\Lleftarrow",!0),w(R,Ie,q,"\u219E","\\twoheadleftarrow",!0),w(R,Ie,q,"\u21A2","\\leftarrowtail",!0),w(R,Ie,q,"\u21AB","\\looparrowleft",!0),w(R,Ie,q,"\u21CB","\\leftrightharpoons",!0),w(R,Ie,q,"\u21B6","\\curvearrowleft",!0),w(R,Ie,q,"\u21BA","\\circlearrowleft",!0),w(R,Ie,q,"\u21B0","\\Lsh",!0),w(R,Ie,q,"\u21C8","\\upuparrows",!0),w(R,Ie,q,"\u21BF","\\upharpoonleft",!0),w(R,Ie,q,"\u21C3","\\downharpoonleft",!0),w(R,Ie,q,"\u22B8","\\multimap",!0),w(R,Ie,q,"\u21AD","\\leftrightsquigarrow",!0),w(R,Ie,q,"\u21C9","\\rightrightarrows",!0),w(R,Ie,q,"\u21C4","\\rightleftarrows",!0),w(R,Ie,q,"\u21A0","\\twoheadrightarrow",!0),w(R,Ie,q,"\u21A3","\\rightarrowtail",!0),w(R,Ie,q,"\u21AC","\\looparrowright",!0),w(R,Ie,q,"\u21B7","\\curvearrowright",!0),w(R,Ie,q,"\u21BB","\\circlearrowright",!0),w(R,Ie,q,"\u21B1","\\Rsh",!0),w(R,Ie,q,"\u21CA","\\downdownarrows",!0),w(R,Ie,q,"\u21BE","\\upharpoonright",!0),w(R,Ie,q,"\u21C2","\\downharpoonright",!0),w(R,Ie,q,"\u21DD","\\rightsquigarrow",!0),w(R,Ie,q,"\u21DD","\\leadsto"),w(R,Ie,q,"\u21DB","\\Rrightarrow",!0),w(R,Ie,q,"\u21BE","\\restriction"),w(R,ee,Pe,"\u2018","`"),w(R,ee,Pe,"$","\\$"),w(ft,ee,Pe,"$","\\$"),w(ft,ee,Pe,"$","\\textdollar"),w(R,ee,Pe,"%","\\%"),w(ft,ee,Pe,"%","\\%"),w(R,ee,Pe,"_","\\_"),w(ft,ee,Pe,"_","\\_"),w(ft,ee,Pe,"_","\\textunderscore"),w(R,ee,Pe,"\u2220","\\angle",!0),w(R,ee,Pe,"\u221E","\\infty",!0),w(R,ee,Pe,"\u2032","\\prime"),w(R,ee,Pe,"\u25B3","\\triangle"),w(R,ee,Pe,"\u0393","\\Gamma",!0),w(R,ee,Pe,"\u0394","\\Delta",!0),w(R,ee,Pe,"\u0398","\\Theta",!0),w(R,ee,Pe,"\u039B","\\Lambda",!0),w(R,ee,Pe,"\u039E","\\Xi",!0),w(R,ee,Pe,"\u03A0","\\Pi",!0),w(R,ee,Pe,"\u03A3","\\Sigma",!0),w(R,ee,Pe,"\u03A5","\\Upsilon",!0),w(R,ee,Pe,"\u03A6","\\Phi",!0),w(R,ee,Pe,"\u03A8","\\Psi",!0),w(R,ee,Pe,"\u03A9","\\Omega",!0),w(R,ee,Pe,"A","\u0391"),w(R,ee,Pe,"B","\u0392"),w(R,ee,Pe,"E","\u0395"),w(R,ee,Pe,"Z","\u0396"),w(R,ee,Pe,"H","\u0397"),w(R,ee,Pe,"I","\u0399"),w(R,ee,Pe,"K","\u039A"),w(R,ee,Pe,"M","\u039C"),w(R,ee,Pe,"N","\u039D"),w(R,ee,Pe,"O","\u039F"),w(R,ee,Pe,"P","\u03A1"),w(R,ee,Pe,"T","\u03A4"),w(R,ee,Pe,"X","\u03A7"),w(R,ee,Pe,"\xAC","\\neg",!0),w(R,ee,Pe,"\xAC","\\lnot"),w(R,ee,Pe,"\u22A4","\\top"),w(R,ee,Pe,"\u22A5","\\bot"),w(R,ee,Pe,"\u2205","\\emptyset"),w(R,Ie,Pe,"\u2205","\\varnothing"),w(R,ee,ae,"\u03B1","\\alpha",!0),w(R,ee,ae,"\u03B2","\\beta",!0),w(R,ee,ae,"\u03B3","\\gamma",!0),w(R,ee,ae,"\u03B4","\\delta",!0),w(R,ee,ae,"\u03F5","\\epsilon",!0),w(R,ee,ae,"\u03B6","\\zeta",!0),w(R,ee,ae,"\u03B7","\\eta",!0),w(R,ee,ae,"\u03B8","\\theta",!0),w(R,ee,ae,"\u03B9","\\iota",!0),w(R,ee,ae,"\u03BA","\\kappa",!0),w(R,ee,ae,"\u03BB","\\lambda",!0),w(R,ee,ae,"\u03BC","\\mu",!0),w(R,ee,ae,"\u03BD","\\nu",!0),w(R,ee,ae,"\u03BE","\\xi",!0),w(R,ee,ae,"\u03BF","\\omicron",!0),w(R,ee,ae,"\u03C0","\\pi",!0),w(R,ee,ae,"\u03C1","\\rho",!0),w(R,ee,ae,"\u03C3","\\sigma",!0),w(R,ee,ae,"\u03C4","\\tau",!0),w(R,ee,ae,"\u03C5","\\upsilon",!0),w(R,ee,ae,"\u03D5","\\phi",!0),w(R,ee,ae,"\u03C7","\\chi",!0),w(R,ee,ae,"\u03C8","\\psi",!0),w(R,ee,ae,"\u03C9","\\omega",!0),w(R,ee,ae,"\u03B5","\\varepsilon",!0),w(R,ee,ae,"\u03D1","\\vartheta",!0),w(R,ee,ae,"\u03D6","\\varpi",!0),w(R,ee,ae,"\u03F1","\\varrho",!0),w(R,ee,ae,"\u03C2","\\varsigma",!0),w(R,ee,ae,"\u03C6","\\varphi",!0),w(R,ee,ze,"\u2217","*"),w(R,ee,ze,"+","+"),w(R,ee,ze,"\u2212","-"),w(R,ee,ze,"\u22C5","\\cdot",!0),w(R,ee,ze,"\u2218","\\circ"),w(R,ee,ze,"\xF7","\\div",!0),w(R,ee,ze,"\xB1","\\pm",!0),w(R,ee,ze,"\xD7","\\times",!0),w(R,ee,ze,"\u2229","\\cap",!0),w(R,ee,ze,"\u222A","\\cup",!0),w(R,ee,ze,"\u2216","\\setminus"),w(R,ee,ze,"\u2227","\\land"),w(R,ee,ze,"\u2228","\\lor"),w(R,ee,ze,"\u2227","\\wedge",!0),w(R,ee,ze,"\u2228","\\vee",!0),w(R,ee,Pe,"\u221A","\\surd"),w(R,ee,De,"(","("),w(R,ee,De,"[","["),w(R,ee,De,"\u27E8","\\langle",!0),w(R,ee,De,"\u2223","\\lvert"),w(R,ee,De,"\u2225","\\lVert"),w(R,ee,Ge,")",")"),w(R,ee,Ge,"]","]"),w(R,ee,Ge,"?","?"),w(R,ee,Ge,"!","!"),w(R,ee,Ge,"\u27E9","\\rangle",!0),w(R,ee,Ge,"\u2223","\\rvert"),w(R,ee,Ge,"\u2225","\\rVert"),w(R,ee,q,"=","="),w(R,ee,q,"<","<"),w(R,ee,q,">",">"),w(R,ee,q,":",":"),w(R,ee,q,"\u2248","\\approx",!0),w(R,ee,q,"\u2245","\\cong",!0),w(R,ee,q,"\u2265","\\ge"),w(R,ee,q,"\u2265","\\geq",!0),w(R,ee,q,"\u2190","\\gets"),w(R,ee,q,">","\\gt"),w(R,ee,q,"\u2208","\\in",!0),w(R,ee,q,"\uE020","\\@not"),w(R,ee,q,"\u2282","\\subset",!0),w(R,ee,q,"\u2283","\\supset",!0),w(R,ee,q,"\u2286","\\subseteq",!0),w(R,ee,q,"\u2287","\\supseteq",!0),w(R,Ie,q,"\u2288","\\nsubseteq",!0),w(R,Ie,q,"\u2289","\\nsupseteq",!0),w(R,ee,q,"\u22A8","\\models"),w(R,ee,q,"\u2190","\\leftarrow",!0),w(R,ee,q,"\u2264","\\le"),w(R,ee,q,"\u2264","\\leq",!0),w(R,ee,q,"<","\\lt"),w(R,ee,q,"\u2192","\\rightarrow",!0),w(R,ee,q,"\u2192","\\to"),w(R,Ie,q,"\u2271","\\ngeq",!0),w(R,Ie,q,"\u2270","\\nleq",!0),w(R,ee,Ut,"\xA0","\\ "),w(R,ee,Ut,"\xA0","~"),w(R,ee,Ut,"\xA0","\\space"),w(R,ee,Ut,"\xA0","\\nobreakspace"),w(ft,ee,Ut,"\xA0","\\ "),w(ft,ee,Ut,"\xA0","~"),w(ft,ee,Ut,"\xA0","\\space"),w(ft,ee,Ut,"\xA0","\\nobreakspace"),w(R,ee,Ut,null,"\\nobreak"),w(R,ee,Ut,null,"\\allowbreak"),w(R,ee,He,",",","),w(R,ee,He,";",";"),w(R,Ie,ze,"\u22BC","\\barwedge",!0),w(R,Ie,ze,"\u22BB","\\veebar",!0),w(R,ee,ze,"\u2299","\\odot",!0),w(R,ee,ze,"\u2295","\\oplus",!0),w(R,ee,ze,"\u2297","\\otimes",!0),w(R,ee,Pe,"\u2202","\\partial",!0),w(R,ee,ze,"\u2298","\\oslash",!0),w(R,Ie,ze,"\u229A","\\circledcirc",!0),w(R,Ie,ze,"\u22A1","\\boxdot",!0),w(R,ee,ze,"\u25B3","\\bigtriangleup"),w(R,ee,ze,"\u25BD","\\bigtriangledown"),w(R,ee,ze,"\u2020","\\dagger"),w(R,ee,ze,"\u22C4","\\diamond"),w(R,ee,ze,"\u22C6","\\star"),w(R,ee,ze,"\u25C3","\\triangleleft"),w(R,ee,ze,"\u25B9","\\triangleright"),w(R,ee,De,"{","\\{"),w(ft,ee,Pe,"{","\\{"),w(ft,ee,Pe,"{","\\textbraceleft"),w(R,ee,Ge,"}","\\}"),w(ft,ee,Pe,"}","\\}"),w(ft,ee,Pe,"}","\\textbraceright"),w(R,ee,De,"{","\\lbrace"),w(R,ee,Ge,"}","\\rbrace"),w(R,ee,De,"[","\\lbrack"),w(ft,ee,Pe,"[","\\lbrack"),w(R,ee,Ge,"]","\\rbrack"),w(ft,ee,Pe,"]","\\rbrack"),w(R,ee,De,"(","\\lparen"),w(R,ee,Ge,")","\\rparen"),w(ft,ee,Pe,"<","\\textless"),w(ft,ee,Pe,">","\\textgreater"),w(R,ee,De,"\u230A","\\lfloor",!0),w(R,ee,Ge,"\u230B","\\rfloor",!0),w(R,ee,De,"\u2308","\\lceil",!0),w(R,ee,Ge,"\u2309","\\rceil",!0),w(R,ee,Pe,"\\","\\backslash"),w(R,ee,Pe,"\u2223","|"),w(R,ee,Pe,"\u2223","\\vert"),w(ft,ee,Pe,"|","\\textbar"),w(R,ee,Pe,"\u2225","\\|"),w(R,ee,Pe,"\u2225","\\Vert"),w(ft,ee,Pe,"\u2225","\\textbardbl"),w(ft,ee,Pe,"~","\\textasciitilde"),w(ft,ee,Pe,"\\","\\textbackslash"),w(ft,ee,Pe,"^","\\textasciicircum"),w(R,ee,q,"\u2191","\\uparrow",!0),w(R,ee,q,"\u21D1","\\Uparrow",!0),w(R,ee,q,"\u2193","\\downarrow",!0),w(R,ee,q,"\u21D3","\\Downarrow",!0),w(R,ee,q,"\u2195","\\updownarrow",!0),w(R,ee,q,"\u21D5","\\Updownarrow",!0),w(R,ee,Ee,"\u2210","\\coprod"),w(R,ee,Ee,"\u22C1","\\bigvee"),w(R,ee,Ee,"\u22C0","\\bigwedge"),w(R,ee,Ee,"\u2A04","\\biguplus"),w(R,ee,Ee,"\u22C2","\\bigcap"),w(R,ee,Ee,"\u22C3","\\bigcup"),w(R,ee,Ee,"\u222B","\\int"),w(R,ee,Ee,"\u222B","\\intop"),w(R,ee,Ee,"\u222C","\\iint"),w(R,ee,Ee,"\u222D","\\iiint"),w(R,ee,Ee,"\u220F","\\prod"),w(R,ee,Ee,"\u2211","\\sum"),w(R,ee,Ee,"\u2A02","\\bigotimes"),w(R,ee,Ee,"\u2A01","\\bigoplus"),w(R,ee,Ee,"\u2A00","\\bigodot"),w(R,ee,Ee,"\u222E","\\oint"),w(R,ee,Ee,"\u222F","\\oiint"),w(R,ee,Ee,"\u2230","\\oiiint"),w(R,ee,Ee,"\u2A06","\\bigsqcup"),w(R,ee,Ee,"\u222B","\\smallint"),w(ft,ee,Je,"\u2026","\\textellipsis"),w(R,ee,Je,"\u2026","\\mathellipsis"),w(ft,ee,Je,"\u2026","\\ldots",!0),w(R,ee,Je,"\u2026","\\ldots",!0),w(R,ee,Je,"\u22EF","\\@cdots",!0),w(R,ee,Je,"\u22F1","\\ddots",!0),w(R,ee,Pe,"\u22EE","\\varvdots"),w(R,ee,pn,"\u02CA","\\acute"),w(R,ee,pn,"\u02CB","\\grave"),w(R,ee,pn,"\xA8","\\ddot"),w(R,ee,pn,"~","\\tilde"),w(R,ee,pn,"\u02C9","\\bar"),w(R,ee,pn,"\u02D8","\\breve"),w(R,ee,pn,"\u02C7","\\check"),w(R,ee,pn,"^","\\hat"),w(R,ee,pn,"\u20D7","\\vec"),w(R,ee,pn,"\u02D9","\\dot"),w(R,ee,pn,"\u02DA","\\mathring"),w(R,ee,ae,"\u0131","\\imath",!0),w(R,ee,ae,"\u0237","\\jmath",!0),w(ft,ee,Pe,"\u0131","\\i",!0),w(ft,ee,Pe,"\u0237","\\j",!0),w(ft,ee,Pe,"\xDF","\\ss",!0),w(ft,ee,Pe,"\xE6","\\ae",!0),w(ft,ee,Pe,"\xE6","\\ae",!0),w(ft,ee,Pe,"\u0153","\\oe",!0),w(ft,ee,Pe,"\xF8","\\o",!0),w(ft,ee,Pe,"\xC6","\\AE",!0),w(ft,ee,Pe,"\u0152","\\OE",!0),w(ft,ee,Pe,"\xD8","\\O",!0),w(ft,ee,pn,"\u02CA","\\'"),w(ft,ee,pn,"\u02CB","\\`"),w(ft,ee,pn,"\u02C6","\\^"),w(ft,ee,pn,"\u02DC","\\~"),w(ft,ee,pn,"\u02C9","\\="),w(ft,ee,pn,"\u02D8","\\u"),w(ft,ee,pn,"\u02D9","\\."),w(ft,ee,pn,"\u02DA","\\r"),w(ft,ee,pn,"\u02C7","\\v"),w(ft,ee,pn,"\xA8",'\\"'),w(ft,ee,pn,"\u02DD","\\H"),w(ft,ee,pn,"\u25EF","\\textcircled");var Qt={"--":!0,"---":!0,"``":!0,"''":!0};w(ft,ee,Pe,"\u2013","--"),w(ft,ee,Pe,"\u2013","\\textendash"),w(ft,ee,Pe,"\u2014","---"),w(ft,ee,Pe,"\u2014","\\textemdash"),w(ft,ee,Pe,"\u2018","`"),w(ft,ee,Pe,"\u2018","\\textquoteleft"),w(ft,ee,Pe,"\u2019","'"),w(ft,ee,Pe,"\u2019","\\textquoteright"),w(ft,ee,Pe,"\u201C","``"),w(ft,ee,Pe,"\u201C","\\textquotedblleft"),w(ft,ee,Pe,"\u201D","''"),w(ft,ee,Pe,"\u201D","\\textquotedblright"),w(R,ee,Pe,"\xB0","\\degree",!0),w(ft,ee,Pe,"\xB0","\\degree"),w(ft,ee,Pe,"\xB0","\\textdegree",!0),w(R,ee,ae,"\xA3","\\pounds"),w(R,ee,ae,"\xA3","\\mathsterling",!0),w(ft,ee,ae,"\xA3","\\pounds"),w(ft,ee,ae,"\xA3","\\textsterling",!0),w(R,Ie,Pe,"\u2720","\\maltese"),w(ft,Ie,Pe,"\u2720","\\maltese"),w(ft,ee,Ut,"\xA0","\\ "),w(ft,ee,Ut,"\xA0"," "),w(ft,ee,Ut,"\xA0","~");for(var an='0123456789/@."',kt=0;kt<an.length;kt++){var It=an.charAt(kt);w(R,ee,Pe,It,It)}for(var Et='0123456789!@*()-=+[]<>|";:?/.,',xt=0;xt<Et.length;xt++){var rn=Et.charAt(xt);w(ft,ee,Pe,rn,rn)}for(var _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ae=0;Ae<_e.length;Ae++){var ct=_e.charAt(Ae);w(R,ee,ae,ct,ct),w(ft,ee,Pe,ct,ct)}w(R,Ie,Pe,"C","\u2102"),w(ft,Ie,Pe,"C","\u2102"),w(R,Ie,Pe,"H","\u210D"),w(ft,Ie,Pe,"H","\u210D"),w(R,Ie,Pe,"N","\u2115"),w(ft,Ie,Pe,"N","\u2115"),w(R,Ie,Pe,"P","\u2119"),w(ft,Ie,Pe,"P","\u2119"),w(R,Ie,Pe,"Q","\u211A"),w(ft,Ie,Pe,"Q","\u211A"),w(R,Ie,Pe,"R","\u211D"),w(ft,Ie,Pe,"R","\u211D"),w(R,Ie,Pe,"Z","\u2124"),w(ft,Ie,Pe,"Z","\u2124"),w(R,ee,ae,"h","\u210E"),w(ft,ee,ae,"h","\u210E");for(var We="",at=0;at<_e.length;at++){var bt=_e.charAt(at);We=String.fromCharCode(55349,56320+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56372+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56424+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56580+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56736+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56788+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56840+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56944+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),at<26&&(We=String.fromCharCode(55349,56632+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We),We=String.fromCharCode(55349,56476+at),w(R,ee,ae,bt,We),w(ft,ee,Pe,bt,We))}We="\u{1D55C}",w(R,ee,ae,"k",We),w(ft,ee,Pe,"k",We);for(var Ct=0;Ct<10;Ct++){var Xt=Ct.toString();We=String.fromCharCode(55349,57294+Ct),w(R,ee,ae,Xt,We),w(ft,ee,Pe,Xt,We),We=String.fromCharCode(55349,57314+Ct),w(R,ee,ae,Xt,We),w(ft,ee,Pe,Xt,We),We=String.fromCharCode(55349,57324+Ct),w(R,ee,ae,Xt,We),w(ft,ee,Pe,Xt,We),We=String.fromCharCode(55349,57334+Ct),w(R,ee,ae,Xt,We),w(ft,ee,Pe,Xt,We)}for(var cn="\xC7\xD0\xDE\xE7\xFE",Wt=0;Wt<cn.length;Wt++){var xn=cn.charAt(Wt);w(R,ee,ae,xn,xn),w(ft,ee,Pe,xn,xn)}w(ft,ee,Pe,"\xF0","\xF0"),w(ft,ee,Pe,"\u2013","\u2013"),w(ft,ee,Pe,"\u2014","\u2014"),w(ft,ee,Pe,"\u2018","\u2018"),w(ft,ee,Pe,"\u2019","\u2019"),w(ft,ee,Pe,"\u201C","\u201C"),w(ft,ee,Pe,"\u201D","\u201D");var on=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Pn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Gt=function(u,h){var f=u.charCodeAt(0),_=u.charCodeAt(1),D=(f-55296)*1024+(_-56320)+65536,H=h==="math"?0:1;if(119808<=D&&D<120484){var be=Math.floor((D-119808)/26);return[on[be][2],on[be][H]]}else if(120782<=D&&D<=120831){var Le=Math.floor((D-120782)/10);return[Pn[Le][2],Pn[Le][H]]}else{if(D===120485||D===120486)return[on[0][2],on[0][H]];if(120486<D&&D<120782)return["",""];throw new p("Unsupported character: "+u)}},Vt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Sn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],En=function(u,h){return h.size<2?u:Vt[u-1][h.size-1]},gn=function(){function V(h){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=h.style,this.color=h.color,this.size=h.size||V.BASESIZE,this.textSize=h.textSize||this.size,this.phantom=!!h.phantom,this.font=h.font||"",this.fontFamily=h.fontFamily||"",this.fontWeight=h.fontWeight||"",this.fontShape=h.fontShape||"",this.sizeMultiplier=Sn[this.size-1],this.maxSize=h.maxSize,this.minRuleThickness=h.minRuleThickness,this._fontMetrics=void 0}var u=V.prototype;return u.extend=function(f){var _={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var D in f)f.hasOwnProperty(D)&&(_[D]=f[D]);return new V(_)},u.havingStyle=function(f){return this.style===f?this:this.extend({style:f,size:En(this.textSize,f)})},u.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},u.havingSize=function(f){return this.size===f&&this.textSize===f?this:this.extend({style:this.style.text(),size:f,textSize:f,sizeMultiplier:Sn[f-1]})},u.havingBaseStyle=function(f){f=f||this.style.text();var _=En(V.BASESIZE,f);return this.size===_&&this.textSize===V.BASESIZE&&this.style===f?this:this.extend({style:f,size:_})},u.havingBaseSizing=function(){var f;switch(this.style.id){case 4:case 5:f=3;break;case 6:case 7:f=1;break;default:f=6}return this.extend({style:this.style.text(),size:f})},u.withColor=function(f){return this.extend({color:f})},u.withPhantom=function(){return this.extend({phantom:!0})},u.withFont=function(f){return this.extend({font:f})},u.withTextFontFamily=function(f){return this.extend({fontFamily:f,font:""})},u.withTextFontWeight=function(f){return this.extend({fontWeight:f,font:""})},u.withTextFontShape=function(f){return this.extend({fontShape:f,font:""})},u.sizingClasses=function(f){return f.size!==this.size?["sizing","reset-size"+f.size,"size"+this.size]:[]},u.baseSizingClasses=function(){return this.size!==V.BASESIZE?["sizing","reset-size"+this.size,"size"+V.BASESIZE]:[]},u.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=$t(this.size)),this._fontMetrics},u.getColor=function(){return this.phantom?"transparent":this.color},V}();gn.BASESIZE=6;var Yn=gn,An={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},fn={ex:!0,em:!0,mu:!0},tt=function(u){return typeof u!="string"&&(u=u.unit),u in An||u in fn||u==="ex"},Qe=function(u,h){var f;if(u.unit in An)f=An[u.unit]/h.fontMetrics().ptPerEm/h.sizeMultiplier;else if(u.unit==="mu")f=h.fontMetrics().cssEmPerMu;else{var _;if(h.style.isTight()?_=h.havingStyle(h.style.text()):_=h,u.unit==="ex")f=_.fontMetrics().xHeight;else if(u.unit==="em")f=_.fontMetrics().quad;else throw new p("Invalid unit: '"+u.unit+"'");_!==h&&(f*=_.sizeMultiplier/h.sizeMultiplier)}return Math.min(u.number*f,h.maxSize)},gt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Lt=function(u,h,f){return nn[f][u]&&nn[f][u].replace&&(u=nn[f][u].replace),{value:u,metrics:St(u,h,f)}},ot=function(u,h,f,_,D){var H=Lt(u,h,f),be=H.metrics;u=H.value;var Le;if(be){var $e=be.italic;(f==="text"||_&&_.font==="mathit")&&($e=0),Le=new ne(u,be.height,be.depth,$e,be.skew,be.width,D)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+u+"' in style '"+h+"' and mode '"+f+"'")),Le=new ne(u,0,0,0,0,0,D);if(_){Le.maxFontSize=_.sizeMultiplier,_.style.isTight()&&Le.classes.push("mtight");var st=_.getColor();st&&(Le.style.color=st)}return Le},zt=function(u,h,f,_){return _===void 0&&(_=[]),f.font==="boldsymbol"&&Lt(u,"Main-Bold",h).metrics?ot(u,"Main-Bold",h,f,_.concat(["mathbf"])):u==="\\"||nn[h][u].font==="main"?ot(u,"Main-Regular",h,f,_):ot(u,"AMS-Regular",h,f,_.concat(["amsrm"]))},At=function(u,h,f,_){return/[0-9]/.test(u.charAt(0))||M.contains(gt,u)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},jt=function(u,h,f,_){return M.contains(gt,u)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(u.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},en=function(u,h,f,_){return Lt(u,"Math-BoldItalic",h).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},qt=function(u,h,f){var _=u.mode,D=u.text,H=["mord"],be=_==="math"||_==="text"&&h.font,Le=be?h.font:h.fontFamily;if(D.charCodeAt(0)===55349){var $e=Gt(D,_),st=$e[0],mt=$e[1];return ot(D,st,_,h,H.concat(mt))}else if(Le){var Pt,Zt;if(Le==="boldsymbol"||Le==="mathnormal"){var sn=Le==="boldsymbol"?en(D,_,h,H):jt(D,_,h,H);Pt=sn.fontName,Zt=[sn.fontClass]}else M.contains(gt,D)?(Pt="Main-Italic",Zt=["mathit"]):be?(Pt=ur[Le].fontName,Zt=[Le]):(Pt=Wn(Le,h.fontWeight,h.fontShape),Zt=[Le,h.fontWeight,h.fontShape]);if(Lt(D,Pt,_).metrics)return ot(D,Pt,_,h,H.concat(Zt));if(Qt.hasOwnProperty(D)&&Pt.substr(0,10)==="Typewriter"){for(var hn=[],Xe=0;Xe<D.length;Xe++)hn.push(ot(D[Xe],Pt,_,h,H.concat(Zt)));return Rn(hn)}}if(f==="mathord"){var Xn=At(D,_,h,H);return ot(D,Xn.fontName,_,h,H.concat([Xn.fontClass]))}else if(f==="textord"){var er=nn[_][D]&&nn[_][D].font;if(er==="ams"){var lr=Wn("amsrm",h.fontWeight,h.fontShape);return ot(D,lr,_,h,H.concat("amsrm",h.fontWeight,h.fontShape))}else if(er==="main"||!er){var Cr=Wn("textrm",h.fontWeight,h.fontShape);return ot(D,Cr,_,h,H.concat(h.fontWeight,h.fontShape))}else{var Or=Wn(er,h.fontWeight,h.fontShape);return ot(D,Or,_,h,H.concat(Or,h.fontWeight,h.fontShape))}}else throw new Error("unexpected type: "+f+" in makeOrd")},wn=function(u,h){if(Ot(u.classes)!==Ot(h.classes)||u.skew!==h.skew||u.maxFontSize!==h.maxFontSize)return!1;for(var f in u.style)if(u.style.hasOwnProperty(f)&&u.style[f]!==h.style[f])return!1;for(var _ in h.style)if(h.style.hasOwnProperty(_)&&u.style[_]!==h.style[_])return!1;return!0},Cn=function(u){for(var h=0;h<u.length-1;h++){var f=u[h],_=u[h+1];f instanceof ne&&_ instanceof ne&&wn(f,_)&&(f.text+=_.text,f.height=Math.max(f.height,_.height),f.depth=Math.max(f.depth,_.depth),f.italic=_.italic,u.splice(h+1,1),h--)}return u},Kn=function(u){for(var h=0,f=0,_=0,D=0;D<u.children.length;D++){var H=u.children[D];H.height>h&&(h=H.height),H.depth>f&&(f=H.depth),H.maxFontSize>_&&(_=H.maxFontSize)}u.height=h,u.depth=f,u.maxFontSize=_},bn=function(u,h,f,_){var D=new j(u,h,f,_);return Kn(D),D},vn=function(u,h,f,_){return new j(u,h,f,_)},nr=function(u,h,f){var _=bn([u],[],h);return _.height=Math.max(f||h.fontMetrics().defaultRuleThickness,h.minRuleThickness),_.style.borderBottomWidth=_.height+"em",_.maxFontSize=1,_},ir=function(u,h,f,_){var D=new pe(u,h,f,_);return Kn(D),D},Rn=function(u){var h=new vt(u);return Kn(h),h},On=function(u,h){return u instanceof vt?bn([],[u],h):u},Nn=function(u){if(u.positionType==="individualShift"){for(var h=u.children,f=[h[0]],_=-h[0].shift-h[0].elem.depth,D=_,H=1;H<h.length;H++){var be=-h[H].shift-D-h[H].elem.depth,Le=be-(h[H-1].elem.height+h[H-1].elem.depth);D=D+be,f.push({type:"kern",size:Le}),f.push(h[H])}return{children:f,depth:_}}var $e;if(u.positionType==="top"){for(var st=u.positionData,mt=0;mt<u.children.length;mt++){var Pt=u.children[mt];st-=Pt.type==="kern"?Pt.size:Pt.elem.height+Pt.elem.depth}$e=st}else if(u.positionType==="bottom")$e=-u.positionData;else{var Zt=u.children[0];if(Zt.type!=="elem")throw new Error('First child must have type "elem".');if(u.positionType==="shift")$e=-Zt.elem.depth-u.positionData;else if(u.positionType==="firstBaseline")$e=-Zt.elem.depth;else throw new Error("Invalid positionType "+u.positionType+".")}return{children:u.children,depth:$e}},Un=function(u,h){for(var f=Nn(u),_=f.children,D=f.depth,H=0,be=0;be<_.length;be++){var Le=_[be];if(Le.type==="elem"){var $e=Le.elem;H=Math.max(H,$e.maxFontSize,$e.height)}}H+=2;var st=bn(["pstrut"],[]);st.style.height=H+"em";for(var mt=[],Pt=D,Zt=D,sn=D,hn=0;hn<_.length;hn++){var Xe=_[hn];if(Xe.type==="kern")sn+=Xe.size;else{var Xn=Xe.elem,er=Xe.wrapperClasses||[],lr=Xe.wrapperStyle||{},Cr=bn(er,[st,Xn],void 0,lr);Cr.style.top=-H-sn-Xn.depth+"em",Xe.marginLeft&&(Cr.style.marginLeft=Xe.marginLeft),Xe.marginRight&&(Cr.style.marginRight=Xe.marginRight),mt.push(Cr),sn+=Xn.height+Xn.depth}Pt=Math.min(Pt,sn),Zt=Math.max(Zt,sn)}var Or=bn(["vlist"],mt);Or.style.height=Zt+"em";var Kr;if(Pt<0){var Wr=bn([],[]),Jr=bn(["vlist"],[Wr]);Jr.style.height=-Pt+"em";var gi=bn(["vlist-s"],[new ne("\u200B")]);Kr=[bn(["vlist-r"],[Or,gi]),bn(["vlist-r"],[Jr])]}else Kr=[bn(["vlist-r"],[Or])];var qr=bn(["vlist-t"],Kr);return Kr.length===2&&qr.classes.push("vlist-t2"),qr.height=Zt,qr.depth=-Pt,qr},Bn=function(u,h){var f=bn(["mspace"],[],h),_=Qe(u,h);return f.style.marginRight=_+"em",f},Wn=function(u,h,f){var _="";switch(u){case"amsrm":_="AMS";break;case"textrm":_="Main";break;case"textsf":_="SansSerif";break;case"texttt":_="Typewriter";break;default:_=u}var D;return h==="textbf"&&f==="textit"?D="BoldItalic":h==="textbf"?D="Bold":h==="textit"?D="Italic":D="Regular",_+"-"+D},ur={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},sr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Qn=function(u,h){var f=sr[u],_=f[0],D=f[1],H=f[2],be=new ye(_),Le=new fe([be],{width:D+"em",height:H+"em",style:"width:"+D+"em",viewBox:"0 0 "+1e3*D+" "+1e3*H,preserveAspectRatio:"xMinYMin"}),$e=vn(["overlay"],[Le],h);return $e.height=H,$e.style.height=H+"em",$e.style.width=D+"em",$e},lt={fontMap:ur,makeSymbol:ot,mathsym:zt,makeSpan:bn,makeSvgSpan:vn,makeLineSpan:nr,makeAnchor:ir,makeFragment:Rn,wrapFragment:On,makeVList:Un,makeOrd:qt,makeGlue:Bn,staticSvg:Qn,svgData:sr,tryCombineChars:Cn};function Tn(V,u){var h=Hn(V,u);if(!h)throw new Error("Expected node of type "+u+", but got "+(V?"node of type "+V.type:String(V)));return h}function Hn(V,u){return V&&V.type===u?V:null}function jn(V,u){var h=$r(V,u);if(!h)throw new Error('Expected node of type "atom" and family "'+u+'", but got '+(V?V.type==="atom"?"atom of family "+V.family:"node of type "+V.type:String(V)));return h}function $r(V,u){return V&&V.type==="atom"&&V.family===u?V:null}function Vn(V){var u=gr(V);if(!u)throw new Error("Expected node of symbol group type, but got "+(V?"node of type "+V.type:String(V)));return u}function gr(V){return V&&(V.type==="atom"||Nt.hasOwnProperty(V.type))?V:null}var kn={number:3,unit:"mu"},Ir={number:4,unit:"mu"},Br={number:5,unit:"mu"},pr={mord:{mop:kn,mbin:Ir,mrel:Br,minner:kn},mop:{mord:kn,mop:kn,mrel:Br,minner:kn},mbin:{mord:Ir,mop:Ir,mopen:Ir,minner:Ir},mrel:{mord:Br,mop:Br,mopen:Br,minner:Br},mopen:{},mclose:{mop:kn,mbin:Ir,mrel:Br,minner:kn},mpunct:{mord:kn,mop:kn,mrel:Br,mopen:kn,mclose:kn,mpunct:kn,minner:kn},minner:{mord:kn,mop:kn,mbin:Ir,mrel:Br,mopen:kn,mpunct:kn,minner:kn}},ui={mord:{mop:kn},mop:{mord:kn,mop:kn},mbin:{},mrel:{},mopen:{},mclose:{mop:kn},mpunct:{},minner:{mop:kn}},si={},Yr={},Xr={};function _n(V){for(var u=V.type,h=V.names,f=V.props,_=V.handler,D=V.htmlBuilder,H=V.mathmlBuilder,be={type:u,numArgs:f.numArgs,argTypes:f.argTypes,greediness:f.greediness===void 0?1:f.greediness,allowedInText:!!f.allowedInText,allowedInMath:f.allowedInMath===void 0?!0:f.allowedInMath,numOptionalArgs:f.numOptionalArgs||0,infix:!!f.infix,handler:_},Le=0;Le<h.length;++Le)si[h[Le]]=be;u&&(D&&(Yr[u]=D),H&&(Xr[u]=H))}function cr(V){var u=V.type,h=V.htmlBuilder,f=V.mathmlBuilder;_n({type:u,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:h,mathmlBuilder:f})}var dr=function(u){var h=Hn(u,"ordgroup");return h?h.body:[u]},vr=lt.makeSpan,Qr=["leftmost","mbin","mopen","mrel","mop","mpunct"],kr=["rightmost","mrel","mclose","mpunct"],xr={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT},Hr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},hr=function(u,h,f,_){_===void 0&&(_=[null,null]);for(var D=[],H=0;H<u.length;H++){var be=rr(u[H],h);if(be instanceof vt){var Le=be.children;D.push.apply(D,Le)}else D.push(be)}if(!f)return D;var $e=h;if(u.length===1){var st=Hn(u[0],"sizing")||Hn(u[0],"styling");st&&(st.type==="sizing"?$e=h.havingSize(st.size):st.type==="styling"&&($e=h.havingStyle(xr[st.style])))}var mt=vr([_[0]||"leftmost"],[],h),Pt=vr([_[1]||"rightmost"],[],h);return ai(D,function(Zt,sn){var hn=sn.classes[0],Xe=Zt.classes[0];hn==="mbin"&&M.contains(kr,Xe)?sn.classes[0]="mord":Xe==="mbin"&&M.contains(Qr,hn)&&(Zt.classes[0]="mord")},{node:mt},Pt),ai(D,function(Zt,sn){var hn=oi(sn),Xe=oi(Zt),Xn=hn&&Xe?Zt.hasClass("mtight")?ui[hn][Xe]:pr[hn][Xe]:null;if(Xn)return lt.makeGlue(Xn,$e)},{node:mt},Pt),D},ai=function V(u,h,f,_){_&&u.push(_);for(var D=0;D<u.length;D++){var H=u[D],be=In(H);if(be){V(be.children,h,f);continue}if(H.classes[0]!=="mspace"){var Le=h(H,f.node);Le&&(f.insertAfter?f.insertAfter(Le):(u.unshift(Le),D++)),f.node=H,f.insertAfter=function($e){return function(st){u.splice($e+1,0,st),D++}}(D)}}_&&u.pop()},In=function(u){return u instanceof vt||u instanceof pe?u:null},li=function V(u,h){var f=In(u);if(f){var _=f.children;if(_.length){if(h==="right")return V(_[_.length-1],"right");if(h==="left")return V(_[0],"left")}}return u},oi=function(u,h){return u?(h&&(u=li(u,h)),Hr[u.classes[0]]||null):null},ti=function(u,h){var f=["nulldelimiter"].concat(u.baseSizingClasses());return vr(h.concat(f))},rr=function(u,h,f){if(!u)return vr();if(Yr[u.type]){var _=Yr[u.type](u,h);if(f&&h.size!==f.size){_=vr(h.sizingClasses(f),[_],h);var D=h.sizeMultiplier/f.sizeMultiplier;_.height*=D,_.depth*=D}return _}else throw new p("Got group of unknown type: '"+u.type+"'")};function di(V,u){var h=vr(["base"],V,u),f=vr(["strut"]);return f.style.height=h.height+h.depth+"em",f.style.verticalAlign=-h.depth+"em",h.children.unshift(f),h}function _i(V,u){var h=null;V.length===1&&V[0].type==="tag"&&(h=V[0].tag,V=V[0].body);for(var f=hr(V,u,!0),_=[],D=[],H=0;H<f.length;H++)if(D.push(f[H]),f[H].hasClass("mbin")||f[H].hasClass("mrel")||f[H].hasClass("allowbreak")){for(var be=!1;H<f.length-1&&f[H+1].hasClass("mspace")&&!f[H+1].hasClass("newline");)H++,D.push(f[H]),f[H].hasClass("nobreak")&&(be=!0);be||(_.push(di(D,u)),D=[])}else f[H].hasClass("newline")&&(D.pop(),D.length>0&&(_.push(di(D,u)),D=[]),_.push(f[H]));D.length>0&&_.push(di(D,u));var Le;h&&(Le=di(hr(h,u,!0)),Le.classes=["tag"],_.push(Le));var $e=vr(["katex-html"],_);if($e.setAttribute("aria-hidden","true"),Le){var st=Le.children[0];st.style.height=$e.height+$e.depth+"em",st.style.verticalAlign=-$e.depth+"em"}return $e}function hi(V){return new vt(V)}var zn=function(){function V(h,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=h,this.attributes={},this.children=f||[]}var u=V.prototype;return u.setAttribute=function(f,_){this.attributes[f]=_},u.getAttribute=function(f){return this.attributes[f]},u.toNode=function(){var f=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&f.setAttribute(_,this.attributes[_]);for(var D=0;D<this.children.length;D++)f.appendChild(this.children[D].toNode());return f},u.toMarkup=function(){var f="<"+this.type;for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&(f+=" "+_+'="',f+=M.escape(this.attributes[_]),f+='"');f+=">";for(var D=0;D<this.children.length;D++)f+=this.children[D].toMarkup();return f+="</"+this.type+">",f},u.toText=function(){return this.children.map(function(f){return f.toText()}).join("")},V}(),fi=function(){function V(h){this.text=void 0,this.text=h}var u=V.prototype;return u.toNode=function(){return document.createTextNode(this.text)},u.toMarkup=function(){return M.escape(this.toText())},u.toText=function(){return this.text},V}(),yi=function(){function V(h){this.width=void 0,this.character=void 0,this.width=h,h>=.05555&&h<=.05556?this.character="\u200A":h>=.1666&&h<=.1667?this.character="\u2009":h>=.2222&&h<=.2223?this.character="\u2005":h>=.2777&&h<=.2778?this.character="\u2005\u200A":h>=-.05556&&h<=-.05555?this.character="\u200A\u2063":h>=-.1667&&h<=-.1666?this.character="\u2009\u2063":h>=-.2223&&h<=-.2222?this.character="\u205F\u2063":h>=-.2778&&h<=-.2777?this.character="\u2005\u2063":this.character=null}var u=V.prototype;return u.toNode=function(){if(this.character)return document.createTextNode(this.character);var f=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return f.setAttribute("width",this.width+"em"),f},u.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},u.toText=function(){return this.character?this.character:" "},V}(),tn={MathNode:zn,TextNode:fi,SpaceNode:yi,newDocumentFragment:hi},Vr=function(u,h,f){return nn[h][u]&&nn[h][u].replace&&u.charCodeAt(0)!==55349&&!(Qt.hasOwnProperty(u)&&f&&(f.fontFamily&&f.fontFamily.substr(4,2)==="tt"||f.font&&f.font.substr(4,2)==="tt"))&&(u=nn[h][u].replace),new tn.TextNode(u)},pi=function(u){return u.length===1?u[0]:new tn.MathNode("mrow",u)},ci=function(u,h){if(h.fontFamily==="texttt")return"monospace";if(h.fontFamily==="textsf")return h.fontShape==="textit"&&h.fontWeight==="textbf"?"sans-serif-bold-italic":h.fontShape==="textit"?"sans-serif-italic":h.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(h.fontShape==="textit"&&h.fontWeight==="textbf")return"bold-italic";if(h.fontShape==="textit")return"italic";if(h.fontWeight==="textbf")return"bold";var f=h.font;if(!f||f==="mathnormal")return null;var _=u.mode;if(f==="mathit")return"italic";if(f==="boldsymbol")return"bold-italic";if(f==="mathbf")return"bold";if(f==="mathbb")return"double-struck";if(f==="mathfrak")return"fraktur";if(f==="mathscr"||f==="mathcal")return"script";if(f==="mathsf")return"sans-serif";if(f==="mathtt")return"monospace";var D=u.text;if(M.contains(["\\imath","\\jmath"],D))return null;nn[_][D]&&nn[_][D].replace&&(D=nn[_][D].replace);var H=lt.fontMap[f].fontName;return St(D,H,_)?lt.fontMap[f].variant:null},wr=function(u,h,f){if(u.length===1){var _=ar(u[0],h);return f&&_ instanceof zn&&_.type==="mo"&&(_.setAttribute("lspace","0em"),_.setAttribute("rspace","0em")),[_]}for(var D=[],H,be=0;be<u.length;be++){var Le=ar(u[be],h);if(Le instanceof zn&&H instanceof zn){if(Le.type==="mtext"&&H.type==="mtext"&&Le.getAttribute("mathvariant")===H.getAttribute("mathvariant")){var $e;($e=H.children).push.apply($e,Le.children);continue}else if(Le.type==="mn"&&H.type==="mn"){var st;(st=H.children).push.apply(st,Le.children);continue}else if(Le.type==="mi"&&Le.children.length===1&&H.type==="mn"){var mt=Le.children[0];if(mt instanceof fi&&mt.text==="."){var Pt;(Pt=H.children).push.apply(Pt,Le.children);continue}}else if(H.type==="mi"&&H.children.length===1){var Zt=H.children[0];if(Zt instanceof fi&&Zt.text==="\u0338"&&(Le.type==="mo"||Le.type==="mi"||Le.type==="mn")){var sn=Le.children[0];sn instanceof fi&&sn.text.length>0&&(sn.text=sn.text.slice(0,1)+"\u0338"+sn.text.slice(1),D.pop())}}}D.push(Le),H=Le}return D},Ar=function(u,h,f){return pi(wr(u,h,f))},ar=function(u,h){if(!u)return new tn.MathNode("mrow");if(Xr[u.type]){var f=Xr[u.type](u,h);return f}else throw new p("Got group of unknown type: '"+u.type+"'")};function Tr(V,u,h,f){var _=wr(V,h),D;_.length===1&&_[0]instanceof zn&&M.contains(["mrow","mtable"],_[0].type)?D=_[0]:D=new tn.MathNode("mrow",_);var H=new tn.MathNode("annotation",[new tn.TextNode(u)]);H.setAttribute("encoding","application/x-tex");var be=new tn.MathNode("semantics",[D,H]),Le=new tn.MathNode("math",[be]);Le.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var $e=f?"katex":"katex-mathml";return lt.makeSpan([$e],[Le])}var Zr=function(u){return new Yn({style:u.displayMode?g.DISPLAY:g.TEXT,maxSize:u.maxSize,minRuleThickness:u.minRuleThickness})},ni=function(u,h){if(h.displayMode){var f=["katex-display"];h.leqno&&f.push("leqno"),h.fleqn&&f.push("fleqn"),u=lt.makeSpan(f,[u])}return u},Gr=function(u,h,f){var _=Zr(f),D;if(f.output==="mathml")return Tr(u,h,_,!0);if(f.output==="html"){var H=_i(u,_);D=lt.makeSpan(["katex"],[H])}else{var be=Tr(u,h,_,!1),Le=_i(u,_);D=lt.makeSpan(["katex"],[be,Le])}return ni(D,f)},Nr=function(u,h,f){var _=Zr(f),D=_i(u,_),H=lt.makeSpan(["katex"],[D]);return ni(H,f)},or=Gr,Jn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},qn=function(u){var h=new tn.MathNode("mo",[new tn.TextNode(Jn[u.substr(1)])]);return h.setAttribute("stretchy","true"),h},Lr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Fr=function(u){return u.type==="ordgroup"?u.body.length:1},ri=function(u,h){function f(){var Le=4e5,$e=u.label.substr(1);if(M.contains(["widehat","widecheck","widetilde","utilde"],$e)){var st=u,mt=Fr(st.base),Pt,Zt,sn;if(mt>5)$e==="widehat"||$e==="widecheck"?(Pt=420,Le=2364,sn=.42,Zt=$e+"4"):(Pt=312,Le=2340,sn=.34,Zt="tilde4");else{var hn=[1,1,2,2,3,3][mt];$e==="widehat"||$e==="widecheck"?(Le=[0,1062,2364,2364,2364][hn],Pt=[0,239,300,360,420][hn],sn=[0,.24,.3,.3,.36,.42][hn],Zt=$e+hn):(Le=[0,600,1033,2339,2340][hn],Pt=[0,260,286,306,312][hn],sn=[0,.26,.286,.3,.306,.34][hn],Zt="tilde"+hn)}var Xe=new ye(Zt),Xn=new fe([Xe],{width:"100%",height:sn+"em",viewBox:"0 0 "+Le+" "+Pt,preserveAspectRatio:"none"});return{span:lt.makeSvgSpan([],[Xn],h),minWidth:0,height:sn}}else{var er=[],lr=Lr[$e],Cr=lr[0],Or=lr[1],Kr=lr[2],Wr=Kr/1e3,Jr=Cr.length,gi,qr;if(Jr===1){var Dr=lr[3];gi=["hide-tail"],qr=[Dr]}else if(Jr===2)gi=["halfarrow-left","halfarrow-right"],qr=["xMinYMin","xMaxYMin"];else if(Jr===3)gi=["brace-left","brace-center","brace-right"],qr=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
`+Jr+" children.");for(var Ai=0;Ai<Jr;Ai++){var Mi=new ye(Cr[Ai]),ei=new fe([Mi],{width:"400em",height:Wr+"em",viewBox:"0 0 "+Le+" "+Kr,preserveAspectRatio:qr[Ai]+" slice"}),vi=lt.makeSvgSpan([gi[Ai]],[ei],h);if(Jr===1)return{span:vi,minWidth:Or,height:Wr};vi.style.height=Wr+"em",er.push(vi)}return{span:lt.makeSpan(["stretchy"],er,h),minWidth:Or,height:Wr}}}var _=f(),D=_.span,H=_.minWidth,be=_.height;return D.height=be,D.style.height=be+"em",H>0&&(D.style.minWidth=H+"em"),D},mn=function(u,h,f,_){var D,H=u.height+u.depth+2*f;if(/fbox|color/.test(h)){if(D=lt.makeSpan(["stretchy",h],[],_),h==="fbox"){var be=_.color&&_.getColor();be&&(D.style.borderColor=be)}}else{var Le=[];/^[bx]cancel$/.test(h)&&Le.push(new ke({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(h)&&Le.push(new ke({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var $e=new fe(Le,{width:"100%",height:H+"em"});D=lt.makeSvgSpan([],[$e],_)}return D.height=H,D.style.height=H+"em",D},Ln={encloseSpan:mn,mathMLnode:qn,svgSpan:ri},Pr=function(u,h){var f,_,D=Hn(u,"supsub"),H;D?(_=Tn(D.base,"accent"),f=_.base,D.base=f,H=Ze(rr(D,h)),D.base=_):(_=Tn(u,"accent"),f=_.base);var be=rr(f,h.havingCrampedStyle()),Le=_.isShifty&&M.isCharacterBox(f),$e=0;if(Le){var st=M.getBaseElem(f),mt=rr(st,h.havingCrampedStyle());$e=Oe(mt).skew}var Pt=Math.min(be.height,h.fontMetrics().xHeight),Zt;if(_.isStretchy)Zt=Ln.svgSpan(_,h),Zt=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"elem",elem:Zt,wrapperClasses:["svg-align"],wrapperStyle:$e>0?{width:"calc(100% - "+2*$e+"em)",marginLeft:2*$e+"em"}:void 0}]},h);else{var sn,hn;_.label==="\\vec"?(sn=lt.staticSvg("vec",h),hn=lt.svgData.vec[1]):(sn=lt.makeOrd({mode:_.mode,text:_.label},h,"textord"),sn=Oe(sn),sn.italic=0,hn=sn.width),Zt=lt.makeSpan(["accent-body"],[sn]);var Xe=_.label==="\\textcircled";Xe&&(Zt.classes.push("accent-full"),Pt=be.height);var Xn=$e;Xe||(Xn-=hn/2),Zt.style.left=Xn+"em",_.label==="\\textcircled"&&(Zt.style.top=".2em"),Zt=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:-Pt},{type:"elem",elem:Zt}]},h)}var er=lt.makeSpan(["mord","accent"],[Zt],h);return H?(H.children[0]=er,H.height=Math.max(er.height,H.height),H.classes[0]="mord",H):er},Ur=function(u,h){var f=u.isStretchy?Ln.mathMLnode(u.label):new tn.MathNode("mo",[Vr(u.label,u.mode)]),_=new tn.MathNode("mover",[ar(u.base,h),f]);return _.setAttribute("accent","true"),_},_r=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(V){return"\\"+V}).join("|"));_n({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(u,h){var f=h[0],_=!_r.test(u.funcName),D=!_||u.funcName==="\\widehat"||u.funcName==="\\widetilde"||u.funcName==="\\widecheck";return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:_,isShifty:D,base:f}},htmlBuilder:Pr,mathmlBuilder:Ur}),_n({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(u,h){var f=h[0];return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:!1,isShifty:!0,base:f}},htmlBuilder:Pr,mathmlBuilder:Ur}),_n({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0];return{type:"accentUnder",mode:f.mode,label:_,base:D}},htmlBuilder:function(u,h){var f=rr(u.base,h),_=Ln.svgSpan(u,h),D=u.label==="\\utilde"?.12:0,H=lt.makeVList({positionType:"bottom",positionData:_.height+D,children:[{type:"elem",elem:_,wrapperClasses:["svg-align"]},{type:"kern",size:D},{type:"elem",elem:f}]},h);return lt.makeSpan(["mord","accentunder"],[H],h)},mathmlBuilder:function(u,h){var f=Ln.mathMLnode(u.label),_=new tn.MathNode("munder",[ar(u.base,h),f]);return _.setAttribute("accentunder","true"),_}});var Ci=function(u){var h=new tn.MathNode("mpadded",u?[u]:[]);return h.setAttribute("width","+0.6em"),h.setAttribute("lspace","0.3em"),h};_n({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(u,h,f){var _=u.parser,D=u.funcName;return{type:"xArrow",mode:_.mode,label:D,body:h[0],below:f[0]}},htmlBuilder:function(u,h){var f=h.style,_=h.havingStyle(f.sup()),D=lt.wrapFragment(rr(u.body,_,h),h);D.classes.push("x-arrow-pad");var H;u.below&&(_=h.havingStyle(f.sub()),H=lt.wrapFragment(rr(u.below,_,h),h),H.classes.push("x-arrow-pad"));var be=Ln.svgSpan(u,h),Le=-h.fontMetrics().axisHeight+.5*be.height,$e=-h.fontMetrics().axisHeight-.5*be.height-.111;(D.depth>.25||u.label==="\\xleftequilibrium")&&($e-=D.depth);var st;if(H){var mt=-h.fontMetrics().axisHeight+H.height+.5*be.height+.111;st=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:$e},{type:"elem",elem:be,shift:Le},{type:"elem",elem:H,shift:mt}]},h)}else st=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:$e},{type:"elem",elem:be,shift:Le}]},h);return st.children[0].children[0].children[1].classes.push("svg-align"),lt.makeSpan(["mrel","x-arrow"],[st],h)},mathmlBuilder:function(u,h){var f=Ln.mathMLnode(u.label),_;if(u.body){var D=Ci(ar(u.body,h));if(u.below){var H=Ci(ar(u.below,h));_=new tn.MathNode("munderover",[f,H,D])}else _=new tn.MathNode("mover",[f,D])}else if(u.below){var be=Ci(ar(u.below,h));_=new tn.MathNode("munder",[f,be])}else _=Ci(),_=new tn.MathNode("mover",[f,_]);return _}}),_n({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){for(var f=u.parser,_=Tn(h[0],"ordgroup"),D=_.body,H="",be=0;be<D.length;be++){var Le=Tn(D[be],"textord");H+=Le.text}var $e=parseInt(H);if(isNaN($e))throw new p("\\@char has non-numeric argument "+H);return{type:"textord",mode:f.mode,text:String.fromCharCode($e)}}});var ki=function(u,h){var f=hr(u.body,h.withColor(u.color),!1);return lt.makeFragment(f)},Di=function(u,h){var f=wr(u.body,h.withColor(u.color)),_=new tn.MathNode("mstyle",f);return _.setAttribute("mathcolor",u.color),_};_n({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(u,h){var f=u.parser,_=Tn(h[0],"color-token").color,D=h[1];return{type:"color",mode:f.mode,color:_,body:dr(D)}},htmlBuilder:ki,mathmlBuilder:Di}),_n({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(u,h){var f=u.parser,_=u.breakOnTokenText,D=Tn(h[0],"color-token").color;f.gullet.macros.set("\\current@color",D);var H=f.parseExpression(!0,_);return{type:"color",mode:f.mode,color:D,body:H}},htmlBuilder:ki,mathmlBuilder:Di}),_n({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,h,f){var _=u.parser,D=u.funcName,H=f[0],be=D==="\\cr",Le=!1;return be||(_.settings.displayMode&&_.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Le=!1:Le=!0),{type:"cr",mode:_.mode,newLine:Le,newRow:be,size:H&&Tn(H,"size").value}},htmlBuilder:function(u,h){if(u.newRow)throw new p("\\cr valid only within a tabular/array environment");var f=lt.makeSpan(["mspace"],[],h);return u.newLine&&(f.classes.push("newline"),u.size&&(f.style.marginTop=Qe(u.size,h)+"em")),f},mathmlBuilder:function(u,h){var f=new tn.MathNode("mspace");return u.newLine&&(f.setAttribute("linebreak","newline"),u.size&&f.setAttribute("height",Qe(u.size,h)+"em")),f}});var Ri=function(u,h,f){var _=nn.math[u]&&nn.math[u].replace,D=St(_||u,h,f);if(!D)throw new Error("Unsupported symbol "+u+" and font size "+h+".");return D},os=function(u,h,f,_){var D=f.havingBaseStyle(h),H=lt.makeSpan(_.concat(D.sizingClasses(f)),[u],f),be=D.sizeMultiplier/f.sizeMultiplier;return H.height*=be,H.depth*=be,H.maxFontSize=D.sizeMultiplier,H},bs=function(u,h,f){var _=h.havingBaseStyle(f),D=(1-h.sizeMultiplier/_.sizeMultiplier)*h.fontMetrics().axisHeight;u.classes.push("delimcenter"),u.style.top=D+"em",u.height-=D,u.depth+=D},Us=function(u,h,f,_,D,H){var be=lt.makeSymbol(u,"Main-Regular",D,_),Le=os(be,h,_,H);return f&&bs(Le,_,h),Le},Ki=function(u,h,f,_){return lt.makeSymbol(u,"Size"+h+"-Regular",f,_)},zs=function(u,h,f,_,D,H){var be=Ki(u,h,D,_),Le=os(lt.makeSpan(["delimsizing","size"+h],[be],_),g.TEXT,_,H);return f&&bs(Le,_,g.TEXT),Le},ii=function(u,h,f){var _;h==="Size1-Regular"?_="delim-size1":_="delim-size4";var D=lt.makeSpan(["delimsizinginner",_],[lt.makeSpan([],[lt.makeSymbol(u,h,f)])]);return{type:"elem",elem:D}},bi={type:"kern",size:-.005},xs=function(u,h,f,_,D,H){var be,Le,$e,st;be=$e=st=u,Le=null;var mt="Size1-Regular";u==="\\uparrow"?$e=st="\u23D0":u==="\\Uparrow"?$e=st="\u2016":u==="\\downarrow"?be=$e="\u23D0":u==="\\Downarrow"?be=$e="\u2016":u==="\\updownarrow"?(be="\\uparrow",$e="\u23D0",st="\\downarrow"):u==="\\Updownarrow"?(be="\\Uparrow",$e="\u2016",st="\\Downarrow"):u==="["||u==="\\lbrack"?(be="\u23A1",$e="\u23A2",st="\u23A3",mt="Size4-Regular"):u==="]"||u==="\\rbrack"?(be="\u23A4",$e="\u23A5",st="\u23A6",mt="Size4-Regular"):u==="\\lfloor"||u==="\u230A"?($e=be="\u23A2",st="\u23A3",mt="Size4-Regular"):u==="\\lceil"||u==="\u2308"?(be="\u23A1",$e=st="\u23A2",mt="Size4-Regular"):u==="\\rfloor"||u==="\u230B"?($e=be="\u23A5",st="\u23A6",mt="Size4-Regular"):u==="\\rceil"||u==="\u2309"?(be="\u23A4",$e=st="\u23A5",mt="Size4-Regular"):u==="("||u==="\\lparen"?(be="\u239B",$e="\u239C",st="\u239D",mt="Size4-Regular"):u===")"||u==="\\rparen"?(be="\u239E",$e="\u239F",st="\u23A0",mt="Size4-Regular"):u==="\\{"||u==="\\lbrace"?(be="\u23A7",Le="\u23A8",st="\u23A9",$e="\u23AA",mt="Size4-Regular"):u==="\\}"||u==="\\rbrace"?(be="\u23AB",Le="\u23AC",st="\u23AD",$e="\u23AA",mt="Size4-Regular"):u==="\\lgroup"||u==="\u27EE"?(be="\u23A7",st="\u23A9",$e="\u23AA",mt="Size4-Regular"):u==="\\rgroup"||u==="\u27EF"?(be="\u23AB",st="\u23AD",$e="\u23AA",mt="Size4-Regular"):u==="\\lmoustache"||u==="\u23B0"?(be="\u23A7",st="\u23AD",$e="\u23AA",mt="Size4-Regular"):(u==="\\rmoustache"||u==="\u23B1")&&(be="\u23AB",st="\u23A9",$e="\u23AA",mt="Size4-Regular");var Pt=Ri(be,mt,D),Zt=Pt.height+Pt.depth,sn=Ri($e,mt,D),hn=sn.height+sn.depth,Xe=Ri(st,mt,D),Xn=Xe.height+Xe.depth,er=0,lr=1;if(Le!==null){var Cr=Ri(Le,mt,D);er=Cr.height+Cr.depth,lr=2}var Or=Zt+Xn+er,Kr=Math.max(0,Math.ceil((h-Or)/(lr*hn))),Wr=Or+Kr*lr*hn,Jr=_.fontMetrics().axisHeight;f&&(Jr*=_.sizeMultiplier);var gi=Wr/2-Jr,qr=(Kr+1)*.005-hn,Dr=[];if(Dr.push(ii(st,mt,D)),Le===null)for(var Ai=0;Ai<Kr;Ai++)Dr.push(bi),Dr.push(ii($e,mt,D));else{for(var Mi=0;Mi<Kr;Mi++)Dr.push(bi),Dr.push(ii($e,mt,D));Dr.push({type:"kern",size:qr}),Dr.push(ii($e,mt,D)),Dr.push(bi),Dr.push(ii(Le,mt,D));for(var ei=0;ei<Kr;ei++)Dr.push(bi),Dr.push(ii($e,mt,D))}Dr.push({type:"kern",size:qr}),Dr.push(ii($e,mt,D)),Dr.push(bi),Dr.push(ii(be,mt,D));var vi=_.havingBaseStyle(g.TEXT),zi=lt.makeVList({positionType:"bottom",positionData:gi,children:Dr},vi);return os(lt.makeSpan(["delimsizing","mult"],[zi],vi),g.TEXT,_,H)},Xi=80,ls=.08,Qi=function(u,h,f,_,D){var H=Dt(u,_,f),be=new ye(u,H),Le=new fe([be],{width:"400em",height:h+"em",viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});return lt.makeSvgSpan(["hide-tail"],[Le],D)},js=function(u,h){var f=h.havingBaseSizing(),_=Hs("\\surd",u*f.sizeMultiplier,qi,f),D=f.sizeMultiplier,H=Math.max(0,h.minRuleThickness-h.fontMetrics().sqrtRuleThickness),be,Le=0,$e=0,st=0,mt;return _.type==="small"?(st=1e3+1e3*H+Xi,u<1?D=1:u<1.4&&(D=.7),Le=(1+H+ls)/D,$e=(1+H)/D,be=Qi("sqrtMain",Le,st,H,h),be.style.minWidth="0.853em",mt=.833/D):_.type==="large"?(st=(1e3+Xi)*Ji[_.size],$e=(Ji[_.size]+H)/D,Le=(Ji[_.size]+H+ls)/D,be=Qi("sqrtSize"+_.size,Le,st,H,h),be.style.minWidth="1.02em",mt=1/D):(Le=u+H+ls,$e=u+H,st=Math.floor(1e3*u+H)+Xi,be=Qi("sqrtTall",Le,st,H,h),be.style.minWidth="0.742em",mt=1.056),be.height=$e,be.style.height=Le+"em",{span:be,advanceWidth:mt,ruleWidth:(h.fontMetrics().sqrtRuleThickness+H)*D}},Es=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Ss=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ws=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ji=[0,1.2,1.8,2.4,3],Pi=function(u,h,f,_,D){if(u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle"),M.contains(Es,u)||M.contains(ws,u))return zs(u,h,!1,f,_,D);if(M.contains(Ss,u))return xs(u,Ji[h],!1,f,_,D);throw new p("Illegal delimiter: '"+u+"'")},As=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],$i=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"stack"}],qi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],aa=function(u){if(u.type==="small")return"Main-Regular";if(u.type==="large")return"Size"+u.size+"-Regular";if(u.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+u.type+"' here.")},Hs=function(u,h,f,_){for(var D=Math.min(2,3-_.style.size),H=D;H<f.length&&f[H].type!=="stack";H++){var be=Ri(u,aa(f[H]),"math"),Le=be.height+be.depth;if(f[H].type==="small"){var $e=_.havingBaseStyle(f[H].style);Le*=$e.sizeMultiplier}if(Le>h)return f[H]}return f[f.length-1]},Gs=function(u,h,f,_,D,H){u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle");var be;M.contains(ws,u)?be=As:M.contains(Es,u)?be=qi:be=$i;var Le=Hs(u,h,be,_);return Le.type==="small"?Us(u,Le.style,f,_,D,H):Le.type==="large"?zs(u,Le.size,f,_,D,H):xs(u,h,f,_,D,H)},Ks=function(u,h,f,_,D,H){var be=_.fontMetrics().axisHeight*_.sizeMultiplier,Le=901,$e=5/_.fontMetrics().ptPerEm,st=Math.max(h-be,f+be),mt=Math.max(st/500*Le,2*st-$e);return Gs(u,mt,!0,_,D,H)},xi={sqrtImage:js,sizedDelim:Pi,customSizedDelim:Gs,leftRightDelim:Ks},Ts={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Cs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function es(V,u){var h=gr(V);if(h&&M.contains(Cs,h.text))return h;throw new p("Invalid delimiter: '"+(h?h.text:JSON.stringify(V))+"' after '"+u.funcName+"'",V)}_n({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(u,h){var f=es(h[0],u);return{type:"delimsizing",mode:u.parser.mode,size:Ts[u.funcName].size,mclass:Ts[u.funcName].mclass,delim:f.text}},htmlBuilder:function(u,h){return u.delim==="."?lt.makeSpan([u.mclass]):xi.sizedDelim(u.delim,u.size,h,u.mode,[u.mclass])},mathmlBuilder:function(u){var h=[];u.delim!=="."&&h.push(Vr(u.delim,u.mode));var f=new tn.MathNode("mo",h);return u.mclass==="mopen"||u.mclass==="mclose"?f.setAttribute("fence","true"):f.setAttribute("fence","false"),f}});function Ds(V){if(!V.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}_n({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(u,h){var f=u.parser.gullet.macros.get("\\current@color");if(f&&typeof f!="string")throw new p("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:u.parser.mode,delim:es(h[0],u).text,color:f}}}),_n({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(u,h){var f=es(h[0],u),_=u.parser;++_.leftrightDepth;var D=_.parseExpression(!1);--_.leftrightDepth,_.expect("\\right",!1);var H=Tn(_.parseFunction(),"leftright-right");return{type:"leftright",mode:_.mode,body:D,left:f.text,right:H.delim,rightColor:H.color}},htmlBuilder:function(u,h){Ds(u);for(var f=hr(u.body,h,!0,["mopen","mclose"]),_=0,D=0,H=!1,be=0;be<f.length;be++)f[be].isMiddle?H=!0:(_=Math.max(f[be].height,_),D=Math.max(f[be].depth,D));_*=h.sizeMultiplier,D*=h.sizeMultiplier;var Le;if(u.left==="."?Le=ti(h,["mopen"]):Le=xi.leftRightDelim(u.left,_,D,h,u.mode,["mopen"]),f.unshift(Le),H)for(var $e=1;$e<f.length;$e++){var st=f[$e],mt=st.isMiddle;mt&&(f[$e]=xi.leftRightDelim(mt.delim,_,D,mt.options,u.mode,[]))}var Pt;if(u.right===".")Pt=ti(h,["mclose"]);else{var Zt=u.rightColor?h.withColor(u.rightColor):h;Pt=xi.leftRightDelim(u.right,_,D,Zt,u.mode,["mclose"])}return f.push(Pt),lt.makeSpan(["minner"],f,h)},mathmlBuilder:function(u,h){Ds(u);var f=wr(u.body,h);if(u.left!=="."){var _=new tn.MathNode("mo",[Vr(u.left,u.mode)]);_.setAttribute("fence","true"),f.unshift(_)}if(u.right!=="."){var D=new tn.MathNode("mo",[Vr(u.right,u.mode)]);D.setAttribute("fence","true"),u.rightColor&&D.setAttribute("mathcolor",u.rightColor),f.push(D)}return pi(f)}}),_n({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(u,h){var f=es(h[0],u);if(!u.parser.leftrightDepth)throw new p("\\middle without preceding \\left",f);return{type:"middle",mode:u.parser.mode,delim:f.text}},htmlBuilder:function(u,h){var f;if(u.delim===".")f=ti(h,[]);else{f=xi.sizedDelim(u.delim,1,h,u.mode,[]);var _={delim:u.delim,options:h};f.isMiddle=_}return f},mathmlBuilder:function(u,h){var f=u.delim==="\\vert"||u.delim==="|"?Vr("|","text"):Vr(u.delim,u.mode),_=new tn.MathNode("mo",[f]);return _.setAttribute("fence","true"),_.setAttribute("lspace","0.05em"),_.setAttribute("rspace","0.05em"),_}});var us=function(u,h){var f=lt.wrapFragment(rr(u.body,h),h),_=u.label.substr(1),D=h.sizeMultiplier,H,be=0,Le=M.isCharacterBox(u.body);if(_==="sout")H=lt.makeSpan(["stretchy","sout"]),H.height=h.fontMetrics().defaultRuleThickness/D,be=-.5*h.fontMetrics().xHeight;else{/cancel/.test(_)?Le||f.classes.push("cancel-pad"):f.classes.push("boxpad");var $e=0,st=0;/box/.test(_)?(st=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness),$e=h.fontMetrics().fboxsep+(_==="colorbox"?0:st)):$e=Le?.2:0,H=Ln.encloseSpan(f,_,$e,h),/fbox|boxed|fcolorbox/.test(_)&&(H.style.borderStyle="solid",H.style.borderWidth=st+"em"),be=f.depth+$e,u.backgroundColor&&(H.style.backgroundColor=u.backgroundColor,u.borderColor&&(H.style.borderColor=u.borderColor))}var mt;return u.backgroundColor?mt=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:H,shift:be},{type:"elem",elem:f,shift:0}]},h):mt=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:H,shift:be,wrapperClasses:/cancel/.test(_)?["svg-align"]:[]}]},h),/cancel/.test(_)&&(mt.height=f.height,mt.depth=f.depth),/cancel/.test(_)&&!Le?lt.makeSpan(["mord","cancel-lap"],[mt],h):lt.makeSpan(["mord"],[mt],h)},cs=function(u,h){var f=0,_=new tn.MathNode(u.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ar(u.body,h)]);switch(u.label){case"\\cancel":_.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":_.setAttribute("notation","downdiagonalstrike");break;case"\\sout":_.setAttribute("notation","horizontalstrike");break;case"\\fbox":_.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(f=h.fontMetrics().fboxsep*h.fontMetrics().ptPerEm,_.setAttribute("width","+"+2*f+"pt"),_.setAttribute("height","+"+2*f+"pt"),_.setAttribute("lspace",f+"pt"),_.setAttribute("voffset",f+"pt"),u.label==="\\fcolorbox"){var D=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness);_.setAttribute("style","border: "+D+"em solid "+String(u.borderColor))}break;case"\\xcancel":_.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return u.backgroundColor&&_.setAttribute("mathbackground",u.backgroundColor),_};_n({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(u,h,f){var _=u.parser,D=u.funcName,H=Tn(h[0],"color-token").color,be=h[1];return{type:"enclose",mode:_.mode,label:D,backgroundColor:H,body:be}},htmlBuilder:us,mathmlBuilder:cs}),_n({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(u,h,f){var _=u.parser,D=u.funcName,H=Tn(h[0],"color-token").color,be=Tn(h[1],"color-token").color,Le=h[2];return{type:"enclose",mode:_.mode,label:D,backgroundColor:be,borderColor:H,body:Le}},htmlBuilder:us,mathmlBuilder:cs}),_n({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(u,h){var f=u.parser;return{type:"enclose",mode:f.mode,label:"\\fbox",body:h[0]}}}),_n({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(u,h,f){var _=u.parser,D=u.funcName,H=h[0];return{type:"enclose",mode:_.mode,label:D,body:H}},htmlBuilder:us,mathmlBuilder:cs});var Rs={};function Ei(V){for(var u=V.type,h=V.names,f=V.props,_=V.handler,D=V.htmlBuilder,H=V.mathmlBuilder,be={type:u,numArgs:f.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:_},Le=0;Le<h.length;++Le)Rs[h[Le]]=be;D&&(Yr[u]=D),H&&(Xr[u]=H)}function Ws(V){var u=[];V.consumeSpaces();for(var h=V.fetch().text;h==="\\hline"||h==="\\hdashline";)V.consume(),u.push(h==="\\hdashline"),V.consumeSpaces(),h=V.fetch().text;return u}function Er(V,u,h){var f=u.hskipBeforeAndAfter,_=u.addJot,D=u.cols,H=u.arraystretch,be=u.colSeparationType;if(V.gullet.beginGroup(),V.gullet.macros.set("\\\\","\\cr"),!H){var Le=V.gullet.expandMacroAsText("\\arraystretch");if(Le==null)H=1;else if(H=parseFloat(Le),!H||H<0)throw new p("Invalid \\arraystretch: "+Le)}V.gullet.beginGroup();var $e=[],st=[$e],mt=[],Pt=[];for(Pt.push(Ws(V));;){var Zt=V.parseExpression(!1,"\\cr");V.gullet.endGroup(),V.gullet.beginGroup(),Zt={type:"ordgroup",mode:V.mode,body:Zt},h&&(Zt={type:"styling",mode:V.mode,style:h,body:[Zt]}),$e.push(Zt);var sn=V.fetch().text;if(sn==="&")V.consume();else if(sn==="\\end"){$e.length===1&&Zt.type==="styling"&&Zt.body[0].body.length===0&&st.pop(),Pt.length<st.length+1&&Pt.push([]);break}else if(sn==="\\cr"){var hn=Tn(V.parseFunction(),"cr");mt.push(hn.size),Pt.push(Ws(V)),$e=[],st.push($e)}else throw new p("Expected & or \\\\ or \\cr or \\end",V.nextToken)}return V.gullet.endGroup(),V.gullet.endGroup(),{type:"array",mode:V.mode,addJot:_,arraystretch:H,body:st,cols:D,rowGaps:mt,hskipBeforeAndAfter:f,hLinesBeforeRow:Pt,colSeparationType:be}}function yr(V){return V.substr(0,1)==="d"?"display":"text"}var br=function(u,h){var f,_,D=u.body.length,H=u.hLinesBeforeRow,be=0,Le=new Array(D),$e=[],st=Math.max(h.fontMetrics().arrayRuleWidth,h.minRuleThickness),mt=1/h.fontMetrics().ptPerEm,Pt=5*mt;if(u.colSeparationType&&u.colSeparationType==="small"){var Zt=h.havingStyle(g.SCRIPT).sizeMultiplier;Pt=.2778*(Zt/h.sizeMultiplier)}var sn=12*mt,hn=3*mt,Xe=u.arraystretch*sn,Xn=.7*Xe,er=.3*Xe,lr=0;function Cr(Ta){for(var ea=0;ea<Ta.length;++ea)ea>0&&(lr+=.25),$e.push({pos:lr,isDashed:Ta[ea]})}for(Cr(H[0]),f=0;f<u.body.length;++f){var Or=u.body[f],Kr=Xn,Wr=er;be<Or.length&&(be=Or.length);var Jr=new Array(Or.length);for(_=0;_<Or.length;++_){var gi=rr(Or[_],h);Wr<gi.depth&&(Wr=gi.depth),Kr<gi.height&&(Kr=gi.height),Jr[_]=gi}var qr=u.rowGaps[f],Dr=0;qr&&(Dr=Qe(qr,h),Dr>0&&(Dr+=er,Wr<Dr&&(Wr=Dr),Dr=0)),u.addJot&&(Wr+=hn),Jr.height=Kr,Jr.depth=Wr,lr+=Kr,Jr.pos=lr,lr+=Wr+Dr,Le[f]=Jr,Cr(H[f+1])}var Ai=lr/2+h.fontMetrics().axisHeight,Mi=u.cols||[],ei=[],vi,zi;for(_=0,zi=0;_<be||zi<Mi.length;++_,++zi){for(var Bi=Mi[zi]||{},no=!0;Bi.type==="separator";){if(no||(vi=lt.makeSpan(["arraycolsep"],[]),vi.style.width=h.fontMetrics().doubleRuleSep+"em",ei.push(vi)),Bi.separator==="|"||Bi.separator===":"){var Ao=Bi.separator==="|"?"solid":"dashed",is=lt.makeSpan(["vertical-separator"],[],h);is.style.height=lr+"em",is.style.borderRightWidth=st+"em",is.style.borderRightStyle=Ao,is.style.margin="0 -"+st/2+"em",is.style.verticalAlign=-(lr-Ai)+"em",ei.push(is)}else throw new p("Invalid separator type: "+Bi.separator);zi++,Bi=Mi[zi]||{},no=!1}if(!(_>=be)){var Si=void 0;(_>0||u.hskipBeforeAndAfter)&&(Si=M.deflt(Bi.pregap,Pt),Si!==0&&(vi=lt.makeSpan(["arraycolsep"],[]),vi.style.width=Si+"em",ei.push(vi)));var ji=[];for(f=0;f<D;++f){var Ms=Le[f],qs=Ms[_];if(qs){var Ea=Ms.pos-Ai;qs.depth=Ms.depth,qs.height=Ms.height,ji.push({type:"elem",elem:qs,shift:Ea})}}ji=lt.makeVList({positionType:"individualShift",children:ji},h),ji=lt.makeSpan(["col-align-"+(Bi.align||"c")],[ji]),ei.push(ji),(_<be-1||u.hskipBeforeAndAfter)&&(Si=M.deflt(Bi.postgap,Pt),Si!==0&&(vi=lt.makeSpan(["arraycolsep"],[]),vi.style.width=Si+"em",ei.push(vi)))}}if(Le=lt.makeSpan(["mtable"],ei),$e.length>0){for(var Bs=lt.makeLineSpan("hline",h,st),To=lt.makeLineSpan("hdashline",h,st),Sa=[{type:"elem",elem:Le,shift:0}];$e.length>0;){var wa=$e.pop(),Aa=wa.pos-Ai;wa.isDashed?Sa.push({type:"elem",elem:To,shift:Aa}):Sa.push({type:"elem",elem:Bs,shift:Aa})}Le=lt.makeVList({positionType:"individualShift",children:Sa},h)}return lt.makeSpan(["mord"],[Le],h)},mi={c:"center ",l:"left ",r:"right "},zr=function(u,h){var f=new tn.MathNode("mtable",u.body.map(function(lr){return new tn.MathNode("mtr",lr.map(function(Cr){return new tn.MathNode("mtd",[ar(Cr,h)])}))})),_=u.arraystretch===.5?.1:.16+u.arraystretch-1+(u.addJot?.09:0);f.setAttribute("rowspacing",_+"em");var D="",H="";if(u.cols){var be=u.cols,Le="",$e=!1,st=0,mt=be.length;be[0].type==="separator"&&(D+="top ",st=1),be[be.length-1].type==="separator"&&(D+="bottom ",mt-=1);for(var Pt=st;Pt<mt;Pt++)be[Pt].type==="align"?(H+=mi[be[Pt].align],$e&&(Le+="none "),$e=!0):be[Pt].type==="separator"&&$e&&(Le+=be[Pt].separator==="|"?"solid ":"dashed ",$e=!1);f.setAttribute("columnalign",H.trim()),/[sd]/.test(Le)&&f.setAttribute("columnlines",Le.trim())}if(u.colSeparationType==="align"){for(var Zt=u.cols||[],sn="",hn=1;hn<Zt.length;hn++)sn+=hn%2?"0em ":"1em ";f.setAttribute("columnspacing",sn.trim())}else u.colSeparationType==="alignat"?f.setAttribute("columnspacing","0em"):u.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):f.setAttribute("columnspacing","1em");var Xe="",Xn=u.hLinesBeforeRow;D+=Xn[0].length>0?"left ":"",D+=Xn[Xn.length-1].length>0?"right ":"";for(var er=1;er<Xn.length-1;er++)Xe+=Xn[er].length===0?"none ":Xn[er][0]?"dashed ":"solid ";return/[sd]/.test(Xe)&&f.setAttribute("rowlines",Xe.trim()),D!==""&&(f=new tn.MathNode("menclose",[f]),f.setAttribute("notation",D.trim())),u.arraystretch&&u.arraystretch<1&&(f=new tn.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},ts=function(u,h){var f=[],_=Er(u.parser,{cols:f,addJot:!0},"display"),D,H=0,be={type:"ordgroup",mode:u.mode,body:[]},Le=Hn(h[0],"ordgroup");if(Le){for(var $e="",st=0;st<Le.body.length;st++){var mt=Tn(Le.body[st],"textord");$e+=mt.text}D=Number($e),H=D*2}var Pt=!H;_.body.forEach(function(Xe){for(var Xn=1;Xn<Xe.length;Xn+=2){var er=Tn(Xe[Xn],"styling"),lr=Tn(er.body[0],"ordgroup");lr.body.unshift(be)}if(Pt)H<Xe.length&&(H=Xe.length);else{var Cr=Xe.length/2;if(D<Cr)throw new p("Too many math in a row: "+("expected "+D+", but got "+Cr),Xe[0])}});for(var Zt=0;Zt<H;++Zt){var sn="r",hn=0;Zt%2===1?sn="l":Zt>0&&Pt&&(hn=1),f[Zt]={type:"align",align:sn,pregap:hn,postgap:0}}return _.colSeparationType=Pt?"align":"alignat",_};Ei({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(u,h){var f=gr(h[0]),_=f?[h[0]]:Tn(h[0],"ordgroup").body,D=_.map(function(be){var Le=Vn(be),$e=Le.text;if("lcr".indexOf($e)!==-1)return{type:"align",align:$e};if($e==="|")return{type:"separator",separator:"|"};if($e===":")return{type:"separator",separator:":"};throw new p("Unknown column alignment: "+$e,be)}),H={cols:D,hskipBeforeAndAfter:!0};return Er(u.parser,H,yr(u.envName))},htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(u){var h={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[u.envName],f={hskipBeforeAndAfter:!1},_=Er(u.parser,f,yr(u.envName));return h?{type:"leftright",mode:u.mode,body:[_],left:h[0],right:h[1],rightColor:void 0}:_},htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(u){var h={arraystretch:.5},f=Er(u.parser,h,"script");return f.colSeparationType="small",f},htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["subarray"],props:{numArgs:1},handler:function(u,h){var f=gr(h[0]),_=f?[h[0]]:Tn(h[0],"ordgroup").body,D=_.map(function(be){var Le=Vn(be),$e=Le.text;if("lc".indexOf($e)!==-1)return{type:"align",align:$e};throw new p("Unknown column alignment: "+$e,be)});if(D.length>1)throw new p("{subarray} can contain only one column");var H={cols:D,hskipBeforeAndAfter:!1,arraystretch:.5};if(H=Er(u.parser,H,"script"),H.body[0].length>1)throw new p("{subarray} can contain only one column");return H},htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(u){var h={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},f=Er(u.parser,h,yr(u.envName));return{type:"leftright",mode:u.mode,body:[f],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["aligned"],props:{numArgs:0},handler:ts,htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["gathered"],props:{numArgs:0},handler:function(u){var h={cols:[{type:"align",align:"c"}],addJot:!0};return Er(u.parser,h,"display")},htmlBuilder:br,mathmlBuilder:zr}),Ei({type:"array",names:["alignedat"],props:{numArgs:1},handler:ts,htmlBuilder:br,mathmlBuilder:zr}),_n({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(u,h){throw new p(u.funcName+" valid only within array environment")}});var Ht=Rs,ds=Ht;_n({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0];if(D.type!=="ordgroup")throw new p("Invalid environment name",D);for(var H="",be=0;be<D.body.length;++be)H+=Tn(D.body[be],"textord").text;if(_==="\\begin"){if(!ds.hasOwnProperty(H))throw new p("No such environment: "+H,D);var Le=ds[H],$e=f.parseArguments("\\begin{"+H+"}",Le),st=$e.args,mt=$e.optArgs,Pt={mode:f.mode,envName:H,parser:f},Zt=Le.handler(Pt,st,mt);f.expect("\\end",!1);var sn=f.nextToken,hn=Tn(f.parseFunction(),"environment");if(hn.name!==H)throw new p("Mismatch: \\begin{"+H+"} matched by \\end{"+hn.name+"}",sn);return Zt}return{type:"environment",mode:f.mode,name:H,nameGroup:D}}});var Is=lt.makeSpan;function hs(V,u){var h=hr(V.body,u,!0);return Is([V.mclass],h,u)}function Wi(V,u){var h,f=wr(V.body,u);return V.mclass==="minner"?tn.newDocumentFragment(f):(V.mclass==="mord"?V.isCharacterBox?(h=f[0],h.type="mi"):h=new tn.MathNode("mi",f):(V.isCharacterBox?(h=f[0],h.type="mo"):h=new tn.MathNode("mo",f),V.mclass==="mbin"?(h.attributes.lspace="0.22em",h.attributes.rspace="0.22em"):V.mclass==="mpunct"?(h.attributes.lspace="0em",h.attributes.rspace="0.17em"):(V.mclass==="mopen"||V.mclass==="mclose")&&(h.attributes.lspace="0em",h.attributes.rspace="0em")),h)}_n({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0];return{type:"mclass",mode:f.mode,mclass:"m"+_.substr(5),body:dr(D),isCharacterBox:M.isCharacterBox(D)}},htmlBuilder:hs,mathmlBuilder:Wi});var Ui=function(u){var h=u.type==="ordgroup"&&u.body.length?u.body[0]:u;return h.type==="atom"&&(h.family==="bin"||h.family==="rel")?"m"+h.family:"mord"};_n({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(u,h){var f=u.parser;return{type:"mclass",mode:f.mode,mclass:Ui(h[0]),body:[h[1]],isCharacterBox:M.isCharacterBox(h[1])}}}),_n({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[1],H=h[0],be;_!=="\\stackrel"?be=Ui(D):be="mrel";var Le={type:"op",mode:D.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:_!=="\\stackrel",body:dr(D)},$e={type:"supsub",mode:H.mode,base:Le,sup:_==="\\underset"?null:H,sub:_==="\\underset"?H:null};return{type:"mclass",mode:f.mode,mclass:be,body:[$e],isCharacterBox:M.isCharacterBox($e)}},htmlBuilder:hs,mathmlBuilder:Wi});var Ls=function(u,h){var f=u.font,_=h.withFont(f);return rr(u.body,_)},ka=function(u,h){var f=u.font,_=h.withFont(f);return ar(u.body,_)},Pa={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};_n({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0],H=_;return H in Pa&&(H=Pa[H]),{type:"font",mode:f.mode,font:H.slice(1),body:D}},htmlBuilder:Ls,mathmlBuilder:ka}),_n({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(u,h){var f=u.parser,_=h[0],D=M.isCharacterBox(_);return{type:"mclass",mode:f.mode,mclass:Ui(_),body:[{type:"font",mode:f.mode,font:"boldsymbol",body:_}],isCharacterBox:D}}}),_n({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(u,h){var f=u.parser,_=u.funcName,D=u.breakOnTokenText,H=f.mode,be=f.parseExpression(!0,D),Le="math"+_.slice(1);return{type:"font",mode:H,font:Le,body:{type:"ordgroup",mode:f.mode,body:be}}},htmlBuilder:Ls,mathmlBuilder:ka});var Vs=function(u,h){var f=h;return u==="display"?f=f.id>=g.SCRIPT.id?f.text():g.DISPLAY:u==="text"&&f.size===g.DISPLAY.size?f=g.TEXT:u==="script"?f=g.SCRIPT:u==="scriptscript"&&(f=g.SCRIPTSCRIPT),f},ns=function(u,h){var f=Vs(u.size,h.style),_=f.fracNum(),D=f.fracDen(),H;H=h.havingStyle(_);var be=rr(u.numer,H,h);if(u.continued){var Le=8.5/h.fontMetrics().ptPerEm,$e=3.5/h.fontMetrics().ptPerEm;be.height=be.height<Le?Le:be.height,be.depth=be.depth<$e?$e:be.depth}H=h.havingStyle(D);var st=rr(u.denom,H,h),mt,Pt,Zt;u.hasBarLine?(u.barSize?(Pt=Qe(u.barSize,h),mt=lt.makeLineSpan("frac-line",h,Pt)):mt=lt.makeLineSpan("frac-line",h),Pt=mt.height,Zt=mt.height):(mt=null,Pt=0,Zt=h.fontMetrics().defaultRuleThickness);var sn,hn,Xe;f.size===g.DISPLAY.size||u.size==="display"?(sn=h.fontMetrics().num1,Pt>0?hn=3*Zt:hn=7*Zt,Xe=h.fontMetrics().denom1):(Pt>0?(sn=h.fontMetrics().num2,hn=Zt):(sn=h.fontMetrics().num3,hn=3*Zt),Xe=h.fontMetrics().denom2);var Xn;if(mt){var lr=h.fontMetrics().axisHeight;sn-be.depth-(lr+.5*Pt)<hn&&(sn+=hn-(sn-be.depth-(lr+.5*Pt))),lr-.5*Pt-(st.height-Xe)<hn&&(Xe+=hn-(lr-.5*Pt-(st.height-Xe)));var Cr=-(lr-.5*Pt);Xn=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:st,shift:Xe},{type:"elem",elem:mt,shift:Cr},{type:"elem",elem:be,shift:-sn}]},h)}else{var er=sn-be.depth-(st.height-Xe);er<hn&&(sn+=.5*(hn-er),Xe+=.5*(hn-er)),Xn=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:st,shift:Xe},{type:"elem",elem:be,shift:-sn}]},h)}H=h.havingStyle(f),Xn.height*=H.sizeMultiplier/h.sizeMultiplier,Xn.depth*=H.sizeMultiplier/h.sizeMultiplier;var Or;f.size===g.DISPLAY.size?Or=h.fontMetrics().delim1:Or=h.fontMetrics().delim2;var Kr,Wr;return u.leftDelim==null?Kr=ti(h,["mopen"]):Kr=xi.customSizedDelim(u.leftDelim,Or,!0,h.havingStyle(f),u.mode,["mopen"]),u.continued?Wr=lt.makeSpan([]):u.rightDelim==null?Wr=ti(h,["mclose"]):Wr=xi.customSizedDelim(u.rightDelim,Or,!0,h.havingStyle(f),u.mode,["mclose"]),lt.makeSpan(["mord"].concat(H.sizingClasses(h)),[Kr,lt.makeSpan(["mfrac"],[Xn]),Wr],h)},Vi=function(u,h){var f=new tn.MathNode("mfrac",[ar(u.numer,h),ar(u.denom,h)]);if(!u.hasBarLine)f.setAttribute("linethickness","0px");else if(u.barSize){var _=Qe(u.barSize,h);f.setAttribute("linethickness",_+"em")}var D=Vs(u.size,h.style);if(D.size!==h.style.size){f=new tn.MathNode("mstyle",[f]);var H=D.size===g.DISPLAY.size?"true":"false";f.setAttribute("displaystyle",H),f.setAttribute("scriptlevel","0")}if(u.leftDelim!=null||u.rightDelim!=null){var be=[];if(u.leftDelim!=null){var Le=new tn.MathNode("mo",[new tn.TextNode(u.leftDelim.replace("\\",""))]);Le.setAttribute("fence","true"),be.push(Le)}if(be.push(f),u.rightDelim!=null){var $e=new tn.MathNode("mo",[new tn.TextNode(u.rightDelim.replace("\\",""))]);$e.setAttribute("fence","true"),be.push($e)}return pi(be)}return f};_n({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0],H=h[1],be,Le=null,$e=null,st="auto";switch(_){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":be=!0;break;case"\\\\atopfrac":be=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":be=!1,Le="(",$e=")";break;case"\\\\bracefrac":be=!1,Le="\\{",$e="\\}";break;case"\\\\brackfrac":be=!1,Le="[",$e="]";break;default:throw new Error("Unrecognized genfrac command")}switch(_){case"\\cfrac":case"\\dfrac":case"\\dbinom":st="display";break;case"\\tfrac":case"\\tbinom":st="text";break}return{type:"genfrac",mode:f.mode,continued:_==="\\cfrac",numer:D,denom:H,hasBarLine:be,leftDelim:Le,rightDelim:$e,size:st,barSize:null}},htmlBuilder:ns,mathmlBuilder:Vi}),_n({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(u){var h=u.parser,f=u.funcName,_=u.token,D;switch(f){case"\\over":D="\\frac";break;case"\\choose":D="\\binom";break;case"\\atop":D="\\\\atopfrac";break;case"\\brace":D="\\\\bracefrac";break;case"\\brack":D="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:h.mode,replaceWith:D,token:_}}});var Oa=["display","text","script","scriptscript"],Ma=function(u){var h=null;return u.length>0&&(h=u,h=h==="."?null:h),h};_n({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(u,h){var f=u.parser,_=h[4],D=h[5],H=Hn(h[0],"atom");H&&(H=jn(h[0],"open"));var be=H?Ma(H.text):null,Le=Hn(h[1],"atom");Le&&(Le=jn(h[1],"close"));var $e=Le?Ma(Le.text):null,st=Tn(h[2],"size"),mt,Pt=null;st.isBlank?mt=!0:(Pt=st.value,mt=Pt.number>0);var Zt="auto",sn=Hn(h[3],"ordgroup");if(sn){if(sn.body.length>0){var hn=Tn(sn.body[0],"textord");Zt=Oa[Number(hn.text)]}}else sn=Tn(h[3],"textord"),Zt=Oa[Number(sn.text)];return{type:"genfrac",mode:f.mode,numer:_,denom:D,continued:!1,hasBarLine:mt,barSize:Pt,leftDelim:be,rightDelim:$e,size:Zt}},htmlBuilder:ns,mathmlBuilder:Vi}),_n({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(u,h){var f=u.parser,_=u.funcName,D=u.token;return{type:"infix",mode:f.mode,replaceWith:"\\\\abovefrac",size:Tn(h[0],"size").value,token:D}}}),_n({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0],H=Z(Tn(h[1],"infix").size),be=h[2],Le=H.number>0;return{type:"genfrac",mode:f.mode,numer:D,denom:be,continued:!1,hasBarLine:Le,barSize:H,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ns,mathmlBuilder:Vi});var Ba=function(u,h){var f=h.style,_,D,H=Hn(u,"supsub");H?(_=H.sup?rr(H.sup,h.havingStyle(f.sup()),h):rr(H.sub,h.havingStyle(f.sub()),h),D=Tn(H.base,"horizBrace")):D=Tn(u,"horizBrace");var be=rr(D.base,h.havingBaseStyle(g.DISPLAY)),Le=Ln.svgSpan(D,h),$e;if(D.isOver?($e=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:.1},{type:"elem",elem:Le}]},h),$e.children[0].children[0].children[1].classes.push("svg-align")):($e=lt.makeVList({positionType:"bottom",positionData:be.depth+.1+Le.height,children:[{type:"elem",elem:Le},{type:"kern",size:.1},{type:"elem",elem:be}]},h),$e.children[0].children[0].children[0].classes.push("svg-align")),_){var st=lt.makeSpan(["mord",D.isOver?"mover":"munder"],[$e],h);D.isOver?$e=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:st},{type:"kern",size:.2},{type:"elem",elem:_}]},h):$e=lt.makeVList({positionType:"bottom",positionData:st.depth+.2+_.height+_.depth,children:[{type:"elem",elem:_},{type:"kern",size:.2},{type:"elem",elem:st}]},h)}return lt.makeSpan(["mord",D.isOver?"mover":"munder"],[$e],h)},po=function(u,h){var f=Ln.mathMLnode(u.label);return new tn.MathNode(u.isOver?"mover":"munder",[ar(u.base,h),f])};_n({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(u,h){var f=u.parser,_=u.funcName;return{type:"horizBrace",mode:f.mode,label:_,isOver:/^\\over/.test(_),base:h[0]}},htmlBuilder:Ba,mathmlBuilder:po}),_n({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(u,h){var f=u.parser,_=h[1],D=Tn(h[0],"url").url;return f.settings.isTrusted({command:"\\href",url:D})?{type:"href",mode:f.mode,href:D,body:dr(_)}:f.formatUnsupportedCmd("\\href")},htmlBuilder:function(u,h){var f=hr(u.body,h,!1);return lt.makeAnchor(u.href,[],f,h)},mathmlBuilder:function(u,h){var f=Ar(u.body,h);return f instanceof zn||(f=new zn("mrow",[f])),f.setAttribute("href",u.href),f}}),_n({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(u,h){var f=u.parser,_=Tn(h[0],"url").url;if(!f.settings.isTrusted({command:"\\url",url:_}))return f.formatUnsupportedCmd("\\url");for(var D=[],H=0;H<_.length;H++){var be=_[H];be==="~"&&(be="\\textasciitilde"),D.push({type:"textord",mode:"text",text:be})}var Le={type:"text",mode:f.mode,font:"\\texttt",body:D};return{type:"href",mode:f.mode,href:_,body:dr(Le)}}}),_n({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(u,h){var f=u.parser;return{type:"htmlmathml",mode:f.mode,html:dr(h[0]),mathml:dr(h[1])}},htmlBuilder:function(u,h){var f=hr(u.html,h,!1);return lt.makeFragment(f)},mathmlBuilder:function(u,h){return Ar(u.mathml,h)}});var Zs=function(u){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(u))return{number:+u,unit:"bp"};var h=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(u);if(!h)throw new p("Invalid size: '"+u+"' in \\includegraphics");var f={number:+(h[1]+h[2]),unit:h[3]};if(!tt(f))throw new p("Invalid unit: '"+f.unit+"' in \\includegraphics.");return f};_n({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(u,h,f){var _=u.parser,D={number:0,unit:"em"},H={number:.9,unit:"em"},be={number:0,unit:"em"},Le="";if(f[0])for(var $e=Tn(f[0],"raw").string,st=$e.split(","),mt=0;mt<st.length;mt++){var Pt=st[mt].split("=");if(Pt.length===2){var Zt=Pt[1].trim();switch(Pt[0].trim()){case"alt":Le=Zt;break;case"width":D=Zs(Zt);break;case"height":H=Zs(Zt);break;case"totalheight":be=Zs(Zt);break;default:throw new p("Invalid key: '"+Pt[0]+"' in \\includegraphics.")}}}var sn=Tn(h[0],"url").url;return Le===""&&(Le=sn,Le=Le.replace(/^.*[\\/]/,""),Le=Le.substring(0,Le.lastIndexOf("."))),_.settings.isTrusted({command:"\\includegraphics",url:sn})?{type:"includegraphics",mode:_.mode,alt:Le,width:D,height:H,totalheight:be,src:sn}:_.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(u,h){var f=Qe(u.height,h),_=0;u.totalheight.number>0&&(_=Qe(u.totalheight,h)-f,_=Number(_.toFixed(2)));var D=0;u.width.number>0&&(D=Qe(u.width,h));var H={height:f+_+"em"};D>0&&(H.width=D+"em"),_>0&&(H.verticalAlign=-_+"em");var be=new Re(u.src,u.alt,H);return be.height=f,be.depth=_,be},mathmlBuilder:function(u,h){var f=new tn.MathNode("mglyph",[]);f.setAttribute("alt",u.alt);var _=Qe(u.height,h),D=0;if(u.totalheight.number>0&&(D=Qe(u.totalheight,h)-_,D=D.toFixed(2),f.setAttribute("valign","-"+D+"em")),f.setAttribute("height",_+D+"em"),u.width.number>0){var H=Qe(u.width,h);f.setAttribute("width",H+"em")}return f.setAttribute("src",u.src),f}}),_n({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,h){var f=u.parser,_=u.funcName,D=Tn(h[0],"size");if(f.settings.strict){var H=_[1]==="m",be=D.value.unit==="mu";H?(be||f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+_+" supports only mu units, "+("not "+D.value.unit+" units")),f.mode!=="math"&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+_+" works only in math mode")):be&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+_+" doesn't support mu units")}return{type:"kern",mode:f.mode,dimension:D.value}},htmlBuilder:function(u,h){return lt.makeGlue(u.dimension,h)},mathmlBuilder:function(u,h){var f=Qe(u.dimension,h);return new tn.SpaceNode(f)}}),_n({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0];return{type:"lap",mode:f.mode,alignment:_.slice(5),body:D}},htmlBuilder:function(u,h){var f;u.alignment==="clap"?(f=lt.makeSpan([],[rr(u.body,h)]),f=lt.makeSpan(["inner"],[f],h)):f=lt.makeSpan(["inner"],[rr(u.body,h)]);var _=lt.makeSpan(["fix"],[]),D=lt.makeSpan([u.alignment],[f,_],h),H=lt.makeSpan(["strut"]);return H.style.height=D.height+D.depth+"em",H.style.verticalAlign=-D.depth+"em",D.children.unshift(H),D=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D}]},h),lt.makeSpan(["mord"],[D],h)},mathmlBuilder:function(u,h){var f=new tn.MathNode("mpadded",[ar(u.body,h)]);if(u.alignment!=="rlap"){var _=u.alignment==="llap"?"-1":"-0.5";f.setAttribute("lspace",_+"width")}return f.setAttribute("width","0px"),f}}),_n({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,h){var f=u.funcName,_=u.parser,D=_.mode;_.switchMode("math");var H=f==="\\("?"\\)":"$",be=_.parseExpression(!1,H);return _.expect(H),_.switchMode(D),{type:"styling",mode:_.mode,style:"text",body:be}}}),_n({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,h){throw new p("Mismatched "+u.funcName)}});var Ys=function(u,h){switch(h.style.size){case g.DISPLAY.size:return u.display;case g.TEXT.size:return u.text;case g.SCRIPT.size:return u.script;case g.SCRIPTSCRIPT.size:return u.scriptscript;default:return u.text}};_n({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(u,h){var f=u.parser;return{type:"mathchoice",mode:f.mode,display:dr(h[0]),text:dr(h[1]),script:dr(h[2]),scriptscript:dr(h[3])}},htmlBuilder:function(u,h){var f=Ys(u,h),_=hr(f,h,!1);return lt.makeFragment(_)},mathmlBuilder:function(u,h){var f=Ys(u,h);return Ar(f,h)}});var ks=function(u,h,f,_,D,H,be){u=lt.makeSpan([],[u]);var Le,$e;if(h){var st=rr(h,_.havingStyle(D.sup()),_);$e={elem:st,kern:Math.max(_.fontMetrics().bigOpSpacing1,_.fontMetrics().bigOpSpacing3-st.depth)}}if(f){var mt=rr(f,_.havingStyle(D.sub()),_);Le={elem:mt,kern:Math.max(_.fontMetrics().bigOpSpacing2,_.fontMetrics().bigOpSpacing4-mt.height)}}var Pt;if($e&&Le){var Zt=_.fontMetrics().bigOpSpacing5+Le.elem.height+Le.elem.depth+Le.kern+u.depth+be;Pt=lt.makeVList({positionType:"bottom",positionData:Zt,children:[{type:"kern",size:_.fontMetrics().bigOpSpacing5},{type:"elem",elem:Le.elem,marginLeft:-H+"em"},{type:"kern",size:Le.kern},{type:"elem",elem:u},{type:"kern",size:$e.kern},{type:"elem",elem:$e.elem,marginLeft:H+"em"},{type:"kern",size:_.fontMetrics().bigOpSpacing5}]},_)}else if(Le){var sn=u.height-be;Pt=lt.makeVList({positionType:"top",positionData:sn,children:[{type:"kern",size:_.fontMetrics().bigOpSpacing5},{type:"elem",elem:Le.elem,marginLeft:-H+"em"},{type:"kern",size:Le.kern},{type:"elem",elem:u}]},_)}else if($e){var hn=u.depth+be;Pt=lt.makeVList({positionType:"bottom",positionData:hn,children:[{type:"elem",elem:u},{type:"kern",size:$e.kern},{type:"elem",elem:$e.elem,marginLeft:H+"em"},{type:"kern",size:_.fontMetrics().bigOpSpacing5}]},_)}else return u;return lt.makeSpan(["mop","op-limits"],[Pt],_)},fs=["\\smallint"],ps=function(u,h){var f,_,D=!1,H,be=Hn(u,"supsub");be?(f=be.sup,_=be.sub,H=Tn(be.base,"op"),D=!0):H=Tn(u,"op");var Le=h.style,$e=!1;Le.size===g.DISPLAY.size&&H.symbol&&!M.contains(fs,H.name)&&($e=!0);var st;if(H.symbol){var mt=$e?"Size2-Regular":"Size1-Regular",Pt="";if((H.name==="\\oiint"||H.name==="\\oiiint")&&(Pt=H.name.substr(1),H.name=Pt==="oiint"?"\\iint":"\\iiint"),st=lt.makeSymbol(H.name,mt,"math",h,["mop","op-symbol",$e?"large-op":"small-op"]),Pt.length>0){var Zt=st.italic,sn=lt.staticSvg(Pt+"Size"+($e?"2":"1"),h);st=lt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:st,shift:0},{type:"elem",elem:sn,shift:$e?.08:0}]},h),H.name="\\"+Pt,st.classes.unshift("mop"),st.italic=Zt}}else if(H.body){var hn=hr(H.body,h,!0);hn.length===1&&hn[0]instanceof ne?(st=hn[0],st.classes[0]="mop"):st=lt.makeSpan(["mop"],lt.tryCombineChars(hn),h)}else{for(var Xe=[],Xn=1;Xn<H.name.length;Xn++)Xe.push(lt.mathsym(H.name[Xn],H.mode,h));st=lt.makeSpan(["mop"],Xe,h)}var er=0,lr=0;return(st instanceof ne||H.name==="\\oiint"||H.name==="\\oiiint")&&!H.suppressBaseShift&&(er=(st.height-st.depth)/2-h.fontMetrics().axisHeight,lr=st.italic),D?ks(st,f,_,h,Le,lr,er):(er&&(st.style.position="relative",st.style.top=er+"em"),st)},ms=function(u,h){var f;if(u.symbol)f=new zn("mo",[Vr(u.name,u.mode)]),M.contains(fs,u.name)&&f.setAttribute("largeop","false");else if(u.body)f=new zn("mo",wr(u.body,h));else{f=new zn("mi",[new fi(u.name.slice(1))]);var _=new zn("mo",[Vr("\u2061","text")]);u.parentIsSupSub?f=new zn("mo",[f,_]):f=hi([f,_])}return f},Na={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};_n({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(u,h){var f=u.parser,_=u.funcName,D=_;return D.length===1&&(D=Na[D]),{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:D}},htmlBuilder:ps,mathmlBuilder:ms}),_n({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(u,h){var f=u.parser,_=h[0];return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:dr(_)}},htmlBuilder:ps,mathmlBuilder:ms});var oa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};_n({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(u){var h=u.parser,f=u.funcName;return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:ps,mathmlBuilder:ms}),_n({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(u){var h=u.parser,f=u.funcName;return{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:ps,mathmlBuilder:ms}),_n({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(u){var h=u.parser,f=u.funcName,_=f;return _.length===1&&(_=oa[_]),{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:_}},htmlBuilder:ps,mathmlBuilder:ms});var Fa=function(u,h){var f,_,D=!1,H,be=Hn(u,"supsub");be?(f=be.sup,_=be.sub,H=Tn(be.base,"operatorname"),D=!0):H=Tn(u,"operatorname");var Le;if(H.body.length>0){for(var $e=H.body.map(function(Zt){var sn=Zt.text;return typeof sn=="string"?{type:"textord",mode:Zt.mode,text:sn}:Zt}),st=hr($e,h.withFont("mathrm"),!0),mt=0;mt<st.length;mt++){var Pt=st[mt];Pt instanceof ne&&(Pt.text=Pt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Le=lt.makeSpan(["mop"],st,h)}else Le=lt.makeSpan(["mop"],[],h);return D?ks(Le,f,_,h,h.style,0,0):Le},Xs=function(u,h){for(var f=wr(u.body,h.withFont("mathrm")),_=!0,D=0;D<f.length;D++){var H=f[D];if(!(H instanceof tn.SpaceNode))if(H instanceof tn.MathNode)switch(H.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var be=H.children[0];H.children.length===1&&be instanceof tn.TextNode?be.text=be.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):_=!1;break}default:_=!1}else _=!1}if(_){var Le=f.map(function(mt){return mt.toText()}).join("");f=[new tn.TextNode(Le)]}var $e=new tn.MathNode("mi",f);$e.setAttribute("mathvariant","normal");var st=new tn.MathNode("mo",[Vr("\u2061","text")]);return u.parentIsSupSub?new tn.MathNode("mo",[$e,st]):tn.newDocumentFragment([$e,st])};_n({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0];return{type:"operatorname",mode:f.mode,body:dr(D),alwaysHandleSupSub:_==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Fa,mathmlBuilder:Xs}),cr({type:"ordgroup",htmlBuilder:function(u,h){return u.semisimple?lt.makeFragment(hr(u.body,h,!1)):lt.makeSpan(["mord"],hr(u.body,h,!0),h)},mathmlBuilder:function(u,h){return Ar(u.body,h,!0)}}),_n({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(u,h){var f=u.parser,_=h[0];return{type:"overline",mode:f.mode,body:_}},htmlBuilder:function(u,h){var f=rr(u.body,h.havingCrampedStyle()),_=lt.makeLineSpan("overline-line",h),D=h.fontMetrics().defaultRuleThickness,H=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:3*D},{type:"elem",elem:_},{type:"kern",size:D}]},h);return lt.makeSpan(["mord","overline"],[H],h)},mathmlBuilder:function(u,h){var f=new tn.MathNode("mo",[new tn.TextNode("\u203E")]);f.setAttribute("stretchy","true");var _=new tn.MathNode("mover",[ar(u.body,h),f]);return _.setAttribute("accent","true"),_}}),_n({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,_=h[0];return{type:"phantom",mode:f.mode,body:dr(_)}},htmlBuilder:function(u,h){var f=hr(u.body,h.withPhantom(),!1);return lt.makeFragment(f)},mathmlBuilder:function(u,h){var f=wr(u.body,h);return new tn.MathNode("mphantom",f)}}),_n({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,_=h[0];return{type:"hphantom",mode:f.mode,body:_}},htmlBuilder:function(u,h){var f=lt.makeSpan([],[rr(u.body,h.withPhantom())]);if(f.height=0,f.depth=0,f.children)for(var _=0;_<f.children.length;_++)f.children[_].height=0,f.children[_].depth=0;return f=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},h),lt.makeSpan(["mord"],[f],h)},mathmlBuilder:function(u,h){var f=wr(dr(u.body),h),_=new tn.MathNode("mphantom",f),D=new tn.MathNode("mpadded",[_]);return D.setAttribute("height","0px"),D.setAttribute("depth","0px"),D}}),_n({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,_=h[0];return{type:"vphantom",mode:f.mode,body:_}},htmlBuilder:function(u,h){var f=lt.makeSpan(["inner"],[rr(u.body,h.withPhantom())]),_=lt.makeSpan(["fix"],[]);return lt.makeSpan(["mord","rlap"],[f,_],h)},mathmlBuilder:function(u,h){var f=wr(dr(u.body),h),_=new tn.MathNode("mphantom",f),D=new tn.MathNode("mpadded",[_]);return D.setAttribute("width","0px"),D}}),_n({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(u,h){var f=u.parser,_=Tn(h[0],"size").value,D=h[1];return{type:"raisebox",mode:f.mode,dy:_,body:D}},htmlBuilder:function(u,h){var f=rr(u.body,h),_=Qe(u.dy,h);return lt.makeVList({positionType:"shift",positionData:-_,children:[{type:"elem",elem:f}]},h)},mathmlBuilder:function(u,h){var f=new tn.MathNode("mpadded",[ar(u.body,h)]),_=u.dy.number+u.dy.unit;return f.setAttribute("voffset",_),f}}),_n({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(u,h,f){var _=u.parser,D=f[0],H=Tn(h[0],"size"),be=Tn(h[1],"size");return{type:"rule",mode:_.mode,shift:D&&Tn(D,"size").value,width:H.value,height:be.value}},htmlBuilder:function(u,h){var f=lt.makeSpan(["mord","rule"],[],h),_=Qe(u.width,h),D=Qe(u.height,h),H=u.shift?Qe(u.shift,h):0;return f.style.borderRightWidth=_+"em",f.style.borderTopWidth=D+"em",f.style.bottom=H+"em",f.width=_,f.height=D+H,f.depth=-H,f.maxFontSize=D*1.125*h.sizeMultiplier,f},mathmlBuilder:function(u,h){var f=Qe(u.width,h),_=Qe(u.height,h),D=u.shift?Qe(u.shift,h):0,H=h.color&&h.getColor()||"black",be=new tn.MathNode("mspace");be.setAttribute("mathbackground",H),be.setAttribute("width",f+"em"),be.setAttribute("height",_+"em");var Le=new tn.MathNode("mpadded",[be]);return D>=0?Le.setAttribute("height","+"+D+"em"):(Le.setAttribute("height",D+"em"),Le.setAttribute("depth","+"+-D+"em")),Le.setAttribute("voffset",D+"em"),Le}});function $a(V,u,h){for(var f=hr(V,u,!1),_=u.sizeMultiplier/h.sizeMultiplier,D=0;D<f.length;D++){var H=f[D].classes.indexOf("sizing");H<0?Array.prototype.push.apply(f[D].classes,u.sizingClasses(h)):f[D].classes[H+1]==="reset-size"+u.size&&(f[D].classes[H+1]="reset-size"+h.size),f[D].height*=_,f[D].depth*=_}return lt.makeFragment(f)}var Ua=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],za=function(u,h){var f=h.havingSize(u.size);return $a(u.body,f,h)};_n({type:"sizing",names:Ua,props:{numArgs:0,allowedInText:!0},handler:function(u,h){var f=u.breakOnTokenText,_=u.funcName,D=u.parser,H=D.parseExpression(!1,f);return{type:"sizing",mode:D.mode,size:Ua.indexOf(_)+1,body:H}},htmlBuilder:za,mathmlBuilder:function(u,h){var f=h.havingSize(u.size),_=wr(u.body,f),D=new tn.MathNode("mstyle",_);return D.setAttribute("mathsize",f.sizeMultiplier+"em"),D}}),_n({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(u,h,f){var _=u.parser,D=!1,H=!1,be=f[0]&&Tn(f[0],"ordgroup");if(be)for(var Le="",$e=0;$e<be.body.length;++$e){var st=be.body[$e];if(Le=st.text,Le==="t")D=!0;else if(Le==="b")H=!0;else{D=!1,H=!1;break}}else D=!0,H=!0;var mt=h[0];return{type:"smash",mode:_.mode,body:mt,smashHeight:D,smashDepth:H}},htmlBuilder:function(u,h){var f=lt.makeSpan([],[rr(u.body,h)]);if(!u.smashHeight&&!u.smashDepth)return f;if(u.smashHeight&&(f.height=0,f.children))for(var _=0;_<f.children.length;_++)f.children[_].height=0;if(u.smashDepth&&(f.depth=0,f.children))for(var D=0;D<f.children.length;D++)f.children[D].depth=0;var H=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},h);return lt.makeSpan(["mord"],[H],h)},mathmlBuilder:function(u,h){var f=new tn.MathNode("mpadded",[ar(u.body,h)]);return u.smashHeight&&f.setAttribute("height","0px"),u.smashDepth&&f.setAttribute("depth","0px"),f}}),_n({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(u,h,f){var _=u.parser,D=f[0],H=h[0];return{type:"sqrt",mode:_.mode,body:H,index:D}},htmlBuilder:function(u,h){var f=rr(u.body,h.havingCrampedStyle());f.height===0&&(f.height=h.fontMetrics().xHeight),f=lt.wrapFragment(f,h);var _=h.fontMetrics(),D=_.defaultRuleThickness,H=D;h.style.id<g.TEXT.id&&(H=h.fontMetrics().xHeight);var be=D+H/4,Le=f.height+f.depth+be+D,$e=xi.sqrtImage(Le,h),st=$e.span,mt=$e.ruleWidth,Pt=$e.advanceWidth,Zt=st.height-mt;Zt>f.height+f.depth+be&&(be=(be+Zt-f.height-f.depth)/2);var sn=st.height-f.height-be-mt;f.style.paddingLeft=Pt+"em";var hn=lt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:-(f.height+sn)},{type:"elem",elem:st},{type:"kern",size:mt}]},h);if(u.index){var Xe=h.havingStyle(g.SCRIPTSCRIPT),Xn=rr(u.index,Xe,h),er=.6*(hn.height-hn.depth),lr=lt.makeVList({positionType:"shift",positionData:-er,children:[{type:"elem",elem:Xn}]},h),Cr=lt.makeSpan(["root"],[lr]);return lt.makeSpan(["mord","sqrt"],[Cr,hn],h)}else return lt.makeSpan(["mord","sqrt"],[hn],h)},mathmlBuilder:function(u,h){var f=u.body,_=u.index;return _?new tn.MathNode("mroot",[ar(f,h),ar(_,h)]):new tn.MathNode("msqrt",[ar(f,h)])}});var la={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT};_n({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(u,h){var f=u.breakOnTokenText,_=u.funcName,D=u.parser,H=D.parseExpression(!0,f),be=_.slice(1,_.length-5);return{type:"styling",mode:D.mode,style:be,body:H}},htmlBuilder:function(u,h){var f=la[u.style],_=h.havingStyle(f).withFont("");return $a(u.body,_,h)},mathmlBuilder:function(u,h){var f=la[u.style],_=h.havingStyle(f),D=wr(u.body,_),H=new tn.MathNode("mstyle",D),be={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Le=be[u.style];return H.setAttribute("scriptlevel",Le[0]),H.setAttribute("displaystyle",Le[1]),H}});var mo=function(u,h){var f=u.base;if(f)if(f.type==="op"){var _=f.limits&&(h.style.size===g.DISPLAY.size||f.alwaysHandleSupSub);return _?ps:null}else if(f.type==="operatorname"){var D=f.alwaysHandleSupSub&&(h.style.size===g.DISPLAY.size||f.limits);return D?Fa:null}else{if(f.type==="accent")return M.isCharacterBox(f.base)?Pr:null;if(f.type==="horizBrace"){var H=!u.sub;return H===f.isOver?Ba:null}else return null}else return null};cr({type:"supsub",htmlBuilder:function(u,h){var f=mo(u,h);if(f)return f(u,h);var _=u.base,D=u.sup,H=u.sub,be=rr(_,h),Le,$e,st=h.fontMetrics(),mt=0,Pt=0,Zt=_&&M.isCharacterBox(_);if(D){var sn=h.havingStyle(h.style.sup());Le=rr(D,sn,h),Zt||(mt=be.height-sn.fontMetrics().supDrop*sn.sizeMultiplier/h.sizeMultiplier)}if(H){var hn=h.havingStyle(h.style.sub());$e=rr(H,hn,h),Zt||(Pt=be.depth+hn.fontMetrics().subDrop*hn.sizeMultiplier/h.sizeMultiplier)}var Xe;h.style===g.DISPLAY?Xe=st.sup1:h.style.cramped?Xe=st.sup3:Xe=st.sup2;var Xn=h.sizeMultiplier,er=.5/st.ptPerEm/Xn+"em",lr=null;if($e){var Cr=u.base&&u.base.type==="op"&&u.base.name&&(u.base.name==="\\oiint"||u.base.name==="\\oiiint");(be instanceof ne||Cr)&&(lr=-be.italic+"em")}var Or;if(Le&&$e){mt=Math.max(mt,Xe,Le.depth+.25*st.xHeight),Pt=Math.max(Pt,st.sub2);var Kr=st.defaultRuleThickness,Wr=4*Kr;if(mt-Le.depth-($e.height-Pt)<Wr){Pt=Wr-(mt-Le.depth)+$e.height;var Jr=.8*st.xHeight-(mt-Le.depth);Jr>0&&(mt+=Jr,Pt-=Jr)}var gi=[{type:"elem",elem:$e,shift:Pt,marginRight:er,marginLeft:lr},{type:"elem",elem:Le,shift:-mt,marginRight:er}];Or=lt.makeVList({positionType:"individualShift",children:gi},h)}else if($e){Pt=Math.max(Pt,st.sub1,$e.height-.8*st.xHeight);var qr=[{type:"elem",elem:$e,marginLeft:lr,marginRight:er}];Or=lt.makeVList({positionType:"shift",positionData:Pt,children:qr},h)}else if(Le)mt=Math.max(mt,Xe,Le.depth+.25*st.xHeight),Or=lt.makeVList({positionType:"shift",positionData:-mt,children:[{type:"elem",elem:Le,marginRight:er}]},h);else throw new Error("supsub must have either sup or sub.");var Dr=oi(be,"right")||"mord";return lt.makeSpan([Dr],[be,lt.makeSpan(["msupsub"],[Or])],h)},mathmlBuilder:function(u,h){var f=!1,_,D,H=Hn(u.base,"horizBrace");H&&(D=!!u.sup,D===H.isOver&&(f=!0,_=H.isOver)),u.base&&(u.base.type==="op"||u.base.type==="operatorname")&&(u.base.parentIsSupSub=!0);var be=[ar(u.base,h)];u.sub&&be.push(ar(u.sub,h)),u.sup&&be.push(ar(u.sup,h));var Le;if(f)Le=_?"mover":"munder";else if(u.sub)if(u.sup){var mt=u.base;mt&&mt.type==="op"&&mt.limits&&h.style===g.DISPLAY||mt&&mt.type==="operatorname"&&mt.alwaysHandleSupSub&&(h.style===g.DISPLAY||mt.limits)?Le="munderover":Le="msubsup"}else{var st=u.base;st&&st.type==="op"&&st.limits&&(h.style===g.DISPLAY||st.alwaysHandleSupSub)||st&&st.type==="operatorname"&&st.alwaysHandleSupSub&&(st.limits||h.style===g.DISPLAY)?Le="munder":Le="msub"}else{var $e=u.base;$e&&$e.type==="op"&&$e.limits&&(h.style===g.DISPLAY||$e.alwaysHandleSupSub)||$e&&$e.type==="operatorname"&&$e.alwaysHandleSupSub&&($e.limits||h.style===g.DISPLAY)?Le="mover":Le="msup"}var Pt=new tn.MathNode(Le,be);return Pt}}),cr({type:"atom",htmlBuilder:function(u,h){return lt.mathsym(u.text,u.mode,h,["m"+u.family])},mathmlBuilder:function(u,h){var f=new tn.MathNode("mo",[Vr(u.text,u.mode)]);if(u.family==="bin"){var _=ci(u,h);_==="bold-italic"&&f.setAttribute("mathvariant",_)}else u.family==="punct"?f.setAttribute("separator","true"):(u.family==="open"||u.family==="close")&&f.setAttribute("stretchy","false");return f}});var ua={mi:"italic",mn:"normal",mtext:"normal"};cr({type:"mathord",htmlBuilder:function(u,h){return lt.makeOrd(u,h,"mathord")},mathmlBuilder:function(u,h){var f=new tn.MathNode("mi",[Vr(u.text,u.mode,h)]),_=ci(u,h)||"italic";return _!==ua[f.type]&&f.setAttribute("mathvariant",_),f}}),cr({type:"textord",htmlBuilder:function(u,h){return lt.makeOrd(u,h,"textord")},mathmlBuilder:function(u,h){var f=Vr(u.text,u.mode,h),_=ci(u,h)||"normal",D;return u.mode==="text"?D=new tn.MathNode("mtext",[f]):/[0-9]/.test(u.text)?D=new tn.MathNode("mn",[f]):u.text==="\\prime"?D=new tn.MathNode("mo",[f]):D=new tn.MathNode("mi",[f]),_!==ua[D.type]&&D.setAttribute("mathvariant",_),D}});var ca={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},da={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cr({type:"spacing",htmlBuilder:function(u,h){if(da.hasOwnProperty(u.text)){var f=da[u.text].className||"";if(u.mode==="text"){var _=lt.makeOrd(u,h,"textord");return _.classes.push(f),_}else return lt.makeSpan(["mspace",f],[lt.mathsym(u.text,u.mode,h)],h)}else{if(ca.hasOwnProperty(u.text))return lt.makeSpan(["mspace",ca[u.text]],[],h);throw new p('Unknown type of space "'+u.text+'"')}},mathmlBuilder:function(u,h){var f;if(da.hasOwnProperty(u.text))f=new tn.MathNode("mtext",[new tn.TextNode("\xA0")]);else{if(ca.hasOwnProperty(u.text))return new tn.MathNode("mspace");throw new p('Unknown type of space "'+u.text+'"')}return f}});var ja=function(){var u=new tn.MathNode("mtd",[]);return u.setAttribute("width","50%"),u};cr({type:"tag",mathmlBuilder:function(u,h){var f=new tn.MathNode("mtable",[new tn.MathNode("mtr",[ja(),new tn.MathNode("mtd",[Ar(u.body,h)]),ja(),new tn.MathNode("mtd",[Ar(u.tag,h)])])]);return f.setAttribute("width","100%"),f}});var Ha={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ga={"\\textbf":"textbf","\\textmd":"textmd"},Ka={"\\textit":"textit","\\textup":"textup"},Wa=function(u,h){var f=u.font;return f?Ha[f]?h.withTextFontFamily(Ha[f]):Ga[f]?h.withTextFontWeight(Ga[f]):h.withTextFontShape(Ka[f]):h};_n({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(u,h){var f=u.parser,_=u.funcName,D=h[0];return{type:"text",mode:f.mode,body:dr(D),font:_}},htmlBuilder:function(u,h){var f=Wa(u,h),_=hr(u.body,f,!0);return lt.makeSpan(["mord","text"],lt.tryCombineChars(_),f)},mathmlBuilder:function(u,h){var f=Wa(u,h);return Ar(u.body,f)}}),_n({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser;return{type:"underline",mode:f.mode,body:h[0]}},htmlBuilder:function(u,h){var f=rr(u.body,h),_=lt.makeLineSpan("underline-line",h),D=h.fontMetrics().defaultRuleThickness,H=lt.makeVList({positionType:"top",positionData:f.height,children:[{type:"kern",size:D},{type:"elem",elem:_},{type:"kern",size:3*D},{type:"elem",elem:f}]},h);return lt.makeSpan(["mord","underline"],[H],h)},mathmlBuilder:function(u,h){var f=new tn.MathNode("mo",[new tn.TextNode("\u203E")]);f.setAttribute("stretchy","true");var _=new tn.MathNode("munder",[ar(u.body,h),f]);return _.setAttribute("accentunder","true"),_}}),_n({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(u,h,f){throw new p("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(u,h){for(var f=Va(u),_=[],D=h.havingStyle(h.style.text()),H=0;H<f.length;H++){var be=f[H];be==="~"&&(be="\\textasciitilde"),_.push(lt.makeSymbol(be,"Typewriter-Regular",u.mode,D,["mord","texttt"]))}return lt.makeSpan(["mord","text"].concat(D.sizingClasses(h)),lt.tryCombineChars(_),D)},mathmlBuilder:function(u,h){var f=new tn.TextNode(Va(u)),_=new tn.MathNode("mtext",[f]);return _.setAttribute("mathvariant","monospace"),_}});var Va=function(u){return u.body.replace(/ /g,u.star?"\u2423":"\xA0")},go=si,rs=go,ha=`[ \r
|
|
]`,Za="\\\\[a-zA-Z@]+",vo="\\\\[^\uD800-\uDFFF]",_o=""+Za+ha+"*",yo=new RegExp("^("+Za+")"+ha+"*$"),fa="[\u0300-\u036F]",Qs=new RegExp(fa+"+$"),bo="("+ha+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(fa+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(fa+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+_o)+("|"+vo+")"),pa=function(){function V(h,f){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=h,this.settings=f,this.tokenRegex=new RegExp(bo,"g"),this.catcodes={"%":14}}var u=V.prototype;return u.setCatcode=function(f,_){this.catcodes[f]=_},u.lex=function(){var f=this.input,_=this.tokenRegex.lastIndex;if(_===f.length)return new ve("EOF",new xe(this,_,_));var D=this.tokenRegex.exec(f);if(D===null||D.index!==_)throw new p("Unexpected character: '"+f[_]+"'",new ve(f[_],new xe(this,_,_+1)));var H=D[2]||" ";if(this.catcodes[H]===14){var be=f.indexOf(`
|
|
`,this.tokenRegex.lastIndex);return be===-1?(this.tokenRegex.lastIndex=f.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=be+1,this.lex()}var Le=H.match(yo);return Le&&(H=Le[1]),new ve(H,new xe(this,_,this.tokenRegex.lastIndex))},V}(),Ya=function(){function V(h,f){h===void 0&&(h={}),f===void 0&&(f={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=f,this.builtins=h,this.undefStack=[]}var u=V.prototype;return u.beginGroup=function(){this.undefStack.push({})},u.endGroup=function(){if(this.undefStack.length===0)throw new p("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var _ in f)f.hasOwnProperty(_)&&(f[_]===void 0?delete this.current[_]:this.current[_]=f[_])},u.has=function(f){return this.current.hasOwnProperty(f)||this.builtins.hasOwnProperty(f)},u.get=function(f){return this.current.hasOwnProperty(f)?this.current[f]:this.builtins[f]},u.set=function(f,_,D){if(D===void 0&&(D=!1),D){for(var H=0;H<this.undefStack.length;H++)delete this.undefStack[H][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=_)}else{var be=this.undefStack[this.undefStack.length-1];be&&!be.hasOwnProperty(f)&&(be[f]=this.current[f])}this.current[f]=_},V}(),Xa={},ma=Xa;function Me(V,u){Xa[V]=u}Me("\\@firstoftwo",function(V){var u=V.consumeArgs(2);return{tokens:u[0],numArgs:0}}),Me("\\@secondoftwo",function(V){var u=V.consumeArgs(2);return{tokens:u[1],numArgs:0}}),Me("\\@ifnextchar",function(V){var u=V.consumeArgs(3),h=V.future();return u[0].length===1&&u[0][0].text===h.text?{tokens:u[1],numArgs:0}:{tokens:u[2],numArgs:0}}),Me("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Me("\\TextOrMath",function(V){var u=V.consumeArgs(2);return V.mode==="text"?{tokens:u[0],numArgs:0}:{tokens:u[1],numArgs:0}});var Oi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Me("\\char",function(V){var u=V.popToken(),h,f="";if(u.text==="'")h=8,u=V.popToken();else if(u.text==='"')h=16,u=V.popToken();else if(u.text==="`")if(u=V.popToken(),u.text[0]==="\\")f=u.text.charCodeAt(1);else{if(u.text==="EOF")throw new p("\\char` missing argument");f=u.text.charCodeAt(0)}else h=10;if(h){if(f=Oi[u.text],f==null||f>=h)throw new p("Invalid base-"+h+" digit "+u.text);for(var _;(_=Oi[V.future().text])!=null&&_<h;)f*=h,f+=_,V.popToken()}return"\\@char{"+f+"}"});var Ps=function(u,h){var f=u.consumeArgs(1)[0];if(f.length!==1)throw new p("\\gdef's first argument must be a macro name");var _=f[0].text,D=0;for(f=u.consumeArgs(1)[0];f.length===1&&f[0].text==="#";){if(f=u.consumeArgs(1)[0],f.length!==1)throw new p('Invalid argument number length "'+f.length+'"');if(!/^[1-9]$/.test(f[0].text))throw new p('Invalid argument number "'+f[0].text+'"');if(D++,parseInt(f[0].text)!==D)throw new p('Argument number "'+f[0].text+'" out of order');f=u.consumeArgs(1)[0]}return u.macros.set(_,{tokens:f,numArgs:D},h),""};Me("\\gdef",function(V){return Ps(V,!0)}),Me("\\def",function(V){return Ps(V,!1)}),Me("\\global",function(V){var u=V.consumeArgs(1)[0];if(u.length!==1)throw new p("Invalid command after \\global");var h=u[0].text;if(h==="\\def")return Ps(V,!0);throw new p("Invalid command '"+h+"' after \\global")});var ga=function(u,h,f){var _=u.consumeArgs(1)[0];if(_.length!==1)throw new p("\\newcommand's first argument must be a macro name");var D=_[0].text,H=u.isDefined(D);if(H&&!h)throw new p("\\newcommand{"+D+"} attempting to redefine "+(D+"; use \\renewcommand"));if(!H&&!f)throw new p("\\renewcommand{"+D+"} when command "+D+" does not yet exist; use \\newcommand");var be=0;if(_=u.consumeArgs(1)[0],_.length===1&&_[0].text==="["){for(var Le="",$e=u.expandNextToken();$e.text!=="]"&&$e.text!=="EOF";)Le+=$e.text,$e=u.expandNextToken();if(!Le.match(/^\s*[0-9]+\s*$/))throw new p("Invalid number of arguments: "+Le);be=parseInt(Le),_=u.consumeArgs(1)[0]}return u.macros.set(D,{tokens:_,numArgs:be}),""};Me("\\newcommand",function(V){return ga(V,!1,!0)}),Me("\\renewcommand",function(V){return ga(V,!0,!1)}),Me("\\providecommand",function(V){return ga(V,!0,!0)}),Me("\\bgroup","{"),Me("\\egroup","}"),Me("\\lq","`"),Me("\\rq","'"),Me("\\aa","\\r a"),Me("\\AA","\\r A"),Me("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Me("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Me("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Me("\u212C","\\mathscr{B}"),Me("\u2130","\\mathscr{E}"),Me("\u2131","\\mathscr{F}"),Me("\u210B","\\mathscr{H}"),Me("\u2110","\\mathscr{I}"),Me("\u2112","\\mathscr{L}"),Me("\u2133","\\mathscr{M}"),Me("\u211B","\\mathscr{R}"),Me("\u212D","\\mathfrak{C}"),Me("\u210C","\\mathfrak{H}"),Me("\u2128","\\mathfrak{Z}"),Me("\\Bbbk","\\Bbb{k}"),Me("\xB7","\\cdotp"),Me("\\llap","\\mathllap{\\textrm{#1}}"),Me("\\rlap","\\mathrlap{\\textrm{#1}}"),Me("\\clap","\\mathclap{\\textrm{#1}}"),Me("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Me("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Me("\\ne","\\neq"),Me("\u2260","\\neq"),Me("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Me("\u2209","\\notin"),Me("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Me("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Me("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Me("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Me("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Me("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Me("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Me("\u27C2","\\perp"),Me("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Me("\u220C","\\notni"),Me("\u231C","\\ulcorner"),Me("\u231D","\\urcorner"),Me("\u231E","\\llcorner"),Me("\u231F","\\lrcorner"),Me("\xA9","\\copyright"),Me("\xAE","\\textregistered"),Me("\uFE0F","\\textregistered"),Me("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Me("\u22EE","\\vdots"),Me("\\varGamma","\\mathit{\\Gamma}"),Me("\\varDelta","\\mathit{\\Delta}"),Me("\\varTheta","\\mathit{\\Theta}"),Me("\\varLambda","\\mathit{\\Lambda}"),Me("\\varXi","\\mathit{\\Xi}"),Me("\\varPi","\\mathit{\\Pi}"),Me("\\varSigma","\\mathit{\\Sigma}"),Me("\\varUpsilon","\\mathit{\\Upsilon}"),Me("\\varPhi","\\mathit{\\Phi}"),Me("\\varPsi","\\mathit{\\Psi}"),Me("\\varOmega","\\mathit{\\Omega}"),Me("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Me("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Me("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Me("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Me("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Me("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Os={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Me("\\dots",function(V){var u="\\dotso",h=V.expandAfterFuture().text;return h in Os?u=Os[h]:(h.substr(0,4)==="\\not"||h in nn.math&&M.contains(["bin","rel"],nn.math[h].group))&&(u="\\dotsb"),u});var va={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Me("\\dotso",function(V){var u=V.future().text;return u in va?"\\ldots\\,":"\\ldots"}),Me("\\dotsc",function(V){var u=V.future().text;return u in va&&u!==","?"\\ldots\\,":"\\ldots"}),Me("\\cdots",function(V){var u=V.future().text;return u in va?"\\@cdots\\,":"\\@cdots"}),Me("\\dotsb","\\cdots"),Me("\\dotsm","\\cdots"),Me("\\dotsi","\\!\\cdots"),Me("\\dotsx","\\ldots\\,"),Me("\\DOTSI","\\relax"),Me("\\DOTSB","\\relax"),Me("\\DOTSX","\\relax"),Me("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Me("\\,","\\tmspace+{3mu}{.1667em}"),Me("\\thinspace","\\,"),Me("\\>","\\mskip{4mu}"),Me("\\:","\\tmspace+{4mu}{.2222em}"),Me("\\medspace","\\:"),Me("\\;","\\tmspace+{5mu}{.2777em}"),Me("\\thickspace","\\;"),Me("\\!","\\tmspace-{3mu}{.1667em}"),Me("\\negthinspace","\\!"),Me("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Me("\\negthickspace","\\tmspace-{5mu}{.277em}"),Me("\\enspace","\\kern.5em "),Me("\\enskip","\\hskip.5em\\relax"),Me("\\quad","\\hskip1em\\relax"),Me("\\qquad","\\hskip2em\\relax"),Me("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Me("\\tag@paren","\\tag@literal{({#1})}"),Me("\\tag@literal",function(V){if(V.macros.get("\\df@tag"))throw new p("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Me("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Me("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Me("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Me("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Me("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Me("\\\\","\\newline"),Me("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Qa=it["Main-Regular"][84][1]-.7*it["Main-Regular"][65][1]+"em";Me("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Qa+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Me("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Qa+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Me("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Me("\\@hspace","\\hskip #1\\relax"),Me("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Me("\\ordinarycolon",":"),Me("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Me("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Me("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Me("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Me("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Me("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Me("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Me("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Me("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Me("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Me("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Me("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Me("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Me("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Me("\u2237","\\dblcolon"),Me("\u2239","\\eqcolon"),Me("\u2254","\\coloneqq"),Me("\u2255","\\eqqcolon"),Me("\u2A74","\\Coloneqq"),Me("\\ratio","\\vcentcolon"),Me("\\coloncolon","\\dblcolon"),Me("\\colonequals","\\coloneqq"),Me("\\coloncolonequals","\\Coloneqq"),Me("\\equalscolon","\\eqqcolon"),Me("\\equalscoloncolon","\\Eqqcolon"),Me("\\colonminus","\\coloneq"),Me("\\coloncolonminus","\\Coloneq"),Me("\\minuscolon","\\eqcolon"),Me("\\minuscoloncolon","\\Eqcolon"),Me("\\coloncolonapprox","\\Colonapprox"),Me("\\coloncolonsim","\\Colonsim"),Me("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Me("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Me("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Me("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Me("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Me("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Me("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Me("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Me("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Me("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Me("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Me("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Me("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Me("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Me("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Me("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Me("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Me("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Me("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Me("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Me("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Me("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Me("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Me("\u27E6","\\llbracket"),Me("\u27E7","\\rrbracket"),Me("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Me("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Me("\u2983","\\lBrace"),Me("\u2984","\\rBrace"),Me("\\darr","\\downarrow"),Me("\\dArr","\\Downarrow"),Me("\\Darr","\\Downarrow"),Me("\\lang","\\langle"),Me("\\rang","\\rangle"),Me("\\uarr","\\uparrow"),Me("\\uArr","\\Uparrow"),Me("\\Uarr","\\Uparrow"),Me("\\N","\\mathbb{N}"),Me("\\R","\\mathbb{R}"),Me("\\Z","\\mathbb{Z}"),Me("\\alef","\\aleph"),Me("\\alefsym","\\aleph"),Me("\\Alpha","\\mathrm{A}"),Me("\\Beta","\\mathrm{B}"),Me("\\bull","\\bullet"),Me("\\Chi","\\mathrm{X}"),Me("\\clubs","\\clubsuit"),Me("\\cnums","\\mathbb{C}"),Me("\\Complex","\\mathbb{C}"),Me("\\Dagger","\\ddagger"),Me("\\diamonds","\\diamondsuit"),Me("\\empty","\\emptyset"),Me("\\Epsilon","\\mathrm{E}"),Me("\\Eta","\\mathrm{H}"),Me("\\exist","\\exists"),Me("\\harr","\\leftrightarrow"),Me("\\hArr","\\Leftrightarrow"),Me("\\Harr","\\Leftrightarrow"),Me("\\hearts","\\heartsuit"),Me("\\image","\\Im"),Me("\\infin","\\infty"),Me("\\Iota","\\mathrm{I}"),Me("\\isin","\\in"),Me("\\Kappa","\\mathrm{K}"),Me("\\larr","\\leftarrow"),Me("\\lArr","\\Leftarrow"),Me("\\Larr","\\Leftarrow"),Me("\\lrarr","\\leftrightarrow"),Me("\\lrArr","\\Leftrightarrow"),Me("\\Lrarr","\\Leftrightarrow"),Me("\\Mu","\\mathrm{M}"),Me("\\natnums","\\mathbb{N}"),Me("\\Nu","\\mathrm{N}"),Me("\\Omicron","\\mathrm{O}"),Me("\\plusmn","\\pm"),Me("\\rarr","\\rightarrow"),Me("\\rArr","\\Rightarrow"),Me("\\Rarr","\\Rightarrow"),Me("\\real","\\Re"),Me("\\reals","\\mathbb{R}"),Me("\\Reals","\\mathbb{R}"),Me("\\Rho","\\mathrm{P}"),Me("\\sdot","\\cdot"),Me("\\sect","\\S"),Me("\\spades","\\spadesuit"),Me("\\sub","\\subset"),Me("\\sube","\\subseteq"),Me("\\supe","\\supseteq"),Me("\\Tau","\\mathrm{T}"),Me("\\thetasym","\\vartheta"),Me("\\weierp","\\wp"),Me("\\Zeta","\\mathrm{Z}"),Me("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Me("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Me("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Me("\\blue","\\textcolor{##6495ed}{#1}"),Me("\\orange","\\textcolor{##ffa500}{#1}"),Me("\\pink","\\textcolor{##ff00af}{#1}"),Me("\\red","\\textcolor{##df0030}{#1}"),Me("\\green","\\textcolor{##28ae7b}{#1}"),Me("\\gray","\\textcolor{gray}{#1}"),Me("\\purple","\\textcolor{##9d38bd}{#1}"),Me("\\blueA","\\textcolor{##ccfaff}{#1}"),Me("\\blueB","\\textcolor{##80f6ff}{#1}"),Me("\\blueC","\\textcolor{##63d9ea}{#1}"),Me("\\blueD","\\textcolor{##11accd}{#1}"),Me("\\blueE","\\textcolor{##0c7f99}{#1}"),Me("\\tealA","\\textcolor{##94fff5}{#1}"),Me("\\tealB","\\textcolor{##26edd5}{#1}"),Me("\\tealC","\\textcolor{##01d1c1}{#1}"),Me("\\tealD","\\textcolor{##01a995}{#1}"),Me("\\tealE","\\textcolor{##208170}{#1}"),Me("\\greenA","\\textcolor{##b6ffb0}{#1}"),Me("\\greenB","\\textcolor{##8af281}{#1}"),Me("\\greenC","\\textcolor{##74cf70}{#1}"),Me("\\greenD","\\textcolor{##1fab54}{#1}"),Me("\\greenE","\\textcolor{##0d923f}{#1}"),Me("\\goldA","\\textcolor{##ffd0a9}{#1}"),Me("\\goldB","\\textcolor{##ffbb71}{#1}"),Me("\\goldC","\\textcolor{##ff9c39}{#1}"),Me("\\goldD","\\textcolor{##e07d10}{#1}"),Me("\\goldE","\\textcolor{##a75a05}{#1}"),Me("\\redA","\\textcolor{##fca9a9}{#1}"),Me("\\redB","\\textcolor{##ff8482}{#1}"),Me("\\redC","\\textcolor{##f9685d}{#1}"),Me("\\redD","\\textcolor{##e84d39}{#1}"),Me("\\redE","\\textcolor{##bc2612}{#1}"),Me("\\maroonA","\\textcolor{##ffbde0}{#1}"),Me("\\maroonB","\\textcolor{##ff92c6}{#1}"),Me("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Me("\\maroonD","\\textcolor{##ca337c}{#1}"),Me("\\maroonE","\\textcolor{##9e034e}{#1}"),Me("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Me("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Me("\\purpleC","\\textcolor{##aa87ff}{#1}"),Me("\\purpleD","\\textcolor{##7854ab}{#1}"),Me("\\purpleE","\\textcolor{##543b78}{#1}"),Me("\\mintA","\\textcolor{##f5f9e8}{#1}"),Me("\\mintB","\\textcolor{##edf2df}{#1}"),Me("\\mintC","\\textcolor{##e0e5cc}{#1}"),Me("\\grayA","\\textcolor{##f6f7f7}{#1}"),Me("\\grayB","\\textcolor{##f0f1f2}{#1}"),Me("\\grayC","\\textcolor{##e3e5e6}{#1}"),Me("\\grayD","\\textcolor{##d6d8da}{#1}"),Me("\\grayE","\\textcolor{##babec2}{#1}"),Me("\\grayF","\\textcolor{##888d93}{#1}"),Me("\\grayG","\\textcolor{##626569}{#1}"),Me("\\grayH","\\textcolor{##3b3e40}{#1}"),Me("\\grayI","\\textcolor{##21242c}{#1}"),Me("\\kaBlue","\\textcolor{##314453}{#1}"),Me("\\kaGreen","\\textcolor{##71B307}{#1}");var Ja={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},xo=function(){function V(h,f,_){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=f,this.expansionCount=0,this.feed(h),this.macros=new Ya(ma,f.macros),this.mode=_,this.stack=[]}var u=V.prototype;return u.feed=function(f){this.lexer=new pa(f,this.settings)},u.switchMode=function(f){this.mode=f},u.beginGroup=function(){this.macros.beginGroup()},u.endGroup=function(){this.macros.endGroup()},u.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},u.popToken=function(){return this.future(),this.stack.pop()},u.pushToken=function(f){this.stack.push(f)},u.pushTokens=function(f){var _;(_=this.stack).push.apply(_,f)},u.consumeSpaces=function(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}},u.consumeArgs=function(f){for(var _=[],D=0;D<f;++D){this.consumeSpaces();var H=this.popToken();if(H.text==="{"){for(var be=[],Le=1;Le!==0;){var $e=this.popToken();if(be.push($e),$e.text==="{")++Le;else if($e.text==="}")--Le;else if($e.text==="EOF")throw new p("End of input in macro argument",H)}be.pop(),be.reverse(),_[D]=be}else{if(H.text==="EOF")throw new p("End of input expecting macro argument");_[D]=[H]}}return _},u.expandOnce=function(){var f=this.popToken(),_=f.text,D=this._getExpansion(_);if(D==null)return this.pushToken(f),f;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new p("Too many expansions: infinite loop or need to increase maxExpand setting");var H=D.tokens;if(D.numArgs){var be=this.consumeArgs(D.numArgs);H=H.slice();for(var Le=H.length-1;Le>=0;--Le){var $e=H[Le];if($e.text==="#"){if(Le===0)throw new p("Incomplete placeholder at end of macro body",$e);if($e=H[--Le],$e.text==="#")H.splice(Le+1,1);else if(/^[1-9]$/.test($e.text)){var st;(st=H).splice.apply(st,[Le,2].concat(be[+$e.text-1]))}else throw new p("Not a valid argument number",$e)}}}return this.pushTokens(H),H},u.expandAfterFuture=function(){return this.expandOnce(),this.future()},u.expandNextToken=function(){for(;;){var f=this.expandOnce();if(f instanceof ve)if(f.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},u.expandMacro=function(f){if(this.macros.get(f)){var _=[],D=this.stack.length;for(this.pushToken(new ve(f));this.stack.length>D;){var H=this.expandOnce();H instanceof ve&&_.push(this.stack.pop())}return _}},u.expandMacroAsText=function(f){var _=this.expandMacro(f);return _&&_.map(function(D){return D.text}).join("")},u._getExpansion=function(f){var _=this.macros.get(f);if(_==null)return _;var D=typeof _=="function"?_(this):_;if(typeof D=="string"){var H=0;if(D.indexOf("#")!==-1)for(var be=D.replace(/##/g,"");be.indexOf("#"+(H+1))!==-1;)++H;for(var Le=new pa(D,this.settings),$e=[],st=Le.lex();st.text!=="EOF";)$e.push(st),st=Le.lex();$e.reverse();var mt={tokens:$e,numArgs:H};return mt}return D},u.isDefined=function(f){return this.macros.has(f)||rs.hasOwnProperty(f)||nn.math.hasOwnProperty(f)||nn.text.hasOwnProperty(f)||Ja.hasOwnProperty(f)},V}(),_a={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},ya={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},gs=function(){function V(h,f){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new xo(h,f,this.mode),this.settings=f,this.leftrightDepth=0}var u=V.prototype;return u.expect=function(f,_){if(_===void 0&&(_=!0),this.fetch().text!==f)throw new p("Expected '"+f+"', got '"+this.fetch().text+"'",this.fetch());_&&this.consume()},u.consume=function(){this.nextToken=null},u.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},u.switchMode=function(f){this.mode=f,this.gullet.switchMode(f)},u.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var f=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),f},u.parseExpression=function(f,_){for(var D=[];;){this.mode==="math"&&this.consumeSpaces();var H=this.fetch();if(V.endOfExpression.indexOf(H.text)!==-1||_&&H.text===_||f&&rs[H.text]&&rs[H.text].infix)break;var be=this.parseAtom(_);if(!be)break;D.push(be)}return this.mode==="text"&&this.formLigatures(D),this.handleInfixNodes(D)},u.handleInfixNodes=function(f){for(var _=-1,D,H=0;H<f.length;H++){var be=Hn(f[H],"infix");if(be){if(_!==-1)throw new p("only one infix operator per group",be.token);_=H,D=be.replaceWith}}if(_!==-1&&D){var Le,$e,st=f.slice(0,_),mt=f.slice(_+1);st.length===1&&st[0].type==="ordgroup"?Le=st[0]:Le={type:"ordgroup",mode:this.mode,body:st},mt.length===1&&mt[0].type==="ordgroup"?$e=mt[0]:$e={type:"ordgroup",mode:this.mode,body:mt};var Pt;return D==="\\\\abovefrac"?Pt=this.callFunction(D,[Le,f[_],$e],[]):Pt=this.callFunction(D,[Le,$e],[]),[Pt]}else return f},u.handleSupSubscript=function(f){var _=this.fetch(),D=_.text;this.consume();var H=this.parseGroup(f,!1,V.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!H)throw new p("Expected group after '"+D+"'",_);return H},u.formatUnsupportedCmd=function(f){for(var _=[],D=0;D<f.length;D++)_.push({type:"textord",mode:"text",text:f[D]});var H={type:"text",mode:this.mode,body:_},be={type:"color",mode:this.mode,color:this.settings.errorColor,body:[H]};return be},u.parseAtom=function(f){var _=this.parseGroup("atom",!1,null,f);if(this.mode==="text")return _;for(var D,H;;){this.consumeSpaces();var be=this.fetch();if(be.text==="\\limits"||be.text==="\\nolimits"){var Le=Hn(_,"op");if(Le){var $e=be.text==="\\limits";Le.limits=$e,Le.alwaysHandleSupSub=!0}else if(Le=Hn(_,"operatorname"),Le&&Le.alwaysHandleSupSub){var st=be.text==="\\limits";Le.limits=st}else throw new p("Limit controls must follow a math operator",be);this.consume()}else if(be.text==="^"){if(D)throw new p("Double superscript",be);D=this.handleSupSubscript("superscript")}else if(be.text==="_"){if(H)throw new p("Double subscript",be);H=this.handleSupSubscript("subscript")}else if(be.text==="'"){if(D)throw new p("Double superscript",be);var mt={type:"textord",mode:this.mode,text:"\\prime"},Pt=[mt];for(this.consume();this.fetch().text==="'";)Pt.push(mt),this.consume();this.fetch().text==="^"&&Pt.push(this.handleSupSubscript("superscript")),D={type:"ordgroup",mode:this.mode,body:Pt}}else break}return D||H?{type:"supsub",mode:this.mode,base:_,sup:D,sub:H}:_},u.parseFunction=function(f,_,D){var H=this.fetch(),be=H.text,Le=rs[be];if(!Le)return null;if(this.consume(),D!=null&&Le.greediness<=D)throw new p("Got function '"+be+"' with no arguments"+(_?" as "+_:""),H);if(this.mode==="text"&&!Le.allowedInText)throw new p("Can't use function '"+be+"' in text mode",H);if(this.mode==="math"&&Le.allowedInMath===!1)throw new p("Can't use function '"+be+"' in math mode",H);var $e=this.parseArguments(be,Le),st=$e.args,mt=$e.optArgs;return this.callFunction(be,st,mt,H,f)},u.callFunction=function(f,_,D,H,be){var Le={funcName:f,parser:this,token:H,breakOnTokenText:be},$e=rs[f];if($e&&$e.handler)return $e.handler(Le,_,D);throw new p("No function handler for "+f)},u.parseArguments=function(f,_){var D=_.numArgs+_.numOptionalArgs;if(D===0)return{args:[],optArgs:[]};for(var H=_.greediness,be=[],Le=[],$e=0;$e<D;$e++){var st=_.argTypes&&_.argTypes[$e],mt=$e<_.numOptionalArgs,Pt=$e>0&&!mt||$e===0&&!mt&&this.mode==="math",Zt=this.parseGroupOfType("argument to '"+f+"'",st,mt,H,Pt);if(!Zt){if(mt){Le.push(null);continue}throw new p("Expected group after '"+f+"'",this.fetch())}(mt?Le:be).push(Zt)}return{args:be,optArgs:Le}},u.parseGroupOfType=function(f,_,D,H,be){switch(_){case"color":return be&&this.consumeSpaces(),this.parseColorGroup(D);case"size":return be&&this.consumeSpaces(),this.parseSizeGroup(D);case"url":return this.parseUrlGroup(D,be);case"math":case"text":return this.parseGroup(f,D,H,void 0,_,be);case"hbox":{var Le=this.parseGroup(f,D,H,void 0,"text",be);if(!Le)return Le;var $e={type:"styling",mode:Le.mode,body:[Le],style:"text"};return $e}case"raw":{if(be&&this.consumeSpaces(),D&&this.fetch().text==="{")return null;var st=this.parseStringGroup("raw",D,!0);if(st)return{type:"raw",mode:"text",string:st.text};throw new p("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(f,D,H,void 0,void 0,be);default:throw new p("Unknown group type as "+f,this.fetch())}},u.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},u.parseStringGroup=function(f,_,D){var H=_?"[":"{",be=_?"]":"}",Le=this.fetch();if(Le.text!==H){if(_)return null;if(D&&Le.text!=="EOF"&&/[^{}[\]]/.test(Le.text))return this.consume(),Le}var $e=this.mode;this.mode="text",this.expect(H);for(var st="",mt=this.fetch(),Pt=0,Zt=mt,sn;(sn=this.fetch()).text!==be||D&&Pt>0;){switch(sn.text){case"EOF":throw new p("Unexpected end of input in "+f,mt.range(Zt,st));case H:Pt++;break;case be:Pt--;break}Zt=sn,st+=Zt.text,this.consume()}return this.expect(be),this.mode=$e,mt.range(Zt,st)},u.parseRegexGroup=function(f,_){var D=this.mode;this.mode="text";for(var H=this.fetch(),be=H,Le="",$e;($e=this.fetch()).text!=="EOF"&&f.test(Le+$e.text);)be=$e,Le+=be.text,this.consume();if(Le==="")throw new p("Invalid "+_+": '"+H.text+"'",H);return this.mode=D,H.range(be,Le)},u.parseColorGroup=function(f){var _=this.parseStringGroup("color",f);if(!_)return null;var D=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(_.text);if(!D)throw new p("Invalid color: '"+_.text+"'",_);var H=D[0];return/^[0-9a-f]{6}$/i.test(H)&&(H="#"+H),{type:"color-token",mode:this.mode,color:H}},u.parseSizeGroup=function(f){var _,D=!1;if(!f&&this.fetch().text!=="{"?_=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):_=this.parseStringGroup("size",f),!_)return null;!f&&_.text.length===0&&(_.text="0pt",D=!0);var H=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(_.text);if(!H)throw new p("Invalid size: '"+_.text+"'",_);var be={number:+(H[1]+H[2]),unit:H[3]};if(!tt(be))throw new p("Invalid unit: '"+be.unit+"'",_);return{type:"size",mode:this.mode,value:be,isBlank:D}},u.parseUrlGroup=function(f,_){this.gullet.lexer.setCatcode("%",13);var D=this.parseStringGroup("url",f,!0);if(this.gullet.lexer.setCatcode("%",14),!D)return null;var H=D.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:H}},u.parseGroup=function(f,_,D,H,be,Le){var $e=this.mode;be&&this.switchMode(be),Le&&this.consumeSpaces();var st=this.fetch(),mt=st.text,Pt;if(_?mt==="[":mt==="{"||mt==="\\begingroup"){this.consume();var Zt=V.endOfGroup[mt];this.gullet.beginGroup();var sn=this.parseExpression(!1,Zt),hn=this.fetch();this.expect(Zt),this.gullet.endGroup(),Pt={type:"ordgroup",mode:this.mode,loc:xe.range(st,hn),body:sn,semisimple:mt==="\\begingroup"||void 0}}else if(_)Pt=null;else if(Pt=this.parseFunction(H,f,D)||this.parseSymbol(),Pt==null&&mt[0]==="\\"&&!Ja.hasOwnProperty(mt)){if(this.settings.throwOnError)throw new p("Undefined control sequence: "+mt,st);Pt=this.formatUnsupportedCmd(mt),this.consume()}return be&&this.switchMode($e),Pt},u.formLigatures=function(f){for(var _=f.length-1,D=0;D<_;++D){var H=f[D],be=H.text;be==="-"&&f[D+1].text==="-"&&(D+1<_&&f[D+2].text==="-"?(f.splice(D,3,{type:"textord",mode:"text",loc:xe.range(H,f[D+2]),text:"---"}),_-=2):(f.splice(D,2,{type:"textord",mode:"text",loc:xe.range(H,f[D+1]),text:"--"}),_-=1)),(be==="'"||be==="`")&&f[D+1].text===be&&(f.splice(D,2,{type:"textord",mode:"text",loc:xe.range(H,f[D+1]),text:be+be}),_-=1)}},u.parseSymbol=function(){var f=this.fetch(),_=f.text;if(/^\\verb[^a-zA-Z]/.test(_)){this.consume();var D=_.slice(5),H=D.charAt(0)==="*";if(H&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new p(`\\verb assertion failed --
|
|
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:H}}ya.hasOwnProperty(_[0])&&!nn[this.mode][_[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+_[0]+'" used in math mode',f),_=ya[_[0]]+_.substr(1));var be=Qs.exec(_);be&&(_=_.substring(0,be.index),_==="i"?_="\u0131":_==="j"&&(_="\u0237"));var Le;if(nn[this.mode][_]){this.settings.strict&&this.mode==="math"&&cn.indexOf(_)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+_[0]+'" used in math mode',f);var $e=nn[this.mode][_].group,st=xe.range(f),mt;if(Yt.hasOwnProperty($e)){var Pt=$e;mt={type:"atom",mode:this.mode,family:Pt,loc:st,text:_}}else mt={type:$e,mode:this.mode,loc:st,text:_};Le=mt}else if(_.charCodeAt(0)>=128)this.settings.strict&&(Se(_.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+_[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+_[0]+'"'+(" ("+_.charCodeAt(0)+")"),f)),Le={type:"textord",mode:"text",loc:xe.range(f),text:_};else return null;if(this.consume(),be)for(var Zt=0;Zt<be[0].length;Zt++){var sn=be[0][Zt];if(!_a[sn])throw new p("Unknown accent ' "+sn+"'",f);var hn=_a[sn][this.mode];if(!hn)throw new p("Accent "+sn+" unsupported in "+this.mode+" mode",f);Le={type:"accent",mode:this.mode,loc:xe.range(f),label:hn,isStretchy:!1,isShifty:!0,base:Le}}return Le},V}();gs.endOfExpression=["}","\\endgroup","\\end","\\right","&"],gs.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},gs.SUPSUB_GREEDINESS=1;var qa=function(u,h){if(!(typeof u=="string"||u instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var f=new gs(u,h);delete f.gullet.macros.current["\\df@tag"];var _=f.parse();if(f.gullet.macros.get("\\df@tag")){if(!h.displayMode)throw new p("\\tag works only in display equations");f.gullet.feed("\\df@tag"),_=[{type:"tag",mode:"text",body:_,tag:f.parse()}]}return _},ba=qa,xa=function(u,h,f){h.textContent="";var _=Js(u,f).toNode();h.appendChild(_)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),xa=function(){throw new p("KaTeX doesn't work in quirks mode.")});var Eo=function(u,h){var f=Js(u,h).toMarkup();return f},eo=function(u,h){var f=new U(h);return ba(u,f)},to=function(u,h,f){if(f.throwOnError||!(u instanceof p))throw u;var _=lt.makeSpan(["katex-error"],[new ne(h)]);return _.setAttribute("title",u.toString()),_.setAttribute("style","color:"+f.errorColor),_},Js=function(u,h){var f=new U(h);try{var _=ba(u,f);return Gr(_,u,f)}catch(D){return to(D,u,f)}},So=function(u,h){var f=new U(h);try{var _=ba(u,f);return Nr(_,u,f)}catch(D){return to(D,u,f)}},wo={version:"0.11.1",render:xa,renderToString:Eo,ParseError:p,__parse:eo,__renderToDomTree:Js,__renderToHTMLTree:So,__setFontMetrics:Tt,__defineSymbol:w,__defineMacro:Me,__domTree:{Span:j,Anchor:pe,SymbolNode:ne,SvgNode:fe,PathNode:ye,LineNode:ke}},Qo=E.default=wo}]).default})},32834:function(Kt){(function(nt,E){Kt.exports=E()})(this,function(){"use strict";function nt(ze,Ge){for(var Je=0;Je<Ge.length;Je++){var ae=Ge[Je];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ze,ae.key,ae)}}function E(ze,Ge,Je){return Ge&&nt(ze.prototype,Ge),Je&&nt(ze,Je),ze}function S(ze,Ge){if(ze){if(typeof ze=="string")return te(ze,Ge);var Je=Object.prototype.toString.call(ze).slice(8,-1);if(Je==="Object"&&ze.constructor&&(Je=ze.constructor.name),Je==="Map"||Je==="Set")return Array.from(ze);if(Je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Je))return te(ze,Ge)}}function te(ze,Ge){(Ge==null||Ge>ze.length)&&(Ge=ze.length);for(var Je=0,ae=new Array(Ge);Je<Ge;Je++)ae[Je]=ze[Je];return ae}function xe(ze,Ge){var Je=typeof Symbol!="undefined"&&ze[Symbol.iterator]||ze["@@iterator"];if(Je)return(Je=Je.call(ze)).next.bind(Je);if(Array.isArray(ze)||(Je=S(ze))||Ge&&ze&&typeof ze.length=="number"){Je&&(ze=Je);var ae=0;return function(){return ae>=ze.length?{done:!0}:{done:!1,value:ze[ae++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve={exports:{}};function $(){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 p(ze){ve.exports.defaults=ze}ve.exports={defaults:$(),getDefaults:$,changeDefaults:p};var he=/[&<>"']/,re=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,ue=/[<>"']|&(?!#?\w+;)/g,G={"&":"&","<":"<",">":">",'"':""","'":"'"},v=function(Ge){return G[Ge]};function x(ze,Ge){if(Ge){if(he.test(ze))return ze.replace(re,v)}else if(o.test(ze))return ze.replace(ue,v);return ze}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function T(ze){return ze.replace(A,function(Ge,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}var Z=/(^|[^\[])\^/g;function ie(ze,Ge){ze=ze.source||ze,Ge=Ge||"";var Je={replace:function(Ee,De){return De=De.source||De,De=De.replace(Z,"$1"),ze=ze.replace(Ee,De),Je},getRegex:function(){return new RegExp(ze,Ge)}};return Je}var M=/[^\w:]/g,U=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function W(ze,Ge,Je){if(ze){var ae;try{ae=decodeURIComponent(T(Je)).replace(M,"").toLowerCase()}catch(Ee){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}Ge&&!U.test(Je)&&(Je=J(Ge,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(Ee){return null}return Je}var le={},k=/^[^:]+:\/*[^/]*$/,Y=/^([^:]+:)[\s\S]*$/,se=/^([^:]+:\/*[^/]*)[\s\S]*$/;function J(ze,Ge){le[" "+ze]||(k.test(ze)?le[" "+ze]=ze+"/":le[" "+ze]=Fe(ze,"/",!0)),ze=le[" "+ze];var Je=ze.indexOf(":")===-1;return Ge.substring(0,2)==="//"?Je?Ge:ze.replace(Y,"$1")+Ge:Ge.charAt(0)==="/"?Je?Ge:ze.replace(se,"$1")+Ge:ze+Ge}var ge={exec:function(){}};function Ce(ze){for(var Ge=1,Je,ae;Ge<arguments.length;Ge++){Je=arguments[Ge];for(ae in Je)Object.prototype.hasOwnProperty.call(Je,ae)&&(ze[ae]=Je[ae])}return ze}function Te(ze,Ge){var Je=ze.replace(/\|/g,function(De,He,q){for(var Ut=!1,Pe=He;--Pe>=0&&q[Pe]==="\\";)Ut=!Ut;return Ut?"|":" |"}),ae=Je.split(/ \|/),Ee=0;if(ae.length>Ge)ae.splice(Ge);else for(;ae.length<Ge;)ae.push("");for(;Ee<ae.length;Ee++)ae[Ee]=ae[Ee].trim().replace(/\\\|/g,"|");return ae}function Fe(ze,Ge,Je){var ae=ze.length;if(ae===0)return"";for(var Ee=0;Ee<ae;){var De=ze.charAt(ae-Ee-1);if(De===Ge&&!Je)Ee++;else if(De!==Ge&&Je)Ee++;else break}return ze.substr(0,ae-Ee)}function Q(ze,Ge){if(ze.indexOf(Ge[1])===-1)return-1;for(var Je=ze.length,ae=0,Ee=0;Ee<Je;Ee++)if(ze[Ee]==="\\")Ee++;else if(ze[Ee]===Ge[0])ae++;else if(ze[Ee]===Ge[1]&&(ae--,ae<0))return Ee;return-1}function O(ze){ze&&ze.sanitize&&!ze.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 K(ze,Ge){if(Ge<1)return"";for(var Je="";Ge>1;)Ge&1&&(Je+=ze),Ge>>=1,ze+=ze;return Je+ze}var I={escape:x,unescape:T,edit:ie,cleanUrl:W,resolveUrl:J,noopTest:ge,merge:Ce,splitCells:Te,rtrim:Fe,findClosingBracket:Q,checkSanitizeDeprecation:O,repeatString:K},X=ve.exports.defaults,z=I.rtrim,g=I.splitCells,b=I.escape,B=I.findClosingBracket;function F(ze,Ge,Je){var ae=Ge.href,Ee=Ge.title?b(Ge.title):null,De=ze[1].replace(/\\([\[\]])/g,"$1");return ze[0].charAt(0)!=="!"?{type:"link",raw:Je,href:ae,title:Ee,text:De}:{type:"image",raw:Je,href:ae,title:Ee,text:b(De)}}function Se(ze,Ge){var Je=ze.match(/^(\s+)(?:```)/);if(Je===null)return Ge;var ae=Je[1];return Ge.split(`
|
|
`).map(function(Ee){var De=Ee.match(/^\s+/);if(De===null)return Ee;var He=De[0];return He.length>=ae.length?Ee.slice(ae.length):Ee}).join(`
|
|
`)}var we=function(){function ze(Je){this.options=Je||X}var Ge=ze.prototype;return Ge.space=function(ae){var Ee=this.rules.block.newline.exec(ae);if(Ee)return Ee[0].length>1?{type:"space",raw:Ee[0]}:{raw:`
|
|
`}},Ge.code=function(ae){var Ee=this.rules.block.code.exec(ae);if(Ee){var De=Ee[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ee[0],codeBlockStyle:"indented",text:this.options.pedantic?De:z(De,`
|
|
`)}}},Ge.fences=function(ae){var Ee=this.rules.block.fences.exec(ae);if(Ee){var De=Ee[0],He=Se(De,Ee[3]||"");return{type:"code",raw:De,lang:Ee[2]?Ee[2].trim():Ee[2],text:He}}},Ge.heading=function(ae){var Ee=this.rules.block.heading.exec(ae);if(Ee){var De=Ee[2].trim();if(/#$/.test(De)){var He=z(De,"#");(this.options.pedantic||!He||/ $/.test(He))&&(De=He.trim())}return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:De}}},Ge.nptable=function(ae){var Ee=this.rules.block.nptable.exec(ae);if(Ee){var De={type:"table",header:g(Ee[1].replace(/^ *| *\| *$/g,"")),align:Ee[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ee[3]?Ee[3].replace(/\n$/,"").split(`
|
|
`):[],raw:Ee[0]};if(De.header.length===De.align.length){var He=De.align.length,q;for(q=0;q<He;q++)/^ *-+: *$/.test(De.align[q])?De.align[q]="right":/^ *:-+: *$/.test(De.align[q])?De.align[q]="center":/^ *:-+ *$/.test(De.align[q])?De.align[q]="left":De.align[q]=null;for(He=De.cells.length,q=0;q<He;q++)De.cells[q]=g(De.cells[q],De.header.length);return De}}},Ge.hr=function(ae){var Ee=this.rules.block.hr.exec(ae);if(Ee)return{type:"hr",raw:Ee[0]}},Ge.blockquote=function(ae){var Ee=this.rules.block.blockquote.exec(ae);if(Ee){var De=Ee[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ee[0],text:De}}},Ge.list=function(ae){var Ee=this.rules.block.list.exec(ae);if(Ee){var De=Ee[0],He=Ee[2],q=He.length>1,Ut={type:"list",raw:De,ordered:q,start:q?+He.slice(0,-1):"",loose:!1,items:[]},Pe=Ee[0].match(this.rules.block.item),Qt=!1,an,kt,It,Et,xt,rn,_e,Ae,ct,We=Pe.length;It=this.rules.block.listItemStart.exec(Pe[0]);for(var at=0;at<We;at++){if(an=Pe[at],De=an,this.options.pedantic||(ct=an.match(new RegExp("\\n\\s*\\n {0,"+(It[0].length-1)+"}\\S")),ct&&(xt=an.length-ct.index+Pe.slice(at+1).join(`
|
|
`).length,Ut.raw=Ut.raw.substring(0,Ut.raw.length-xt),an=an.substring(0,ct.index),De=an,We=at+1)),at!==We-1){if(Et=this.rules.block.listItemStart.exec(Pe[at+1]),this.options.pedantic?Et[1].length>It[1].length:Et[1].length>=It[0].length||Et[1].length>3){Pe.splice(at,2,Pe[at]+(!this.options.pedantic&&Et[1].length<It[0].length&&!Pe[at].match(/\n$/)?"":`
|
|
`)+Pe[at+1]),at--,We--;continue}else(!this.options.pedantic||this.options.smartLists?Et[2][Et[2].length-1]!==He[He.length-1]:q===(Et[2].length===1))&&(xt=Pe.slice(at+1).join(`
|
|
`).length,Ut.raw=Ut.raw.substring(0,Ut.raw.length-xt),at=We-1);It=Et}kt=an.length,an=an.replace(/^ *([*+-]|\d+[.)]) ?/,""),~an.indexOf(`
|
|
`)&&(kt-=an.length,an=this.options.pedantic?an.replace(/^ {1,4}/gm,""):an.replace(new RegExp("^ {1,"+kt+"}","gm"),"")),an=z(an,`
|
|
`),at!==We-1&&(De=De+`
|
|
`),rn=Qt||/\n\n(?!\s*$)/.test(De),at!==We-1&&(Qt=De.slice(-2)===`
|
|
|
|
`,rn||(rn=Qt)),rn&&(Ut.loose=!0),this.options.gfm&&(_e=/^\[[ xX]\] /.test(an),Ae=void 0,_e&&(Ae=an[1]!==" ",an=an.replace(/^\[[ xX]\] +/,""))),Ut.items.push({type:"list_item",raw:De,task:_e,checked:Ae,loose:rn,text:an})}return Ut}},Ge.html=function(ae){var Ee=this.rules.block.html.exec(ae);if(Ee)return{type:this.options.sanitize?"paragraph":"html",raw:Ee[0],pre:!this.options.sanitizer&&(Ee[1]==="pre"||Ee[1]==="script"||Ee[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ee[0]):b(Ee[0]):Ee[0]}},Ge.def=function(ae){var Ee=this.rules.block.def.exec(ae);if(Ee){Ee[3]&&(Ee[3]=Ee[3].substring(1,Ee[3].length-1));var De=Ee[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:De,raw:Ee[0],href:Ee[2],title:Ee[3]}}},Ge.table=function(ae){var Ee=this.rules.block.table.exec(ae);if(Ee){var De={type:"table",header:g(Ee[1].replace(/^ *| *\| *$/g,"")),align:Ee[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ee[3]?Ee[3].replace(/\n$/,"").split(`
|
|
`):[]};if(De.header.length===De.align.length){De.raw=Ee[0];var He=De.align.length,q;for(q=0;q<He;q++)/^ *-+: *$/.test(De.align[q])?De.align[q]="right":/^ *:-+: *$/.test(De.align[q])?De.align[q]="center":/^ *:-+ *$/.test(De.align[q])?De.align[q]="left":De.align[q]=null;for(He=De.cells.length,q=0;q<He;q++)De.cells[q]=g(De.cells[q].replace(/^ *\| *| *\| *$/g,""),De.header.length);return De}}},Ge.lheading=function(ae){var Ee=this.rules.block.lheading.exec(ae);if(Ee)return{type:"heading",raw:Ee[0],depth:Ee[2].charAt(0)==="="?1:2,text:Ee[1]}},Ge.paragraph=function(ae){var Ee=this.rules.block.paragraph.exec(ae);if(Ee)return{type:"paragraph",raw:Ee[0],text:Ee[1].charAt(Ee[1].length-1)===`
|
|
`?Ee[1].slice(0,-1):Ee[1]}},Ge.text=function(ae){var Ee=this.rules.block.text.exec(ae);if(Ee)return{type:"text",raw:Ee[0],text:Ee[0]}},Ge.escape=function(ae){var Ee=this.rules.inline.escape.exec(ae);if(Ee)return{type:"escape",raw:Ee[0],text:b(Ee[1])}},Ge.tag=function(ae,Ee,De){var He=this.rules.inline.tag.exec(ae);if(He)return!Ee&&/^<a /i.test(He[0])?Ee=!0:Ee&&/^<\/a>/i.test(He[0])&&(Ee=!1),!De&&/^<(pre|code|kbd|script)(\s|>)/i.test(He[0])?De=!0:De&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(He[0])&&(De=!1),{type:this.options.sanitize?"text":"html",raw:He[0],inLink:Ee,inRawBlock:De,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(He[0]):b(He[0]):He[0]}},Ge.link=function(ae){var Ee=this.rules.inline.link.exec(ae);if(Ee){var De=Ee[2].trim();if(!this.options.pedantic&&/^</.test(De)){if(!/>$/.test(De))return;var He=z(De.slice(0,-1),"\\");if((De.length-He.length)%2===0)return}else{var q=B(Ee[2],"()");if(q>-1){var Ut=Ee[0].indexOf("!")===0?5:4,Pe=Ut+Ee[1].length+q;Ee[2]=Ee[2].substring(0,q),Ee[0]=Ee[0].substring(0,Pe).trim(),Ee[3]=""}}var Qt=Ee[2],an="";if(this.options.pedantic){var kt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Qt);kt&&(Qt=kt[1],an=kt[3])}else an=Ee[3]?Ee[3].slice(1,-1):"";return Qt=Qt.trim(),/^</.test(Qt)&&(this.options.pedantic&&!/>$/.test(De)?Qt=Qt.slice(1):Qt=Qt.slice(1,-1)),F(Ee,{href:Qt&&Qt.replace(this.rules.inline._escapes,"$1"),title:an&&an.replace(this.rules.inline._escapes,"$1")},Ee[0])}},Ge.reflink=function(ae,Ee){var De;if((De=this.rules.inline.reflink.exec(ae))||(De=this.rules.inline.nolink.exec(ae))){var He=(De[2]||De[1]).replace(/\s+/g," ");if(He=Ee[He.toLowerCase()],!He||!He.href){var q=De[0].charAt(0);return{type:"text",raw:q,text:q}}return F(De,He,De[0])}},Ge.emStrong=function(ae,Ee,De){De===void 0&&(De="");var He=this.rules.inline.emStrong.lDelim.exec(ae);if(He&&!(He[3]&&De.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\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 q=He[1]||He[2]||"";if(!q||q&&(De===""||this.rules.inline.punctuation.exec(De))){var Ut=He[0].length-1,Pe,Qt,an=Ut,kt=0,It=He[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(It.lastIndex=0,Ee=Ee.slice(-1*ae.length+Ut);(He=It.exec(Ee))!=null;)if(Pe=He[1]||He[2]||He[3]||He[4]||He[5]||He[6],!!Pe){if(Qt=Pe.length,He[3]||He[4]){an+=Qt;continue}else if((He[5]||He[6])&&Ut%3&&!((Ut+Qt)%3)){kt+=Qt;continue}if(an-=Qt,!(an>0))return Qt=Math.min(Qt,Qt+an+kt),Math.min(Ut,Qt)%2?{type:"em",raw:ae.slice(0,Ut+He.index+Qt+1),text:ae.slice(1,Ut+He.index+Qt)}:{type:"strong",raw:ae.slice(0,Ut+He.index+Qt+1),text:ae.slice(2,Ut+He.index+Qt-1)}}}}},Ge.codespan=function(ae){var Ee=this.rules.inline.code.exec(ae);if(Ee){var De=Ee[2].replace(/\n/g," "),He=/[^ ]/.test(De),q=/^ /.test(De)&&/ $/.test(De);return He&&q&&(De=De.substring(1,De.length-1)),De=b(De,!0),{type:"codespan",raw:Ee[0],text:De}}},Ge.br=function(ae){var Ee=this.rules.inline.br.exec(ae);if(Ee)return{type:"br",raw:Ee[0]}},Ge.del=function(ae){var Ee=this.rules.inline.del.exec(ae);if(Ee)return{type:"del",raw:Ee[0],text:Ee[2]}},Ge.autolink=function(ae,Ee){var De=this.rules.inline.autolink.exec(ae);if(De){var He,q;return De[2]==="@"?(He=b(this.options.mangle?Ee(De[1]):De[1]),q="mailto:"+He):(He=b(De[1]),q=He),{type:"link",raw:De[0],text:He,href:q,tokens:[{type:"text",raw:He,text:He}]}}},Ge.url=function(ae,Ee){var De;if(De=this.rules.inline.url.exec(ae)){var He,q;if(De[2]==="@")He=b(this.options.mangle?Ee(De[0]):De[0]),q="mailto:"+He;else{var Ut;do Ut=De[0],De[0]=this.rules.inline._backpedal.exec(De[0])[0];while(Ut!==De[0]);He=b(De[0]),De[1]==="www."?q="http://"+He:q=He}return{type:"link",raw:De[0],text:He,href:q,tokens:[{type:"text",raw:He,text:He}]}}},Ge.inlineText=function(ae,Ee,De){var He=this.rules.inline.text.exec(ae);if(He){var q;return Ee?q=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(He[0]):b(He[0]):He[0]:q=b(this.options.smartypants?De(He[0]):He[0]),{type:"text",raw:He[0],text:q}}},ze}(),Ne=I.noopTest,je=I.edit,et=I.merge,qe={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:Ne,table:Ne,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};qe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,qe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,qe.def=je(qe.def).replace("label",qe._label).replace("title",qe._title).getRegex(),qe.bullet=/(?:[*+-]|\d{1,9}[.)])/,qe.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,qe.item=je(qe.item,"gm").replace(/bull/g,qe.bullet).getRegex(),qe.listItemStart=je(/^( *)(bull) */).replace("bull",qe.bullet).getRegex(),qe.list=je(qe.list).replace(/bull/g,qe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qe.def.source+")").getRegex(),qe._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",qe._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,qe.html=je(qe.html,"i").replace("comment",qe._comment).replace("tag",qe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qe.paragraph=je(qe._paragraph).replace("hr",qe.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",qe._tag).getRegex(),qe.blockquote=je(qe.blockquote).replace("paragraph",qe.paragraph).getRegex(),qe.normal=et({},qe),qe.gfm=et({},qe.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*|$)"}),qe.gfm.nptable=je(qe.gfm.nptable).replace("hr",qe.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",qe._tag).getRegex(),qe.gfm.table=je(qe.gfm.table).replace("hr",qe.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",qe._tag).getRegex(),qe.pedantic=et({},qe.normal,{html:je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qe._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:Ne,paragraph:je(qe.normal._paragraph).replace("hr",qe.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",qe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var rt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ne,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:Ne,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};rt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",rt.punctuation=je(rt.punctuation).replace(/punctuation/g,rt._punctuation).getRegex(),rt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,rt.escapedEmSt=/\\\*|\\_/g,rt._comment=je(qe._comment).replace("(?:-->|$)","-->").getRegex(),rt.emStrong.lDelim=je(rt.emStrong.lDelim).replace(/punct/g,rt._punctuation).getRegex(),rt.emStrong.rDelimAst=je(rt.emStrong.rDelimAst,"g").replace(/punct/g,rt._punctuation).getRegex(),rt.emStrong.rDelimUnd=je(rt.emStrong.rDelimUnd,"g").replace(/punct/g,rt._punctuation).getRegex(),rt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,rt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,rt._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])?)+(?![-_])/,rt.autolink=je(rt.autolink).replace("scheme",rt._scheme).replace("email",rt._email).getRegex(),rt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,rt.tag=je(rt.tag).replace("comment",rt._comment).replace("attribute",rt._attribute).getRegex(),rt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,rt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,rt.link=je(rt.link).replace("label",rt._label).replace("href",rt._href).replace("title",rt._title).getRegex(),rt.reflink=je(rt.reflink).replace("label",rt._label).getRegex(),rt.reflinkSearch=je(rt.reflinkSearch,"g").replace("reflink",rt.reflink).replace("nolink",rt.nolink).getRegex(),rt.normal=et({},rt),rt.pedantic=et({},rt.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:je(/^!?\[(label)\]\((.*?)\)/).replace("label",rt._label).getRegex(),reflink:je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rt._label).getRegex()}),rt.gfm=et({},rt.normal,{escape:je(rt.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),rt.gfm.url=je(rt.gfm.url,"i").replace("email",rt.gfm._extended_email).getRegex(),rt.breaks=et({},rt.gfm,{br:je(rt.br).replace("{2,}","*").getRegex(),text:je(rt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var yt={block:qe,inline:rt},Dt=we,pt=ve.exports.defaults,vt=yt.block,Ot=yt.inline,Bt=I.repeatString;function me(ze){return ze.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function ce(ze){var Ge="",Je,ae,Ee=ze.length;for(Je=0;Je<Ee;Je++)ae=ze.charCodeAt(Je),Math.random()>.5&&(ae="x"+ae.toString(16)),Ge+="&#"+ae+";";return Ge}var j=function(){function ze(Je){this.tokens=[],this.tokens.links=Object.create(null),this.options=Je||pt,this.options.tokenizer=this.options.tokenizer||new Dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:vt.normal,inline:Ot.normal};this.options.pedantic?(ae.block=vt.pedantic,ae.inline=Ot.pedantic):this.options.gfm&&(ae.block=vt.gfm,this.options.breaks?ae.inline=Ot.breaks:ae.inline=Ot.gfm),this.tokenizer.rules=ae}ze.lex=function(ae,Ee){var De=new ze(Ee);return De.lex(ae)},ze.lexInline=function(ae,Ee){var De=new ze(Ee);return De.inlineTokens(ae)};var Ge=ze.prototype;return Ge.lex=function(ae){return ae=ae.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(ae,this.tokens,!0),this.inline(this.tokens),this.tokens},Ge.blockTokens=function(ae,Ee,De){Ee===void 0&&(Ee=[]),De===void 0&&(De=!0),this.options.pedantic&&(ae=ae.replace(/^ +$/gm,""));for(var He,q,Ut,Pe;ae;){if(He=this.tokenizer.space(ae)){ae=ae.substring(He.raw.length),He.type&&Ee.push(He);continue}if(He=this.tokenizer.code(ae)){ae=ae.substring(He.raw.length),Pe=Ee[Ee.length-1],Pe&&Pe.type==="paragraph"?(Pe.raw+=`
|
|
`+He.raw,Pe.text+=`
|
|
`+He.text):Ee.push(He);continue}if(He=this.tokenizer.fences(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(He=this.tokenizer.heading(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(He=this.tokenizer.nptable(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(He=this.tokenizer.hr(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(He=this.tokenizer.blockquote(ae)){ae=ae.substring(He.raw.length),He.tokens=this.blockTokens(He.text,[],De),Ee.push(He);continue}if(He=this.tokenizer.list(ae)){for(ae=ae.substring(He.raw.length),Ut=He.items.length,q=0;q<Ut;q++)He.items[q].tokens=this.blockTokens(He.items[q].text,[],!1);Ee.push(He);continue}if(He=this.tokenizer.html(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(De&&(He=this.tokenizer.def(ae))){ae=ae.substring(He.raw.length),this.tokens.links[He.tag]||(this.tokens.links[He.tag]={href:He.href,title:He.title});continue}if(He=this.tokenizer.table(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(He=this.tokenizer.lheading(ae)){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(De&&(He=this.tokenizer.paragraph(ae))){ae=ae.substring(He.raw.length),Ee.push(He);continue}if(He=this.tokenizer.text(ae)){ae=ae.substring(He.raw.length),Pe=Ee[Ee.length-1],Pe&&Pe.type==="text"?(Pe.raw+=`
|
|
`+He.raw,Pe.text+=`
|
|
`+He.text):Ee.push(He);continue}if(ae){var Qt="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(Qt);break}else throw new Error(Qt)}}return Ee},Ge.inline=function(ae){var Ee,De,He,q,Ut,Pe,Qt=ae.length;for(Ee=0;Ee<Qt;Ee++)switch(Pe=ae[Ee],Pe.type){case"paragraph":case"text":case"heading":{Pe.tokens=[],this.inlineTokens(Pe.text,Pe.tokens);break}case"table":{for(Pe.tokens={header:[],cells:[]},q=Pe.header.length,De=0;De<q;De++)Pe.tokens.header[De]=[],this.inlineTokens(Pe.header[De],Pe.tokens.header[De]);for(q=Pe.cells.length,De=0;De<q;De++)for(Ut=Pe.cells[De],Pe.tokens.cells[De]=[],He=0;He<Ut.length;He++)Pe.tokens.cells[De][He]=[],this.inlineTokens(Ut[He],Pe.tokens.cells[De][He]);break}case"blockquote":{this.inline(Pe.tokens);break}case"list":{for(q=Pe.items.length,De=0;De<q;De++)this.inline(Pe.items[De].tokens);break}}return ae},Ge.inlineTokens=function(ae,Ee,De,He){Ee===void 0&&(Ee=[]),De===void 0&&(De=!1),He===void 0&&(He=!1);var q,Ut,Pe=ae,Qt,an,kt;if(this.tokens.links){var It=Object.keys(this.tokens.links);if(It.length>0)for(;(Qt=this.tokenizer.rules.inline.reflinkSearch.exec(Pe))!=null;)It.includes(Qt[0].slice(Qt[0].lastIndexOf("[")+1,-1))&&(Pe=Pe.slice(0,Qt.index)+"["+Bt("a",Qt[0].length-2)+"]"+Pe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Qt=this.tokenizer.rules.inline.blockSkip.exec(Pe))!=null;)Pe=Pe.slice(0,Qt.index)+"["+Bt("a",Qt[0].length-2)+"]"+Pe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Qt=this.tokenizer.rules.inline.escapedEmSt.exec(Pe))!=null;)Pe=Pe.slice(0,Qt.index)+"++"+Pe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;ae;){if(an||(kt=""),an=!1,q=this.tokenizer.escape(ae)){ae=ae.substring(q.raw.length),Ee.push(q);continue}if(q=this.tokenizer.tag(ae,De,He)){ae=ae.substring(q.raw.length),De=q.inLink,He=q.inRawBlock;var Et=Ee[Ee.length-1];Et&&q.type==="text"&&Et.type==="text"?(Et.raw+=q.raw,Et.text+=q.text):Ee.push(q);continue}if(q=this.tokenizer.link(ae)){ae=ae.substring(q.raw.length),q.type==="link"&&(q.tokens=this.inlineTokens(q.text,[],!0,He)),Ee.push(q);continue}if(q=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(q.raw.length);var xt=Ee[Ee.length-1];q.type==="link"?(q.tokens=this.inlineTokens(q.text,[],!0,He),Ee.push(q)):xt&&q.type==="text"&&xt.type==="text"?(xt.raw+=q.raw,xt.text+=q.text):Ee.push(q);continue}if(q=this.tokenizer.emStrong(ae,Pe,kt)){ae=ae.substring(q.raw.length),q.tokens=this.inlineTokens(q.text,[],De,He),Ee.push(q);continue}if(q=this.tokenizer.codespan(ae)){ae=ae.substring(q.raw.length),Ee.push(q);continue}if(q=this.tokenizer.br(ae)){ae=ae.substring(q.raw.length),Ee.push(q);continue}if(q=this.tokenizer.del(ae)){ae=ae.substring(q.raw.length),q.tokens=this.inlineTokens(q.text,[],De,He),Ee.push(q);continue}if(q=this.tokenizer.autolink(ae,ce)){ae=ae.substring(q.raw.length),Ee.push(q);continue}if(!De&&(q=this.tokenizer.url(ae,ce))){ae=ae.substring(q.raw.length),Ee.push(q);continue}if(q=this.tokenizer.inlineText(ae,He,me)){ae=ae.substring(q.raw.length),q.raw.slice(-1)!=="_"&&(kt=q.raw.slice(-1)),an=!0,Ut=Ee[Ee.length-1],Ut&&Ut.type==="text"?(Ut.raw+=q.raw,Ut.text+=q.text):Ee.push(q);continue}if(ae){var rn="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(rn);break}else throw new Error(rn)}}return Ee},E(ze,null,[{key:"rules",get:function(){return{block:vt,inline:Ot}}}]),ze}(),pe=ve.exports.defaults,Re=I.cleanUrl,P=I.escape,ne=function(){function ze(Je){this.options=Je||pe}var Ge=ze.prototype;return Ge.code=function(ae,Ee,De){var He=(Ee||"").match(/\S*/)[0];if(this.options.highlight){var q=this.options.highlight(ae,He);q!=null&&q!==ae&&(De=!0,ae=q)}return ae=ae.replace(/\n$/,"")+`
|
|
`,He?'<pre><code class="'+this.options.langPrefix+P(He,!0)+'">'+(De?ae:P(ae,!0))+`</code></pre>
|
|
`:"<pre><code>"+(De?ae:P(ae,!0))+`</code></pre>
|
|
`},Ge.blockquote=function(ae){return`<blockquote>
|
|
`+ae+`</blockquote>
|
|
`},Ge.html=function(ae){return ae},Ge.heading=function(ae,Ee,De,He){return this.options.headerIds?"<h"+Ee+' id="'+this.options.headerPrefix+He.slug(De)+'">'+ae+"</h"+Ee+`>
|
|
`:"<h"+Ee+">"+ae+"</h"+Ee+`>
|
|
`},Ge.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},Ge.list=function(ae,Ee,De){var He=Ee?"ol":"ul",q=Ee&&De!==1?' start="'+De+'"':"";return"<"+He+q+`>
|
|
`+ae+"</"+He+`>
|
|
`},Ge.listitem=function(ae){return"<li>"+ae+`</li>
|
|
`},Ge.checkbox=function(ae){return"<input "+(ae?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ge.paragraph=function(ae){return"<p>"+ae+`</p>
|
|
`},Ge.table=function(ae,Ee){return Ee&&(Ee="<tbody>"+Ee+"</tbody>"),`<table>
|
|
<thead>
|
|
`+ae+`</thead>
|
|
`+Ee+`</table>
|
|
`},Ge.tablerow=function(ae){return`<tr>
|
|
`+ae+`</tr>
|
|
`},Ge.tablecell=function(ae,Ee){var De=Ee.header?"th":"td",He=Ee.align?"<"+De+' align="'+Ee.align+'">':"<"+De+">";return He+ae+"</"+De+`>
|
|
`},Ge.strong=function(ae){return"<strong>"+ae+"</strong>"},Ge.em=function(ae){return"<em>"+ae+"</em>"},Ge.codespan=function(ae){return"<code>"+ae+"</code>"},Ge.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ge.del=function(ae){return"<del>"+ae+"</del>"},Ge.link=function(ae,Ee,De){if(ae=Re(this.options.sanitize,this.options.baseUrl,ae),ae===null)return De;var He='<a href="'+P(ae)+'"';return Ee&&(He+=' title="'+Ee+'"'),He+=">"+De+"</a>",He},Ge.image=function(ae,Ee,De){if(ae=Re(this.options.sanitize,this.options.baseUrl,ae),ae===null)return De;var He='<img src="'+ae+'" alt="'+De+'"';return Ee&&(He+=' title="'+Ee+'"'),He+=this.options.xhtml?"/>":">",He},Ge.text=function(ae){return ae},ze}(),fe=function(){function ze(){}var Ge=ze.prototype;return Ge.strong=function(ae){return ae},Ge.em=function(ae){return ae},Ge.codespan=function(ae){return ae},Ge.del=function(ae){return ae},Ge.html=function(ae){return ae},Ge.text=function(ae){return ae},Ge.link=function(ae,Ee,De){return""+De},Ge.image=function(ae,Ee,De){return""+De},Ge.br=function(){return""},ze}(),ye=function(){function ze(){this.seen={}}var Ge=ze.prototype;return Ge.serialize=function(ae){return ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Ge.getNextSafeSlug=function(ae,Ee){var De=ae,He=0;if(this.seen.hasOwnProperty(De)){He=this.seen[ae];do He++,De=ae+"-"+He;while(this.seen.hasOwnProperty(De))}return Ee||(this.seen[ae]=He,this.seen[De]=0),De},Ge.slug=function(ae,Ee){Ee===void 0&&(Ee={});var De=this.serialize(ae);return this.getNextSafeSlug(De,Ee.dryrun)},ze}(),ke=ne,Oe=fe,Ze=ye,it=ve.exports.defaults,Ye=I.unescape,Ke=function(){function ze(Je){this.options=Je||it,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Oe,this.slugger=new Ze}ze.parse=function(ae,Ee){var De=new ze(Ee);return De.parse(ae)},ze.parseInline=function(ae,Ee){var De=new ze(Ee);return De.parseInline(ae)};var Ge=ze.prototype;return Ge.parse=function(ae,Ee){Ee===void 0&&(Ee=!0);var De="",He,q,Ut,Pe,Qt,an,kt,It,Et,xt,rn,_e,Ae,ct,We,at,bt,Ct,Xt=ae.length;for(He=0;He<Xt;He++)switch(xt=ae[He],xt.type){case"space":continue;case"hr":{De+=this.renderer.hr();continue}case"heading":{De+=this.renderer.heading(this.parseInline(xt.tokens),xt.depth,Ye(this.parseInline(xt.tokens,this.textRenderer)),this.slugger);continue}case"code":{De+=this.renderer.code(xt.text,xt.lang,xt.escaped);continue}case"table":{for(It="",kt="",Pe=xt.header.length,q=0;q<Pe;q++)kt+=this.renderer.tablecell(this.parseInline(xt.tokens.header[q]),{header:!0,align:xt.align[q]});for(It+=this.renderer.tablerow(kt),Et="",Pe=xt.cells.length,q=0;q<Pe;q++){for(an=xt.tokens.cells[q],kt="",Qt=an.length,Ut=0;Ut<Qt;Ut++)kt+=this.renderer.tablecell(this.parseInline(an[Ut]),{header:!1,align:xt.align[Ut]});Et+=this.renderer.tablerow(kt)}De+=this.renderer.table(It,Et);continue}case"blockquote":{Et=this.parse(xt.tokens),De+=this.renderer.blockquote(Et);continue}case"list":{for(rn=xt.ordered,_e=xt.start,Ae=xt.loose,Pe=xt.items.length,Et="",q=0;q<Pe;q++)We=xt.items[q],at=We.checked,bt=We.task,ct="",We.task&&(Ct=this.renderer.checkbox(at),Ae?We.tokens.length>0&&We.tokens[0].type==="text"?(We.tokens[0].text=Ct+" "+We.tokens[0].text,We.tokens[0].tokens&&We.tokens[0].tokens.length>0&&We.tokens[0].tokens[0].type==="text"&&(We.tokens[0].tokens[0].text=Ct+" "+We.tokens[0].tokens[0].text)):We.tokens.unshift({type:"text",text:Ct}):ct+=Ct),ct+=this.parse(We.tokens,Ae),Et+=this.renderer.listitem(ct,bt,at);De+=this.renderer.list(Et,rn,_e);continue}case"html":{De+=this.renderer.html(xt.text);continue}case"paragraph":{De+=this.renderer.paragraph(this.parseInline(xt.tokens));continue}case"text":{for(Et=xt.tokens?this.parseInline(xt.tokens):xt.text;He+1<Xt&&ae[He+1].type==="text";)xt=ae[++He],Et+=`
|
|
`+(xt.tokens?this.parseInline(xt.tokens):xt.text);De+=Ee?this.renderer.paragraph(Et):Et;continue}default:{var cn='Token with "'+xt.type+'" type was not found.';if(this.options.silent){console.error(cn);return}else throw new Error(cn)}}return De},Ge.parseInline=function(ae,Ee){Ee=Ee||this.renderer;var De="",He,q,Ut=ae.length;for(He=0;He<Ut;He++)switch(q=ae[He],q.type){case"escape":{De+=Ee.text(q.text);break}case"html":{De+=Ee.html(q.text);break}case"link":{De+=Ee.link(q.href,q.title,this.parseInline(q.tokens,Ee));break}case"image":{De+=Ee.image(q.href,q.title,q.text);break}case"strong":{De+=Ee.strong(this.parseInline(q.tokens,Ee));break}case"em":{De+=Ee.em(this.parseInline(q.tokens,Ee));break}case"codespan":{De+=Ee.codespan(q.text);break}case"br":{De+=Ee.br();break}case"del":{De+=Ee.del(this.parseInline(q.tokens,Ee));break}case"text":{De+=Ee.text(q.text);break}default:{var Pe='Token with "'+q.type+'" type was not found.';if(this.options.silent){console.error(Pe);return}else throw new Error(Pe)}}return De},ze}(),Tt=j,St=Ke,wt=we,$t=ne,Yt=fe,Nt=ye,Jt=I.merge,nn=I.checkSanitizeDeprecation,w=I.escape,R=ve.exports.getDefaults,ft=ve.exports.changeDefaults,ee=ve.exports.defaults;function Ie(ze,Ge,Je){if(typeof ze=="undefined"||ze===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ze!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ze)+", string expected");if(typeof Ge=="function"&&(Je=Ge,Ge=null),Ge=Jt({},Ie.defaults,Ge||{}),nn(Ge),Je){var ae=Ge.highlight,Ee;try{Ee=Tt.lex(ze,Ge)}catch(Ut){return Je(Ut)}var De=function(Pe){var Qt;if(!Pe)try{Ge.walkTokens&&Ie.walkTokens(Ee,Ge.walkTokens),Qt=St.parse(Ee,Ge)}catch(an){Pe=an}return Ge.highlight=ae,Pe?Je(Pe):Je(null,Qt)};if(!ae||ae.length<3||(delete Ge.highlight,!Ee.length))return De();var He=0;Ie.walkTokens(Ee,function(Ut){Ut.type==="code"&&(He++,setTimeout(function(){ae(Ut.text,Ut.lang,function(Pe,Qt){if(Pe)return De(Pe);Qt!=null&&Qt!==Ut.text&&(Ut.text=Qt,Ut.escaped=!0),He--,He===0&&De()})},0))}),He===0&&De();return}try{var q=Tt.lex(ze,Ge);return Ge.walkTokens&&Ie.walkTokens(q,Ge.walkTokens),St.parse(q,Ge)}catch(Ut){if(Ut.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,Ge.silent)return"<p>An error occurred:</p><pre>"+w(Ut.message+"",!0)+"</pre>";throw Ut}}Ie.options=Ie.setOptions=function(ze){return Jt(Ie.defaults,ze),ft(Ie.defaults),Ie},Ie.getDefaults=R,Ie.defaults=ee,Ie.use=function(ze){var Ge=Jt({},ze);if(ze.renderer&&function(){var ae=Ie.defaults.renderer||new $t,Ee=function(q){var Ut=ae[q];ae[q]=function(){for(var Pe=arguments.length,Qt=new Array(Pe),an=0;an<Pe;an++)Qt[an]=arguments[an];var kt=ze.renderer[q].apply(ae,Qt);return kt===!1&&(kt=Ut.apply(ae,Qt)),kt}};for(var De in ze.renderer)Ee(De);Ge.renderer=ae}(),ze.tokenizer&&function(){var ae=Ie.defaults.tokenizer||new wt,Ee=function(q){var Ut=ae[q];ae[q]=function(){for(var Pe=arguments.length,Qt=new Array(Pe),an=0;an<Pe;an++)Qt[an]=arguments[an];var kt=ze.tokenizer[q].apply(ae,Qt);return kt===!1&&(kt=Ut.apply(ae,Qt)),kt}};for(var De in ze.tokenizer)Ee(De);Ge.tokenizer=ae}(),ze.walkTokens){var Je=Ie.defaults.walkTokens;Ge.walkTokens=function(ae){ze.walkTokens(ae),Je&&Je(ae)}}Ie.setOptions(Ge)},Ie.walkTokens=function(ze,Ge){for(var Je=xe(ze),ae;!(ae=Je()).done;){var Ee=ae.value;switch(Ge(Ee),Ee.type){case"table":{for(var De=xe(Ee.tokens.header),He;!(He=De()).done;){var q=He.value;Ie.walkTokens(q,Ge)}for(var Ut=xe(Ee.tokens.cells),Pe;!(Pe=Ut()).done;)for(var Qt=Pe.value,an=xe(Qt),kt;!(kt=an()).done;){var It=kt.value;Ie.walkTokens(It,Ge)}break}case"list":{Ie.walkTokens(Ee.items,Ge);break}default:Ee.tokens&&Ie.walkTokens(Ee.tokens,Ge)}}},Ie.parseInline=function(ze,Ge){if(typeof ze=="undefined"||ze===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof ze!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(ze)+", string expected");Ge=Jt({},Ie.defaults,Ge||{}),nn(Ge);try{var Je=Tt.lexInline(ze,Ge);return Ge.walkTokens&&Ie.walkTokens(Je,Ge.walkTokens),St.parseInline(Je,Ge)}catch(ae){if(ae.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,Ge.silent)return"<p>An error occurred:</p><pre>"+w(ae.message+"",!0)+"</pre>";throw ae}},Ie.Parser=St,Ie.parser=St.parse,Ie.Renderer=$t,Ie.TextRenderer=Yt,Ie.Lexer=Tt,Ie.lexer=Tt.lex,Ie.Tokenizer=wt,Ie.Slugger=Nt,Ie.parse=Ie;var pn=Ie;return pn})},11690:function(Kt){const nt=/[&<>"']/,E=/[&<>"']/g,S=/[<>"']|&(?!#?\w+;)/,te=/[<>"']|&(?!#?\w+;)/g,xe={"&":"&","<":"<",">":">",'"':""","'":"'"},ve=J=>xe[J];function $(J,ge){if(ge){if(nt.test(J))return J.replace(E,ve)}else if(S.test(J))return J.replace(te,ve);return J}const p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function he(J){return J.replace(p,(ge,Ce)=>(Ce=Ce.toLowerCase(),Ce==="colon"?":":Ce.charAt(0)==="#"?Ce.charAt(1)==="x"?String.fromCharCode(parseInt(Ce.substring(2),16)):String.fromCharCode(+Ce.substring(1)):""))}const re=/(^|[^\[])\^/g;function o(J,ge){J=J.source||J,ge=ge||"";const Ce={replace:(Te,Fe)=>(Fe=Fe.source||Fe,Fe=Fe.replace(re,"$1"),J=J.replace(Te,Fe),Ce),getRegex:()=>new RegExp(J,ge)};return Ce}const ue=/[^\w:]/g,G=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(J,ge,Ce){if(J){let Te;try{Te=decodeURIComponent(he(Ce)).replace(ue,"").toLowerCase()}catch(Fe){return null}if(Te.indexOf("javascript:")===0||Te.indexOf("vbscript:")===0||Te.indexOf("data:")===0)return null}ge&&!G.test(Ce)&&(Ce=ie(ge,Ce));try{Ce=encodeURI(Ce).replace(/%25/g,"%")}catch(Te){return null}return Ce}const x={},A=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,Z=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ie(J,ge){x[" "+J]||(A.test(J)?x[" "+J]=J+"/":x[" "+J]=le(J,"/",!0)),J=x[" "+J];const Ce=J.indexOf(":")===-1;return ge.substring(0,2)==="//"?Ce?ge:J.replace(T,"$1")+ge:ge.charAt(0)==="/"?Ce?ge:J.replace(Z,"$1")+ge:J+ge}const M={exec:function(){}};function U(J){let ge=1,Ce,Te;for(;ge<arguments.length;ge++){Ce=arguments[ge];for(Te in Ce)Object.prototype.hasOwnProperty.call(Ce,Te)&&(J[Te]=Ce[Te])}return J}function W(J,ge){const Ce=J.replace(/\|/g,(Q,O,K)=>{let I=!1,X=O;for(;--X>=0&&K[X]==="\\";)I=!I;return I?"|":" |"}),Te=Ce.split(/ \|/);let Fe=0;if(Te.length>ge)Te.splice(ge);else for(;Te.length<ge;)Te.push("");for(;Fe<Te.length;Fe++)Te[Fe]=Te[Fe].trim().replace(/\\\|/g,"|");return Te}function le(J,ge,Ce){const Te=J.length;if(Te===0)return"";let Fe=0;for(;Fe<Te;){const Q=J.charAt(Te-Fe-1);if(Q===ge&&!Ce)Fe++;else if(Q!==ge&&Ce)Fe++;else break}return J.substr(0,Te-Fe)}function k(J,ge){if(J.indexOf(ge[1])===-1)return-1;const Ce=J.length;let Te=0,Fe=0;for(;Fe<Ce;Fe++)if(J[Fe]==="\\")Fe++;else if(J[Fe]===ge[0])Te++;else if(J[Fe]===ge[1]&&(Te--,Te<0))return Fe;return-1}function Y(J){J&&J.sanitize&&!J.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 se(J,ge){if(ge<1)return"";let Ce="";for(;ge>1;)ge&1&&(Ce+=J),ge>>=1,J+=J;return Ce+J}Kt.exports={escape:$,unescape:he,edit:o,cleanUrl:v,resolveUrl:ie,noopTest:M,merge:U,splitCells:W,rtrim:le,findClosingBracket:k,checkSanitizeDeprecation:Y,repeatString:se}},75918:function(Kt,nt,E){"use strict";E.d(nt,{Wi:function(){return p},Z0:function(){return he},aU:function(){return $},eZ:function(){return o},wY:function(){return re}});var S=E(4348),te=E(69323),xe=E(13268),ve=function(ue,G,v,x){function A(T){return T instanceof v?T:new v(function(Z){Z(T)})}return new(v||(v=Promise))(function(T,Z){function ie(W){try{U(x.next(W))}catch(le){Z(le)}}function M(W){try{U(x.throw(W))}catch(le){Z(le)}}function U(W){W.done?T(W.value):A(W.value).then(ie,M)}U((x=x.apply(ue,G||[])).next())})};class $ extends te.JT{constructor(G,v="",x="",A=!0,T){super(),this._onDidChange=this._register(new S.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=G,this._label=v,this._cssClass=x,this._enabled=A,this._actionCallback=T}get id(){return this._id}get label(){return this._label}set label(G){this._setLabel(G)}_setLabel(G){this._label!==G&&(this._label=G,this._onDidChange.fire({label:G}))}get tooltip(){return this._tooltip||""}set tooltip(G){this._setTooltip(G)}_setTooltip(G){this._tooltip!==G&&(this._tooltip=G,this._onDidChange.fire({tooltip:G}))}get class(){return this._cssClass}set class(G){this._setClass(G)}_setClass(G){this._cssClass!==G&&(this._cssClass=G,this._onDidChange.fire({class:G}))}get enabled(){return this._enabled}set enabled(G){this._setEnabled(G)}_setEnabled(G){this._enabled!==G&&(this._enabled=G,this._onDidChange.fire({enabled:G}))}get checked(){return this._checked}set checked(G){this._setChecked(G)}_setChecked(G){this._checked!==G&&(this._checked=G,this._onDidChange.fire({checked:G}))}run(G,v){return ve(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(G))})}}class p extends te.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new S.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new S.Q5),this.onDidRun=this._onDidRun.event}run(G,v){return ve(this,void 0,void 0,function*(){if(!G.enabled)return;this._onBeforeRun.fire({action:G});let x;try{yield this.runAction(G,v)}catch(A){x=A}this._onDidRun.fire({action:G,error:x})})}runAction(G,v){return ve(this,void 0,void 0,function*(){yield G.run(v)})}}class he extends ${constructor(G){super(he.ID,G,G?"separator text":"separator"),this.checked=!1,this.enabled=!1}}he.ID="vs.actions.separator";class re{constructor(G,v,x,A){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=G,this.label=v,this.class=A,this._actions=x}get actions(){return this._actions}dispose(){}run(){return ve(this,void 0,void 0,function*(){})}}class o extends ${constructor(){super(o.ID,xe.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Kt,nt,E){"use strict";E.d(nt,{ok:function(){return S}});function S(te,xe){if(!te)throw new Error(xe?`Assertion failed (${xe})`:"Assertion Failed")}},52615:function(Kt,nt,E){"use strict";E.d(nt,{CM:function(){return $},JL:function(){return p},dT:function(){return re},fK:function(){return ve},lA:function(){return he}});var S=E(4348);class te{constructor(){this._icons=new Map,this._onDidRegister=new S.Q5}add(ue){const G=this._icons.get(ue.id);G?ue.description?G.description=ue.description:console.error(`Duplicate registration of codicon ${ue.id}`):(this._icons.set(ue.id,ue),this._onDidRegister.fire(ue))}get(ue){return this._icons.get(ue)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const xe=new te,ve=xe;function $(o,ue){return new he(o,ue)}function p(o){return o?o.replace(/\$\((.*?)\)/g,(ue,G)=>` ${G} `).trim():""}class he{constructor(ue,G,v){this.id=ue,this.definition=G,this.description=v,xe.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var re;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const ue=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function G(A){if(A instanceof he)return["codicon","codicon-"+A.id];const T=ue.exec(A.id);if(!T)return G(he.error);let[,Z,ie]=T;const M=["codicon","codicon-"+Z];return ie&&M.push("codicon-modifier-"+ie.substr(1)),M}o.asClassNameArray=G;function v(A){return G(A).join(" ")}o.asClassName=v;function x(A){return"."+G(A).join(".")}o.asCSSSelector=x})(re||(re={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(he||(he={}))},79881:function(Kt,nt,E){"use strict";E.d(nt,{B8:function(){return G},Cp:function(){return ve},F0:function(){return re},L6:function(){return ue},VV:function(){return he},b1:function(){return o},dL:function(){return xe},ri:function(){return $}});class S{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(x){setTimeout(()=>{throw x.stack?new Error(x.message+`
|
|
|
|
`+x.stack):x},0)}}emit(x){this.listeners.forEach(A=>{A(x)})}onUnexpectedError(x){this.unexpectedErrorHandler(x),this.emit(x)}onUnexpectedExternalError(x){this.unexpectedErrorHandler(x)}}const te=new S;function xe(v){he(v)||te.onUnexpectedError(v)}function ve(v){he(v)||te.onUnexpectedExternalError(v)}function $(v){if(v instanceof Error){let{name:x,message:A}=v;const T=v.stacktrace||v.stack;return{$isError:!0,name:x,message:A,stack:T}}return v}const p="Canceled";function he(v){return v instanceof Error&&v.name===p&&v.message===p}function re(){const v=new Error(p);return v.name=v.message,v}function o(v){return v?new Error(`Illegal argument: ${v}`):new Error("Illegal argument")}function ue(v){return v?new Error(`Illegal state: ${v}`):new Error("Illegal state")}class G extends Error{constructor(x){super("NotSupported"),x&&(this.message=x)}}},4348:function(Kt,nt,E){"use strict";E.d(nt,{D0:function(){return G},E7:function(){return v},K3:function(){return ue},Q5:function(){return o},ZD:function(){return x},ju:function(){return $}});var S=E(79881),te=E(69323),xe=E(34502),ve=E(95830),$;(function(A){A.None=()=>te.JT.None;function T(K){return(I,X=null,z)=>{let g=!1,b;return b=K(B=>{if(!g)return b?b.dispose():g=!0,I.call(X,B)},null,z),g&&b.dispose(),b}}A.once=T;function Z(K,I){return k((X,z=null,g)=>K(b=>X.call(z,I(b)),null,g))}A.map=Z;function ie(K,I){return k((X,z=null,g)=>K(b=>{I(b),X.call(z,b)},null,g))}A.forEach=ie;function M(K,I){return k((X,z=null,g)=>K(b=>I(b)&&X.call(z,b),null,g))}A.filter=M;function U(K){return K}A.signal=U;function W(...K){return(I,X=null,z)=>(0,te.F8)(...K.map(g=>g(b=>I.call(X,b),null,z)))}A.any=W;function le(K,I,X){let z=X;return Z(K,g=>(z=I(z,g),z))}A.reduce=le;function k(K){let I;const X=new o({onFirstListenerAdd(){I=K(X.fire,X)},onLastListenerRemove(){I.dispose()}});return X.event}function Y(K,I,X=100,z=!1,g){let b,B,F,Se=0;const we=new o({leakWarningThreshold:g,onFirstListenerAdd(){b=K(Ne=>{Se++,B=I(B,Ne),z&&!F&&(we.fire(B),B=void 0),clearTimeout(F),F=setTimeout(()=>{const je=B;B=void 0,F=void 0,(!z||Se>1)&&we.fire(je),Se=0},X)})},onLastListenerRemove(){b.dispose()}});return we.event}A.debounce=Y;function se(K,I=(X,z)=>X===z){let X=!0,z;return M(K,g=>{const b=X||!I(g,z);return X=!1,z=g,b})}A.latch=se;function J(K,I){return[A.filter(K,I),A.filter(K,X=>!I(X))]}A.split=J;function ge(K,I=!1,X=[]){let z=X.slice(),g=K(F=>{z?z.push(F):B.fire(F)});const b=()=>{z&&z.forEach(F=>B.fire(F)),z=null},B=new o({onFirstListenerAdd(){g||(g=K(F=>B.fire(F)))},onFirstListenerDidAdd(){z&&(I?setTimeout(b):b())},onLastListenerRemove(){g&&g.dispose(),g=null}});return B.event}A.buffer=ge;class Ce{constructor(I){this.event=I}map(I){return new Ce(Z(this.event,I))}forEach(I){return new Ce(ie(this.event,I))}filter(I){return new Ce(M(this.event,I))}reduce(I,X){return new Ce(le(this.event,I,X))}latch(){return new Ce(se(this.event))}debounce(I,X=100,z=!1,g){return new Ce(Y(this.event,I,X,z,g))}on(I,X,z){return this.event(I,X,z)}once(I,X,z){return T(this.event)(I,X,z)}}function Te(K){return new Ce(K)}A.chain=Te;function Fe(K,I,X=z=>z){const z=(...F)=>B.fire(X(...F)),g=()=>K.on(I,z),b=()=>K.removeListener(I,z),B=new o({onFirstListenerAdd:g,onLastListenerRemove:b});return B.event}A.fromNodeEventEmitter=Fe;function Q(K,I,X=z=>z){const z=(...F)=>B.fire(X(...F)),g=()=>K.addEventListener(I,z),b=()=>K.removeEventListener(I,z),B=new o({onFirstListenerAdd:g,onLastListenerRemove:b});return B.event}A.fromDOMEventEmitter=Q;function O(K){return new Promise(I=>T(K)(I))}A.toPromise=O})($||($={}));class p{constructor(T){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${T}_${p._idPool++}`}start(T){this._stopWatch=new ve.G(!0),this._listenerCount=T}stop(){if(this._stopWatch){const T=this._stopWatch.elapsed();this._elapsedOverall+=T,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${T.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}p._idPool=0;let he=-1;class re{constructor(T,Z=Math.random().toString(18).slice(2,5)){this.customThreshold=T,this.name=Z,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(T){let Z=he;if(typeof this.customThreshold=="number"&&(Z=this.customThreshold),Z<=0||T<Z)return;this._stacks||(this._stacks=new Map);const ie=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),M=this._stacks.get(ie)||0;if(this._stacks.set(ie,M+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=Z*.5;let U,W=0;for(const[le,k]of this._stacks)(!U||W<k)&&(U=le,W=k);console.warn(`[${this.name}] potential listener LEAK detected, having ${T} listeners already. MOST frequent listener (${W}):`),console.warn(U)}return()=>{const U=this._stacks.get(ie)||0;this._stacks.set(ie,U-1)}}}class o{constructor(T){var Z;this._disposed=!1,this._options=T,this._leakageMon=he>0?new re(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((Z=this._options)===null||Z===void 0)&&Z._profName?new p(this._options._profName):void 0}get event(){return this._event||(this._event=(T,Z,ie)=>{var M;this._listeners||(this._listeners=new xe.S);const U=this._listeners.isEmpty();U&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const W=this._listeners.push(Z?[T,Z]:T);U&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,T,Z);const le=(M=this._leakageMon)===null||M===void 0?void 0:M.check(this._listeners.size),k=(0,te.OF)(()=>{le&&le(),this._disposed||(W(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return ie instanceof te.SL?ie.add(k):Array.isArray(ie)&&ie.push(k),k}),this._event}fire(T){var Z,ie;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new xe.S);for(let M of this._listeners)this._deliveryQueue.push([M,T]);for((Z=this._perfMon)===null||Z===void 0||Z.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[M,U]=this._deliveryQueue.shift();try{typeof M=="function"?M.call(void 0,U):M[0].call(M[1],U)}catch(W){(0,S.dL)(W)}}(ie=this._perfMon)===null||ie===void 0||ie.stop()}}dispose(){var T,Z,ie,M,U;this._disposed||(this._disposed=!0,(T=this._listeners)===null||T===void 0||T.clear(),(Z=this._deliveryQueue)===null||Z===void 0||Z.clear(),(M=(ie=this._options)===null||ie===void 0?void 0:ie.onLastListenerRemove)===null||M===void 0||M.call(ie),(U=this._leakageMon)===null||U===void 0||U.dispose())}}class ue extends o{constructor(T){super(T),this._isPaused=0,this._eventQueue=new xe.S,this._mergeFn=T==null?void 0:T.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const T=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(T))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(T){this._listeners&&(this._isPaused!==0?this._eventQueue.push(T):super.fire(T))}}class G extends ue{constructor(T){var Z;super(T),this._delay=(Z=T.delay)!==null&&Z!==void 0?Z:100}fire(T){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(T)}}class v{constructor(){this.buffers=[]}wrapEvent(T){return(Z,ie,M)=>T(U=>{const W=this.buffers[this.buffers.length-1];W?W.push(()=>Z.call(ie,U)):Z.call(ie,U)},void 0,M)}bufferEvents(T){const Z=[];this.buffers.push(Z);const ie=T();return this.buffers.pop(),Z.forEach(M=>M()),ie}}class x{constructor(){this.listening=!1,this.inputEvent=$.None,this.inputEventListener=te.JT.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(T){this.inputEvent=T,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=T(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Kt,nt,E){"use strict";E.d(nt,{I:function(){return S}});function S(te){const xe=this;let ve=!1,$;return function(){return ve||(ve=!0,$=te.apply(xe,arguments)),$}}},88226:function(Kt,nt,E){"use strict";E.d(nt,{$:function(){return S}});var S;(function(te){function xe(W){return W&&typeof W=="object"&&typeof W[Symbol.iterator]=="function"}te.is=xe;const ve=Object.freeze([]);function $(){return ve}te.empty=$;function*p(W){yield W}te.single=p;function he(W){return W||ve}te.from=he;function re(W){return!W||W[Symbol.iterator]().next().done===!0}te.isEmpty=re;function o(W){return W[Symbol.iterator]().next().value}te.first=o;function ue(W,le){for(const k of W)if(le(k))return!0;return!1}te.some=ue;function G(W,le){for(const k of W)if(le(k))return k}te.find=G;function*v(W,le){for(const k of W)le(k)&&(yield k)}te.filter=v;function*x(W,le){let k=0;for(const Y of W)yield le(Y,k++)}te.map=x;function*A(...W){for(const le of W)for(const k of le)yield k}te.concat=A;function*T(W){for(const le of W)for(const k of le)yield k}te.concatNested=T;function Z(W,le,k){let Y=k;for(const se of W)Y=le(Y,se);return Y}te.reduce=Z;function*ie(W,le,k=W.length){for(le<0&&(le+=W.length),k<0?k+=W.length:k>W.length&&(k=W.length);le<k;le++)yield W[le]}te.slice=ie;function M(W,le=Number.POSITIVE_INFINITY){const k=[];if(le===0)return[k,W];const Y=W[Symbol.iterator]();for(let se=0;se<le;se++){const J=Y.next();if(J.done)return[k,te.empty()];k.push(J.value)}return[k,{[Symbol.iterator](){return Y}}]}te.consume=M;function U(W,le,k=(Y,se)=>Y===se){const Y=W[Symbol.iterator](),se=le[Symbol.iterator]();for(;;){const J=Y.next(),ge=se.next();if(J.done!==ge.done)return!1;if(J.done)return!0;if(!k(J.value,ge.value))return!1}}te.equals=U})(S||(S={}))},69323:function(Kt,nt,E){"use strict";E.d(nt,{B9:function(){return x},F8:function(){return A},JT:function(){return ie},Jz:function(){return U},OF:function(){return T},SL:function(){return Z},Wf:function(){return v},XK:function(){return M},dk:function(){return ue}});var S=E(17845),te=E(88226);const xe=!1;let ve=null;function $(W){ve=W}if(xe){const W="__is_disposable_tracked__";$(new class{trackDisposable(le){const k=new Error("Potentially leaked disposable").stack;setTimeout(()=>{le[W]||console.log(k)},3e3)}setParent(le,k){if(le&&le!==ie.None)try{le[W]=!0}catch(Y){}}markAsDisposed(le){if(le&&le!==ie.None)try{le[W]=!0}catch(k){}}markAsSingleton(le){}})}function p(W){return ve==null||ve.trackDisposable(W),W}function he(W){ve==null||ve.markAsDisposed(W)}function re(W,le){ve==null||ve.setParent(W,le)}function o(W,le){if(ve)for(const k of W)ve.setParent(k,le)}function ue(W){return ve==null||ve.markAsSingleton(W),W}class G extends Error{constructor(le){super(`Encountered errors while disposing of store. Errors: [${le.join(", ")}]`),this.errors=le}}function v(W){return typeof W.dispose=="function"&&W.dispose.length===0}function x(W){if(te.$.is(W)){let le=[];for(const k of W)if(k)try{k.dispose()}catch(Y){le.push(Y)}if(le.length===1)throw le[0];if(le.length>1)throw new G(le);return Array.isArray(W)?[]:W}else if(W)return W.dispose(),W}function A(...W){const le=T(()=>x(W));return o(W,le),le}function T(W){const le=p({dispose:(0,S.I)(()=>{he(le),W()})});return le}class Z{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(he(this),this._isDisposed=!0,this.clear())}clear(){try{x(this._toDispose.values())}finally{this._toDispose.clear()}}add(le){if(!le)return le;if(le===this)throw new Error("Cannot register a disposable on itself!");return re(le,this),this._isDisposed?Z.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(le),le}}Z.DISABLE_DISPOSED_WARNING=!1;class ie{constructor(){this._store=new Z,p(this),re(this._store,this)}dispose(){he(this),this._store.dispose()}_register(le){if(le===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(le)}}ie.None=Object.freeze({dispose(){}});class M{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(le){var k;this._isDisposed||le===this._value||((k=this._value)===null||k===void 0||k.dispose(),le&&re(le,this),this._value=le)}clear(){this.value=void 0}dispose(){var le;this._isDisposed=!0,he(this),(le=this._value)===null||le===void 0||le.dispose(),this._value=void 0}clearAndLeak(){const le=this._value;return this._value=void 0,le&&re(le,null),le}}class U{constructor(le){this.object=le}dispose(){}}},34502:function(Kt,nt,E){"use strict";E.d(nt,{S:function(){return te}});class S{constructor(ve){this.element=ve,this.next=S.Undefined,this.prev=S.Undefined}}S.Undefined=new S(void 0);class te{constructor(){this._first=S.Undefined,this._last=S.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===S.Undefined}clear(){let ve=this._first;for(;ve!==S.Undefined;){const $=ve.next;ve.prev=S.Undefined,ve.next=S.Undefined,ve=$}this._first=S.Undefined,this._last=S.Undefined,this._size=0}unshift(ve){return this._insert(ve,!1)}push(ve){return this._insert(ve,!0)}_insert(ve,$){const p=new S(ve);if(this._first===S.Undefined)this._first=p,this._last=p;else if($){const re=this._last;this._last=p,p.prev=re,re.next=p}else{const re=this._first;this._first=p,p.next=re,re.prev=p}this._size+=1;let he=!1;return()=>{he||(he=!0,this._remove(p))}}shift(){if(this._first!==S.Undefined){const ve=this._first.element;return this._remove(this._first),ve}}pop(){if(this._last!==S.Undefined){const ve=this._last.element;return this._remove(this._last),ve}}_remove(ve){if(ve.prev!==S.Undefined&&ve.next!==S.Undefined){const $=ve.prev;$.next=ve.next,ve.next.prev=$}else ve.prev===S.Undefined&&ve.next===S.Undefined?(this._first=S.Undefined,this._last=S.Undefined):ve.next===S.Undefined?(this._last=this._last.prev,this._last.next=S.Undefined):ve.prev===S.Undefined&&(this._first=this._first.next,this._first.prev=S.Undefined);this._size-=1}*[Symbol.iterator](){let ve=this._first;for(;ve!==S.Undefined;)yield ve.element,ve=ve.next}}},23345:function(Kt,nt,E){"use strict";E.d(nt,{$L:function(){return Y},ED:function(){return U},IJ:function(){return le},OS:function(){return Ce},WE:function(){return J},dz:function(){return W},gn:function(){return se},li:function(){return T},r:function(){return Q},tY:function(){return k},xS:function(){return ge}});var S=E(97671),te;const xe="en";let ve=!1,$=!1,p=!1,he=!1,re=!1,o=!1,ue=!1,G,v=null,x=null,A;const T=typeof self=="object"?self:typeof E.g=="object"?E.g:{};let Z;typeof T.vscode!="undefined"&&typeof T.vscode.process!="undefined"?Z=T.vscode.process:typeof S!="undefined"&&(Z=S);const ie=typeof((te=Z==null?void 0:Z.versions)===null||te===void 0?void 0:te.electron)=="string"&&Z.type==="renderer";if(typeof navigator=="object"&&!ie)A=navigator.userAgent,ve=A.indexOf("Windows")>=0,$=A.indexOf("Macintosh")>=0,ue=(A.indexOf("Macintosh")>=0||A.indexOf("iPad")>=0||A.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,p=A.indexOf("Linux")>=0,o=!0,G=navigator.language,v=G;else if(typeof Z=="object"){ve=Z.platform==="win32",$=Z.platform==="darwin",p=Z.platform==="linux",he=p&&!!Z.env.SNAP&&!!Z.env.SNAP_REVISION,G=xe,v=xe;const O=Z.env.VSCODE_NLS_CONFIG;if(O)try{const K=JSON.parse(O),I=K.availableLanguages["*"];G=K.locale,v=I||xe,x=K._translationsConfigFile}catch(K){}re=!0}else console.error("Unable to resolve platform.");let M=0;$?M=1:ve?M=3:p&&(M=2);const U=ve,W=$,le=p,k=re,Y=o,se=ue,J=A,ge=function(){if(T.setImmediate)return T.setImmediate.bind(T);if(typeof T.postMessage=="function"&&!T.importScripts){let I=[];T.addEventListener("message",z=>{if(z.data&&z.data.vscodeSetImmediateId)for(let g=0,b=I.length;g<b;g++){const B=I[g];if(B.id===z.data.vscodeSetImmediateId){I.splice(g,1),B.callback();return}}});let X=0;return z=>{const g=++X;I.push({id:g,callback:z}),T.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(Z==null?void 0:Z.nextTick)=="function")return Z.nextTick.bind(Z);const K=Promise.resolve();return I=>K.then(I)}(),Ce=$||ue?2:ve?1:3;let Te=!0,Fe=!1;function Q(){if(!Fe){Fe=!0;const O=new Uint8Array(2);O[0]=1,O[1]=2,Te=new Uint16Array(O.buffer)[0]===513}return Te}},95830:function(Kt,nt,E){"use strict";E.d(nt,{G:function(){return xe}});var S=E(23345);const te=S.li.performance&&typeof S.li.performance.now=="function";class xe{constructor($){this._highResolution=te&&$,this._startTime=this._now(),this._stopTime=-1}static create($=!0){return new xe($)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?S.li.performance.now():Date.now()}}},82983:function(Kt,nt,E){"use strict";E.d(nt,{$i:function(){return Se},C8:function(){return qe},GF:function(){return G},HO:function(){return X},IO:function(){return v},K7:function(){return et},Kw:function(){return Dt},LC:function(){return T},Mh:function(){return ge},P1:function(){return Ce},PJ:function(){return pt},Qe:function(){return we},R1:function(){return ue},RP:function(){return B},S6:function(){return vt},TT:function(){return U},Ut:function(){return g},V8:function(){return Z},WU:function(){return xe},YK:function(){return Fe},YU:function(){return ve},ZG:function(){return Te},ZH:function(){return O},ab:function(){return Ne},c1:function(){return rt},df:function(){return Y},ec:function(){return $},fi:function(){return Ot},fy:function(){return p},j3:function(){return he},j_:function(){return le},m5:function(){return S},mK:function(){return k},mr:function(){return x},oH:function(){return ce},oL:function(){return re},ok:function(){return J},ow:function(){return ie},qq:function(){return se},qu:function(){return M},rL:function(){return Q},uS:function(){return yt},un:function(){return o},uq:function(){return A},vH:function(){return I},xe:function(){return je},zY:function(){return W}});function S(P){return!P||typeof P!="string"?!0:P.trim().length===0}const te=/{(\d+)}/g;function xe(P,...ne){return ne.length===0?P:P.replace(te,function(fe,ye){const ke=parseInt(ye,10);return isNaN(ke)||ke<0||ke>=ne.length?fe:ne[ke]})}function ve(P){return P.replace(/[<>&]/g,function(ne){switch(ne){case"<":return"<";case">":return">";case"&":return"&";default:return ne}})}function $(P){return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function p(P,ne=" "){const fe=he(P,ne);return re(fe,ne)}function he(P,ne){if(!P||!ne)return P;const fe=ne.length;if(fe===0||P.length===0)return P;let ye=0;for(;P.indexOf(ne,ye)===ye;)ye=ye+fe;return P.substring(ye)}function re(P,ne){if(!P||!ne)return P;const fe=ne.length,ye=P.length;if(fe===0||ye===0)return P;let ke=ye,Oe=-1;for(;Oe=P.lastIndexOf(ne,ke-1),!(Oe===-1||Oe+fe!==ke);){if(Oe===0)return"";ke=Oe}return P.substring(0,ke)}function o(P){return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ue(P){return P.replace(/\*/g,"")}function G(P,ne,fe={}){if(!P)throw new Error("Cannot create regex from empty string");ne||(P=$(P)),fe.wholeWord&&(/\B/.test(P.charAt(0))||(P="\\b"+P),/\B/.test(P.charAt(P.length-1))||(P=P+"\\b"));let ye="";return fe.global&&(ye+="g"),fe.matchCase||(ye+="i"),fe.multiline&&(ye+="m"),fe.unicode&&(ye+="u"),new RegExp(P,ye)}function v(P){return P.source==="^"||P.source==="^$"||P.source==="$"||P.source==="^\\s*$"?!1:!!(P.exec("")&&P.lastIndex===0)}function x(P){return(P.global?"g":"")+(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")}function A(P){return P.split(/\r\n|\r|\n/)}function T(P){for(let ne=0,fe=P.length;ne<fe;ne++){const ye=P.charCodeAt(ne);if(ye!==32&&ye!==9)return ne}return-1}function Z(P,ne=0,fe=P.length){for(let ye=ne;ye<fe;ye++){const ke=P.charCodeAt(ye);if(ke!==32&&ke!==9)return P.substring(ne,ye)}return P.substring(ne,fe)}function ie(P,ne=P.length-1){for(let fe=ne;fe>=0;fe--){const ye=P.charCodeAt(fe);if(ye!==32&&ye!==9)return fe}return-1}function M(P,ne){return P<ne?-1:P>ne?1:0}function U(P,ne,fe=0,ye=P.length,ke=0,Oe=ne.length){for(;fe<ye&&ke<Oe;fe++,ke++){let Ye=P.charCodeAt(fe),Ke=ne.charCodeAt(ke);if(Ye<Ke)return-1;if(Ye>Ke)return 1}const Ze=ye-fe,it=Oe-ke;return Ze<it?-1:Ze>it?1:0}function W(P,ne){return le(P,ne,0,P.length,0,ne.length)}function le(P,ne,fe=0,ye=P.length,ke=0,Oe=ne.length){for(;fe<ye&&ke<Oe;fe++,ke++){let Ye=P.charCodeAt(fe),Ke=ne.charCodeAt(ke);if(Ye===Ke)continue;if(Ye>=128||Ke>=128)return U(P.toLowerCase(),ne.toLowerCase(),fe,ye,ke,Oe);k(Ye)&&(Ye-=32),k(Ke)&&(Ke-=32);const Tt=Ye-Ke;if(Tt!==0)return Tt}const Ze=ye-fe,it=Oe-ke;return Ze<it?-1:Ze>it?1:0}function k(P){return P>=97&&P<=122}function Y(P){return P>=65&&P<=90}function se(P,ne){return P.length===ne.length&&le(P,ne)===0}function J(P,ne){const fe=ne.length;return ne.length>P.length?!1:le(P,ne,0,fe)===0}function ge(P,ne){let fe,ye=Math.min(P.length,ne.length);for(fe=0;fe<ye;fe++)if(P.charCodeAt(fe)!==ne.charCodeAt(fe))return fe;return ye}function Ce(P,ne){let fe,ye=Math.min(P.length,ne.length);const ke=P.length-1,Oe=ne.length-1;for(fe=0;fe<ye;fe++)if(P.charCodeAt(ke-fe)!==ne.charCodeAt(Oe-fe))return fe;return ye}function Te(P){return 55296<=P&&P<=56319}function Fe(P){return 56320<=P&&P<=57343}function Q(P,ne){return(P-55296<<10)+(ne-56320)+65536}function O(P,ne,fe){const ye=P.charCodeAt(fe);if(Te(ye)&&fe+1<ne){const ke=P.charCodeAt(fe+1);if(Fe(ke))return Q(ye,ke)}return ye}function K(P,ne){const fe=P.charCodeAt(ne-1);if(Fe(fe)&&ne>1){const ye=P.charCodeAt(ne-2);if(Te(ye))return Q(ye,fe)}return fe}function I(P,ne){const fe=Bt.getInstance(),ye=ne,ke=P.length,Oe=O(P,ke,ne);ne+=Oe>=65536?2:1;let Ze=fe.getGraphemeBreakType(Oe);for(;ne<ke;){const it=O(P,ke,ne),Ye=fe.getGraphemeBreakType(it);if(Ot(Ze,Ye))break;ne+=it>=65536?2:1,Ze=Ye}return ne-ye}function X(P,ne){const fe=Bt.getInstance(),ye=ne,ke=K(P,ne);ne-=ke>=65536?2:1;let Oe=fe.getGraphemeBreakType(ke);for(;ne>0;){const Ze=K(P,ne),it=fe.getGraphemeBreakType(Ze);if(Ot(it,Oe))break;ne-=Ze>=65536?2:1,Oe=it}return ye-ne}const z=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function g(P){return z.test(P)}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 B(P){return b.test(P)}const F=/^[\t\n\r\x20-\x7E]*$/;function Se(P){return F.test(P)}const we=/[\u2028\u2029]/;function Ne(P){return we.test(P)}function je(P){for(let ne=0,fe=P.length;ne<fe;ne++)if(et(P.charCodeAt(ne)))return!0;return!1}function et(P){return P=+P,P>=11904&&P<=55215||P>=63744&&P<=64255||P>=65281&&P<=65374}function qe(P){return P>=127462&&P<=127487||P===8986||P===8987||P===9200||P===9203||P>=9728&&P<=10175||P===11088||P===11093||P>=127744&&P<=128591||P>=128640&&P<=128764||P>=128992&&P<=129003||P>=129280&&P<=129535||P>=129648&&P<=129750}const rt="\uFEFF";function yt(P){return!!(P&&P.length>0&&P.charCodeAt(0)===65279)}function Dt(P,ne=!1){return P?(ne&&(P=P.replace(/\\./g,"")),P.toLowerCase()!==P):!1}function pt(P){return P=P%(2*26),P<26?String.fromCharCode(97+P):String.fromCharCode(65+P-26)}function vt(P){return Bt.getInstance().getGraphemeBreakType(P)}function Ot(P,ne){return P===0?ne!==5&&ne!==7:P===2&&ne===3?!1:P===4||P===2||P===3||ne===4||ne===2||ne===3?!0:!(P===8&&(ne===8||ne===9||ne===11||ne===12)||(P===11||P===9)&&(ne===9||ne===10)||(P===12||P===10)&&ne===10||ne===5||ne===13||ne===7||P===1||P===13&&ne===14||P===6&&ne===6)}class Bt{constructor(){this._data=me()}static getInstance(){return Bt._INSTANCE||(Bt._INSTANCE=new Bt),Bt._INSTANCE}getGraphemeBreakType(ne){if(ne<32)return ne===10?3:ne===13?2:4;if(ne<127)return 0;const fe=this._data,ye=fe.length/3;let ke=1;for(;ke<=ye;)if(ne<fe[3*ke])ke=2*ke;else if(ne>fe[3*ke+1])ke=2*ke+1;else return fe[3*ke+2];return 0}}Bt._INSTANCE=null;function me(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function ce(P,ne){if(P===0)return 0;const fe=j(P,ne);if(fe!==void 0)return fe;const ye=K(ne,P);return P-=pe(ye),P}function j(P,ne){let fe=K(ne,P);for(P-=pe(fe);Re(fe)||fe===65039||fe===8419;){if(P===0)return;fe=K(ne,P),P-=pe(fe)}if(qe(fe)){if(P>=0){const ye=K(ne,P);ye===8205&&(P-=pe(ye))}return P}}function pe(P){return P>=65536?2:1}function Re(P){return 127995<=P&&P<=127999}},72999:function(Kt,nt,E){"use strict";E.d(nt,{$E:function(){return T},$K:function(){return he},D8:function(){return v},HD:function(){return te},IU:function(){return Z},Jp:function(){return re},Kn:function(){return xe},cW:function(){return ue},f6:function(){return ie},hj:function(){return ve},jn:function(){return $},kJ:function(){return S},mf:function(){return G},o8:function(){return p},p_:function(){return o},vE:function(){return M}});function S(U){return Array.isArray(U)}function te(U){return typeof U=="string"}function xe(U){return typeof U=="object"&&U!==null&&!Array.isArray(U)&&!(U instanceof RegExp)&&!(U instanceof Date)}function ve(U){return typeof U=="number"&&!isNaN(U)}function $(U){return U===!0||U===!1}function p(U){return typeof U=="undefined"}function he(U){return!re(U)}function re(U){return p(U)||U===null}function o(U,W){if(!U)throw new Error(W?`Unexpected type, expected '${W}'`:"Unexpected type")}function ue(U){if(re(U))throw new Error("Assertion Failed: argument is undefined or null");return U}function G(U){return typeof U=="function"}function v(U,W){const le=Math.min(U.length,W.length);for(let k=0;k<le;k++)x(U[k],W[k])}function x(U,W){if(te(W)){if(typeof U!==W)throw new Error(`argument does not match constraint: typeof ${W}`)}else if(G(W)){try{if(U instanceof W)return}catch(le){}if(!re(U)&&U.constructor===W||W.length===1&&W.call(void 0,U)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function A(U){let W=[],le=Object.getPrototypeOf(U);for(;Object.prototype!==le;)W=W.concat(Object.getOwnPropertyNames(le)),le=Object.getPrototypeOf(le);return W}function T(U){const W=[];for(const le of A(U))typeof U[le]=="function"&&W.push(le);return W}function Z(U,W){const le=Y=>function(){const se=Array.prototype.slice.call(arguments,0);return W(Y,se)};let k={};for(const Y of U)k[Y]=le(Y);return k}function ie(U){return U===null?void 0:U}function M(U,W="Unreachable"){throw new Error(W)}},13268:function(Kt,nt,E){"use strict";E.d(nt,{N:function(){return te}});function S(xe,ve){let $;return ve.length===0?$=xe:$=xe.replace(/\{(\d+)\}/g,function(p,he){const re=he[0];return typeof ve[re]!="undefined"?ve[re]:p}),$}function te(xe,ve,...$){return S(ve,$)}},96236:function(Kt,nt,E){"use strict";E.d(nt,{BH:function(){return Z},NZ:function(){return ie},U8:function(){return M},co:function(){return T},eH:function(){return A},vr:function(){return x}});var S=E(75918),te=E(52615),xe=E(4348),ve=E(88226),$=E(69323),p=E(34502),he=E(35884),re=E(90689),o=E(16925),ue=E(49055),G=function(U,W,le,k){var Y=arguments.length,se=Y<3?W:k===null?k=Object.getOwnPropertyDescriptor(W,le):k,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(U,W,le,k);else for(var ge=U.length-1;ge>=0;ge--)(J=U[ge])&&(se=(Y<3?J(se):Y>3?J(W,le,se):J(W,le))||se);return Y>3&&se&&Object.defineProperty(W,le,se),se},v=function(U,W){return function(le,k){W(le,k,U)}};function x(U){return U.command!==void 0}class A{constructor(W){this.id=A._idPool++,this._debugName=W}}A._idPool=0,A.CommandPalette=new A("CommandPalette"),A.EditorContext=new A("EditorContext"),A.SimpleEditorContext=new A("SimpleEditorContext"),A.EditorContextCopy=new A("EditorContextCopy"),A.EditorContextPeek=new A("EditorContextPeek"),A.MenubarEditMenu=new A("MenubarEditMenu"),A.MenubarCopy=new A("MenubarCopy"),A.MenubarGoMenu=new A("MenubarGoMenu"),A.MenubarSelectionMenu=new A("MenubarSelectionMenu"),A.InlineCompletionsActions=new A("InlineCompletionsActions");const T=(0,o.yh)("menuService"),Z=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new xe.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:U=>U===A.CommandPalette}}addCommand(U){return this.addCommands(ve.$.single(U))}addCommands(U){for(const W of U)this._commands.set(W.id,W);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,$.OF)(()=>{let W=!1;for(const le of U)W=this._commands.delete(le.id)||W;W&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(U){return this._commands.get(U)}getCommands(){const U=new Map;return this._commands.forEach((W,le)=>U.set(le,W)),U}appendMenuItem(U,W){return this.appendMenuItems(ve.$.single({id:U,item:W}))}appendMenuItems(U){const W=new Set,le=new p.S;for(const{id:k,item:Y}of U){let se=this._menuItems.get(k);se||(se=new p.S,this._menuItems.set(k,se)),le.push(se.push(Y)),W.add(k)}return this._onDidChangeMenu.fire(W),(0,$.OF)(()=>{if(le.size>0){for(let k of le)k();this._onDidChangeMenu.fire(W),le.clear()}})}getMenuItems(U){let W;return this._menuItems.has(U)?W=[...this._menuItems.get(U)]:W=[],U===A.CommandPalette&&this._appendImplicitItems(W),W}_appendImplicitItems(U){const W=new Set;for(const le of U)x(le)&&(W.add(le.command.id),le.alt&&W.add(le.alt.id));this._commands.forEach((le,k)=>{W.has(k)||U.push({command:le})})}};class ie extends S.wY{constructor(W,le,k,Y){super(`submenuitem.${W.submenu.id}`,typeof W.title=="string"?W.title:W.title.value,[],"submenu"),this.item=W,this._menuService=le,this._contextKeyService=k,this._options=Y}get actions(){const W=[],le=this._menuService.createMenu(this.item.submenu,this._contextKeyService),k=le.getActions(this._options);le.dispose();for(const[,Y]of k)Y.length>0&&(W.push(...Y),W.push(new S.Z0));return W.length&&W.pop(),W}}let M=class Xl{constructor(W,le,k,Y,se){var J,ge;if(this._commandService=se,this.id=W.id,this.label=k!=null&&k.renderShortTitle&&W.shortTitle?typeof W.shortTitle=="string"?W.shortTitle:W.shortTitle.value:typeof W.title=="string"?W.title:W.title.value,this.tooltip=(ge=typeof W.tooltip=="string"?W.tooltip:(J=W.tooltip)===null||J===void 0?void 0:J.value)!==null&&ge!==void 0?ge:"",this.enabled=!W.precondition||Y.contextMatchesRules(W.precondition),this.checked=void 0,W.toggled){const Ce=W.toggled.condition?W.toggled:{condition:W.toggled};this.checked=Y.contextMatchesRules(Ce.condition),this.checked&&Ce.tooltip&&(this.tooltip=typeof Ce.tooltip=="string"?Ce.tooltip:Ce.tooltip.value),Ce.title&&(this.label=typeof Ce.title=="string"?Ce.title:Ce.title.value)}this.item=W,this.alt=le?new Xl(le,void 0,k,Y,se):void 0,this._options=k,ue.kS.isThemeIcon(W.icon)&&(this.class=te.dT.asClassName(W.icon))}dispose(){}run(...W){var le,k;let Y=[];return!((le=this._options)===null||le===void 0)&&le.arg&&(Y=[...Y,this._options.arg]),!((k=this._options)===null||k===void 0)&&k.shouldForwardArgs&&(Y=[...Y,...W]),this._commandService.executeCommand(this.id,...Y)}};M=G([v(3,re.i6),v(4,he.H)],M)},35884:function(Kt,nt,E){"use strict";E.d(nt,{H:function(){return he},P:function(){return re}});var S=E(4348),te=E(88226),xe=E(69323),ve=E(34502),$=E(72999),p=E(16925);const he=(0,p.yh)("commandService"),re=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new S.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,ue){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!ue)throw new Error("invalid command");return this.registerCommand({id:o,handler:ue})}if(o.description){const T=[];for(let ie of o.description.args)T.push(ie.constraint);const Z=o.handler;o.handler=function(ie,...M){return(0,$.D8)(M,T),Z(ie,...M)}}const{id:G}=o;let v=this._commands.get(G);v||(v=new ve.S,this._commands.set(G,v));let x=v.unshift(o),A=(0,xe.OF)(()=>{x();const T=this._commands.get(G);T!=null&&T.isEmpty()&&this._commands.delete(G)});return this._onDidRegisterCommand.fire(G),A}registerCommandAlias(o,ue){return re.registerCommand(o,(G,...v)=>G.get(he).executeCommand(ue,...v))}getCommand(o){const ue=this._commands.get(o);if(!(!ue||ue.isEmpty()))return te.$.first(ue)}getCommands(){const o=new Map;for(const ue of this._commands.keys()){const G=this.getCommand(ue);G&&o.set(ue,G)}return o}};re.registerCommand("noop",()=>{})},90689:function(Kt,nt,E){"use strict";E.d(nt,{Ao:function(){return he},Eq:function(){return Q},Fb:function(){return re},K8:function(){return I},i6:function(){return Fe},uy:function(){return Te}});var S=E(23345),te=E(82983),xe=E(16925);let ve=S.WE||"";const $=new Map;$.set("false",!1),$.set("true",!0),$.set("isMac",S.dz),$.set("isLinux",S.IJ),$.set("isWindows",S.ED),$.set("isWeb",S.$L),$.set("isMacNative",S.dz&&!S.$L),$.set("isEdge",ve.indexOf("Edg/")>=0),$.set("isFirefox",ve.indexOf("Firefox")>=0),$.set("isChrome",ve.indexOf("Chrome")>=0),$.set("isSafari",ve.indexOf("Safari")>=0);const p=Object.prototype.hasOwnProperty;class he{static has(g){return v.create(g)}static equals(g,b){return x.create(g,b)}static regex(g,b){return Y.create(g,b)}static not(g){return ie.create(g)}static and(...g){return ge.create(g,null)}static or(...g){return Ce.create(g,null,!0)}static deserialize(g,b=!1){if(g)return this._deserializeOrExpression(g,b)}static _deserializeOrExpression(g,b){let B=g.split("||");return Ce.create(B.map(F=>this._deserializeAndExpression(F,b)),null,!0)}static _deserializeAndExpression(g,b){let B=g.split("&&");return ge.create(B.map(F=>this._deserializeOne(F,b)),null)}static _deserializeOne(g,b){if(g=g.trim(),g.indexOf("!=")>=0){let B=g.split("!=");return Z.create(B[0].trim(),this._deserializeValue(B[1],b))}if(g.indexOf("==")>=0){let B=g.split("==");return x.create(B[0].trim(),this._deserializeValue(B[1],b))}if(g.indexOf("=~")>=0){let B=g.split("=~");return Y.create(B[0].trim(),this._deserializeRegexValue(B[1],b))}if(g.indexOf(" in ")>=0){let B=g.split(" in ");return A.create(B[0].trim(),B[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const B=g.split(">=");return W.create(B[0].trim(),B[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const B=g.split(">");return U.create(B[0].trim(),B[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const B=g.split("<=");return k.create(B[0].trim(),B[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const B=g.split("<");return le.create(B[0].trim(),B[1].trim())}return/^\!\s*/.test(g)?ie.create(g.substr(1).trim()):v.create(g)}static _deserializeValue(g,b){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let B=/^'([^']*)'$/.exec(g);return B?B[1].trim():g}static _deserializeRegexValue(g,b){if((0,te.m5)(g)){if(b)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let B=g.indexOf("/"),F=g.lastIndexOf("/");if(B===F||B<0){if(b)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let Se=g.slice(B+1,F),we=g[F+1]==="i"?"i":"";try{return new RegExp(Se,we)}catch(Ne){if(b)throw new Error(`bad regexp-value '${g}', parse error: ${Ne}`);return console.warn(`bad regexp-value '${g}', parse error: ${Ne}`),null}}}function re(z,g){const b=z?z.substituteConstants():void 0,B=g?g.substituteConstants():void 0;return!b&&!B?!0:!b||!B?!1:b.equals(B)}function o(z,g){return z.cmp(g)}class ue{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return G.INSTANCE}}ue.INSTANCE=new ue;class G{constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return ue.INSTANCE}}G.INSTANCE=new G;class v{constructor(g,b){this.key=g,this.negated=b,this.type=2}static create(g,b=null){const B=$.get(g);return typeof B=="boolean"?B?G.INSTANCE:ue.INSTANCE:new v(g,b)}cmp(g){return g.type!==this.type?this.type-g.type:O(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=$.get(this.key);return typeof g=="boolean"?g?G.INSTANCE:ue.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=ie.create(this.key,this)),this.negated}}class x{constructor(g,b,B){this.key=g,this.value=b,this.negated=B,this.type=4}static create(g,b,B=null){if(typeof b=="boolean")return b?v.create(g,B):ie.create(g,B);const F=$.get(g);return typeof F=="boolean"?b===(F?"true":"false")?G.INSTANCE:ue.INSTANCE:new x(g,b,B)}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=$.get(this.key);if(typeof g=="boolean"){const b=g?"true":"false";return this.value===b?G.INSTANCE:ue.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Z.create(this.key,this.value,this)),this.negated}}class A{constructor(g,b){this.key=g,this.valueKey=b,this.type=10,this.negated=null}static create(g,b){return new A(g,b)}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const b=g.getValue(this.valueKey),B=g.getValue(this.key);return Array.isArray(b)?b.indexOf(B)>=0:typeof B=="string"&&typeof b=="object"&&b!==null?p.call(b,B):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=T.create(this)),this.negated}}class T{constructor(g){this._actual=g,this.type=11}static create(g){return new T(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Z{constructor(g,b,B){this.key=g,this.value=b,this.negated=B,this.type=5}static create(g,b,B=null){if(typeof b=="boolean")return b?ie.create(g,B):v.create(g,B);const F=$.get(g);return typeof F=="boolean"?b===(F?"true":"false")?ue.INSTANCE:G.INSTANCE:new Z(g,b,B)}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=$.get(this.key);if(typeof g=="boolean"){const b=g?"true":"false";return this.value===b?ue.INSTANCE:G.INSTANCE}return this}evaluate(g){return g.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class ie{constructor(g,b){this.key=g,this.negated=b,this.type=3}static create(g,b=null){const B=$.get(g);return typeof B=="boolean"?B?ue.INSTANCE:G.INSTANCE:new ie(g,b)}cmp(g){return g.type!==this.type?this.type-g.type:O(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=$.get(this.key);return typeof g=="boolean"?g?ue.INSTANCE:G.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this)),this.negated}}function M(z,g){if(typeof z=="string"){const b=parseFloat(z);isNaN(b)||(z=b)}return typeof z=="string"||typeof z=="number"?g(z):ue.INSTANCE}class U{constructor(g,b,B){this.key=g,this.value=b,this.negated=B,this.type=12}static create(g,b,B=null){return M(b,F=>new U(g,F,B))}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class W{constructor(g,b,B){this.key=g,this.value=b,this.negated=B,this.type=13}static create(g,b,B=null){return M(b,F=>new W(g,F,B))}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=le.create(this.key,this.value,this)),this.negated}}class le{constructor(g,b,B){this.key=g,this.value=b,this.negated=B,this.type=14}static create(g,b,B=null){return M(b,F=>new le(g,F,B))}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class k{constructor(g,b,B){this.key=g,this.value=b,this.negated=B,this.type=15}static create(g,b,B=null){return M(b,F=>new k(g,F,B))}cmp(g){return g.type!==this.type?this.type-g.type:K(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class Y{constructor(g,b){this.key=g,this.regexp=b,this.type=7,this.negated=null}static create(g,b){return new Y(g,b)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const b=this.regexp?this.regexp.source:"",B=g.regexp?g.regexp.source:"";return b<B?-1:b>B?1:0}equals(g){if(g.type===this.type){const b=this.regexp?this.regexp.source:"",B=g.regexp?g.regexp.source:"";return this.key===g.key&&b===B}return!1}substituteConstants(){return this}evaluate(g){let b=g.getValue(this.key);return this.regexp?this.regexp.test(b):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=se.create(this)),this.negated}}class se{constructor(g){this._actual=g,this.type=8}static create(g){return new se(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function J(z){let g=null;for(let b=0,B=z.length;b<B;b++){const F=z[b].substituteConstants();if(z[b]!==F&&g===null){g=[];for(let Se=0;Se<b;Se++)g[Se]=z[Se]}g!==null&&(g[b]=F)}return g===null?z:g}class ge{constructor(g,b){this.expr=g,this.negated=b,this.type=6}static create(g,b){return ge._normalizeArr(g,b)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let b=0,B=this.expr.length;b<B;b++){const F=o(this.expr[b],g.expr[b]);if(F!==0)return F}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let b=0,B=this.expr.length;b<B;b++)if(!this.expr[b].equals(g.expr[b]))return!1;return!0}return!1}substituteConstants(){const g=J(this.expr);return g===this.expr?this:ge.create(g,this.negated)}evaluate(g){for(let b=0,B=this.expr.length;b<B;b++)if(!this.expr[b].evaluate(g))return!1;return!0}static _normalizeArr(g,b){const B=[];let F=!1;for(const Se of g)if(Se){if(Se.type===1){F=!0;continue}if(Se.type===0)return ue.INSTANCE;if(Se.type===6){B.push(...Se.expr);continue}B.push(Se)}if(B.length===0&&F)return G.INSTANCE;if(B.length!==0){if(B.length===1)return B[0];B.sort(o);for(let Se=1;Se<B.length;Se++)B[Se-1].equals(B[Se])&&(B.splice(Se,1),Se--);if(B.length===1)return B[0];for(;B.length>1;){const Se=B[B.length-1];if(Se.type!==9)break;B.pop();const we=B.pop(),Ne=B.length===0,je=Ce.create(Se.expr.map(et=>ge.create([et,we],null)),null,Ne);je&&(B.push(je),B.sort(o))}return B.length===1?B[0]:new ge(B,b)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let b of this.expr)g.push(...b.keys());return g}negate(){if(!this.negated){const g=[];for(let b of this.expr)g.push(b.negate());this.negated=Ce.create(g,this,!0)}return this.negated}}class Ce{constructor(g,b){this.expr=g,this.negated=b,this.type=9}static create(g,b,B){return Ce._normalizeArr(g,b,B)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let b=0,B=this.expr.length;b<B;b++){const F=o(this.expr[b],g.expr[b]);if(F!==0)return F}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let b=0,B=this.expr.length;b<B;b++)if(!this.expr[b].equals(g.expr[b]))return!1;return!0}return!1}substituteConstants(){const g=J(this.expr);return g===this.expr?this:Ce.create(g,this.negated,!1)}evaluate(g){for(let b=0,B=this.expr.length;b<B;b++)if(this.expr[b].evaluate(g))return!0;return!1}static _normalizeArr(g,b,B){let F=[],Se=!1;if(g){for(let we=0,Ne=g.length;we<Ne;we++){const je=g[we];if(je){if(je.type===0){Se=!0;continue}if(je.type===1)return G.INSTANCE;if(je.type===9){F=F.concat(je.expr);continue}F.push(je)}}if(F.length===0&&Se)return ue.INSTANCE;F.sort(o)}if(F.length!==0){if(F.length===1)return F[0];for(let we=1;we<F.length;we++)F[we-1].equals(F[we])&&(F.splice(we,1),we--);if(F.length===1)return F[0];if(B){for(let we=0;we<F.length;we++)for(let Ne=we+1;Ne<F.length;Ne++)I(F[we],F[Ne])&&(F.splice(Ne,1),Ne--);if(F.length===1)return F[0]}return new Ce(F,b)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let b of this.expr)g.push(...b.keys());return g}negate(){if(!this.negated){let g=[];for(let b of this.expr)g.push(b.negate());for(;g.length>1;){const b=g.shift(),B=g.shift(),F=[];for(const we of X(b))for(const Ne of X(B))F.push(ge.create([we,Ne],null));const Se=g.length===0;g.unshift(Ce.create(F,null,Se))}this.negated=g[0]}return this.negated}}class Te extends v{constructor(g,b,B){super(g,null),this._defaultValue=b,typeof B=="object"?Te._info.push(Object.assign(Object.assign({},B),{key:g})):B!==!0&&Te._info.push({key:g,description:B,type:b!=null?typeof b:void 0})}static all(){return Te._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return x.create(this.key,g)}}Te._info=[];const Fe=(0,xe.yh)("contextKeyService"),Q="setContext";function O(z,g){return z<g?-1:z>g?1:0}function K(z,g,b,B){return z<b?-1:z>b?1:g<B?-1:g>B?1:0}function I(z,g){if(g.type===6&&z.type!==9&&z.type!==6){for(const F of g.expr)if(z.equals(F))return!0}const b=z.negate(),B=X(b).concat(X(g));B.sort(o);for(let F=0;F<B.length;F++){const we=B[F].negate();for(let Ne=F+1;Ne<B.length;Ne++){const je=B[Ne];if(we.equals(je))return!0}}return!1}function X(z){return z.type===9?z.expr:[z]}},16925:function(Kt,nt,E){"use strict";E.d(nt,{I8:function(){return S},TG:function(){return te},jt:function(){return $},yh:function(){return ve}});var S;(function(p){p.serviceIds=new Map,p.DI_TARGET="$di$target",p.DI_DEPENDENCIES="$di$dependencies";function he(re){return re[p.DI_DEPENDENCIES]||[]}p.getServiceDependencies=he})(S||(S={}));const te=ve("instantiationService");function xe(p,he,re,o){he[S.DI_TARGET]===he?he[S.DI_DEPENDENCIES].push({id:p,index:re,optional:o}):(he[S.DI_DEPENDENCIES]=[{id:p,index:re,optional:o}],he[S.DI_TARGET]=he)}function ve(p){if(S.serviceIds.has(p))return S.serviceIds.get(p);const he=function(re,o,ue){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");xe(he,re,ue,!1)};return he.toString=()=>p,S.serviceIds.set(p,he),he}function $(p){return function(he,re,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");xe(p,he,o,!0)}}},44650:function(Kt,nt,E){"use strict";E.d(nt,{B:function(){return ve}});var S=E(76068),te=E(72999);class xe{constructor(){this.data=new Map}add(p,he){S.ok(te.HD(p)),S.ok(te.Kn(he)),S.ok(!this.data.has(p),"There is already an extension with this id"),this.data.set(p,he)}as(p){return this.data.get(p)||null}}const ve=new xe},66213:function(Kt,nt,E){"use strict";E.d(nt,{e:function(){return S}});var S;(function(te){te.DARK="dark",te.LIGHT="light",te.HIGH_CONTRAST="hc"})(S||(S={}))},49055:function(Kt,nt,E){"use strict";E.d(nt,{EN:function(){return o},IP:function(){return v},Ic:function(){return T},XE:function(){return he},bB:function(){return Z},kS:function(){return ue},m6:function(){return G}});var S=E(52615),te=E(4348),xe=E(69323),ve=E(16925),$=E(44650),p=E(66213);const he=(0,ve.yh)("themeService");var re;(function(ie){function M(U){return U&&typeof U=="object"&&typeof U.id=="string"}ie.isThemeColor=M})(re||(re={}));function o(ie){return{id:ie}}var ue;(function(ie){function M(se){return se&&typeof se=="object"&&typeof se.id=="string"&&(typeof se.color=="undefined"||re.isThemeColor(se.color))}ie.isThemeIcon=M;const U=new RegExp(`^\\$\\((${S.dT.iconNameExpression}(?:${S.dT.iconModifierExpression})?)\\)$`);function W(se){const J=U.exec(se);if(!J)return;let[,ge]=J;return{id:ge}}ie.fromString=W;function le(se,J){let ge=se.id;const Ce=ge.lastIndexOf("~");return Ce!==-1&&(ge=ge.substring(0,Ce)),J&&(ge=`${ge}~${J}`),{id:ge}}ie.modify=le;function k(se,J){var ge,Ce;return se.id===J.id&&((ge=se.color)===null||ge===void 0?void 0:ge.id)===((Ce=J.color)===null||Ce===void 0?void 0:Ce.id)}ie.isEqual=k;function Y(se,J){return{id:se.id,color:J?o(J):void 0}}ie.asThemeIcon=Y,ie.asClassNameArray=S.dT.asClassNameArray,ie.asClassName=S.dT.asClassName,ie.asCSSSelector=S.dT.asCSSSelector})(ue||(ue={}));function G(ie){switch(ie){case p.e.DARK:return"vs-dark";case p.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const v={ThemingContribution:"base.contributions.theming"};class x{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new te.Q5}onColorThemeChange(M){return this.themingParticipants.push(M),this.onThemingParticipantAddedEmitter.fire(M),(0,xe.OF)(()=>{const U=this.themingParticipants.indexOf(M);this.themingParticipants.splice(U,1)})}getThemingParticipants(){return this.themingParticipants}}let A=new x;$.B.add(v.ThemingContribution,A);function T(ie){return A.onColorThemeChange(ie)}class Z extends xe.JT{constructor(M){super(),this.themeService=M,this.theme=M.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(U=>this.onThemeChange(U)))}onThemeChange(M){this.theme=M,this.updateStyles()}updateStyles(){}}},5630:function(Kt,nt,E){"use strict";var S=E(72308),te=E(77321),xe=E(49618),ve=E(52487),$=E(74416),p=E(92310),he=E.n(p),re=E(18929),o=E(59301),ue=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],G=(0,o.forwardRef)(function(v,x){var A,T=v.prefixCls,Z=T===void 0?"rc-checkbox":T,ie=v.className,M=v.style,U=v.checked,W=v.disabled,le=v.defaultChecked,k=le===void 0?!1:le,Y=v.type,se=Y===void 0?"checkbox":Y,J=v.title,ge=v.onChange,Ce=(0,$.Z)(v,ue),Te=(0,o.useRef)(null),Fe=(0,re.Z)(k,{value:U}),Q=(0,ve.Z)(Fe,2),O=Q[0],K=Q[1];(0,o.useImperativeHandle)(x,function(){return{focus:function(){var g;(g=Te.current)===null||g===void 0||g.focus()},blur:function(){var g;(g=Te.current)===null||g===void 0||g.blur()},input:Te.current}});var I=he()(Z,ie,(A={},(0,xe.Z)(A,"".concat(Z,"-checked"),O),(0,xe.Z)(A,"".concat(Z,"-disabled"),W),A)),X=function(g){W||("checked"in v||K(g.target.checked),ge==null||ge({target:(0,te.Z)((0,te.Z)({},v),{},{type:se,checked:g.target.checked}),stopPropagation:function(){g.stopPropagation()},preventDefault:function(){g.preventDefault()},nativeEvent:g.nativeEvent}))};return o.createElement("span",{className:I,title:J,style:M},o.createElement("input",(0,S.Z)({},Ce,{className:"".concat(Z,"-input"),ref:Te,onChange:X,disabled:W,checked:!!O,type:se})),o.createElement("span",{className:"".concat(Z,"-inner")}))});nt.Z=G},31561:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return se}});var S=E(72308),te=E(49618),xe=E(52487),ve=E(74416),$=E(35593),p=E(92310),he=E.n(p),re=E(8654),o=E(59301),ue=E(10228),G=E(16089),v=ue.Z.ESC,x=ue.Z.TAB;function A(J){var ge=J.visible,Ce=J.triggerRef,Te=J.onVisibleChange,Fe=J.autoFocus,Q=J.overlayRef,O=o.useRef(!1),K=function(){if(ge){var g,b;(g=Ce.current)===null||g===void 0||(b=g.focus)===null||b===void 0||b.call(g),Te==null||Te(!1)}},I=function(){var g;return(g=Q.current)!==null&&g!==void 0&&g.focus?(Q.current.focus(),O.current=!0,!0):!1},X=function(g){switch(g.keyCode){case v:K();break;case x:{var b=!1;O.current||(b=I()),b?g.preventDefault():K();break}}};o.useEffect(function(){return ge?(window.addEventListener("keydown",X),Fe&&(0,G.Z)(I,3),function(){window.removeEventListener("keydown",X),O.current=!1}):function(){O.current=!1}},[ge])}var T=(0,o.forwardRef)(function(J,ge){var Ce=J.overlay,Te=J.arrow,Fe=J.prefixCls,Q=(0,o.useMemo)(function(){var K;return typeof Ce=="function"?K=Ce():K=Ce,K},[Ce]),O=(0,re.sQ)(ge,Q==null?void 0:Q.ref);return o.createElement(o.Fragment,null,Te&&o.createElement("div",{className:"".concat(Fe,"-arrow")}),o.cloneElement(Q,{ref:(0,re.Yr)(Q)?O:void 0}))}),Z=T,ie={adjustX:1,adjustY:1},M=[0,0],U={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-4],targetOffset:M},top:{points:["bc","tc"],overflow:ie,offset:[0,-4],targetOffset:M},topRight:{points:["br","tr"],overflow:ie,offset:[0,-4],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,4],targetOffset:M},bottom:{points:["tc","bc"],overflow:ie,offset:[0,4],targetOffset:M},bottomRight:{points:["tr","br"],overflow:ie,offset:[0,4],targetOffset:M}},W=U,le=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function k(J,ge){var Ce,Te=J.arrow,Fe=Te===void 0?!1:Te,Q=J.prefixCls,O=Q===void 0?"rc-dropdown":Q,K=J.transitionName,I=J.animation,X=J.align,z=J.placement,g=z===void 0?"bottomLeft":z,b=J.placements,B=b===void 0?W:b,F=J.getPopupContainer,Se=J.showAction,we=J.hideAction,Ne=J.overlayClassName,je=J.overlayStyle,et=J.visible,qe=J.trigger,rt=qe===void 0?["hover"]:qe,yt=J.autoFocus,Dt=J.overlay,pt=J.children,vt=J.onVisibleChange,Ot=(0,ve.Z)(J,le),Bt=o.useState(),me=(0,xe.Z)(Bt,2),ce=me[0],j=me[1],pe="visible"in J?et:ce,Re=o.useRef(null),P=o.useRef(null),ne=o.useRef(null);o.useImperativeHandle(ge,function(){return Re.current});var fe=function(St){j(St),vt==null||vt(St)};A({visible:pe,triggerRef:ne,onVisibleChange:fe,autoFocus:yt,overlayRef:P});var ye=function(St){var wt=J.onOverlayClick;j(!1),wt&&wt(St)},ke=function(){return o.createElement(Z,{ref:P,overlay:Dt,prefixCls:O,arrow:Fe})},Oe=function(){return typeof Dt=="function"?ke:ke()},Ze=function(){var St=J.minOverlayWidthMatchTrigger,wt=J.alignPoint;return"minOverlayWidthMatchTrigger"in J?St:!wt},it=function(){var St=J.openClassName;return St!==void 0?St:"".concat(O,"-open")},Ye=o.cloneElement(pt,{className:he()((Ce=pt.props)===null||Ce===void 0?void 0:Ce.className,pe&&it()),ref:(0,re.Yr)(pt)?(0,re.sQ)(ne,pt.ref):void 0}),Ke=we;return!Ke&&rt.indexOf("contextMenu")!==-1&&(Ke=["click"]),o.createElement($.Z,(0,S.Z)({builtinPlacements:B},Ot,{prefixCls:O,ref:Re,popupClassName:he()(Ne,(0,te.Z)({},"".concat(O,"-show-arrow"),Fe)),popupStyle:je,action:rt,showAction:Se,hideAction:Ke,popupPlacement:g,popupAlign:X,popupTransitionName:K,popupAnimation:I,popupVisible:pe,stretch:Ze()?"minWidth":"",popup:Oe(),onPopupVisibleChange:fe,onPopupClick:ye,getPopupContainer:F}),Ye)}var Y=o.forwardRef(k),se=Y},93681:function(Kt,nt,E){"use strict";E.r(nt),E.d(nt,{BaseInput:function(){return ue},default:function(){return U}});var S=E(72308),te=E(77321),xe=E(49618),ve=E(62853),$=E(92310),p=E.n($),he=E(59301),re=E(5643),o=function(le){var k,Y,se=le.inputElement,J=le.prefixCls,ge=le.prefix,Ce=le.suffix,Te=le.addonBefore,Fe=le.addonAfter,Q=le.className,O=le.style,K=le.disabled,I=le.readOnly,X=le.focused,z=le.triggerFocus,g=le.allowClear,b=le.value,B=le.handleReset,F=le.hidden,Se=le.classes,we=le.classNames,Ne=le.dataAttrs,je=le.styles,et=le.components,qe=(et==null?void 0:et.affixWrapper)||"span",rt=(et==null?void 0:et.groupWrapper)||"span",yt=(et==null?void 0:et.wrapper)||"span",Dt=(et==null?void 0:et.groupAddon)||"span",pt=(0,he.useRef)(null),vt=function(ke){var Oe;(Oe=pt.current)!==null&&Oe!==void 0&&Oe.contains(ke.target)&&(z==null||z())},Ot=function(){var ke;if(!g)return null;var Oe=!K&&!I&&b,Ze="".concat(J,"-clear-icon"),it=(0,ve.Z)(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"\u2716";return he.createElement("span",{onClick:B,onMouseDown:function(Ke){return Ke.preventDefault()},className:p()(Ze,(ke={},(0,xe.Z)(ke,"".concat(Ze,"-hidden"),!Oe),(0,xe.Z)(ke,"".concat(Ze,"-has-suffix"),!!Ce),ke)),role:"button",tabIndex:-1},it)},Bt=(0,he.cloneElement)(se,{value:b,hidden:F,className:p()((k=se.props)===null||k===void 0?void 0:k.className,!(0,re.X3)(le)&&!(0,re.He)(le)&&Q)||null,style:(0,te.Z)((0,te.Z)({},(Y=se.props)===null||Y===void 0?void 0:Y.style),!(0,re.X3)(le)&&!(0,re.He)(le)?O:{})});if((0,re.X3)(le)){var me,ce="".concat(J,"-affix-wrapper"),j=p()(ce,(me={},(0,xe.Z)(me,"".concat(ce,"-disabled"),K),(0,xe.Z)(me,"".concat(ce,"-focused"),X),(0,xe.Z)(me,"".concat(ce,"-readonly"),I),(0,xe.Z)(me,"".concat(ce,"-input-with-clear-btn"),Ce&&g&&b),me),!(0,re.He)(le)&&Q,Se==null?void 0:Se.affixWrapper,we==null?void 0:we.affixWrapper),pe=(Ce||g)&&he.createElement("span",{className:p()("".concat(J,"-suffix"),we==null?void 0:we.suffix),style:je==null?void 0:je.suffix},Ot(),Ce);Bt=he.createElement(qe,(0,S.Z)({className:j,style:(0,te.Z)((0,te.Z)({},(0,re.He)(le)?void 0:O),je==null?void 0:je.affixWrapper),hidden:!(0,re.He)(le)&&F,onClick:vt},Ne==null?void 0:Ne.affixWrapper,{ref:pt}),ge&&he.createElement("span",{className:p()("".concat(J,"-prefix"),we==null?void 0:we.prefix),style:je==null?void 0:je.prefix},ge),(0,he.cloneElement)(se,{value:b,hidden:null}),pe)}if((0,re.He)(le)){var Re="".concat(J,"-group"),P="".concat(Re,"-addon"),ne=p()("".concat(J,"-wrapper"),Re,Se==null?void 0:Se.wrapper),fe=p()("".concat(J,"-group-wrapper"),Q,Se==null?void 0:Se.group);return he.createElement(rt,{className:fe,style:O,hidden:F},he.createElement(yt,{className:ne},Te&&he.createElement(Dt,{className:P},Te),(0,he.cloneElement)(Bt,{hidden:null}),Fe&&he.createElement(Dt,{className:P},Fe)))}return Bt},ue=o,G=E(80702),v=E(52487),x=E(74416),A=E(18929),T=E(2738),Z=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ie=(0,he.forwardRef)(function(W,le){var k=W.autoComplete,Y=W.onChange,se=W.onFocus,J=W.onBlur,ge=W.onPressEnter,Ce=W.onKeyDown,Te=W.prefixCls,Fe=Te===void 0?"rc-input":Te,Q=W.disabled,O=W.htmlSize,K=W.className,I=W.maxLength,X=W.suffix,z=W.showCount,g=W.type,b=g===void 0?"text":g,B=W.classes,F=W.classNames,Se=W.styles,we=(0,x.Z)(W,Z),Ne=(0,A.Z)(W.defaultValue,{value:W.value}),je=(0,v.Z)(Ne,2),et=je[0],qe=je[1],rt=(0,he.useState)(!1),yt=(0,v.Z)(rt,2),Dt=yt[0],pt=yt[1],vt=(0,he.useRef)(null),Ot=function(fe){vt.current&&(0,re.nH)(vt.current,fe)};(0,he.useImperativeHandle)(le,function(){return{focus:Ot,blur:function(){var fe;(fe=vt.current)===null||fe===void 0||fe.blur()},setSelectionRange:function(fe,ye,ke){var Oe;(Oe=vt.current)===null||Oe===void 0||Oe.setSelectionRange(fe,ye,ke)},select:function(){var fe;(fe=vt.current)===null||fe===void 0||fe.select()},input:vt.current}}),(0,he.useEffect)(function(){pt(function(ne){return ne&&Q?!1:ne})},[Q]);var Bt=function(fe){W.value===void 0&&qe(fe.target.value),vt.current&&(0,re.rJ)(vt.current,fe,Y)},me=function(fe){ge&&fe.key==="Enter"&&ge(fe),Ce==null||Ce(fe)},ce=function(fe){pt(!0),se==null||se(fe)},j=function(fe){pt(!1),J==null||J(fe)},pe=function(fe){qe(""),Ot(),vt.current&&(0,re.rJ)(vt.current,fe,Y)},Re=function(){var fe=(0,T.Z)(W,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return he.createElement("input",(0,S.Z)({autoComplete:k},fe,{onChange:Bt,onFocus:ce,onBlur:j,onKeyDown:me,className:p()(Fe,(0,xe.Z)({},"".concat(Fe,"-disabled"),Q),F==null?void 0:F.input),style:Se==null?void 0:Se.input,ref:vt,size:O,type:b}))},P=function(){var fe=Number(I)>0;if(X||z){var ye=(0,re.D7)(et),ke=(0,G.Z)(ye).length,Oe=(0,ve.Z)(z)==="object"?z.formatter({value:ye,count:ke,maxLength:I}):"".concat(ke).concat(fe?" / ".concat(I):"");return he.createElement(he.Fragment,null,!!z&&he.createElement("span",{className:p()("".concat(Fe,"-show-count-suffix"),(0,xe.Z)({},"".concat(Fe,"-show-count-has-suffix"),!!X),F==null?void 0:F.count),style:(0,te.Z)({},Se==null?void 0:Se.count)},Oe),X)}return null};return he.createElement(ue,(0,S.Z)({},we,{prefixCls:Fe,className:K,inputElement:Re(),handleReset:pe,value:(0,re.D7)(et),focused:Dt,triggerFocus:Ot,suffix:P(),disabled:Q,classes:B,classNames:F,styles:Se}))}),M=ie,U=M},5643:function(Kt,nt,E){"use strict";E.d(nt,{D7:function(){return $},He:function(){return S},X3:function(){return te},nH:function(){return ve},rJ:function(){return xe}});function S(p){return!!(p.addonBefore||p.addonAfter)}function te(p){return!!(p.prefix||p.suffix||p.allowClear)}function xe(p,he,re,o){if(re){var ue=he;if(he.type==="click"){var G=p.cloneNode(!0);ue=Object.create(he,{target:{value:G},currentTarget:{value:G}}),G.value="",re(ue);return}if(o!==void 0){ue=Object.create(he,{target:{value:p},currentTarget:{value:p}}),p.value=o,re(ue);return}re(ue)}}function ve(p,he){if(p){p.focus(he);var re=he||{},o=re.cursor;if(o){var ue=p.value.length;switch(o){case"start":p.setSelectionRange(0,0);break;case"end":p.setSelectionRange(ue,ue);break;default:p.setSelectionRange(0,ue)}}}}function $(p){return typeof p=="undefined"||p===null?"":String(p)}},15285:function(Kt,nt,E){"use strict";E.d(nt,{iz:function(){return on},ck:function(){return Je},BW:function(){return xn},sN:function(){return Je},Wd:function(){return bt},ZP:function(){return fn},Xl:function(){return Ce}});var S=E(72308),te=E(49618),xe=E(77321),ve=E(80702),$=E(52487),p=E(74416),he=E(92310),re=E.n(he),o=E(11780),ue=E(18929),G=E(13697),v=E(48736),x=E(59301),A=E(4676),T=x.createContext(null);function Z(tt,Qe){return tt===void 0?null:"".concat(tt,"-").concat(Qe)}function ie(tt){var Qe=x.useContext(T);return Z(Qe,tt)}var M=E(80547),U=["children","locked"],W=x.createContext(null);function le(tt,Qe){var gt=(0,xe.Z)({},tt);return Object.keys(Qe).forEach(function(Lt){var ot=Qe[Lt];ot!==void 0&&(gt[Lt]=ot)}),gt}function k(tt){var Qe=tt.children,gt=tt.locked,Lt=(0,p.Z)(tt,U),ot=x.useContext(W),zt=(0,M.Z)(function(){return le(ot,Lt)},[ot,Lt],function(At,jt){return!gt&&(At[0]!==jt[0]||!(0,G.Z)(At[1],jt[1],!0))});return x.createElement(W.Provider,{value:zt},Qe)}var Y=[],se=x.createContext(null);function J(){return x.useContext(se)}var ge=x.createContext(Y);function Ce(tt){var Qe=x.useContext(ge);return x.useMemo(function(){return tt!==void 0?[].concat((0,ve.Z)(Qe),[tt]):Qe},[Qe,tt])}var Te=x.createContext(null),Fe=x.createContext({}),Q=Fe,O=E(29194);function K(tt){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,O.Z)(tt)){var gt=tt.nodeName.toLowerCase(),Lt=["input","select","textarea","button"].includes(gt)||tt.isContentEditable||gt==="a"&&!!tt.getAttribute("href"),ot=tt.getAttribute("tabindex"),zt=Number(ot),At=null;return ot&&!Number.isNaN(zt)?At=zt:Lt&&At===null&&(At=0),Lt&&tt.disabled&&(At=null),At!==null&&(At>=0||Qe&&At<0)}return!1}function I(tt){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=(0,ve.Z)(tt.querySelectorAll("*")).filter(function(Lt){return K(Lt,Qe)});return K(tt,Qe)&>.unshift(tt),gt}var X=null;function z(){X=document.activeElement}function g(){X=null}function b(){if(X)try{X.focus()}catch(tt){}}function B(tt,Qe){if(Qe.keyCode===9){var gt=I(tt),Lt=gt[Qe.shiftKey?0:gt.length-1],ot=Lt===document.activeElement||tt===document.activeElement;if(ot){var zt=gt[Qe.shiftKey?gt.length-1:0];zt.focus(),Qe.preventDefault()}}}var F=E(10228),Se=E(16089),we=F.Z.LEFT,Ne=F.Z.RIGHT,je=F.Z.UP,et=F.Z.DOWN,qe=F.Z.ENTER,rt=F.Z.ESC,yt=F.Z.HOME,Dt=F.Z.END,pt=[je,et,we,Ne];function vt(tt,Qe,gt,Lt){var ot,zt,At,jt,en="prev",qt="next",wn="children",Cn="parent";if(tt==="inline"&&Lt===qe)return{inlineTrigger:!0};var Kn=(ot={},(0,te.Z)(ot,je,en),(0,te.Z)(ot,et,qt),ot),bn=(zt={},(0,te.Z)(zt,we,gt?qt:en),(0,te.Z)(zt,Ne,gt?en:qt),(0,te.Z)(zt,et,wn),(0,te.Z)(zt,qe,wn),zt),vn=(At={},(0,te.Z)(At,je,en),(0,te.Z)(At,et,qt),(0,te.Z)(At,qe,wn),(0,te.Z)(At,rt,Cn),(0,te.Z)(At,we,gt?wn:Cn),(0,te.Z)(At,Ne,gt?Cn:wn),At),nr={inline:Kn,horizontal:bn,vertical:vn,inlineSub:Kn,horizontalSub:vn,verticalSub:vn},ir=(jt=nr["".concat(tt).concat(Qe?"":"Sub")])===null||jt===void 0?void 0:jt[Lt];switch(ir){case en:return{offset:-1,sibling:!0};case qt:return{offset:1,sibling:!0};case Cn:return{offset:-1,sibling:!1};case wn:return{offset:1,sibling:!1};default:return null}}function Ot(tt){for(var Qe=tt;Qe;){if(Qe.getAttribute("data-menu-list"))return Qe;Qe=Qe.parentElement}return null}function Bt(tt,Qe){for(var gt=tt||document.activeElement;gt;){if(Qe.has(gt))return gt;gt=gt.parentElement}return null}function me(tt,Qe){var gt=I(tt,!0);return gt.filter(function(Lt){return Qe.has(Lt)})}function ce(tt,Qe,gt){var Lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!tt)return null;var ot=me(tt,Qe),zt=ot.length,At=ot.findIndex(function(jt){return gt===jt});return Lt<0?At===-1?At=zt-1:At-=1:Lt>0&&(At+=1),At=(At+zt)%zt,ot[At]}var j=function(Qe,gt){var Lt=new Set,ot=new Map,zt=new Map;return Qe.forEach(function(At){var jt=document.querySelector("[data-menu-id='".concat(Z(gt,At),"']"));jt&&(Lt.add(jt),zt.set(jt,At),ot.set(At,jt))}),{elements:Lt,key2element:ot,element2key:zt}};function pe(tt,Qe,gt,Lt,ot,zt,At,jt,en,qt){var wn=x.useRef(),Cn=x.useRef();Cn.current=Qe;var Kn=function(){Se.Z.cancel(wn.current)};return x.useEffect(function(){return function(){Kn()}},[]),function(bn){var vn=bn.which;if([].concat(pt,[qe,rt,yt,Dt]).includes(vn)){var nr=zt(),ir=j(nr,Lt),Rn=ir,On=Rn.elements,Nn=Rn.key2element,Un=Rn.element2key,Bn=Nn.get(Qe),Wn=Bt(Bn,On),ur=Un.get(Wn),sr=vt(tt,At(ur,!0).length===1,gt,vn);if(!sr&&vn!==yt&&vn!==Dt)return;(pt.includes(vn)||[yt,Dt].includes(vn))&&bn.preventDefault();var Qn=function(kn){if(kn){var Ir=kn,Br=kn.querySelector("a");Br!=null&&Br.getAttribute("href")&&(Ir=Br);var pr=Un.get(kn);jt(pr),Kn(),wn.current=(0,Se.Z)(function(){Cn.current===pr&&Ir.focus()})}};if([yt,Dt].includes(vn)||sr.sibling||!Wn){var lt;!Wn||tt==="inline"?lt=ot.current:lt=Ot(Wn);var Tn,Hn=me(lt,On);vn===yt?Tn=Hn[0]:vn===Dt?Tn=Hn[Hn.length-1]:Tn=ce(lt,On,Wn,sr.offset),Qn(Tn)}else if(sr.inlineTrigger)en(ur);else if(sr.offset>0)en(ur,!0),Kn(),wn.current=(0,Se.Z)(function(){ir=j(nr,Lt);var gr=Wn.getAttribute("aria-controls"),kn=document.getElementById(gr),Ir=ce(kn,ir.elements);Qn(Ir)},5);else if(sr.offset<0){var jn=At(ur,!0),$r=jn[jn.length-2],Vn=Nn.get($r);en($r,!1),Qn(Vn)}}qt==null||qt(bn)}}function Re(tt){Promise.resolve().then(tt)}var P="__RC_UTIL_PATH_SPLIT__",ne=function(Qe){return Qe.join(P)},fe=function(Qe){return Qe.split(P)},ye="rc-menu-more";function ke(){var tt=x.useState({}),Qe=(0,$.Z)(tt,2),gt=Qe[1],Lt=(0,x.useRef)(new Map),ot=(0,x.useRef)(new Map),zt=x.useState([]),At=(0,$.Z)(zt,2),jt=At[0],en=At[1],qt=(0,x.useRef)(0),wn=(0,x.useRef)(!1),Cn=function(){wn.current||gt({})},Kn=(0,x.useCallback)(function(Nn,Un){var Bn=ne(Un);ot.current.set(Bn,Nn),Lt.current.set(Nn,Bn),qt.current+=1;var Wn=qt.current;Re(function(){Wn===qt.current&&Cn()})},[]),bn=(0,x.useCallback)(function(Nn,Un){var Bn=ne(Un);ot.current.delete(Bn),Lt.current.delete(Nn)},[]),vn=(0,x.useCallback)(function(Nn){en(Nn)},[]),nr=(0,x.useCallback)(function(Nn,Un){var Bn=Lt.current.get(Nn)||"",Wn=fe(Bn);return Un&&jt.includes(Wn[0])&&Wn.unshift(ye),Wn},[jt]),ir=(0,x.useCallback)(function(Nn,Un){return Nn.some(function(Bn){var Wn=nr(Bn,!0);return Wn.includes(Un)})},[nr]),Rn=function(){var Un=(0,ve.Z)(Lt.current.keys());return jt.length&&Un.push(ye),Un},On=(0,x.useCallback)(function(Nn){var Un="".concat(Lt.current.get(Nn)).concat(P),Bn=new Set;return(0,ve.Z)(ot.current.keys()).forEach(function(Wn){Wn.startsWith(Un)&&Bn.add(ot.current.get(Wn))}),Bn},[]);return x.useEffect(function(){return function(){wn.current=!0}},[]),{registerPath:Kn,unregisterPath:bn,refreshOverflowKeys:vn,isSubPathKey:ir,getKeyPath:nr,getKeys:Rn,getSubPathKeys:On}}function Oe(tt){var Qe=x.useRef(tt);Qe.current=tt;var gt=x.useCallback(function(){for(var Lt,ot=arguments.length,zt=new Array(ot),At=0;At<ot;At++)zt[At]=arguments[At];return(Lt=Qe.current)===null||Lt===void 0?void 0:Lt.call.apply(Lt,[Qe].concat(zt))},[]);return tt?gt:void 0}var Ze=Math.random().toFixed(5).toString().slice(2),it=0;function Ye(tt){var Qe=(0,ue.Z)(tt,{value:tt}),gt=(0,$.Z)(Qe,2),Lt=gt[0],ot=gt[1];return x.useEffect(function(){it+=1;var zt="".concat(Ze,"-").concat(it);ot("rc-menu-uuid-".concat(zt))},[]),Lt}var Ke=E(96949),Tt=E(55090),St=E(77205),wt=E(38793),$t=E(2738),Yt=E(8654);function Nt(tt,Qe,gt,Lt){var ot=x.useContext(W),zt=ot.activeKey,At=ot.onActive,jt=ot.onInactive,en={active:zt===tt};return Qe||(en.onMouseEnter=function(qt){gt==null||gt({key:tt,domEvent:qt}),At(tt)},en.onMouseLeave=function(qt){Lt==null||Lt({key:tt,domEvent:qt}),jt(tt)}),en}function Jt(tt){var Qe=x.useContext(W),gt=Qe.mode,Lt=Qe.rtl,ot=Qe.inlineIndent;if(gt!=="inline")return null;var zt=tt;return Lt?{paddingRight:zt*ot}:{paddingLeft:zt*ot}}function nn(tt){var Qe=tt.icon,gt=tt.props,Lt=tt.children,ot;return Qe===null||Qe===!1?null:(typeof Qe=="function"?ot=x.createElement(Qe,(0,xe.Z)({},gt)):typeof Qe!="boolean"&&(ot=Qe),ot||Lt||null)}var w=["item"];function R(tt){var Qe=tt.item,gt=(0,p.Z)(tt,w);return Object.defineProperty(gt,"item",{get:function(){return(0,v.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Qe}}),gt}var ft=["title","attribute","elementRef"],ee=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ie=["active"],pn=function(tt){(0,St.Z)(gt,tt);var Qe=(0,wt.Z)(gt);function gt(){return(0,Ke.Z)(this,gt),Qe.apply(this,arguments)}return(0,Tt.Z)(gt,[{key:"render",value:function(){var ot=this.props,zt=ot.title,At=ot.attribute,jt=ot.elementRef,en=(0,p.Z)(ot,ft),qt=(0,$t.Z)(en,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,v.ZP)(!At,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),x.createElement(o.Z.Item,(0,S.Z)({},At,{title:typeof zt=="string"?zt:void 0},qt,{ref:jt}))}}]),gt}(x.Component),ze=x.forwardRef(function(tt,Qe){var gt,Lt=tt.style,ot=tt.className,zt=tt.eventKey,At=tt.warnKey,jt=tt.disabled,en=tt.itemIcon,qt=tt.children,wn=tt.role,Cn=tt.onMouseEnter,Kn=tt.onMouseLeave,bn=tt.onClick,vn=tt.onKeyDown,nr=tt.onFocus,ir=(0,p.Z)(tt,ee),Rn=ie(zt),On=x.useContext(W),Nn=On.prefixCls,Un=On.onItemClick,Bn=On.disabled,Wn=On.overflowDisabled,ur=On.itemIcon,sr=On.selectedKeys,Qn=On.onActive,lt=x.useContext(Q),Tn=lt._internalRenderMenuItem,Hn="".concat(Nn,"-item"),jn=x.useRef(),$r=x.useRef(),Vn=Bn||jt,gr=(0,Yt.x1)(Qe,$r),kn=Ce(zt),Ir=function(xr){return{key:zt,keyPath:(0,ve.Z)(kn).reverse(),item:jn.current,domEvent:xr}},Br=en||ur,pr=Nt(zt,Vn,Cn,Kn),ui=pr.active,si=(0,p.Z)(pr,Ie),Yr=sr.includes(zt),Xr=Jt(kn.length),_n=function(xr){if(!Vn){var Hr=Ir(xr);bn==null||bn(R(Hr)),Un(Hr)}},cr=function(xr){if(vn==null||vn(xr),xr.which===F.Z.ENTER){var Hr=Ir(xr);bn==null||bn(R(Hr)),Un(Hr)}},dr=function(xr){Qn(zt),nr==null||nr(xr)},vr={};tt.role==="option"&&(vr["aria-selected"]=Yr);var Qr=x.createElement(pn,(0,S.Z)({ref:jn,elementRef:gr,role:wn===null?"none":wn||"menuitem",tabIndex:jt?null:-1,"data-menu-id":Wn&&Rn?null:Rn},ir,si,vr,{component:"li","aria-disabled":jt,style:(0,xe.Z)((0,xe.Z)({},Xr),Lt),className:re()(Hn,(gt={},(0,te.Z)(gt,"".concat(Hn,"-active"),ui),(0,te.Z)(gt,"".concat(Hn,"-selected"),Yr),(0,te.Z)(gt,"".concat(Hn,"-disabled"),Vn),gt),ot),onClick:_n,onKeyDown:cr,onFocus:dr}),qt,x.createElement(nn,{props:(0,xe.Z)((0,xe.Z)({},tt),{},{isSelected:Yr}),icon:Br}));return Tn&&(Qr=Tn(Qr,tt,{selected:Yr})),Qr});function Ge(tt,Qe){var gt=tt.eventKey,Lt=J(),ot=Ce(gt);return x.useEffect(function(){if(Lt)return Lt.registerPath(gt,ot),function(){Lt.unregisterPath(gt,ot)}},[ot]),Lt?null:x.createElement(ze,(0,S.Z)({},tt,{ref:Qe}))}var Je=x.forwardRef(Ge),ae=["className","children"],Ee=function(Qe,gt){var Lt=Qe.className,ot=Qe.children,zt=(0,p.Z)(Qe,ae),At=x.useContext(W),jt=At.prefixCls,en=At.mode,qt=At.rtl;return x.createElement("ul",(0,S.Z)({className:re()(jt,qt&&"".concat(jt,"-rtl"),"".concat(jt,"-sub"),"".concat(jt,"-").concat(en==="inline"?"inline":"vertical"),Lt),role:"menu"},zt,{"data-menu-list":!0,ref:gt}),ot)},De=x.forwardRef(Ee);De.displayName="SubMenuList";var He=De,q=E(11592);function Ut(tt,Qe){return(0,q.Z)(tt).map(function(gt,Lt){if(x.isValidElement(gt)){var ot,zt,At=gt.key,jt=(ot=(zt=gt.props)===null||zt===void 0?void 0:zt.eventKey)!==null&&ot!==void 0?ot:At,en=jt==null;en&&(jt="tmp_key-".concat([].concat((0,ve.Z)(Qe),[Lt]).join("-")));var qt={key:jt,eventKey:jt};return x.cloneElement(gt,qt)}return gt})}var Pe=E(35593),Qt={adjustX:1,adjustY:1},an={topLeft:{points:["bl","tl"],overflow:Qt},topRight:{points:["br","tr"],overflow:Qt},bottomLeft:{points:["tl","bl"],overflow:Qt},bottomRight:{points:["tr","br"],overflow:Qt},leftTop:{points:["tr","tl"],overflow:Qt},leftBottom:{points:["br","bl"],overflow:Qt},rightTop:{points:["tl","tr"],overflow:Qt},rightBottom:{points:["bl","br"],overflow:Qt}},kt={topLeft:{points:["bl","tl"],overflow:Qt},topRight:{points:["br","tr"],overflow:Qt},bottomLeft:{points:["tl","bl"],overflow:Qt},bottomRight:{points:["tr","br"],overflow:Qt},rightTop:{points:["tr","tl"],overflow:Qt},rightBottom:{points:["br","bl"],overflow:Qt},leftTop:{points:["tl","tr"],overflow:Qt},leftBottom:{points:["bl","br"],overflow:Qt}},It=null;function Et(tt,Qe,gt){if(Qe)return Qe;if(gt)return gt[tt]||gt.other}var xt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function rn(tt){var Qe=tt.prefixCls,gt=tt.visible,Lt=tt.children,ot=tt.popup,zt=tt.popupStyle,At=tt.popupClassName,jt=tt.popupOffset,en=tt.disabled,qt=tt.mode,wn=tt.onVisibleChange,Cn=x.useContext(W),Kn=Cn.getPopupContainer,bn=Cn.rtl,vn=Cn.subMenuOpenDelay,nr=Cn.subMenuCloseDelay,ir=Cn.builtinPlacements,Rn=Cn.triggerSubMenuAction,On=Cn.forceSubMenuRender,Nn=Cn.rootClassName,Un=Cn.motion,Bn=Cn.defaultMotions,Wn=x.useState(!1),ur=(0,$.Z)(Wn,2),sr=ur[0],Qn=ur[1],lt=bn?(0,xe.Z)((0,xe.Z)({},kt),ir):(0,xe.Z)((0,xe.Z)({},an),ir),Tn=xt[qt],Hn=Et(qt,Un,Bn),jn=x.useRef(Hn);qt!=="inline"&&(jn.current=Hn);var $r=(0,xe.Z)((0,xe.Z)({},jn.current),{},{leavedClassName:"".concat(Qe,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Vn=x.useRef();return x.useEffect(function(){return Vn.current=(0,Se.Z)(function(){Qn(gt)}),function(){Se.Z.cancel(Vn.current)}},[gt]),x.createElement(Pe.Z,{prefixCls:Qe,popupClassName:re()("".concat(Qe,"-popup"),(0,te.Z)({},"".concat(Qe,"-rtl"),bn),At,Nn),stretch:qt==="horizontal"?"minWidth":null,getPopupContainer:Kn,builtinPlacements:lt,popupPlacement:Tn,popupVisible:sr,popup:ot,popupStyle:zt,popupAlign:jt&&{offset:jt},action:en?[]:[Rn],mouseEnterDelay:vn,mouseLeaveDelay:nr,onPopupVisibleChange:wn,forceRender:On,popupMotion:$r,fresh:!0},Lt)}var _e=E(77900);function Ae(tt){var Qe=tt.id,gt=tt.open,Lt=tt.keyPath,ot=tt.children,zt="inline",At=x.useContext(W),jt=At.prefixCls,en=At.forceSubMenuRender,qt=At.motion,wn=At.defaultMotions,Cn=At.mode,Kn=x.useRef(!1);Kn.current=Cn===zt;var bn=x.useState(!Kn.current),vn=(0,$.Z)(bn,2),nr=vn[0],ir=vn[1],Rn=Kn.current?gt:!1;x.useEffect(function(){Kn.current&&ir(!1)},[Cn]);var On=(0,xe.Z)({},Et(zt,qt,wn));Lt.length>1&&(On.motionAppear=!1);var Nn=On.onVisibleChanged;return On.onVisibleChanged=function(Un){return!Kn.current&&!Un&&ir(!0),Nn==null?void 0:Nn(Un)},nr?null:x.createElement(k,{mode:zt,locked:!Kn.current},x.createElement(_e.default,(0,S.Z)({visible:Rn},On,{forceRender:en,removeOnLeave:!1,leavedClassName:"".concat(jt,"-hidden")}),function(Un){var Bn=Un.className,Wn=Un.style;return x.createElement(He,{id:Qe,className:Bn,style:Wn},ot)}))}var ct=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],We=["active"],at=function(Qe){var gt,Lt=Qe.style,ot=Qe.className,zt=Qe.title,At=Qe.eventKey,jt=Qe.warnKey,en=Qe.disabled,qt=Qe.internalPopupClose,wn=Qe.children,Cn=Qe.itemIcon,Kn=Qe.expandIcon,bn=Qe.popupClassName,vn=Qe.popupOffset,nr=Qe.popupStyle,ir=Qe.onClick,Rn=Qe.onMouseEnter,On=Qe.onMouseLeave,Nn=Qe.onTitleClick,Un=Qe.onTitleMouseEnter,Bn=Qe.onTitleMouseLeave,Wn=(0,p.Z)(Qe,ct),ur=ie(At),sr=x.useContext(W),Qn=sr.prefixCls,lt=sr.mode,Tn=sr.openKeys,Hn=sr.disabled,jn=sr.overflowDisabled,$r=sr.activeKey,Vn=sr.selectedKeys,gr=sr.itemIcon,kn=sr.expandIcon,Ir=sr.onItemClick,Br=sr.onOpenChange,pr=sr.onActive,ui=x.useContext(Q),si=ui._internalRenderSubMenuItem,Yr=x.useContext(Te),Xr=Yr.isSubPathKey,_n=Ce(),cr="".concat(Qn,"-submenu"),dr=Hn||en,vr=x.useRef(),Qr=x.useRef(),kr=Cn!=null?Cn:gr,xr=Kn!=null?Kn:kn,Hr=Tn.includes(At),hr=!jn&&Hr,ai=Xr(Vn,At),In=Nt(At,dr,Un,Bn),li=In.active,oi=(0,p.Z)(In,We),ti=x.useState(!1),rr=(0,$.Z)(ti,2),di=rr[0],_i=rr[1],hi=function(Nr){dr||_i(Nr)},zn=function(Nr){hi(!0),Rn==null||Rn({key:At,domEvent:Nr})},fi=function(Nr){hi(!1),On==null||On({key:At,domEvent:Nr})},yi=x.useMemo(function(){return li||(lt!=="inline"?di||Xr([$r],At):!1)},[lt,li,$r,di,At,Xr]),tn=Jt(_n.length),Vr=function(Nr){dr||(Nn==null||Nn({key:At,domEvent:Nr}),lt==="inline"&&Br(At,!Hr))},pi=Oe(function(Gr){ir==null||ir(R(Gr)),Ir(Gr)}),ci=function(Nr){lt!=="inline"&&Br(At,Nr)},wr=function(){pr(At)},Ar=ur&&"".concat(ur,"-popup"),ar=x.createElement("div",(0,S.Z)({role:"menuitem",style:tn,className:"".concat(cr,"-title"),tabIndex:dr?null:-1,ref:vr,title:typeof zt=="string"?zt:null,"data-menu-id":jn&&ur?null:ur,"aria-expanded":hr,"aria-haspopup":!0,"aria-controls":Ar,"aria-disabled":dr,onClick:Vr,onFocus:wr},oi),zt,x.createElement(nn,{icon:lt!=="horizontal"?xr:void 0,props:(0,xe.Z)((0,xe.Z)({},Qe),{},{isOpen:hr,isSubMenu:!0})},x.createElement("i",{className:"".concat(cr,"-arrow")}))),Tr=x.useRef(lt);if(lt!=="inline"&&_n.length>1?Tr.current="vertical":Tr.current=lt,!jn){var Zr=Tr.current;ar=x.createElement(rn,{mode:Zr,prefixCls:cr,visible:!qt&&hr&<!=="inline",popupClassName:bn,popupOffset:vn,popupStyle:nr,popup:x.createElement(k,{mode:Zr==="horizontal"?"vertical":Zr},x.createElement(He,{id:Ar,ref:Qr},wn)),disabled:dr,onVisibleChange:ci},ar)}var ni=x.createElement(o.Z.Item,(0,S.Z)({role:"none"},Wn,{component:"li",style:Lt,className:re()(cr,"".concat(cr,"-").concat(lt),ot,(gt={},(0,te.Z)(gt,"".concat(cr,"-open"),hr),(0,te.Z)(gt,"".concat(cr,"-active"),yi),(0,te.Z)(gt,"".concat(cr,"-selected"),ai),(0,te.Z)(gt,"".concat(cr,"-disabled"),dr),gt)),onMouseEnter:zn,onMouseLeave:fi}),ar,!jn&&x.createElement(Ae,{id:Ar,open:hr,keyPath:_n},wn));return si&&(ni=si(ni,Qe,{selected:ai,active:yi,open:hr,disabled:dr})),x.createElement(k,{onItemClick:pi,mode:lt==="horizontal"?"vertical":lt,itemIcon:kr,expandIcon:xr},ni)};function bt(tt){var Qe=tt.eventKey,gt=tt.children,Lt=Ce(Qe),ot=Ut(gt,Lt),zt=J();x.useEffect(function(){if(zt)return zt.registerPath(Qe,Lt),function(){zt.unregisterPath(Qe,Lt)}},[Lt]);var At;return zt?At=ot:At=x.createElement(at,tt,ot),x.createElement(ge.Provider,{value:Lt},At)}var Ct=E(62853),Xt=["className","title","eventKey","children"],cn=["children"],Wt=function(Qe){var gt=Qe.className,Lt=Qe.title,ot=Qe.eventKey,zt=Qe.children,At=(0,p.Z)(Qe,Xt),jt=x.useContext(W),en=jt.prefixCls,qt="".concat(en,"-item-group");return x.createElement("li",(0,S.Z)({role:"presentation"},At,{onClick:function(Cn){return Cn.stopPropagation()},className:re()(qt,gt)}),x.createElement("div",{role:"presentation",className:"".concat(qt,"-title"),title:typeof Lt=="string"?Lt:void 0},Lt),x.createElement("ul",{role:"group",className:"".concat(qt,"-list")},zt))};function xn(tt){var Qe=tt.children,gt=(0,p.Z)(tt,cn),Lt=Ce(gt.eventKey),ot=Ut(Qe,Lt),zt=J();return zt?ot:x.createElement(Wt,(0,$t.Z)(gt,["warnKey"]),ot)}function on(tt){var Qe=tt.className,gt=tt.style,Lt=x.useContext(W),ot=Lt.prefixCls,zt=J();return zt?null:x.createElement("li",{role:"separator",className:re()("".concat(ot,"-item-divider"),Qe),style:gt})}var Pn=["label","children","key","type"];function Gt(tt){return(tt||[]).map(function(Qe,gt){if(Qe&&(0,Ct.Z)(Qe)==="object"){var Lt=Qe,ot=Lt.label,zt=Lt.children,At=Lt.key,jt=Lt.type,en=(0,p.Z)(Lt,Pn),qt=At!=null?At:"tmp-".concat(gt);return zt||jt==="group"?jt==="group"?x.createElement(xn,(0,S.Z)({key:qt},en,{title:ot}),Gt(zt)):x.createElement(bt,(0,S.Z)({key:qt},en,{title:ot}),Gt(zt)):jt==="divider"?x.createElement(on,(0,S.Z)({key:qt},en)):x.createElement(Je,(0,S.Z)({key:qt},en),ot)}return null}).filter(function(Qe){return Qe})}function Vt(tt,Qe,gt){var Lt=tt;return Qe&&(Lt=Gt(Qe)),Ut(Lt,gt)}var Sn=["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"],En=[],gn=x.forwardRef(function(tt,Qe){var gt,Lt,ot=tt,zt=ot.prefixCls,At=zt===void 0?"rc-menu":zt,jt=ot.rootClassName,en=ot.style,qt=ot.className,wn=ot.tabIndex,Cn=wn===void 0?0:wn,Kn=ot.items,bn=ot.children,vn=ot.direction,nr=ot.id,ir=ot.mode,Rn=ir===void 0?"vertical":ir,On=ot.inlineCollapsed,Nn=ot.disabled,Un=ot.disabledOverflow,Bn=ot.subMenuOpenDelay,Wn=Bn===void 0?.1:Bn,ur=ot.subMenuCloseDelay,sr=ur===void 0?.1:ur,Qn=ot.forceSubMenuRender,lt=ot.defaultOpenKeys,Tn=ot.openKeys,Hn=ot.activeKey,jn=ot.defaultActiveFirst,$r=ot.selectable,Vn=$r===void 0?!0:$r,gr=ot.multiple,kn=gr===void 0?!1:gr,Ir=ot.defaultSelectedKeys,Br=ot.selectedKeys,pr=ot.onSelect,ui=ot.onDeselect,si=ot.inlineIndent,Yr=si===void 0?24:si,Xr=ot.motion,_n=ot.defaultMotions,cr=ot.triggerSubMenuAction,dr=cr===void 0?"hover":cr,vr=ot.builtinPlacements,Qr=ot.itemIcon,kr=ot.expandIcon,xr=ot.overflowedIndicator,Hr=xr===void 0?"...":xr,hr=ot.overflowedIndicatorPopupClassName,ai=ot.getPopupContainer,In=ot.onClick,li=ot.onOpenChange,oi=ot.onKeyDown,ti=ot.openAnimation,rr=ot.openTransitionName,di=ot._internalRenderMenuItem,_i=ot._internalRenderSubMenuItem,hi=(0,p.Z)(ot,Sn),zn=x.useMemo(function(){return Vt(bn,Kn,En)},[bn,Kn]),fi=x.useState(!1),yi=(0,$.Z)(fi,2),tn=yi[0],Vr=yi[1],pi=x.useRef(),ci=Ye(nr),wr=vn==="rtl",Ar=(0,ue.Z)(lt,{value:Tn,postState:function(yr){return yr||En}}),ar=(0,$.Z)(Ar,2),Tr=ar[0],Zr=ar[1],ni=function(yr){var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function mi(){Zr(yr),li==null||li(yr)}br?(0,A.flushSync)(mi):mi()},Gr=x.useState(Tr),Nr=(0,$.Z)(Gr,2),or=Nr[0],Jn=Nr[1],qn=x.useRef(!1),Lr=x.useMemo(function(){return(Rn==="inline"||Rn==="vertical")&&On?["vertical",On]:[Rn,!1]},[Rn,On]),Fr=(0,$.Z)(Lr,2),ri=Fr[0],mn=Fr[1],Ln=ri==="inline",Pr=x.useState(ri),Ur=(0,$.Z)(Pr,2),_r=Ur[0],Ci=Ur[1],ki=x.useState(mn),Di=(0,$.Z)(ki,2),Ri=Di[0],os=Di[1];x.useEffect(function(){Ci(ri),os(mn),qn.current&&(Ln?Zr(or):ni(En))},[ri,mn]);var bs=x.useState(0),Us=(0,$.Z)(bs,2),Ki=Us[0],zs=Us[1],ii=Ki>=zn.length-1||_r!=="horizontal"||Un;x.useEffect(function(){Ln&&Jn(Tr)},[Tr]),x.useEffect(function(){return qn.current=!0,function(){qn.current=!1}},[]);var bi=ke(),xs=bi.registerPath,Xi=bi.unregisterPath,ls=bi.refreshOverflowKeys,Qi=bi.isSubPathKey,js=bi.getKeyPath,Es=bi.getKeys,Ss=bi.getSubPathKeys,ws=x.useMemo(function(){return{registerPath:xs,unregisterPath:Xi}},[xs,Xi]),Ji=x.useMemo(function(){return{isSubPathKey:Qi}},[Qi]);x.useEffect(function(){ls(ii?En:zn.slice(Ki+1).map(function(Er){return Er.key}))},[Ki,ii]);var Pi=(0,ue.Z)(Hn||jn&&((gt=zn[0])===null||gt===void 0?void 0:gt.key),{value:Hn}),As=(0,$.Z)(Pi,2),$i=As[0],qi=As[1],aa=Oe(function(Er){qi(Er)}),Hs=Oe(function(){qi(void 0)});(0,x.useImperativeHandle)(Qe,function(){return{list:pi.current,focus:function(yr){var br,mi=Es(),zr=j(mi,ci),ts=zr.elements,Ht=zr.key2element,ds=zr.element2key,Is=me(pi.current,ts),hs=$i!=null?$i:Is[0]?ds.get(Is[0]):(br=zn.find(function(Ls){return!Ls.props.disabled}))===null||br===void 0?void 0:br.key,Wi=Ht.get(hs);if(hs&&Wi){var Ui;Wi==null||(Ui=Wi.focus)===null||Ui===void 0||Ui.call(Wi,yr)}}}});var Gs=(0,ue.Z)(Ir||[],{value:Br,postState:function(yr){return Array.isArray(yr)?yr:yr==null?En:[yr]}}),Ks=(0,$.Z)(Gs,2),xi=Ks[0],Ts=Ks[1],Cs=function(yr){if(Vn){var br=yr.key,mi=xi.includes(br),zr;kn?mi?zr=xi.filter(function(Ht){return Ht!==br}):zr=[].concat((0,ve.Z)(xi),[br]):zr=[br],Ts(zr);var ts=(0,xe.Z)((0,xe.Z)({},yr),{},{selectedKeys:zr});mi?ui==null||ui(ts):pr==null||pr(ts)}!kn&&Tr.length&&_r!=="inline"&&ni(En)},es=Oe(function(Er){In==null||In(R(Er)),Cs(Er)}),Ds=Oe(function(Er,yr){var br=Tr.filter(function(zr){return zr!==Er});if(yr)br.push(Er);else if(_r!=="inline"){var mi=Ss(Er);br=br.filter(function(zr){return!mi.has(zr)})}(0,G.Z)(Tr,br,!0)||ni(br,!0)}),us=function(yr,br){var mi=br!=null?br:!Tr.includes(yr);Ds(yr,mi)},cs=pe(_r,$i,wr,ci,pi,Es,js,qi,us,oi);x.useEffect(function(){Vr(!0)},[]);var Rs=x.useMemo(function(){return{_internalRenderMenuItem:di,_internalRenderSubMenuItem:_i}},[di,_i]),Ei=_r!=="horizontal"||Un?zn:zn.map(function(Er,yr){return x.createElement(k,{key:Er.key,overflowDisabled:yr>Ki},Er)}),Ws=x.createElement(o.Z,(0,S.Z)({id:nr,ref:pi,prefixCls:"".concat(At,"-overflow"),component:"ul",itemComponent:Je,className:re()(At,"".concat(At,"-root"),"".concat(At,"-").concat(_r),qt,(Lt={},(0,te.Z)(Lt,"".concat(At,"-inline-collapsed"),Ri),(0,te.Z)(Lt,"".concat(At,"-rtl"),wr),Lt),jt),dir:vn,style:en,role:"menu",tabIndex:Cn,data:Ei,renderRawItem:function(yr){return yr},renderRawRest:function(yr){var br=yr.length,mi=br?zn.slice(-br):null;return x.createElement(bt,{eventKey:ye,title:Hr,disabled:ii,internalPopupClose:br===0,popupClassName:hr},mi)},maxCount:_r!=="horizontal"||Un?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(yr){zs(yr)},onKeyDown:cs},hi));return x.createElement(Q.Provider,{value:Rs},x.createElement(T.Provider,{value:ci},x.createElement(k,{prefixCls:At,rootClassName:jt,mode:_r,openKeys:Tr,rtl:wr,disabled:Nn,motion:tn?Xr:null,defaultMotions:tn?_n:null,activeKey:$i,onActive:aa,onInactive:Hs,selectedKeys:xi,inlineIndent:Yr,subMenuOpenDelay:Wn,subMenuCloseDelay:sr,forceSubMenuRender:Qn,builtinPlacements:vr,triggerSubMenuAction:dr,getPopupContainer:ai,itemIcon:Qr,expandIcon:kr,onItemClick:es,onOpenChange:Ds},x.createElement(Te.Provider,{value:Ji},Ws),x.createElement("div",{style:{display:"none"},"aria-hidden":!0},x.createElement(se.Provider,{value:ws},zn)))))}),Yn=gn,An=Yn;An.Item=Je,An.SubMenu=bt,An.ItemGroup=xn,An.Divider=on;var fn=An},11780:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return z}});var S=E(72308),te=E(77321),xe=E(52487),ve=E(74416),$=E(59301),p=E(92310),he=E.n(p),re=E(29301),o=E(34280),ue=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],G=void 0;function v(g,b){var B=g.prefixCls,F=g.invalidate,Se=g.item,we=g.renderItem,Ne=g.responsive,je=g.responsiveDisabled,et=g.registerSize,qe=g.itemKey,rt=g.className,yt=g.style,Dt=g.children,pt=g.display,vt=g.order,Ot=g.component,Bt=Ot===void 0?"div":Ot,me=(0,ve.Z)(g,ue),ce=Ne&&!pt;function j(fe){et(qe,fe)}$.useEffect(function(){return function(){j(null)}},[]);var pe=we&&Se!==G?we(Se,{index:vt}):Dt,Re;F||(Re={opacity:ce?0:1,height:ce?0:G,overflowY:ce?"hidden":G,order:Ne?vt:G,pointerEvents:ce?"none":G,position:ce?"absolute":G});var P={};ce&&(P["aria-hidden"]=!0);var ne=$.createElement(Bt,(0,S.Z)({className:he()(!F&&B,rt),style:(0,te.Z)((0,te.Z)({},Re),yt)},P,me,{ref:b}),pe);return Ne&&(ne=$.createElement(re.Z,{onResize:function(ye){var ke=ye.offsetWidth;j(ke)},disabled:je},ne)),ne}var x=$.forwardRef(v);x.displayName="Item";var A=x,T=E(6089),Z=E(4676),ie=E(16089);function M(g){if(typeof MessageChannel=="undefined")(0,ie.Z)(g);else{var b=new MessageChannel;b.port1.onmessage=function(){return g()},b.port2.postMessage(void 0)}}function U(){var g=$.useRef(null),b=function(F){g.current||(g.current=[],M(function(){(0,Z.unstable_batchedUpdates)(function(){g.current.forEach(function(Se){Se()}),g.current=null})})),g.current.push(F)};return b}function W(g,b){var B=$.useState(b),F=(0,xe.Z)(B,2),Se=F[0],we=F[1],Ne=(0,T.Z)(function(je){g(function(){we(je)})});return[Se,Ne]}var le=$.createContext(null),k=["component"],Y=["className"],se=["className"],J=function(b,B){var F=$.useContext(le);if(!F){var Se=b.component,we=Se===void 0?"div":Se,Ne=(0,ve.Z)(b,k);return $.createElement(we,(0,S.Z)({},Ne,{ref:B}))}var je=F.className,et=(0,ve.Z)(F,Y),qe=b.className,rt=(0,ve.Z)(b,se);return $.createElement(le.Provider,{value:null},$.createElement(A,(0,S.Z)({ref:B,className:he()(je,qe)},et,rt)))},ge=$.forwardRef(J);ge.displayName="RawItem";var Ce=ge,Te=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fe="responsive",Q="invalidate";function O(g){return"+ ".concat(g.length," ...")}function K(g,b){var B=g.prefixCls,F=B===void 0?"rc-overflow":B,Se=g.data,we=Se===void 0?[]:Se,Ne=g.renderItem,je=g.renderRawItem,et=g.itemKey,qe=g.itemWidth,rt=qe===void 0?10:qe,yt=g.ssr,Dt=g.style,pt=g.className,vt=g.maxCount,Ot=g.renderRest,Bt=g.renderRawRest,me=g.suffix,ce=g.component,j=ce===void 0?"div":ce,pe=g.itemComponent,Re=g.onVisibleChange,P=(0,ve.Z)(g,Te),ne=yt==="full",fe=U(),ye=W(fe,null),ke=(0,xe.Z)(ye,2),Oe=ke[0],Ze=ke[1],it=Oe||0,Ye=W(fe,new Map),Ke=(0,xe.Z)(Ye,2),Tt=Ke[0],St=Ke[1],wt=W(fe,0),$t=(0,xe.Z)(wt,2),Yt=$t[0],Nt=$t[1],Jt=W(fe,0),nn=(0,xe.Z)(Jt,2),w=nn[0],R=nn[1],ft=W(fe,0),ee=(0,xe.Z)(ft,2),Ie=ee[0],pn=ee[1],ze=(0,$.useState)(null),Ge=(0,xe.Z)(ze,2),Je=Ge[0],ae=Ge[1],Ee=(0,$.useState)(null),De=(0,xe.Z)(Ee,2),He=De[0],q=De[1],Ut=$.useMemo(function(){return He===null&&ne?Number.MAX_SAFE_INTEGER:He||0},[He,Oe]),Pe=(0,$.useState)(!1),Qt=(0,xe.Z)(Pe,2),an=Qt[0],kt=Qt[1],It="".concat(F,"-item"),Et=Math.max(Yt,w),xt=vt===Fe,rn=we.length&&xt,_e=vt===Q,Ae=rn||typeof vt=="number"&&we.length>vt,ct=(0,$.useMemo)(function(){var fn=we;return rn?Oe===null&&ne?fn=we:fn=we.slice(0,Math.min(we.length,it/rt)):typeof vt=="number"&&(fn=we.slice(0,vt)),fn},[we,rt,Oe,vt,rn]),We=(0,$.useMemo)(function(){return rn?we.slice(Ut+1):we.slice(ct.length)},[we,ct,rn,Ut]),at=(0,$.useCallback)(function(fn,tt){var Qe;return typeof et=="function"?et(fn):(Qe=et&&(fn==null?void 0:fn[et]))!==null&&Qe!==void 0?Qe:tt},[et]),bt=(0,$.useCallback)(Ne||function(fn){return fn},[Ne]);function Ct(fn,tt,Qe){He===fn&&(tt===void 0||tt===Je)||(q(fn),Qe||(kt(fn<we.length-1),Re==null||Re(fn)),tt!==void 0&&ae(tt))}function Xt(fn,tt){Ze(tt.clientWidth)}function cn(fn,tt){St(function(Qe){var gt=new Map(Qe);return tt===null?gt.delete(fn):gt.set(fn,tt),gt})}function Wt(fn,tt){R(tt),Nt(w)}function xn(fn,tt){pn(tt)}function on(fn){return Tt.get(at(ct[fn],fn))}(0,o.Z)(function(){if(it&&typeof Et=="number"&&ct){var fn=Ie,tt=ct.length,Qe=tt-1;if(!tt){Ct(0,null);return}for(var gt=0;gt<tt;gt+=1){var Lt=on(gt);if(ne&&(Lt=Lt||0),Lt===void 0){Ct(gt-1,void 0,!0);break}if(fn+=Lt,Qe===0&&fn<=it||gt===Qe-1&&fn+on(Qe)<=it){Ct(Qe,null);break}else if(fn+Et>it){Ct(gt-1,fn-Lt-Ie+w);break}}me&&on(0)+Ie>it&&ae(null)}},[it,Tt,w,Ie,at,ct]);var Pn=an&&!!We.length,Gt={};Je!==null&&rn&&(Gt={position:"absolute",left:Je,top:0});var Vt={prefixCls:It,responsive:rn,component:pe,invalidate:_e},Sn=je?function(fn,tt){var Qe=at(fn,tt);return $.createElement(le.Provider,{key:Qe,value:(0,te.Z)((0,te.Z)({},Vt),{},{order:tt,item:fn,itemKey:Qe,registerSize:cn,display:tt<=Ut})},je(fn,tt))}:function(fn,tt){var Qe=at(fn,tt);return $.createElement(A,(0,S.Z)({},Vt,{order:tt,key:Qe,item:fn,renderItem:bt,itemKey:Qe,registerSize:cn,display:tt<=Ut}))},En={order:Pn?Ut:Number.MAX_SAFE_INTEGER,className:"".concat(It,"-rest"),registerSize:Wt,display:Pn},gn=Ot||O,Yn=Bt?$.createElement(le.Provider,{value:(0,te.Z)((0,te.Z)({},Vt),En)},Bt(We)):$.createElement(A,(0,S.Z)({},Vt,En),typeof gn=="function"?gn(We):gn),An=$.createElement(j,(0,S.Z)({className:he()(!_e&&F,pt),style:Dt,ref:b},P),ct.map(Sn),Ae?Yn:null,me&&$.createElement(A,(0,S.Z)({},Vt,{responsive:xt,responsiveDisabled:!rn,order:Ut,className:"".concat(It,"-suffix"),registerSize:xn,display:!0,style:Gt}),me));return xt?$.createElement(re.Z,{onResize:Xt,disabled:!rn},An):An}var I=$.forwardRef(K);I.displayName="Overflow",I.Item=Ce,I.RESPONSIVE=Fe,I.INVALIDATE=Q;var X=I,z=X},29301:function(Kt,nt,E){"use strict";E.d(nt,{Z:function(){return Q}});var S=E(72308),te=E(59301),xe=E(11592),ve=E(48736),$=E(77321),p=E(62853),he=E(76846),re=E(8654),o=te.createContext(null);function ue(O){var K=O.children,I=O.onBatchResize,X=te.useRef(0),z=te.useRef([]),g=te.useContext(o),b=te.useCallback(function(B,F,Se){X.current+=1;var we=X.current;z.current.push({size:B,element:F,data:Se}),Promise.resolve().then(function(){we===X.current&&(I==null||I(z.current),z.current=[])}),g==null||g(B,F,Se)},[I,g]);return te.createElement(o.Provider,{value:b},K)}var G=E(76374),v=new Map;function x(O){O.forEach(function(K){var I,X=K.target;(I=v.get(X))===null||I===void 0||I.forEach(function(z){return z(X)})})}var A=new G.Z(x),T=null,Z=null;function ie(O,K){v.has(O)||(v.set(O,new Set),A.observe(O)),v.get(O).add(K)}function M(O,K){v.has(O)&&(v.get(O).delete(K),v.get(O).size||(A.unobserve(O),v.delete(O)))}var U=E(96949),W=E(55090),le=E(77205),k=E(38793),Y=function(O){(0,le.Z)(I,O);var K=(0,k.Z)(I);function I(){return(0,U.Z)(this,I),K.apply(this,arguments)}return(0,W.Z)(I,[{key:"render",value:function(){return this.props.children}}]),I}(te.Component);function se(O,K){var I=O.children,X=O.disabled,z=te.useRef(null),g=te.useRef(null),b=te.useContext(o),B=typeof I=="function",F=B?I(z):I,Se=te.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),we=!B&&te.isValidElement(F)&&(0,re.Yr)(F),Ne=we?(0,re.C4)(F):null,je=(0,re.x1)(Ne,z),et=function(){var Dt;return(0,he.ZP)(z.current)||(z.current&&(0,p.Z)(z.current)==="object"?(0,he.ZP)((Dt=z.current)===null||Dt===void 0?void 0:Dt.nativeElement):null)||(0,he.ZP)(g.current)};te.useImperativeHandle(K,function(){return et()});var qe=te.useRef(O);qe.current=O;var rt=te.useCallback(function(yt){var Dt=qe.current,pt=Dt.onResize,vt=Dt.data,Ot=yt.getBoundingClientRect(),Bt=Ot.width,me=Ot.height,ce=yt.offsetWidth,j=yt.offsetHeight,pe=Math.floor(Bt),Re=Math.floor(me);if(Se.current.width!==pe||Se.current.height!==Re||Se.current.offsetWidth!==ce||Se.current.offsetHeight!==j){var P={width:pe,height:Re,offsetWidth:ce,offsetHeight:j};Se.current=P;var ne=ce===Math.round(Bt)?Bt:ce,fe=j===Math.round(me)?me:j,ye=(0,$.Z)((0,$.Z)({},P),{},{offsetWidth:ne,offsetHeight:fe});b==null||b(ye,yt,vt),pt&&Promise.resolve().then(function(){pt(ye,yt)})}},[]);return te.useEffect(function(){var yt=et();return yt&&!X&&ie(yt,rt),function(){return M(yt,rt)}},[z.current,X]),te.createElement(Y,{ref:g},we?te.cloneElement(F,{ref:je}):F)}var J=te.forwardRef(se),ge=J,Ce="rc-observer-key";function Te(O,K){var I=O.children,X=typeof I=="function"?[I]:(0,xe.Z)(I);return X.map(function(z,g){var b=(z==null?void 0:z.key)||"".concat(Ce,"-").concat(g);return te.createElement(ge,(0,S.Z)({},O,{key:b,ref:g===0?K:void 0}),z)})}var Fe=te.forwardRef(Te);Fe.Collection=ue;var Q=Fe},9296:function(Kt,nt,E){"use strict";E.r(nt),E.d(nt,{ResizableTextArea:function(){return Te},default:function(){return X}});var S=E(72308),te=E(77321),xe=E(49618),ve=E(62853),$=E(52487),p=E(74416),he=E(80702),re=E(92310),o=E.n(re),ue=E(93681),G=E(5643),v=E(18929),x=E(59301),A=E(29301),T=E(34280),Z=E(16089),ie=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,M=["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"],U={},W;function le(z){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=z.getAttribute("id")||z.getAttribute("data-reactid")||z.getAttribute("name");if(g&&U[b])return U[b];var B=window.getComputedStyle(z),F=B.getPropertyValue("box-sizing")||B.getPropertyValue("-moz-box-sizing")||B.getPropertyValue("-webkit-box-sizing"),Se=parseFloat(B.getPropertyValue("padding-bottom"))+parseFloat(B.getPropertyValue("padding-top")),we=parseFloat(B.getPropertyValue("border-bottom-width"))+parseFloat(B.getPropertyValue("border-top-width")),Ne=M.map(function(et){return"".concat(et,":").concat(B.getPropertyValue(et))}).join(";"),je={sizingStyle:Ne,paddingSize:Se,borderSize:we,boxSizing:F};return g&&b&&(U[b]=je),je}function k(z){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;W||(W=document.createElement("textarea"),W.setAttribute("tab-index","-1"),W.setAttribute("aria-hidden","true"),document.body.appendChild(W)),z.getAttribute("wrap")?W.setAttribute("wrap",z.getAttribute("wrap")):W.removeAttribute("wrap");var F=le(z,g),Se=F.paddingSize,we=F.borderSize,Ne=F.boxSizing,je=F.sizingStyle;W.setAttribute("style","".concat(je,";").concat(ie)),W.value=z.value||z.placeholder||"";var et=void 0,qe=void 0,rt,yt=W.scrollHeight;if(Ne==="border-box"?yt+=we:Ne==="content-box"&&(yt-=Se),b!==null||B!==null){W.value=" ";var Dt=W.scrollHeight-Se;b!==null&&(et=Dt*b,Ne==="border-box"&&(et=et+Se+we),yt=Math.max(et,yt)),B!==null&&(qe=Dt*B,Ne==="border-box"&&(qe=qe+Se+we),rt=yt>qe?"":"hidden",yt=Math.min(qe,yt))}var pt={height:yt,overflowY:rt,resize:"none"};return et&&(pt.minHeight=et),qe&&(pt.maxHeight=qe),pt}var Y=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,J=1,ge=2,Ce=x.forwardRef(function(z,g){var b=z,B=b.prefixCls,F=b.onPressEnter,Se=b.defaultValue,we=b.value,Ne=b.autoSize,je=b.onResize,et=b.className,qe=b.style,rt=b.disabled,yt=b.onChange,Dt=b.onInternalAutoSize,pt=(0,p.Z)(b,Y),vt=(0,v.Z)(Se,{value:we,postState:function(R){return R!=null?R:""}}),Ot=(0,$.Z)(vt,2),Bt=Ot[0],me=Ot[1],ce=function(R){me(R.target.value),yt==null||yt(R)},j=x.useRef();x.useImperativeHandle(g,function(){return{textArea:j.current}});var pe=x.useMemo(function(){return Ne&&(0,ve.Z)(Ne)==="object"?[Ne.minRows,Ne.maxRows]:[]},[Ne]),Re=(0,$.Z)(pe,2),P=Re[0],ne=Re[1],fe=!!Ne,ye=function(){try{if(document.activeElement===j.current){var R=j.current,ft=R.selectionStart,ee=R.selectionEnd,Ie=R.scrollTop;j.current.setSelectionRange(ft,ee),j.current.scrollTop=Ie}}catch(pn){}},ke=x.useState(ge),Oe=(0,$.Z)(ke,2),Ze=Oe[0],it=Oe[1],Ye=x.useState(),Ke=(0,$.Z)(Ye,2),Tt=Ke[0],St=Ke[1],wt=function(){it(se)};(0,T.Z)(function(){fe&&wt()},[we,P,ne,fe]),(0,T.Z)(function(){if(Ze===se)it(J);else if(Ze===J){var w=k(j.current,!1,P,ne);it(ge),St(w)}else ye()},[Ze]);var $t=x.useRef(),Yt=function(){Z.Z.cancel($t.current)},Nt=function(R){Ze===ge&&(je==null||je(R),Ne&&(Yt(),$t.current=(0,Z.Z)(function(){wt()})))};x.useEffect(function(){return Yt},[]);var Jt=fe?Tt:null,nn=(0,te.Z)((0,te.Z)({},qe),Jt);return(Ze===se||Ze===J)&&(nn.overflowY="hidden",nn.overflowX="hidden"),x.createElement(A.Z,{onResize:Nt,disabled:!(Ne||je)},x.createElement("textarea",(0,S.Z)({},pt,{ref:j,style:nn,className:o()(B,et,(0,xe.Z)({},"".concat(B,"-disabled"),rt)),disabled:rt,value:Bt,onChange:ce})))}),Te=Ce,Fe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Q(z,g){return(0,he.Z)(z||"").slice(0,g).join("")}function O(z,g,b,B){var F=b;return z?F=Q(b,B):(0,he.Z)(g||"").length<b.length&&(0,he.Z)(b||"").length>B&&(F=g),F}var K=x.forwardRef(function(z,g){var b,B=z.defaultValue,F=z.value,Se=z.onFocus,we=z.onBlur,Ne=z.onChange,je=z.allowClear,et=z.maxLength,qe=z.onCompositionStart,rt=z.onCompositionEnd,yt=z.suffix,Dt=z.prefixCls,pt=Dt===void 0?"rc-textarea":Dt,vt=z.classes,Ot=z.showCount,Bt=z.className,me=z.style,ce=z.disabled,j=z.hidden,pe=z.classNames,Re=z.styles,P=z.onResize,ne=(0,p.Z)(z,Fe),fe=(0,v.Z)(B,{value:F,defaultValue:B}),ye=(0,$.Z)(fe,2),ke=ye[0],Oe=ye[1],Ze=(0,x.useRef)(null),it=x.useState(!1),Ye=(0,$.Z)(it,2),Ke=Ye[0],Tt=Ye[1],St=x.useState(!1),wt=(0,$.Z)(St,2),$t=wt[0],Yt=wt[1],Nt=x.useRef(),Jt=x.useRef(0),nn=x.useState(null),w=(0,$.Z)(nn,2),R=w[0],ft=w[1],ee=function(){var Et;(Et=Ze.current)===null||Et===void 0||Et.textArea.focus()};(0,x.useImperativeHandle)(g,function(){return{resizableTextArea:Ze.current,focus:ee,blur:function(){var Et;(Et=Ze.current)===null||Et===void 0||Et.textArea.blur()}}}),(0,x.useEffect)(function(){Tt(function(It){return!ce&&It})},[ce]);var Ie=Number(et)>0,pn=function(Et){Yt(!0),Nt.current=ke,Jt.current=Et.currentTarget.selectionStart,qe==null||qe(Et)},ze=function(Et){Yt(!1);var xt=Et.currentTarget.value;if(Ie){var rn,_e=Jt.current>=et+1||Jt.current===((rn=Nt.current)===null||rn===void 0?void 0:rn.length);xt=O(_e,Nt.current,xt,et)}xt!==ke&&(Oe(xt),(0,G.rJ)(Et.currentTarget,Et,Ne,xt)),rt==null||rt(Et)},Ge=function(Et){var xt=Et.target.value;if(!$t&&Ie){var rn=Et.target.selectionStart>=et+1||Et.target.selectionStart===xt.length||!Et.target.selectionStart;xt=O(rn,ke,xt,et)}Oe(xt),(0,G.rJ)(Et.currentTarget,Et,Ne,xt)},Je=function(Et){var xt=ne.onPressEnter,rn=ne.onKeyDown;Et.key==="Enter"&&xt&&xt(Et),rn==null||rn(Et)},ae=function(Et){Tt(!0),Se==null||Se(Et)},Ee=function(Et){Tt(!1),we==null||we(Et)},De=function(Et){var xt;Oe(""),ee(),(0,G.rJ)((xt=Ze.current)===null||xt===void 0?void 0:xt.textArea,Et,Ne)},He=(0,G.D7)(ke);!$t&&Ie&&F==null&&(He=Q(He,et));var q=yt,Ut;if(Ot){var Pe=(0,he.Z)(He).length;(0,ve.Z)(Ot)==="object"?Ut=Ot.formatter({value:He,count:Pe,maxLength:et}):Ut="".concat(Pe).concat(Ie?" / ".concat(et):""),q=x.createElement(x.Fragment,null,q,x.createElement("span",{className:o()("".concat(pt,"-data-count"),pe==null?void 0:pe.count),style:Re==null?void 0:Re.count},Ut))}var Qt=function(Et){var xt;P==null||P(Et),(xt=Ze.current)!==null&&xt!==void 0&&xt.textArea.style.height&&ft(!0)},an=!ne.autoSize&&!Ot&&!je,kt=x.createElement(ue.BaseInput,{value:He,allowClear:je,handleReset:De,suffix:q,prefixCls:pt,classes:{affixWrapper:o()(vt==null?void 0:vt.affixWrapper,(b={},(0,xe.Z)(b,"".concat(pt,"-show-count"),Ot),(0,xe.Z)(b,"".concat(pt,"-textarea-allow-clear"),je),b))},disabled:ce,focused:Ke,className:Bt,style:(0,te.Z)((0,te.Z)({},me),R&&!an?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ut=="string"?Ut:void 0}},hidden:j,inputElement:x.createElement(Te,(0,S.Z)({},ne,{onKeyDown:Je,onChange:Ge,onFocus:ae,onBlur:Ee,onCompositionStart:pn,onCompositionEnd:ze,className:pe==null?void 0:pe.textarea,style:(0,te.Z)((0,te.Z)({},Re==null?void 0:Re.textarea),{},{resize:me==null?void 0:me.resize}),disabled:ce,prefixCls:pt,onResize:Qt,ref:Ze}))});return kt}),I=K,X=I},55477:function(Kt,nt,E){"use strict";E.d(nt,{G:function(){return x},Z:function(){return ie}});var S=E(72308),te=E(77321),xe=E(74416),ve=E(35593),$=E(59301),p={shiftX:64,adjustY:1},he={adjustX:1,shiftY:!0},re=[0,0],o={left:{points:["cr","cl"],overflow:he,offset:[-4,0],targetOffset:re},right:{points:["cl","cr"],overflow:he,offset:[4,0],targetOffset:re},top:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:re},bottom:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:re},topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:re},leftTop:{points:["tr","tl"],overflow:he,offset:[-4,0],targetOffset:re},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:re},rightTop:{points:["tl","tr"],overflow:he,offset:[4,0],targetOffset:re},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:re},rightBottom:{points:["bl","br"],overflow:he,offset:[4,0],targetOffset:re},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:re},leftBottom:{points:["br","bl"],overflow:he,offset:[-4,0],targetOffset:re}},ue=null,G=E(92310),v=E.n(G);function x(M){var U=M.children,W=M.prefixCls,le=M.id,k=M.overlayInnerStyle,Y=M.className,se=M.style;return $.createElement("div",{className:v()("".concat(W,"-content"),Y),style:se},$.createElement("div",{className:"".concat(W,"-inner"),id:le,role:"tooltip",style:k},typeof U=="function"?U():U))}var A=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],T=function(U,W){var le=U.overlayClassName,k=U.trigger,Y=k===void 0?["hover"]:k,se=U.mouseEnterDelay,J=se===void 0?0:se,ge=U.mouseLeaveDelay,Ce=ge===void 0?.1:ge,Te=U.overlayStyle,Fe=U.prefixCls,Q=Fe===void 0?"rc-tooltip":Fe,O=U.children,K=U.onVisibleChange,I=U.afterVisibleChange,X=U.transitionName,z=U.animation,g=U.motion,b=U.placement,B=b===void 0?"right":b,F=U.align,Se=F===void 0?{}:F,we=U.destroyTooltipOnHide,Ne=we===void 0?!1:we,je=U.defaultVisible,et=U.getTooltipContainer,qe=U.overlayInnerStyle,rt=U.arrowContent,yt=U.overlay,Dt=U.id,pt=U.showArrow,vt=pt===void 0?!0:pt,Ot=(0,xe.Z)(U,A),Bt=(0,$.useRef)(null);(0,$.useImperativeHandle)(W,function(){return Bt.current});var me=(0,te.Z)({},Ot);"visible"in U&&(me.popupVisible=U.visible);var ce=function(){return $.createElement(x,{key:"content",prefixCls:Q,id:Dt,overlayInnerStyle:qe},yt)};return $.createElement(ve.Z,(0,S.Z)({popupClassName:le,prefixCls:Q,popup:ce,action:Y,builtinPlacements:o,popupPlacement:B,ref:Bt,popupAlign:Se,getPopupContainer:et,onPopupVisibleChange:K,afterPopupVisibleChange:I,popupTransitionName:X,popupAnimation:z,popupMotion:g,defaultPopupVisible:je,autoDestroy:Ne,mouseLeaveDelay:Ce,popupStyle:Te,mouseEnterDelay:J,arrow:vt},me),O)},Z=(0,$.forwardRef)(T),ie=Z},49658:function(Kt,nt){"use strict";nt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")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(E==null?void 0:E.substr(0,4))}},83145:function(Kt,nt,E){"use strict";Object.defineProperty(nt,"__esModule",{value:!0}),nt.CopyToClipboard=void 0;var S=xe(E(59301)),te=xe(E(25769));function xe(U){return U&&U.__esModule?U:{default:U}}function ve(U){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ve=function(le){return typeof le}:ve=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},ve(U)}function $(U,W){var le=Object.keys(U);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(U);W&&(k=k.filter(function(Y){return Object.getOwnPropertyDescriptor(U,Y).enumerable})),le.push.apply(le,k)}return le}function p(U){for(var W=1;W<arguments.length;W++){var le=arguments[W]!=null?arguments[W]:{};W%2?$(le,!0).forEach(function(k){ie(U,k,le[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(le)):$(le).forEach(function(k){Object.defineProperty(U,k,Object.getOwnPropertyDescriptor(le,k))})}return U}function he(U,W){if(U==null)return{};var le=re(U,W),k,Y;if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(U);for(Y=0;Y<se.length;Y++)k=se[Y],!(W.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(U,k)&&(le[k]=U[k])}return le}function re(U,W){if(U==null)return{};var le={},k=Object.keys(U),Y,se;for(se=0;se<k.length;se++)Y=k[se],!(W.indexOf(Y)>=0)&&(le[Y]=U[Y]);return le}function o(U,W){if(!(U instanceof W))throw new TypeError("Cannot call a class as a function")}function ue(U,W){for(var le=0;le<W.length;le++){var k=W[le];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(U,k.key,k)}}function G(U,W,le){return W&&ue(U.prototype,W),le&&ue(U,le),U}function v(U,W){return W&&(ve(W)==="object"||typeof W=="function")?W:A(U)}function x(U){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},x(U)}function A(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function T(U,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(W&&W.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),W&&Z(U,W)}function Z(U,W){return Z=Object.setPrototypeOf||function(k,Y){return k.__proto__=Y,k},Z(U,W)}function ie(U,W,le){return W in U?Object.defineProperty(U,W,{value:le,enumerable:!0,configurable:!0,writable:!0}):U[W]=le,U}var M=function(U){T(W,U);function W(){var le,k;o(this,W);for(var Y=arguments.length,se=new Array(Y),J=0;J<Y;J++)se[J]=arguments[J];return k=v(this,(le=x(W)).call.apply(le,[this].concat(se))),ie(A(k),"onClick",function(ge){var Ce=k.props,Te=Ce.text,Fe=Ce.onCopy,Q=Ce.children,O=Ce.options,K=S.default.Children.only(Q),I=(0,te.default)(Te,O);Fe&&Fe(Te,I),K&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(ge)}),k}return G(W,[{key:"render",value:function(){var k=this.props,Y=k.text,se=k.onCopy,J=k.options,ge=k.children,Ce=he(k,["text","onCopy","options","children"]),Te=S.default.Children.only(ge);return S.default.cloneElement(Te,p({},Ce,{onClick:this.onClick}))}}]),W}(S.default.PureComponent);nt.CopyToClipboard=M,ie(M,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Kt,nt,E){"use strict";var S=E(83145),te=S.CopyToClipboard;te.CopyToClipboard=te,Kt.exports=te},51581:function(Kt,nt,E){"use strict";Object.defineProperty(nt,"__esModule",{value:!0});var S=function(){function v(x,A){for(var T=0;T<A.length;T++){var Z=A[T];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(x,Z.key,Z)}}return function(x,A,T){return A&&v(x.prototype,A),T&&v(x,T),x}}(),te=E(59301),xe=p(te),ve=E(12708),$=p(ve);function p(v){return v&&v.__esModule?v:{default:v}}function he(v,x){var A={};for(var T in v)x.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(v,T)&&(A[T]=v[T]);return A}function re(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function o(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function ue(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var G=function(v){ue(x,v);function x(A){re(this,x);var T=o(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,A));return T.scrollListener=T.scrollListener.bind(T),T.eventListenerOptions=T.eventListenerOptions.bind(T),T.mousewheelListener=T.mousewheelListener.bind(T),T}return S(x,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var T=this.getParentElement(this.scrollComponent);T.scrollTop=T.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var T=!1,Z={get passive(){T=!0}};try{document.addEventListener("test",null,Z),document.removeEventListener("test",null,Z)}catch(ie){}return T}},{key:"eventListenerOptions",value:function(){var T=this.props.useCapture;return this.isPassiveSupported()&&(T={useCapture:this.props.useCapture,passive:!0}),T}},{key:"setDefaultLoader",value:function(T){this.defaultLoader=T}},{key:"detachMousewheelListener",value:function(){var T=window;this.props.useWindow===!1&&(T=this.scrollComponent.parentNode),T.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var T=window;this.props.useWindow===!1&&(T=this.getParentElement(this.scrollComponent)),T.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),T.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(T){var Z=this.props.getScrollParent&&this.props.getScrollParent();return Z!=null?Z:T&&T.parentNode}},{key:"filterProps",value:function(T){return T}},{key:"attachScrollListener",value:function(){var T=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!T)){var Z=window;this.props.useWindow===!1&&(Z=T),Z.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),Z.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Z.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(T){T.deltaY===1&&!this.isPassiveSupported()&&T.preventDefault()}},{key:"scrollListener",value:function(){var T=this.scrollComponent,Z=window,ie=this.getParentElement(T),M=void 0;if(this.props.useWindow){var U=document.documentElement||document.body.parentNode||document.body,W=Z.pageYOffset!==void 0?Z.pageYOffset:U.scrollTop;this.props.isReverse?M=W:M=this.calculateOffset(T,W)}else this.props.isReverse?M=ie.scrollTop:M=T.scrollHeight-ie.scrollTop-ie.clientHeight;M<Number(this.props.threshold)&&T&&T.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=ie.scrollHeight,this.beforeScrollTop=ie.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(T,Z){return T?this.calculateTopPosition(T)+(T.offsetHeight-Z-window.innerHeight):0}},{key:"calculateTopPosition",value:function(T){return T?T.offsetTop+this.calculateTopPosition(T.offsetParent):0}},{key:"render",value:function(){var T=this,Z=this.filterProps(this.props),ie=Z.children,M=Z.element,U=Z.hasMore,W=Z.initialLoad,le=Z.isReverse,k=Z.loader,Y=Z.loadMore,se=Z.pageStart,J=Z.ref,ge=Z.threshold,Ce=Z.useCapture,Te=Z.useWindow,Fe=Z.getScrollParent,Q=he(Z,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Q.ref=function(K){T.scrollComponent=K,J&&J(K)};var O=[ie];return U&&(k?le?O.unshift(k):O.push(k):this.defaultLoader&&(le?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),xe.default.createElement(M,Q,O)}}]),x}(te.Component);G.propTypes={children:$.default.node.isRequired,element:$.default.node,hasMore:$.default.bool,initialLoad:$.default.bool,isReverse:$.default.bool,loader:$.default.node,loadMore:$.default.func.isRequired,pageStart:$.default.number,ref:$.default.func,getScrollParent:$.default.func,threshold:$.default.number,useCapture:$.default.bool,useWindow:$.default.bool},G.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},nt.default=G,Kt.exports=nt.default},26724:function(Kt,nt,E){Kt.exports=E(51581)},76374:function(Kt,nt,E){"use strict";var S=function(){if(typeof Map!="undefined")return Map;function Q(O,K){var I=-1;return O.some(function(X,z){return X[0]===K?(I=z,!0):!1}),I}return function(){function O(){this.__entries__=[]}return Object.defineProperty(O.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),O.prototype.get=function(K){var I=Q(this.__entries__,K),X=this.__entries__[I];return X&&X[1]},O.prototype.set=function(K,I){var X=Q(this.__entries__,K);~X?this.__entries__[X][1]=I:this.__entries__.push([K,I])},O.prototype.delete=function(K){var I=this.__entries__,X=Q(I,K);~X&&I.splice(X,1)},O.prototype.has=function(K){return!!~Q(this.__entries__,K)},O.prototype.clear=function(){this.__entries__.splice(0)},O.prototype.forEach=function(K,I){I===void 0&&(I=null);for(var X=0,z=this.__entries__;X<z.length;X++){var g=z[X];K.call(I,g[1],g[0])}},O}()}(),te=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,xe=function(){return typeof E.g!="undefined"&&E.g.Math===Math?E.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ve=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xe):function(Q){return setTimeout(function(){return Q(Date.now())},1e3/60)}}(),$=2;function p(Q,O){var K=!1,I=!1,X=0;function z(){K&&(K=!1,Q()),I&&b()}function g(){ve(z)}function b(){var B=Date.now();if(K){if(B-X<$)return;I=!0}else K=!0,I=!1,setTimeout(g,O);X=B}return b}var he=20,re=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",ue=function(){function Q(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=p(this.refresh.bind(this),he)}return Q.prototype.addObserver=function(O){~this.observers_.indexOf(O)||this.observers_.push(O),this.connected_||this.connect_()},Q.prototype.removeObserver=function(O){var K=this.observers_,I=K.indexOf(O);~I&&K.splice(I,1),!K.length&&this.connected_&&this.disconnect_()},Q.prototype.refresh=function(){var O=this.updateObservers_();O&&this.refresh()},Q.prototype.updateObservers_=function(){var O=this.observers_.filter(function(K){return K.gatherActive(),K.hasActive()});return O.forEach(function(K){return K.broadcastActive()}),O.length>0},Q.prototype.connect_=function(){!te||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Q.prototype.disconnect_=function(){!te||!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)},Q.prototype.onTransitionEnd_=function(O){var K=O.propertyName,I=K===void 0?"":K,X=re.some(function(z){return!!~I.indexOf(z)});X&&this.refresh()},Q.getInstance=function(){return this.instance_||(this.instance_=new Q),this.instance_},Q.instance_=null,Q}(),G=function(Q,O){for(var K=0,I=Object.keys(O);K<I.length;K++){var X=I[K];Object.defineProperty(Q,X,{value:O[X],enumerable:!1,writable:!1,configurable:!0})}return Q},v=function(Q){var O=Q&&Q.ownerDocument&&Q.ownerDocument.defaultView;return O||xe},x=Y(0,0,0,0);function A(Q){return parseFloat(Q)||0}function T(Q){for(var O=[],K=1;K<arguments.length;K++)O[K-1]=arguments[K];return O.reduce(function(I,X){var z=Q["border-"+X+"-width"];return I+A(z)},0)}function Z(Q){for(var O=["top","right","bottom","left"],K={},I=0,X=O;I<X.length;I++){var z=X[I],g=Q["padding-"+z];K[z]=A(g)}return K}function ie(Q){var O=Q.getBBox();return Y(0,0,O.width,O.height)}function M(Q){var O=Q.clientWidth,K=Q.clientHeight;if(!O&&!K)return x;var I=v(Q).getComputedStyle(Q),X=Z(I),z=X.left+X.right,g=X.top+X.bottom,b=A(I.width),B=A(I.height);if(I.boxSizing==="border-box"&&(Math.round(b+z)!==O&&(b-=T(I,"left","right")+z),Math.round(B+g)!==K&&(B-=T(I,"top","bottom")+g)),!W(Q)){var F=Math.round(b+z)-O,Se=Math.round(B+g)-K;Math.abs(F)!==1&&(b-=F),Math.abs(Se)!==1&&(B-=Se)}return Y(X.left,X.top,b,B)}var U=function(){return typeof SVGGraphicsElement!="undefined"?function(Q){return Q instanceof v(Q).SVGGraphicsElement}:function(Q){return Q instanceof v(Q).SVGElement&&typeof Q.getBBox=="function"}}();function W(Q){return Q===v(Q).document.documentElement}function le(Q){return te?U(Q)?ie(Q):M(Q):x}function k(Q){var O=Q.x,K=Q.y,I=Q.width,X=Q.height,z=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(z.prototype);return G(g,{x:O,y:K,width:I,height:X,top:K,right:O+I,bottom:X+K,left:O}),g}function Y(Q,O,K,I){return{x:Q,y:O,width:K,height:I}}var se=function(){function Q(O){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Y(0,0,0,0),this.target=O}return Q.prototype.isActive=function(){var O=le(this.target);return this.contentRect_=O,O.width!==this.broadcastWidth||O.height!==this.broadcastHeight},Q.prototype.broadcastRect=function(){var O=this.contentRect_;return this.broadcastWidth=O.width,this.broadcastHeight=O.height,O},Q}(),J=function(){function Q(O,K){var I=k(K);G(this,{target:O,contentRect:I})}return Q}(),ge=function(){function Q(O,K,I){if(this.activeObservations_=[],this.observations_=new S,typeof O!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=O,this.controller_=K,this.callbackCtx_=I}return Q.prototype.observe=function(O){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(O instanceof v(O).Element))throw new TypeError('parameter 1 is not of type "Element".');var K=this.observations_;K.has(O)||(K.set(O,new se(O)),this.controller_.addObserver(this),this.controller_.refresh())}},Q.prototype.unobserve=function(O){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(O instanceof v(O).Element))throw new TypeError('parameter 1 is not of type "Element".');var K=this.observations_;K.has(O)&&(K.delete(O),K.size||this.controller_.removeObserver(this))}},Q.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Q.prototype.gatherActive=function(){var O=this;this.clearActive(),this.observations_.forEach(function(K){K.isActive()&&O.activeObservations_.push(K)})},Q.prototype.broadcastActive=function(){if(this.hasActive()){var O=this.callbackCtx_,K=this.activeObservations_.map(function(I){return new J(I.target,I.broadcastRect())});this.callback_.call(O,K,O),this.clearActive()}},Q.prototype.clearActive=function(){this.activeObservations_.splice(0)},Q.prototype.hasActive=function(){return this.activeObservations_.length>0},Q}(),Ce=typeof WeakMap!="undefined"?new WeakMap:new S,Te=function(){function Q(O){if(!(this instanceof Q))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var K=ue.getInstance(),I=new ge(O,K,this);Ce.set(this,I)}return Q}();["observe","unobserve","disconnect"].forEach(function(Q){Te.prototype[Q]=function(){var O;return(O=Ce.get(this))[Q].apply(O,arguments)}});var Fe=function(){return typeof xe.ResizeObserver!="undefined"?xe.ResizeObserver:Te}();nt.Z=Fe},98040:function(Kt){Kt.exports=function(){var nt=document.getSelection();if(!nt.rangeCount)return function(){};for(var E=document.activeElement,S=[],te=0;te<nt.rangeCount;te++)S.push(nt.getRangeAt(te));switch(E.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":E.blur();break;default:E=null;break}return nt.removeAllRanges(),function(){nt.type==="Caret"&&nt.removeAllRanges(),nt.rangeCount||S.forEach(function(xe){nt.addRange(xe)}),E&&E.focus()}}},93314:function(Kt){"use strict";Kt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(Kt){"use strict";Kt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Kt){"use strict";Kt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Kt){"use strict";Kt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},46284:function(Kt,nt,E){"use strict";E.d(nt,{ZP:function(){return _s}});const S=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},te=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=xe},xe=Number.MAX_SAFE_INTEGER||9007199254740991;let ve=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),$=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),p=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var he={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},re={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class ue{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function G(a,e,t){return(e=Z(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function v(){return v=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},v.apply(null,arguments)}function x(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function A(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?x(Object(t),!0).forEach(function(n){G(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function T(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Z(a){var e=T(a,"string");return typeof e=="symbol"?e:e+""}class ie{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=M,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 M=function(){},U={trace:M,debug:M,log:M,warn:M,info:M,error:M};function W(){return v({},U)}function le(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):M}function k(a,e,t){return e[a]?e[a].bind(e):le(a,t)}const Y=W();function se(a,e,t){const n=W();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=k(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.1`)}catch(i){return W()}r.forEach(i=>{Y[i]=k(i,a)})}else v(Y,n);return n}const J=Y;function ge(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ce(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function Te(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function Fe(a,e=!1){if(typeof TextDecoder!="undefined"){const c=new TextDecoder("utf-8").decode(a);if(e){const m=c.indexOf("\0");return m!==-1?c.substring(0,m):c}return c.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",l=0;for(;l<t;){if(n=a[l++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=a[l++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[l++],i=a[l++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}const Q={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}};function O(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var K={exports:{}},I;function X(){return I||(I=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(d,c,m){if(m=m||{},d=d.trim(),c=c.trim(),!c){if(!m.alwaysNormalize)return d;var y=l.parseURL(d);if(!y)throw new Error("Error trying to parse base URL.");return y.path=l.normalizePath(y.path),l.buildURLFromParts(y)}var C=l.parseURL(c);if(!C)throw new Error("Error trying to parse relative URL.");if(C.scheme)return m.alwaysNormalize?(C.path=l.normalizePath(C.path),l.buildURLFromParts(C)):c;var L=l.parseURL(d);if(!L)throw new Error("Error trying to parse base URL.");if(!L.netLoc&&L.path&&L.path[0]!=="/"){var N=r.exec(L.path);L.netLoc=N[1],L.path=N[2]}L.netLoc&&!L.path&&(L.path="/");var de={scheme:L.scheme,netLoc:C.netLoc,path:null,params:C.params,query:C.query,fragment:C.fragment};if(!C.netLoc&&(de.netLoc=L.netLoc,C.path[0]!=="/"))if(!C.path)de.path=L.path,C.params||(de.params=L.params,C.query||(de.query=L.query));else{var oe=L.path,Be=oe.substring(0,oe.lastIndexOf("/")+1)+C.path;de.path=l.normalizePath(Be)}return de.path===null&&(de.path=m.alwaysNormalize?l.normalizePath(C.path):C.path),l.buildURLFromParts(de)},parseURL:function(d){var c=n.exec(d);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(d){for(d=d.split("").reverse().join("").replace(i,"");d.length!==(d=d.replace(s,"")).length;);return d.split("").reverse().join("")},buildURLFromParts:function(d){return d.scheme+d.netLoc+d.path+d.params+d.query+d.fragment}};a.exports=l})()}(K)),K.exports}var z=X();class g{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var b={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class B{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,je(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[b.AUDIO]:null,[b.VIDEO]:null,[b.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new g),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=z.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[b.AUDIO]=null,e[b.VIDEO]=null,e[b.AUDIOVIDEO]=null}}function F(a){return a.sn!=="initSegment"}class Se extends B{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(S(e)&&S(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=S(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!S(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return F(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:l}=this,d=l[e];if(!d){l[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}d.startPTS=Math.min(d.startPTS,t),d.endPTS=Math.max(d.endPTS,n),d.startDTS=Math.min(d.startDTS,r),d.endDTS=Math.max(d.endDTS,i)}}class we extends B{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 Ne(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||Ne(t,e)}}function je(a,e){const t=Ne(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const et=Math.pow(2,32)-1,qe=[].push,rt={video:1,audio:2,id3:3,text:4};function yt(a){return String.fromCharCode.apply(null,a)}function Dt(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function pt(a,e){const t=Ot(a,e);return t<0?4294967296+t:t}function vt(a,e){let t=pt(a,e);return t*=Math.pow(2,32),t+=pt(a,e+4),t}function Ot(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Bt(a,e,t){a[e]=t>>24,a[e+1]=t>>16&255,a[e+2]=t>>8&255,a[e+3]=t&255}function me(a){const e=a.byteLength;for(let t=0;t<e;){const n=pt(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function ce(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=pt(a,r),s=yt(a.subarray(r+4,r+8)),l=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,l));else{const d=ce(a.subarray(r+8,l),e.slice(1));d.length&&qe.apply(t,d)}r=l}return t}function j(a){const e=[],t=a[0];let n=8;const r=pt(a,n);n+=4;let i=0,s=0;t===0?(i=pt(a,n),s=pt(a,n+4),n+=8):(i=vt(a,n),s=vt(a,n+8),n+=16),n+=2;let l=a.length+s;const d=Dt(a,n);n+=2;for(let c=0;c<d;c++){let m=n;const y=pt(a,m);m+=4;const C=y&2147483647;if((y&2147483648)>>>31===1)return J.warn("SIDX has hierarchical references (not supported)"),null;const N=pt(a,m);m+=4,e.push({referenceSize:C,subsegmentDuration:N,info:{duration:N/r,start:l,end:l+C-1}}),l+=C,m+=4,n=m}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:d,references:e}}function pe(a){const e=[],t=ce(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=ce(i,["tkhd"])[0];if(s){let l=s[0];const d=pt(s,l===0?12:20),c=ce(i,["mdia","mdhd"])[0];if(c){l=c[0];const m=pt(c,l===0?12:20),y=ce(i,["mdia","hdlr"])[0];if(y){const C=yt(y.subarray(8,12)),L={soun:b.AUDIO,vide:b.VIDEO}[C],N=ce(i,["mdia","minf","stbl","stsd"])[0],de=Re(N);L?(e[d]={timescale:m,type:L,stsd:de},e[L]=A({timescale:m,id:d},de)):e[d]={timescale:m,type:C,stsd:de}}}}}return ce(a,["moov","mvex","trex"]).forEach(r=>{const i=pt(r,4),s=e[i];s&&(s.default={duration:pt(r,12),flags:pt(r,20)})}),e}function Re(a){const e=a.subarray(8),t=e.subarray(86),n=yt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const c=ce(e,[n])[0].subarray(n==="enca"?28:78);ce(c,["sinf"]).forEach(y=>{const C=ce(y,["schm"])[0];if(C){const L=yt(C.subarray(4,8));if(L==="cbcs"||L==="cenc"){const N=ce(y,["frma"])[0];N&&(r=yt(N))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const d=ce(t,["avcC"])[0];d&&d.length>3&&(r+="."+fe(d[1])+fe(d[2])+fe(d[3]),i=P(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const d=ce(e,[n])[0],c=ce(d.subarray(28),["esds"])[0];if(c&&c.length>7){let m=4;if(c[m++]!==3)break;m=ne(c,m),m+=2;const y=c[m++];if(y&128&&(m+=2),y&64&&(m+=c[m++]),c[m++]!==4)break;m=ne(c,m);const C=c[m++];if(C===64)r+="."+fe(C);else break;if(m+=12,c[m++]!==5)break;m=ne(c,m);const L=c[m++];let N=(L&248)>>3;N===31&&(N+=1+((L&7)<<3)+((c[m]&224)>>5)),r+="."+N}break}case"hvc1":case"hev1":{const d=ce(t,["hvcC"])[0];if(d&&d.length>12){const c=d[1],m=["","A","B","C"][c>>6],y=c&31,C=pt(d,2),L=(c&32)>>5?"H":"L",N=d[12],de=d.subarray(6,12);r+="."+m+y,r+="."+C.toString(16).toUpperCase(),r+="."+L+N;let oe="";for(let Be=de.length;Be--;){const Ve=de[Be];(Ve||oe)&&(oe="."+Ve.toString(16).toUpperCase()+oe)}r+=oe}i=P(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=P(r,t)||r;break}case"vp09":{const d=ce(t,["vpcC"])[0];if(d&&d.length>6){const c=d[4],m=d[5],y=d[6]>>4&15;r+="."+ye(c)+"."+ye(m)+"."+ye(y)}break}case"av01":{const d=ce(t,["av1C"])[0];if(d&&d.length>2){const c=d[1]>>>5,m=d[1]&31,y=d[2]>>>7?"H":"M",C=(d[2]&64)>>6,L=(d[2]&32)>>5,N=c===2&&C?L?12:10:C?10:8,de=(d[2]&16)>>4,oe=(d[2]&8)>>3,Be=(d[2]&4)>>2,Ve=d[2]&3;r+="."+c+"."+ye(m)+y+"."+ye(N)+"."+de+"."+oe+Be+Ve+"."+ye(1)+"."+ye(1)+"."+ye(1)+"."+0,i=P("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function P(a,e){const t=ce(e,["dvvC"]),n=t.length?t[0]:ce(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+ye(r)+"."+ye(i)}}function ne(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function fe(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function ye(a){return(a<10?"0":"")+a}function ke(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&ce(a,["moov","trak"]).forEach(r=>{const s=ce(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=ce(s,["enca"]);const d=l.length>0;d||(l=ce(s,["encv"])),l.forEach(c=>{const m=d?c.subarray(28):c.subarray(78);ce(m,["sinf"]).forEach(C=>{const L=Oe(C);if(L){const N=L.subarray(8,24);N.some(de=>de!==0)||(J.log(`[eme] Patching keyId in 'enc${d?"a":"v"}>sinf>>tenc' box: ${Q.hexDump(N)} -> ${Q.hexDump(t)}`),L.set(t,8))}})})}),a}function Oe(a){const e=ce(a,["schm"])[0];if(e){const t=yt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return ce(a,["schi","tenc"])[0]}return null}function Ze(a,e){return ce(e,["moof","traf"]).reduce((t,n)=>{const r=ce(n,["tfdt"])[0],i=r[0],s=ce(n,["tfhd"]).reduce((l,d)=>{const c=pt(d,4),m=a[c];if(m){let y=pt(r,4);if(i===1){if(y===et)return J.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),l;y*=et+1,y+=pt(r,8)}const C=m.timescale||9e4,L=y/C;if(S(L)&&(l===null||L<l))return L}return l},null);return s!==null&&S(s)&&(t===null||s<t)?s:t},null)}function it(a,e){let t=0,n=0,r=0;const i=ce(a,["moof","traf"]);for(let s=0;s<i.length;s++){const l=i[s],d=ce(l,["tfhd"])[0],c=pt(d,4),m=e[c];if(!m)continue;const y=m.default,C=pt(d,0)|(y==null?void 0:y.flags);let L=y==null?void 0:y.duration;C&8&&(C&2?L=pt(d,12):L=pt(d,8));const N=m.timescale||9e4,de=ce(l,["trun"]);for(let oe=0;oe<de.length;oe++){if(t=Ye(de[oe]),!t&&L){const Be=pt(de[oe],4);t=L*Be}m.type===b.VIDEO?n+=t/N:m.type===b.AUDIO&&(r+=t/N)}}if(n===0&&r===0){let s=1/0,l=0,d=0;const c=ce(a,["sidx"]);for(let m=0;m<c.length;m++){const y=j(c[m]);if(y!=null&&y.references){s=Math.min(s,y.earliestPresentationTime/y.timescale);const C=y.references.reduce((L,N)=>L+N.info.duration||0,0);l=Math.max(l,C+y.earliestPresentationTime/y.timescale),d=l-s}}if(d&&S(d))return d}return n||r}function Ye(a){const e=pt(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=pt(a,4);for(let i=0;i<r;i++){if(e&256){const s=pt(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Ke(a,e,t){ce(e,["moof","traf"]).forEach(n=>{ce(n,["tfhd"]).forEach(r=>{const i=pt(r,4),s=a[i];if(!s)return;const l=s.timescale||9e4;ce(n,["tfdt"]).forEach(d=>{const c=d[0],m=t*l;if(m){let y=pt(d,4);if(c===0)y-=m,y=Math.max(y,0),Bt(d,4,y);else{y*=Math.pow(2,32),y+=pt(d,8),y-=m,y=Math.max(y,0);const C=Math.floor(y/(et+1)),L=Math.floor(y%(et+1));Bt(d,4,C),Bt(d,8,L)}}})})})}function Tt(a){const e={valid:null,remainder:null},t=ce(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function St(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function wt(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return ce(n,["moof"]).map(d=>{const c=d.byteOffset-8;ce(d,["traf"]).map(y=>{const C=ce(y,["tfdt"]).map(L=>{const N=L[0];let de=pt(L,4);return N===1&&(de*=Math.pow(2,32),de+=pt(L,8)),de/r})[0];return C!==void 0&&(a=C),ce(y,["tfhd"]).map(L=>{const N=pt(L,4),de=pt(L,0)&16777215,oe=(de&1)!==0,Be=(de&2)!==0,Ve=(de&8)!==0;let Ue=0;const ut=(de&16)!==0;let dt=0;const Mt=(de&32)!==0;let ht=8;N===i&&(oe&&(ht+=8),Be&&(ht+=4),Ve&&(Ue=pt(L,ht),ht+=4),ut&&(dt=pt(L,ht),ht+=4),Mt&&(ht+=4),e.type==="video"&&(s=$t(e.codec)),ce(y,["trun"]).map(Rt=>{const Ft=Rt[0],_t=pt(Rt,0)&16777215,ln=(_t&1)!==0;let yn=0;const mr=(_t&4)!==0,Gn=(_t&256)!==0;let Fn=0;const Dn=(_t&512)!==0;let $n=0;const Mn=(_t&1024)!==0,un=(_t&2048)!==0;let dn=0;const tr=pt(Rt,4);let Zn=8;ln&&(yn=pt(Rt,Zn),Zn+=4),mr&&(Zn+=4);let fr=yn+c;for(let Sr=0;Sr<tr;Sr++){if(Gn?(Fn=pt(Rt,Zn),Zn+=4):Fn=Ue,Dn?($n=pt(Rt,Zn),Zn+=4):$n=dt,Mn&&(Zn+=4),un&&(Ft===0?dn=pt(Rt,Zn):dn=Ot(Rt,Zn),Zn+=4),e.type===b.VIDEO){let Mr=0;for(;Mr<$n;){const jr=pt(n,fr);if(fr+=4,Yt(s,n[fr])){const Ti=n.subarray(fr,fr+jr);Nt(Ti,s?2:1,a+dn/r,t)}fr+=jr,Mr+=jr+4}}a+=Fn/r}}))})})}),t}function $t(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Yt(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Nt(a,e,t,n){const r=Jt(a);let i=0;i+=e;let s=0,l=0,d=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;d=r[i++],s+=d}while(d===255);l=0;do{if(i>=r.length)break;d=r[i++],l+=d}while(d===255);const c=r.length-i;let m=i;if(l<c)i+=l;else if(l>c){J.error(`Malformed SEI payload. ${l} is too small, only ${c} bytes left to parse.`);break}if(s===4){if(r[m++]===181){const C=Dt(r,m);if(m+=2,C===49){const L=pt(r,m);if(m+=4,L===1195456820){const N=r[m++];if(N===3){const de=r[m++],oe=31&de,Be=64&de,Ve=Be?2+oe*3:0,Ue=new Uint8Array(Ve);if(Be){Ue[0]=de;for(let ut=1;ut<Ve;ut++)Ue[ut]=r[m++]}n.push({type:N,payloadType:s,pts:t,bytes:Ue})}}}}}else if(s===5&&l>16){const y=[];for(let N=0;N<16;N++){const de=r[m++].toString(16);y.push(de.length==1?"0"+de:de),(N===3||N===5||N===7||N===9)&&y.push("-")}const C=l-16,L=new Uint8Array(C);for(let N=0;N<C;N++)L[N]=r[m++];n.push({payloadType:s,pts:t,uuid:y.join(""),userData:Fe(L),userDataBytes:L})}}}function Jt(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function nn(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,d=0,c=0;if(e===0){for(;yt(a.subarray(c,c+1))!=="\0";)t+=yt(a.subarray(c,c+1)),c+=1;for(t+=yt(a.subarray(c,c+1)),c+=1;yt(a.subarray(c,c+1))!=="\0";)n+=yt(a.subarray(c,c+1)),c+=1;n+=yt(a.subarray(c,c+1)),c+=1,r=pt(a,12),i=pt(a,16),l=pt(a,20),d=pt(a,24),c=28}else if(e===1){c+=4,r=pt(a,c),c+=4;const y=pt(a,c);c+=4;const C=pt(a,c);for(c+=4,s=Zl(2,32)*y+C,te(s)||(s=Number.MAX_SAFE_INTEGER,J.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=pt(a,c),c+=4,d=pt(a,c),c+=4;yt(a.subarray(c,c+1))!=="\0";)t+=yt(a.subarray(c,c+1)),c+=1;for(t+=yt(a.subarray(c,c+1)),c+=1;yt(a.subarray(c,c+1))!=="\0";)n+=yt(a.subarray(c,c+1)),c+=1;n+=yt(a.subarray(c,c+1)),c+=1}const m=a.subarray(c,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:l,id:d,payload:m}}function w(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function R(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),w([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function ft(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const r=new DataView(a,n),i=ee(r);e.push(i),n+=i.size}}return e}function ee(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const i=a.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=a.buffer,l=Q.hexDump(new Uint8Array(s,t+12,16)),d=a.getUint32(28);let c=null,m=null;if(i===0){if(e-32<d||d<22)return{offset:t,size:e};m=new Uint8Array(s,t+32,d)}else if(i===1){if(!d||n<t+32+d*16+16)return{offset:t,size:e};c=[];for(let y=0;y<d;y++)c.push(new Uint8Array(s,t+32+y*16,16))}return{version:i,systemId:l,kids:c,data:m,offset:t,size:e}}const Ie=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),pn={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 ze(a,e){const t=pn[e];return!!t&&!!t[a.slice(0,4)]}function Ge(a,e,t=!0){return!a.split(",").some(n=>!Je(n,e,t))}function Je(a,e,t=!0){var n;const r=ge(t);return(n=r==null?void 0:r.isTypeSupported(ae(a,e)))!=null?n:!1}function ae(a,e){return`${e}/mp4;codecs=${a}`}function Ee(a){if(a){const e=a.substring(0,4);return pn.video[e]}return 2}function De(a){const e=Ie();return a.split(",").reduce((t,n)=>{const i=e&&$t(n)?9:pn.video[n];return i?(i*2+t)/(t?3:2):(pn.audio[n]+t)/(t?2:1)},0)}const He={};function q(a,e=!0){if(He[a])return He[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(Je(t[r],"audio",e))return He[a]=t[r],t[r];if(t[r]==="mp3"&&(n=ge(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Ut=/flac|opus|mp4a\.40\.34/i;function Pe(a,e=!0){return a.replace(Ut,t=>q(t.toLowerCase(),e))}function Qt(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)ze(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function an(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function kt(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}function It(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return a}function Et(a){const e=ge(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function xt(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const rn={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function _e(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}const Ae={};function ct(a,e,t,n,r,i){const s=a.audioCodec?a.audioGroups:null,l=i==null?void 0:i.audioCodec,d=i==null?void 0:i.channels,c=d?parseInt(d):l?1/0:2;let m=null;if(s!=null&&s.length)try{s.length===1&&s[0]?m=e.groups[s[0]].channels:m=s.reduce((y,C)=>{if(C){const L=e.groups[C];if(!L)throw new Error(`Audio track group ${C} not found`);Object.keys(L.channels).forEach(N=>{y[N]=(y[N]||0)+L.channels[N]})}return y},{2:0})}catch(y){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!m&&S(c)&&Object.keys(m).some(y=>parseInt(y)>c)}function We(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n&&!r||!t)return Promise.resolve(rn);const i=[];if(n){const s={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},l=a.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const d=n.split(","),c=navigator.userAgent;if(d.some(m=>$t(m))&&Ie())return Promise.resolve(_e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${c})`),i));i.push.apply(i,d.map(m=>({type:"media-source",video:A(A({},s),{},{contentType:ae(It(m),"video")})})))}return r&&a.audioGroups&&a.audioGroups.forEach(s=>{var l;s&&((l=e.groups[s])==null||l.tracks.forEach(d=>{if(d.groupId===s){const c=d.channels||"",m=parseFloat(c);S(m)&&m>2&&i.push.apply(i,r.split(",").map(y=>({type:"media-source",audio:{contentType:ae(y,"audio"),channels:""+m}})))}}))}),Promise.all(i.map(s=>{const l=at(s);return Ae[l]||(Ae[l]=t.decodingInfo(s))})).then(s=>({supported:!s.some(l=>!l.supported),configurations:i,decodingInfoResults:s})).catch(s=>({supported:!1,configurations:i,decodingInfoResults:[],error:s}))}function at(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=xt(n.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}const bt=["NONE","TYPE-0","TYPE-1",null];function Ct(a){return bt.indexOf(a)>-1}const Xt=["SDR","PQ","HLG"];function cn(a){return!!a&&Xt.indexOf(a)>-1}var Wt={No:"",Yes:"YES",v2:"v2"};function xn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?Wt.v2:Wt.Yes:Wt.No}class on{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Pn{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return Gt(this._audioGroups,e)}hasSubtitleGroup(e){return Gt(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function Gt(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Vt(){if(typeof matchMedia=="function"){const a=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(a.media!==e.media)return a.matches===!0}return!1}function Sn(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||Xt.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&Vt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const En=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},gn=(a,e)=>JSON.stringify(a,En(e));function Yn(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,l=n==null?void 0:n.audioCodec,d=r==null?void 0:r.videoCodec,c=s&&parseInt(s)===2;let m=!1,y=!1,C=1/0,L=1/0,N=1/0,de=1/0,oe=0,Be=[];const{preferHDR:Ve,allowedVideoRanges:Ue}=Sn(e,r);for(let Rt=i.length;Rt--;){const Ft=a[i[Rt]];m||(m=Ft.channels[2]>0),C=Math.min(C,Ft.minHeight),L=Math.min(L,Ft.minFramerate),N=Math.min(N,Ft.minBitrate),Ue.filter(ln=>Ft.videoRanges[ln]>0).length>0&&(y=!0)}C=S(C)?C:0,L=S(L)?L:0;const ut=Math.max(1080,C),dt=Math.max(30,L);N=S(N)?N:t,t=Math.max(N,t),y||(e=void 0);const Mt=i.length>1;return{codecSet:i.reduce((Rt,Ft)=>{const _t=a[Ft];if(Ft===Rt)return Rt;if(Be=y?Ue.filter(ln=>_t.videoRanges[ln]>0):[],Mt){if(_t.minBitrate>t)return An(Ft,`min bitrate of ${_t.minBitrate} > current estimate of ${t}`),Rt;if(!_t.hasDefaultAudio)return An(Ft,"no renditions with default or auto-select sound found"),Rt;if(l&&Ft.indexOf(l.substring(0,4))%5!==0)return An(Ft,`audio codec preference "${l}" not found`),Rt;if(s&&!c){if(!_t.channels[s])return An(Ft,`no renditions with ${s} channel sound found (channels options: ${Object.keys(_t.channels)})`),Rt}else if((!l||c)&&m&&_t.channels[2]===0)return An(Ft,"no renditions with stereo sound found"),Rt;if(_t.minHeight>ut)return An(Ft,`min resolution of ${_t.minHeight} > maximum of ${ut}`),Rt;if(_t.minFramerate>dt)return An(Ft,`min framerate of ${_t.minFramerate} > maximum of ${dt}`),Rt;if(!Be.some(ln=>_t.videoRanges[ln]>0))return An(Ft,`no variants with VIDEO-RANGE of ${gn(Be)} found`),Rt;if(d&&Ft.indexOf(d.substring(0,4))%5!==0)return An(Ft,`video codec preference "${d}" not found`),Rt;if(_t.maxScore<oe)return An(Ft,`max score of ${_t.maxScore} < selected max of ${oe}`),Rt}return Rt&&(De(Ft)>=De(Rt)||_t.fragmentError>a[Rt].fragmentError)?Rt:(de=_t.minIndex,oe=_t.maxScore,Ft)},void 0),videoRanges:Be,preferHDR:Ve,minFramerate:L,minBitrate:N,minIndex:de}}function An(a,e){J.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function fn(a){return a.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function tt(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const l=i.audioGroups;let d=r[i.codecSet];d||(r[i.codecSet]=d={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),d.minBitrate=Math.min(d.minBitrate,i.bitrate);const c=Math.min(i.height,i.width);return d.minHeight=Math.min(d.minHeight,c),d.minFramerate=Math.min(d.minFramerate,i.frameRate),d.minIndex=Math.min(d.minIndex,s),d.maxScore=Math.max(d.maxScore,i.score),d.fragmentError+=i.fragmentError,d.videoRanges[i.videoRange]=(d.videoRanges[i.videoRange]||0)+1,l&&l.forEach(m=>{if(!m)return;const y=e.groups[m];y&&(d.hasDefaultAudio=d.hasDefaultAudio||e.hasDefaultAudio?y.hasDefault:y.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(y.channels).forEach(C=>{d.channels[C]=(d.channels[C]||0)+y.channels[C]}))}),r},{})}function Qe(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function gt(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Lt(a,r,t))return n}return-1}function Lt(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:l}=a,d=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||ot(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(d===void 0||e.forced===d)&&(!("characteristics"in a)||zt(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function ot(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function zt(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function At(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function jt(a,e,t,n,r){const i=e[n],l=e.reduce((C,L,N)=>{const de=L.uri;return(C[de]||(C[de]=[])).push(N),C},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const d=i.videoRange,c=i.frameRate,m=i.codecSet.substring(0,4),y=en(e,n,C=>{if(C.videoRange!==d||C.frameRate!==c||C.codecSet.substring(0,4)!==m)return!1;const L=C.audioGroups,N=t.filter(de=>!L||L.indexOf(de.groupId)!==-1);return gt(a,N,r)>-1});return y>-1?y:en(e,n,C=>{const L=C.audioGroups,N=t.filter(de=>!L||L.indexOf(de.groupId)!==-1);return gt(a,N,r)>-1})}function en(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function qt(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class wn extends ie{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:i,hls:s}=this,{autoLevelEnabled:l,media:d}=s;if(!r||!d)return;const c=performance.now(),m=i?i.stats:r.stats,y=i?i.duration:r.duration,C=c-m.loading.start,L=s.minAutoLevel,N=r.level,de=this._nextAutoLevel;if(m.aborted||m.loaded&&m.loaded===m.total||N<=L){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const oe=de>-1&&de!==N,Be=!!t||oe;if(!Be&&(d.paused||!d.playbackRate||!d.readyState))return;const Ve=s.mainForwardBufferInfo;if(!Be&&Ve===null)return;const Ue=this.bwEstimator.getEstimateTTFB(),ut=Math.abs(d.playbackRate);if(C<=Math.max(Ue,1e3*(y/(ut*2))))return;const dt=Ve?Ve.len/ut:0,Mt=m.loading.first?m.loading.first-m.loading.start:-1,ht=m.loaded&&Mt>-1,Rt=this.getBwEstimate(),Ft=s.levels,_t=Ft[N],ln=Math.max(m.loaded,Math.round(y*(r.bitrate||_t.averageBitrate)/8));let yn=ht?C-Mt:C;yn<1&&ht&&(yn=Math.min(C,m.loaded*8/Rt));const mr=ht?m.loaded*1e3/yn:0,Gn=Ue/1e3,Fn=mr?(ln-m.loaded)/mr:ln*8/Rt+Gn;if(Fn<=dt)return;const Dn=mr?mr*8:Rt,$n=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,Mn=this.hls.config.abrBandWidthUpFactor;let un=Number.POSITIVE_INFINITY,dn;for(dn=N-1;dn>L;dn--){const Sr=Ft[dn].maxBitrate,Mr=!Ft[dn].details||$n;if(un=this.getTimeToLoadFrag(Gn,Dn,y*Sr,Mr),un<Math.min(dt,y+Gn))break}if(un>=Fn||un>y*10)return;ht?this.bwEstimator.sample(C-Math.min(Ue,Mt),m.loaded):this.bwEstimator.sampleTTFB(C);const tr=Ft[dn].maxBitrate;this.getBwEstimate()*Mn>tr&&this.resetEstimator(tr);const Zn=this.findBestLevel(tr,L,dn,0,dt,1,1);Zn>-1&&(dn=Zn),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${N} is loading too slowly;
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
Time to underbuffer: ${dt.toFixed(3)} s
|
|
Estimated load time for current fragment: ${Fn.toFixed(3)} s
|
|
Estimated load time for down switch fragment: ${un.toFixed(3)} s
|
|
TTFB estimate: ${Mt|0} ms
|
|
Current BW estimate: ${S(Rt)?Rt|0:"Unknown"} bps
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
Switching to level ${dn} @ ${tr|0} bps`),s.nextLoadLevel=s.nextAutoLevel=dn,this.clearTimer();const fr=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===dn&&dn>0){const Sr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${dn>0?"and switching down":""}
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
Time to underbuffer: ${Sr.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,dn>L){let Mr=this.findBestLevel(this.hls.levels[L].bitrate,L,dn,0,Sr,1,1);Mr===-1&&(Mr=L),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Mr,this.resetEstimator(this.hls.levels[Mr].bitrate)}}};oe||Fn>un*2?fr():this.timer=self.setInterval(fr,un*1e3),s.trigger(p.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:m})},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 ue(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.FRAG_LOADING,this.onFragLoading,this),e.on(p.FRAG_LOADED,this.onFragLoaded,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this),e.on(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.FRAG_LOADING,this.onFragLoading,this),e.off(p.FRAG_LOADED,this.onFragLoaded,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this),e.off(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(p.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case $.BUFFER_ADD_CODEC_ERROR:case $.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case $.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),l=i?i.stats:n.stats,d=s-l.loading.start,c=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&c>-1){const y=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(d-Math.min(y,c),l.loaded)}else this.bwEstimator.sampleTTFB(d)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;S(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===re.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],l=(s.loaded?s.loaded.bytes:0)+r.loaded,d=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:l,duration:d},s.realBitrate=Math.round(8*l/d)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(p.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==re.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,l=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,l=t?t.duration:e?e.duration:0,d=this.getBwEstimate(),c=this.getStarvationDelay();let m=i.abrBandWidthFactor,y=i.abrBandWidthUpFactor;if(c){const oe=this.findBestLevel(d,s,r,c,0,m,y);if(oe>=0)return this.rebufferNotice=-1,oe}let C=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!c){const oe=this.bitrateTestDelay;oe&&(C=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-oe,this.info(`bitrate test took ${Math.round(1e3*oe)}ms, set first fragment max fetchDuration to ${Math.round(1e3*C)} ms`),m=y=1)}const L=this.findBestLevel(d,s,r,c,C,m,y);if(this.rebufferNotice!==L&&(this.rebufferNotice=L,this.info(`${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${L}`)),L>-1)return L;const N=n.levels[s],de=n.loadLevelObj;return de&&(N==null?void 0:N.bitrate)<de.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,l){var d;const c=r+i,m=this.lastLoadedFragLevel,y=m===-1?this.hls.firstLevel:m,{fragCurrent:C,partCurrent:L}=this,{levels:N,allAudioTracks:de,loadLevel:oe,config:Be}=this.hls;if(N.length===1)return 0;const Ve=N[y],Ue=!!((d=this.hls.latestLevelDetails)!=null&&d.live),ut=oe===-1||m===-1;let dt,Mt="SDR",ht=(Ve==null?void 0:Ve.frameRate)||0;const{audioPreference:Rt,videoPreference:Ft}=Be,_t=this.audioTracksByGroup||(this.audioTracksByGroup=fn(de));let ln=-1;if(ut){if(this.firstSelection!==-1)return this.firstSelection;const Dn=this.codecTiers||(this.codecTiers=tt(N,_t,t,n)),$n=Yn(Dn,Mt,e,Rt,Ft),{codecSet:Mn,videoRanges:un,minFramerate:dn,minBitrate:tr,minIndex:Zn,preferHDR:fr}=$n;ln=Zn,dt=Mn,Mt=fr?un[un.length-1]:un[0],ht=dn,e=Math.max(e,tr),this.log(`picked start tier ${gn($n)}`)}else dt=Ve==null?void 0:Ve.codecSet,Mt=Ve==null?void 0:Ve.videoRange;const yn=L?L.duration:C?C.duration:0,mr=this.bwEstimator.getEstimateTTFB()/1e3,Gn=[];for(let Dn=n;Dn>=t;Dn--){var Fn;const $n=N[Dn],Mn=Dn>y;if(!$n)continue;if(Be.useMediaCapabilities&&!$n.supportedResult&&!$n.supportedPromise){const Mr=navigator.mediaCapabilities;typeof(Mr==null?void 0:Mr.decodingInfo)=="function"&&(ct($n,_t,Mt,ht,e,Rt)||$t($n.videoCodec))?($n.supportedPromise=We($n,_t,Mr),$n.supportedPromise.then(jr=>{if(!this.hls)return;$n.supportedResult=jr;const Ti=this.hls.levels,Li=Ti.indexOf($n);jr.error?this.warn(`MediaCapabilities decodingInfo error: "${jr.error}" for level ${Li} ${gn(jr)}`):jr.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Li} ${gn(jr)}`),Li>-1&&Ti.length>1&&(this.log(`Removing unsupported level ${Li}`),this.hls.removeLevel(Li),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):$n.supportedResult=rn}if((dt&&$n.codecSet!==dt||Mt&&$n.videoRange!==Mt||Mn&&ht>$n.frameRate||!Mn&&ht>0&&ht<$n.frameRate||$n.supportedResult&&!((Fn=$n.supportedResult.decodingInfoResults)!=null&&Fn[0].smooth))&&(!ut||Dn!==ln)){Gn.push(Dn);continue}const un=$n.details,dn=(L?un==null?void 0:un.partTarget:un==null?void 0:un.averagetargetduration)||yn;let tr;Mn?tr=l*e:tr=s*e;const Zn=yn&&r>=yn*2&&i===0?$n.averageBitrate:$n.maxBitrate,fr=this.getTimeToLoadFrag(mr,tr,Zn*dn,un===void 0);if(tr>=Zn&&(Dn===m||$n.loadError===0&&$n.fragmentError===0)&&(fr<=mr||!S(fr)||Ue&&!this.bitrateTestDelay||fr<c)){const Mr=this.forcedAutoLevel;return Dn!==oe&&(Mr===-1||Mr!==oe)&&(Gn.length&&this.trace(`Skipped level(s) ${Gn.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${N[Gn[0]].codecs}" ${N[Gn[0]].videoRange}; not compatible with "${dt}" ${Mt}`),this.info(`switch candidate:${y}->${Dn} adjustedbw(${Math.round(tr)})-bitrate=${Math.round(tr-Zn)} ttfb:${mr.toFixed(1)} avgDuration:${dn.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${fr.toFixed(1)} firstSelection:${ut} codecSet:${$n.codecSet} videoRange:${$n.videoRange} hls.loadLevel:${oe}`)),ut&&(this.firstSelection=Dn),Dn}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const Cn={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function Kn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!S(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if(ir(e,t,s))return s}return null}function bn(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const l=a.endDTS-t;l>0&&l<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&nr(t,n,i)===0||vn(i,a,Math.min(r,n))))return i;const s=Cn.search(e,nr.bind(null,t,n));return s&&(s!==a||!i)?s:i}function vn(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function nr(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function ir(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function Rn(a,e){return Cn.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}function On(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){const n=t.start,r=t.end;let i=a.fragments;if(!t.relurl){const{fragmentHint:s}=a;s&&(i=i.concat(s))}return Cn.search(i,s=>s.cc<e||s.end<=n?1:s.cc>e||s.start>=r?-1:0)}return null}function Nn(a){switch(a.details){case $.FRAG_LOAD_TIMEOUT:case $.KEY_LOAD_TIMEOUT:case $.LEVEL_LOAD_TIMEOUT:case $.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Un(a,e){const t=Nn(e);return a.default[`${t?"timeout":"error"}Retry`]}function Bn(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Wn(a){return A(A({},a),{errorRetry:null,timeoutRetry:null})}function ur(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(sr(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function sr(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var Qn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},lt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Tn extends ie{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(p.ERROR,this.onError,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(p.ERROR,this.onError,this),e.off(p.ERROR,this.onErrorOut,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===re.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case $.FRAG_LOAD_ERROR:case $.FRAG_LOAD_TIMEOUT:case $.KEY_LOAD_ERROR:case $.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case $.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=Hn();return}case $.FRAG_GAP:case $.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Qn.SendAlternateToPenaltyBox;return}case $.LEVEL_EMPTY_ERROR:case $.LEVEL_PARSING_ERROR:{var s,l;const c=t.parent===re.MAIN?t.level:r.loadLevel;t.details===$.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(l=s.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case $.LEVEL_LOAD_ERROR:case $.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case $.AUDIO_TRACK_LOAD_ERROR:case $.AUDIO_TRACK_LOAD_TIMEOUT:case $.SUBTITLE_LOAD_ERROR:case $.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=r.loadLevelObj;if(c&&(i.type===he.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===he.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Qn.SendAlternateToPenaltyBox,t.errorAction.flags=lt.MoveAllAlternatesMatchingHost;return}}return;case $.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=r.loadLevelObj,m=c==null?void 0:c.attrs["HDCP-LEVEL"];m?t.errorAction={action:Qn.SendAlternateToPenaltyBox,flags:lt.MoveAllAlternatesMatchingHDCP,hdcpLevel:m}:this.keySystemError(t)}return;case $.BUFFER_ADD_CODEC_ERROR:case $.REMUX_ALLOC_ERROR:case $.BUFFER_APPEND_ERROR:if(!t.errorAction){var d;t.errorAction=this.getLevelSwitchAction(t,(d=t.level)!=null?d:r.loadLevel)}return;case $.INTERNAL_EXCEPTION:case $.BUFFER_APPENDING_ERROR:case $.BUFFER_FULL_ERROR:case $.LEVEL_SWITCH_ERROR:case $.BUFFER_STALLED_ERROR:case $.BUFFER_SEEK_OVER_HOLE:case $.BUFFER_NUDGE_ON_STALL:t.errorAction=Hn();return}t.type===ve.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Un(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(ur(r,i,Nn(e),e.response))return{action:Qn.RetryRequest,flags:lt.None,retryConfig:r,retryCount:i};const l=this.getLevelSwitchAction(e,t);return r&&(l.retryConfig=r,l.retryCount=i),l}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,l=Un(e.details.startsWith("key")?s:i,e),d=t.levels.reduce((m,y)=>m+y.fragmentError,0);if(r&&(e.details!==$.FRAG_GAP&&r.fragmentError++,ur(l,d,Nn(e),e.response)))return{action:Qn.RetryRequest,flags:lt.None,retryConfig:l,retryCount:d};const c=this.getLevelSwitchAction(e,n);return l&&(c.retryConfig=l,c.retryCount=d),c}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const c=e.details;r.loadError++,c===$.BUFFER_APPEND_ERROR&&r.fragmentError++;let m=-1;const{levels:y,loadLevel:C,minAutoLevel:L,maxAutoLevel:N}=n;n.autoLevelEnabled||(n.loadLevel=-1);const de=(i=e.frag)==null?void 0:i.type,Be=(de===re.AUDIO&&c===$.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===$.BUFFER_ADD_CODEC_ERROR||c===$.BUFFER_APPEND_ERROR))&&y.some(({audioCodec:Mt})=>r.audioCodec!==Mt),Ue=e.sourceBufferName==="video"&&(c===$.BUFFER_ADD_CODEC_ERROR||c===$.BUFFER_APPEND_ERROR)&&y.some(({codecSet:Mt,audioCodec:ht})=>r.codecSet!==Mt&&r.audioCodec===ht),{type:ut,groupId:dt}=(s=e.context)!=null?s:{};for(let Mt=y.length;Mt--;){const ht=(Mt+C)%y.length;if(ht!==C&&ht>=L&&ht<=N&&y[ht].loadError===0){var l,d;const Rt=y[ht];if(c===$.FRAG_GAP&&de===re.MAIN&&e.frag){const Ft=y[ht].details;if(Ft){const _t=bn(e.frag,Ft.fragments,e.frag.start);if(_t!=null&&_t.gap)continue}}else{if(ut===he.AUDIO_TRACK&&Rt.hasAudioGroup(dt)||ut===he.SUBTITLE_TRACK&&Rt.hasSubtitleGroup(dt))continue;if(de===re.AUDIO&&(l=r.audioGroups)!=null&&l.some(Ft=>Rt.hasAudioGroup(Ft))||de===re.SUBTITLE&&(d=r.subtitleGroups)!=null&&d.some(Ft=>Rt.hasSubtitleGroup(Ft))||Be&&r.audioCodec===Rt.audioCodec||!Be&&r.audioCodec!==Rt.audioCodec||Ue&&r.codecSet===Rt.codecSet)continue}m=ht;break}}if(m>-1&&n.loadLevel!==m)return e.levelRetry=!0,this.playlistError=0,{action:Qn.SendAlternateToPenaltyBox,flags:lt.None,nextAutoLevel:m}}return{action:Qn.SendAlternateToPenaltyBox,flags:lt.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Qn.DoNothing:break;case Qn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==$.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case Qn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case lt.None:this.switchLevel(e,s);break;case lt.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=bt[bt.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===$.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=xt(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function Hn(a){const e={action:Qn.DoNothing,flags:lt.None};return a&&(e.resolved=!0),e}var jn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class $r{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.BUFFER_APPENDED,this.onBufferAppended,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this),e.on(p.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.BUFFER_APPENDED,this.onBufferAppended,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this),e.off(p.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&(!n||l.buffered)){const d=l.body;if(d.start<=e&&e<=d.end)return d}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const d=this.fragments[l];if(!d||s>=d.body.sn)return;if(!d.buffered&&(!d.loaded||i)){d.body.type===n&&this.removeFragment(d.body);return}const c=d.range[e];if(c){if(c.time.length===0){this.removeFragment(d.body);return}c.time.some(m=>{const y=!this.isTimeBuffered(m.startPTS,m.endPTS,t);return y&&this.removeFragment(d.body),y})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=gr(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(l=>{const d=n.elementaryStreams[l];if(!d)return;const c=t[l],m=s||d.partial===!0;i.range[l]=this.getBufferedTimes(n,e.part,m,c)}),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),Vn(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=gr(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,l=e.end,d=e.minEndPTS||l,c=e.maxStartPTS||s;for(let m=0;m<r.length;m++){const y=r.start(m)-this.bufferPadding,C=r.end(m)+this.bufferPadding;if(c>=y&&d<=C){i.time.push({startPTS:Math.max(s,r.start(m)),endPTS:Math.min(l,r.end(m))});break}else if(s<C&&l>y){const L=Math.max(s,r.start(m)),N=Math.min(l,r.end(m));N>L&&(i.partial=!0,i.time.push({startPTS:L,endPTS:N}))}else if(l<=y)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:l,fragments:d}=this;return Object.keys(d).forEach(c=>{const m=d[c];m&&Vn(m)&&(r=m.body.start-l,i=m.body.end+l,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=m.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||Vn(t))}getState(e){const t=gr(e),n=this.fragments[t];return n?n.buffered?Vn(n)?jn.PARTIAL:jn.OK:jn.APPENDING:jn.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=gr(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const l=n.type;if(r){let c=this.activePartLists[l];c||(this.activePartLists[l]=c=[]),c.push(r)}this.timeRanges=i;const d=i[s];this.detectEvictedFragments(s,d,l,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=gr(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const d=l.body;d.type!==n||r&&!d.gap||d.start<t&&d.end>e&&(l.buffered||i)&&this.removeFragment(d)})}removeFragment(e){const t=gr(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=n.filter(i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function Vn(a){var e,t,n;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((n=a.range.audiovideo)==null?void 0:n.partial))}function gr(a){return`${a.type}_${a.level}_${a.sn}`}var kn={cbc:0,ctr:1};class Ir{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 kn.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case kn.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Br(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class pr{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],l=n[3],d=this.invSubMix,c=d[0],m=d[1],y=d[2],C=d[3],L=new Uint32Array(256);let N=0,de=0,oe=0;for(oe=0;oe<256;oe++)oe<128?L[oe]=oe<<1:L[oe]=oe<<1^283;for(oe=0;oe<256;oe++){let Be=de^de<<1^de<<2^de<<3^de<<4;Be=Be>>>8^Be&255^99,e[N]=Be,t[Be]=N;const Ve=L[N],Ue=L[Ve],ut=L[Ue];let dt=L[Be]*257^Be*16843008;r[N]=dt<<24|dt>>>8,i[N]=dt<<16|dt>>>16,s[N]=dt<<8|dt>>>24,l[N]=dt,dt=ut*16843009^Ue*65537^Ve*257^N*16843008,c[Be]=dt<<24|dt>>>8,m[Be]=dt<<16|dt>>>16,y[Be]=dt<<8|dt>>>24,C[Be]=dt,N?(N=Ve^L[L[L[ut^Ve]]],de^=L[L[de]]):N=de=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let l,d;const c=this.keySchedule=new Uint32Array(s),m=this.invKeySchedule=new Uint32Array(s),y=this.sBox,C=this.rcon,L=this.invSubMix,N=L[0],de=L[1],oe=L[2],Be=L[3];let Ve,Ue;for(l=0;l<s;l++){if(l<i){Ve=c[l]=t[l];continue}Ue=Ve,l%i===0?(Ue=Ue<<8|Ue>>>24,Ue=y[Ue>>>24]<<24|y[Ue>>>16&255]<<16|y[Ue>>>8&255]<<8|y[Ue&255],Ue^=C[l/i|0]<<24):i>6&&l%i===4&&(Ue=y[Ue>>>24]<<24|y[Ue>>>16&255]<<16|y[Ue>>>8&255]<<8|y[Ue&255]),c[l]=Ve=(c[l-i]^Ue)>>>0}for(d=0;d<s;d++)l=s-d,d&3?Ue=c[l]:Ue=c[l-4],d<4||l<=4?m[d]=Ue:m[d]=N[y[Ue>>>24]]^de[y[Ue>>>16&255]]^oe[y[Ue>>>8&255]]^Be[y[Ue&255]],m[d]=m[d]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,d=l[0],c=l[1],m=l[2],y=l[3],C=this.uint8ArrayToUint32Array_(n);let L=C[0],N=C[1],de=C[2],oe=C[3];const Be=new Int32Array(e),Ve=new Int32Array(Be.length);let Ue,ut,dt,Mt,ht,Rt,Ft,_t,ln,yn,mr,Gn,Fn,Dn;const $n=this.networkToHostOrderSwap;for(;t<Be.length;){for(ln=$n(Be[t]),yn=$n(Be[t+1]),mr=$n(Be[t+2]),Gn=$n(Be[t+3]),ht=ln^i[0],Rt=Gn^i[1],Ft=mr^i[2],_t=yn^i[3],Fn=4,Dn=1;Dn<r;Dn++)Ue=d[ht>>>24]^c[Rt>>16&255]^m[Ft>>8&255]^y[_t&255]^i[Fn],ut=d[Rt>>>24]^c[Ft>>16&255]^m[_t>>8&255]^y[ht&255]^i[Fn+1],dt=d[Ft>>>24]^c[_t>>16&255]^m[ht>>8&255]^y[Rt&255]^i[Fn+2],Mt=d[_t>>>24]^c[ht>>16&255]^m[Rt>>8&255]^y[Ft&255]^i[Fn+3],ht=Ue,Rt=ut,Ft=dt,_t=Mt,Fn=Fn+4;Ue=s[ht>>>24]<<24^s[Rt>>16&255]<<16^s[Ft>>8&255]<<8^s[_t&255]^i[Fn],ut=s[Rt>>>24]<<24^s[Ft>>16&255]<<16^s[_t>>8&255]<<8^s[ht&255]^i[Fn+1],dt=s[Ft>>>24]<<24^s[_t>>16&255]<<16^s[ht>>8&255]<<8^s[Rt&255]^i[Fn+2],Mt=s[_t>>>24]<<24^s[ht>>16&255]<<16^s[Rt>>8&255]<<8^s[Ft&255]^i[Fn+3],Ve[t]=$n(Ue^L),Ve[t+1]=$n(Mt^N),Ve[t+2]=$n(dt^de),Ve[t+3]=$n(ut^oe),L=ln,N=yn,de=mr,oe=Gn,t=t+4}return Ve.buffer}}class ui{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=si(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function si(a){switch(a){case kn.cbc:return"AES-CBC";case kn.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const Yr=16;class Xr{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Br(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,s)=>{const l=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(l,t,n,r);const d=this.flush();d?i(d.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:l}=this;if(r!==kn.cbc||t.byteLength!==16)return J.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=St(l,e),this.remainderData=null);const d=this.getValidChunk(e);if(!d.length)return null;i&&(n=i);let c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new pr),c.expandKey(t);const m=s;return this.currentResult=c.decrypt(d.buffer,0,n),this.currentIV=d.slice(-16).buffer,m||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 ui(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Ir(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(J.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Yr;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(J.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const _n=Math.pow(2,17);class cr{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 kr({type:ve.NETWORK_ERROR,details:$.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,d)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(N=>N[0]==="GAP")){d(vr(e));return}else e.gap=!1;const c=this.loader=i?new i(r):new s(r),m=dr(e);e.loader=c;const y=Wn(r.fragLoadPolicy.default),C={loadPolicy:y,timeout:y.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:_n};e.stats=c.stats;const L={onSuccess:(N,de,oe,Be)=>{this.resetLoader(e,c);let Ve=N.data;oe.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ve.slice(0,16)),Ve=Ve.slice(16)),l({frag:e,part:null,payload:Ve,networkDetails:Be})},onError:(N,de,oe,Be)=>{this.resetLoader(e,c),d(new kr({type:ve.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:A({url:n,data:void 0},N),error:new Error(`HTTP Error ${N.code} ${N.text}`),networkDetails:oe,stats:Be}))},onAbort:(N,de,oe)=>{this.resetLoader(e,c),d(new kr({type:ve.NETWORK_ERROR,details:$.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:oe,stats:N}))},onTimeout:(N,de,oe)=>{this.resetLoader(e,c),d(new kr({type:ve.NETWORK_ERROR,details:$.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${C.timeout}ms`),networkDetails:oe,stats:N}))}};t&&(L.onProgress=(N,de,oe,Be)=>t({frag:e,part:null,payload:oe,networkDetails:Be})),c.load(m,C,L)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((l,d)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){d(vr(e,t));return}const c=this.loader=i?new i(r):new s(r),m=dr(e,t);e.loader=c;const y=Wn(r.fragLoadPolicy.default),C={loadPolicy:y,timeout:y.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:_n};t.stats=c.stats,c.load(m,C,{onSuccess:(L,N,de,oe)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const Be={frag:e,part:t,payload:L.data,networkDetails:oe};n(Be),l(Be)},onError:(L,N,de,oe)=>{this.resetLoader(e,c),d(new kr({type:ve.NETWORK_ERROR,details:$.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:A({url:m.url,data:void 0},L),error:new Error(`HTTP Error ${L.code} ${L.text}`),networkDetails:de,stats:oe}))},onAbort:(L,N,de)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),d(new kr({type:ve.NETWORK_ERROR,details:$.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:de,stats:L}))},onTimeout:(L,N,de)=>{this.resetLoader(e,c),d(new kr({type:ve.NETWORK_ERROR,details:$.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${C.timeout}ms`),networkDetails:de,stats:L}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const d=Math.round(e.duration/t.duration),c=Math.min(Math.round(n.loaded/i),d),y=(d-c)*Math.round(n.loaded/c);n.total=n.loaded+y}else n.total=Math.max(n.loaded,n.total);const s=n.loading,l=r.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function dr(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(S(r)&&S(i)){var s;let l=r,d=i;if(a.sn==="initSegment"&&Qr((s=a.decryptdata)==null?void 0:s.method)){const c=i-r;c%16&&(d=i+(16-c%16)),r!==0&&(n.resetIV=!0,l=r-16)}n.rangeStart=l,n.rangeEnd=d}return n}function vr(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ve.MEDIA_ERROR,details:$.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new kr(n)}function Qr(a){return a==="AES-128"||a==="AES-256"}class kr extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class xr extends ie{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Hr{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=hr(),this.buffering={audio:hr(),video:hr(),audiovideo:hr()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function hr(){return{start:0,executeStart:0,executeEnd:0,end:0}}const ai={length:0,start:()=>0,end:()=>0};class In{static isBuffered(e,t){if(e){const n=In.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=In.getBuffered(e);return In.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=In.bufferedRanges(e);if(r.length)return In.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((m,y)=>m.start-y.start||y.end-m.end);let r=-1,i=[];if(n)for(let m=0;m<e.length;m++){t>=e[m].start&&t<=e[m].end&&(r=m);const y=i.length;if(y){const C=i[y-1].end;e[m].start-C<n?e[m].end>C&&(i[y-1].end=e[m].end):i.push(e[m])}else i.push(e[m])}else i=e;let s=0,l,d=t,c=t;for(let m=0;m<i.length;m++){const y=i[m].start,C=i[m].end;if(r===-1&&t>=y&&t<=C&&(r=m),t+n>=y&&t<C)d=y,c=C,s=c-t;else if(t+n<y){l=y;break}}return{len:s,start:d||0,end:c||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||ai}catch(t){return J.log("failed to get media.buffered",t),ai}}}const li=/\{\$([a-zA-Z0-9-_]+)\}/g;function oi(a){return li.test(a)}function ti(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(li,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function rr(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function di(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const _i=/^(\d+)x(\d+)$/,hi=/(.+?)=(".*?"|.*?)(?:,|$)/g;class zn{constructor(e,t){typeof e=="string"&&(e=zn.parseAttrList(e,t)),v(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=_i.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},i='"';for(hi.lastIndex=0;(n=hi.exec(e))!==null;){const s=n[1].trim();let l=n[2];const d=l.indexOf(i)===0&&l.lastIndexOf(i)===l.length-1;let c=!1;if(d)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":c=!0}if(t&&(d||c))l=ti(t,l);else if(!c&&!d)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":J.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const fi="com.apple.hls.interstitial";function yi(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function tn(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Vr{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){J.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=v(new zn({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);S(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(J.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(S(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===fi}get isValid(){return!!this.id&&!this._badValueForSameId&&S(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const pi=10;class ci{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?S(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||pi}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function wr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Ar(a){switch(a){case"AES-128":case"AES-256":return kn.cbc;case"AES-256-CTR":return kn.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function ar(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function Tr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Zr(a){const e=Tr(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function ni(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function Gr(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=ar(s)):t=Zr(s)}}return t}const Nr=typeof self!="undefined"?self:void 0;var or={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Jn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function qn(a){switch(a){case Jn.FAIRPLAY:return or.FAIRPLAY;case Jn.PLAYREADY:return or.PLAYREADY;case Jn.WIDEVINE:return or.WIDEVINE;case Jn.CLEARKEY:return or.CLEARKEY}}var Lr={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Fr(a){if(a===Lr.WIDEVINE)return or.WIDEVINE;if(a===Lr.PLAYREADY)return or.PLAYREADY;if(a===Lr.CENC||a===Lr.CLEARKEY)return or.CLEARKEY}function ri(a){switch(a){case or.FAIRPLAY:return Jn.FAIRPLAY;case or.PLAYREADY:return Jn.PLAYREADY;case or.WIDEVINE:return Jn.WIDEVINE;case or.CLEARKEY:return Jn.CLEARKEY}}function mn(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[or.FAIRPLAY,or.WIDEVINE,or.PLAYREADY,or.CLEARKEY].filter(r=>!!e[r]):[];return!n[or.WIDEVINE]&&t&&n.push(or.WIDEVINE),n}const Ln=function(a){return Nr!=null&&(a=Nr.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Pr(a,e,t,n){let r;switch(a){case or.FAIRPLAY:r=["cenc","sinf"];break;case or.WIDEVINE:case or.PLAYREADY:r=["cenc"];break;case or.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return Ur(r,e,t,n)}function Ur(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function _r(a){var e;return a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license"))}function Ci(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const d=ar(l).subarray(0,16);return ni(d),d}}return null}let ki={};class Di{static clearKeyUriToKeyIdMap(){ki={}}constructor(e,t,n,r=[1],i=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!wr(e)}isSupported(){if(this.method){if(wr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Jn.FAIRPLAY:case Jn.WIDEVINE:case Jn.PLAYREADY:case Jn.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(wr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(J.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=Ri(e);return new Di(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=Gr(this.uri);if(t)switch(this.keyFormat){case Jn.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Jn.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=R(n,null,t),this.keyId=Ci(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=ki[this.uri];if(!n){const r=Object.keys(ki).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),ki[this.uri]=n}this.keyId=n}return this}}function Ri(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const os=/#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,bs=/#EXT-X-MEDIA:(.*)/g,Us=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ki=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),zs=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 ii{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 Us.test(e)}static parseMasterPlaylist(e,t){const n=oi(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];os.lastIndex=0;let s;for(;(s=os.exec(e))!=null;)if(s[1]){var l;const c=new zn(s[1],r),m=ti(r,s[2]),y={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:ii.resolve(m,t)},C=c.decimalResolution("RESOLUTION");C&&(y.width=C.width,y.height=C.height),Qi(c.CODECS,y);const L=c["SUPPLEMENTAL-CODECS"];L&&(y.supplemental={},Qi(L,y.supplemental)),(l=y.unknownCodecs)!=null&&l.length||i.push(y),r.levels.push(y)}else if(s[3]){const c=s[3],m=s[4];switch(c){case"SESSION-DATA":{const y=new zn(m,r),C=y["DATA-ID"];C&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[C]=y);break}case"SESSION-KEY":{const y=Xi(m,t,r);y.encrypted&&y.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(y)):J.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${m}"`);break}case"DEFINE":{{const y=new zn(m,r);rr(r,y,t)}break}case"CONTENT-STEERING":{const y=new zn(m,r);r.contentSteering={uri:ii.resolve(y["SERVER-URI"],t),pathwayId:y["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=ls(m);break}}}const d=i.length>0&&i.length<r.levels.length;return r.levels=d?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,l={AUDIO:s.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:s.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let d=0;for(bs.lastIndex=0;(r=bs.exec(e))!==null;){const c=new zn(r[1],n),m=c.TYPE;if(m){const y=l[m],C=i[m]||[];i[m]=C;const L=c.LANGUAGE,N=c["ASSOC-LANGUAGE"],de=c.CHANNELS,oe=c.CHARACTERISTICS,Be=c["INSTREAM-ID"],Ve={attrs:c,bitrate:0,id:d++,groupId:c["GROUP-ID"]||"",name:c.NAME||L||"",type:m,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:L,url:c.URI?ii.resolve(c.URI,t):""};if(N&&(Ve.assocLang=N),de&&(Ve.channels=de),oe&&(Ve.characteristics=oe),Be&&(Ve.instreamId=Be),y!=null&&y.length){const Ue=ii.findGroup(y,Ve.groupId)||y[0];js(Ve,Ue,"audioCodec"),js(Ve,Ue,"textCodec")}C.push(Ve)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const d={url:t},c=new ci(t),m=c.fragments,y=[];let C=null,L=0,N=0,de=0,oe=0,Be=0,Ve=null,Ue=new Se(r,d),ut,dt,Mt,ht=-1,Rt=!1,Ft=null,_t;if(Ki.lastIndex=0,c.m3u8=e,c.hasVariableRefs=oi(e),((l=Ki.exec(e))==null?void 0:l[0])!=="#EXTM3U")return c.playlistParsingError=new Error("Missing format identifier #EXTM3U"),c;for(;(ut=Ki.exec(e))!==null;){Rt&&(Rt=!1,Ue=new Se(r,d),Ue.playlistOffset=de,Ue.start=de,Ue.sn=L,Ue.cc=oe,Be&&(Ue.bitrate=Be),Ue.level=n,C&&(Ue.initSegment=C,C.rawProgramDateTime&&(Ue.rawProgramDateTime=C.rawProgramDateTime,C.rawProgramDateTime=null),Ft&&(Ue.setByteRange(Ft),Ft=null)));const Gn=ut[1];if(Gn){Ue.duration=parseFloat(Gn);const Fn=(" "+ut[2]).slice(1);Ue.title=Fn||null,Ue.tagList.push(Fn?["INF",Gn,Fn]:["INF",Gn])}else if(ut[3]){if(S(Ue.duration)){Ue.playlistOffset=de,Ue.start=de,Mt&&Ji(Ue,Mt,c),Ue.sn=L,Ue.level=n,Ue.cc=oe,m.push(Ue);const Fn=(" "+ut[3]).slice(1);Ue.relurl=ti(c,Fn),Ss(Ue,Ve,y),Ve=Ue,de+=Ue.duration,L++,N=0,Rt=!0}}else{if(ut=ut[0].match(zs),!ut){J.warn("No matches on slow regex match for level playlist!");continue}for(dt=1;dt<ut.length&&ut[dt]===void 0;dt++);const Fn=(" "+ut[dt]).slice(1),Dn=(" "+ut[dt+1]).slice(1),$n=ut[dt+2]?(" "+ut[dt+2]).slice(1):null;switch(Fn){case"BYTERANGE":Ve?Ue.setByteRange(Dn,Ve):Ue.setByteRange(Dn);break;case"PROGRAM-DATE-TIME":Ue.rawProgramDateTime=Dn,Ue.tagList.push(["PROGRAM-DATE-TIME",Dn]),ht===-1&&(ht=m.length);break;case"PLAYLIST-TYPE":c.type&&Pi(c,Fn,ut),c.type=Dn.toUpperCase();break;case"MEDIA-SEQUENCE":c.startSN!==0?Pi(c,Fn,ut):m.length>0&&As(c,Fn,ut),L=c.startSN=parseInt(Dn);break;case"SKIP":{c.skippedSegments&&Pi(c,Fn,ut);const Mn=new zn(Dn,c),un=Mn.decimalInteger("SKIPPED-SEGMENTS");if(S(un)){c.skippedSegments+=un;for(let tr=un;tr--;)m.push(null);L+=un}const dn=Mn.enumeratedString("RECENTLY-REMOVED-DATERANGES");dn&&(c.recentlyRemovedDateranges=(c.recentlyRemovedDateranges||[]).concat(dn.split(" ")));break}case"TARGETDURATION":c.targetduration!==0&&Pi(c,Fn,ut),c.targetduration=Math.max(parseInt(Dn),1);break;case"VERSION":c.version!==null&&Pi(c,Fn,ut),c.version=parseInt(Dn);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":c.live||Pi(c,Fn,ut),c.live=!1;break;case"#":(Dn||$n)&&Ue.tagList.push($n?[Dn,$n]:[Dn]);break;case"DISCONTINUITY":oe++,Ue.tagList.push(["DIS"]);break;case"GAP":Ue.gap=!0,Ue.tagList.push([Fn]);break;case"BITRATE":Ue.tagList.push([Fn,Dn]),Be=parseInt(Dn)*1e3,S(Be)?Ue.bitrate=Be:Be=0;break;case"DATERANGE":{const Mn=new zn(Dn,c),un=new Vr(Mn,c.dateRanges[Mn.ID],c.dateRangeTagCount);c.dateRangeTagCount++,un.isValid||c.skippedSegments?c.dateRanges[un.id]=un:J.warn(`Ignoring invalid DATERANGE tag: "${Dn}"`),Ue.tagList.push(["EXT-X-DATERANGE",Dn]);break}case"DEFINE":{{const Mn=new zn(Dn,c);"IMPORT"in Mn?di(c,Mn,s):rr(c,Mn,t)}break}case"DISCONTINUITY-SEQUENCE":c.startCC!==0?Pi(c,Fn,ut):m.length>0&&As(c,Fn,ut),c.startCC=oe=parseInt(Dn);break;case"KEY":{const Mn=Xi(Dn,t,c);if(Mn.isSupported()){if(Mn.method==="NONE"){Mt=void 0;break}Mt||(Mt={}),Mt[Mn.keyFormat]&&(Mt=v({},Mt)),Mt[Mn.keyFormat]=Mn}else J.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Dn}"`);break}case"START":c.startTimeOffset=ls(Dn);break;case"MAP":{const Mn=new zn(Dn,c);if(Ue.duration){const un=new Se(r,d);ws(un,Mn,n,Mt),C=un,Ue.initSegment=C,C.rawProgramDateTime&&!Ue.rawProgramDateTime&&(Ue.rawProgramDateTime=C.rawProgramDateTime)}else{const un=Ue.byteRangeEndOffset;if(un){const dn=Ue.byteRangeStartOffset;Ft=`${un-dn}@${dn}`}else Ft=null;ws(Ue,Mn,n,Mt),C=Ue,Rt=!0}C.cc=oe;break}case"SERVER-CONTROL":{_t&&Pi(c,Fn,ut),_t=new zn(Dn),c.canBlockReload=_t.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=_t.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&_t.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=_t.optionalFloat("PART-HOLD-BACK",0),c.holdBack=_t.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{c.partTarget&&Pi(c,Fn,ut);const Mn=new zn(Dn);c.partTarget=Mn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Mn=c.partList;Mn||(Mn=c.partList=[]);const un=N>0?Mn[Mn.length-1]:void 0,dn=N++,tr=new zn(Dn,c),Zn=new we(tr,Ue,d,dn,un);Mn.push(Zn),Ue.duration+=Zn.duration;break}case"PRELOAD-HINT":{const Mn=new zn(Dn,c);c.preloadHint=Mn;break}case"RENDITION-REPORT":{const Mn=new zn(Dn,c);c.renditionReports=c.renditionReports||[],c.renditionReports.push(Mn);break}default:J.warn(`line parsed but not handled: ${ut}`);break}}}Ve&&!Ve.relurl?(m.pop(),de-=Ve.duration,c.partList&&(c.fragmentHint=Ve)):c.partList&&(Ss(Ue,Ve,y),Ue.cc=oe,c.fragmentHint=Ue,Mt&&Ji(Ue,Mt,c)),c.targetduration||(c.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const ln=m.length,yn=m[0],mr=m[ln-1];if(de+=c.skippedSegments*c.targetduration,de>0&&ln&&mr){c.averagetargetduration=de/ln;const Gn=mr.sn;c.endSN=Gn!=="initSegment"?Gn:0,c.live||(mr.endList=!0),yn&&c.startCC===void 0&&(c.startCC=yn.cc),ht>0&&(Es(m,ht),yn&&y.unshift(yn))}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(de+=c.fragmentHint.duration),c.totalduration=de,y.length&&c.dateRangeTagCount&&yn&&bi(y,c),c.endCC=oe,c}}function bi(a,e){const t=a.length,n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const l=e.dateRanges[i[s]],d=l.startDate.getTime();l.tagAnchor=n.ref;for(let c=t;c--;){const m=xs(e,d,a,c,r);if(m!==-1){l.tagAnchor=e.fragments[m].ref;break}}}}function xs(a,e,t,n,r){const i=t[n];if(i){const l=i.programDateTime;if(e>=l||n===0){var s;const d=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=l+d*1e3){const c=t[n].sn-a.startSN,m=a.fragments;if(m.length>t.length){const C=(t[n+1]||m[m.length-1]).sn-a.startSN;for(let L=C;L>c;L--){const N=m[L].programDateTime;if(e>=N&&e<N+m[L].duration*1e3)return L}}return c}}}return-1}function Xi(a,e,t){var n,r;const i=new zn(a,t),s=(n=i.METHOD)!=null?n:"",l=i.URI,d=i.hexadecimalInteger("IV"),c=i.KEYFORMATVERSIONS,m=(r=i.KEYFORMAT)!=null?r:"identity";l&&i.IV&&!d&&J.error(`Invalid IV: ${i.IV}`);const y=l?ii.resolve(l,e):"",C=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Di(s,y,m,C,d)}function ls(a){const t=new zn(a).decimalFloatingPoint("TIME-OFFSET");return S(t)?t:null}function Qi(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>ze(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function js(a,e,t){const n=e[t];n&&(a[t]=n)}function Es(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Ss(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function ws(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function Ji(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function Pi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function As(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function $i(a,e){const t=e.startPTS;if(S(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function qi(a,e,t,n,r,i){n-t<=0&&(J.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let l=t,d=n;const c=e.startPTS,m=e.endPTS;if(S(c)){const oe=Math.abs(c-t);S(e.deltaPTS)?e.deltaPTS=Math.max(oe,e.deltaPTS):e.deltaPTS=oe,l=Math.max(t,c),t=Math.min(t,c),r=Math.min(r,e.startDTS),d=Math.min(n,m),n=Math.max(n,m),i=Math.max(i,e.endDTS)}const y=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=l,e.startDTS=r,e.endPTS=n,e.minEndPTS=d,e.endDTS=i;const C=e.sn;if(!a||C<a.startSN||C>a.endSN)return 0;let L;const N=C-a.startSN,de=a.fragments;for(de[N]=e,L=N;L>0;L--)$i(de[L],de[L-1]);for(L=N;L<de.length-1;L++)$i(de[L],de[L+1]);return a.fragmentHint&&$i(de[de.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,y}function aa(a,e){if(a===e)return;let t=null;const n=a.fragments;for(let d=n.length-1;d>=0;d--){const c=n[d].initSegment;if(c){t=c;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;Ks(a,e,(d,c,m,y)=>{if(e.skippedSegments&&c.cc!==d.cc){const C=d.cc-c.cc;for(let L=m;L<y.length;L++)y[L].cc+=C}S(d.startPTS)&&S(d.endPTS)&&(c.setStart(c.startPTS=d.startPTS),c.startDTS=d.startDTS,c.maxStartPTS=d.maxStartPTS,c.endPTS=d.endPTS,c.endDTS=d.endDTS,c.minEndPTS=d.minEndPTS,c.setDuration(d.endPTS-d.startPTS),c.duration&&(r=c),e.PTSKnown=e.alignedSliding=!0),d.hasStreams&&(c.elementaryStreams=d.elementaryStreams),c.loader=d.loader,d.hasStats&&(c.stats=d.stats),d.initSegment&&(c.initSegment=d.initSegment,t=d.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(d=>{var c;d&&(!d.initSegment||d.initSegment.relurl===((c=t)==null?void 0:c.relurl))&&(d.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=i.some(d=>!d),e.deltaUpdateFailed){J.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let d=e.skippedSegments;d--;)i.shift();e.startSN=i[0].sn}else{e.endCC=i[i.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=Hs(a.dateRanges,e));const d=a.fragments.filter(c=>c.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let c=1;c<s.length;c++)s[c].programDateTime===null&&Ss(s[c],s[c-1],d);bi(d,e)}Gs(a.partList,e.partList,(d,c)=>{c.elementaryStreams=d.elementaryStreams,c.stats=d.stats}),r?qi(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Ts(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const d=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=d),e.driftEndTime=l,e.driftEnd=d}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function Hs(a,e){const{dateRanges:t,recentlyRemovedDateranges:n}=e,r=v({},a);n&&n.forEach(l=>{delete r[l]});const s=Object.keys(r).length;return s&&Object.keys(t).forEach(l=>{const d=r[l],c=new Vr(t[l].attr,d);c.isValid?(r[l]=c,d||(c.tagOrder+=s)):J.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${gn(t[l].attr)}"`)}),r}function Gs(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],l=e[r+n];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?t(s,l):n--}}}function Ks(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,d=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let c=r;c<=i;c++){const m=d[s+c];let y=l[c];if(n&&!y&&m&&(y=e.fragments[c]=m),m&&y){if(t(m,y,c,l),m.url&&m.url!==y.url){e.playlistParsingError=xi(`media sequence mismatch ${y.sn}:`,a,e,m,y);return}else if(m.cc!==y.cc){e.playlistParsingError=xi(`discontinuity sequence mismatch (${m.cc}!=${y.cc})`,a,e,m,y);return}}}}function xi(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
Playlist starting @${e.startSN}
|
|
${e.m3u8}
|
|
|
|
Playlist starting @${t.startSN}
|
|
${t.m3u8}`)}function Ts(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;Cs(e,s)}function Cs(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function es(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function Ds(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function us(a,e,t){return a?cs(a.partList,e,t):null}function cs(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Rs(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function Ei(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function Ws(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Er(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function yr(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Er(t[n],a);e.fragmentHint&&Er(e.fragmentHint,a),e.alignedSliding=!0}function br(a,e){a&&(mi(e,a),!e.alignedSliding&&a&&zr(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&Ts(a,e,!1))}function mi(a,e){if(!Ws(e,a))return;const t=Math.min(e.endCC,a.endCC),n=Ei(e.fragments,t),r=Ei(a.fragments,t);if(!n||!r)return;J.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;yr(i,a)}function zr(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=Ei(n,s),i=Ei(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Ei(t,r.cc)||t[Math.floor(t.length/2)]);const l=r.programDateTime,d=i.programDateTime;if(!l||!d)return;const c=(d-l)/1e3-(i.start-r.start);yr(c,a)}const ts={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},Ht={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class ds extends xr{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Ht.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:l,media:d,mediaBuffer:c,state:m}=this,y=d?d.currentTime:0,C=In.bufferInfo(c||d,y,s.maxBufferHole);if(this.log(`media seeking to ${S(y)?y.toFixed(3):y}, state: ${m}`),this.state===Ht.ENDED)this.resetLoadingState();else if(l){const L=s.maxFragLookUpTolerance,N=l.start-L,de=l.start+l.duration+L;if(!C.len||de<C.start||N>C.end){const oe=y>de;(y<N||oe)&&(oe&&l.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(d){this.fragmentTracker.removeFragmentsInRange(y,1/0,this.playlistType,!0);const L=this.lastCurrentTime;if(y>L&&(this.lastCurrentTime=y),!this.loadingParts){const N=Math.max(C.end,y),de=this.shouldLoadParts(this.getLevelDetails(),N);de&&(this.log(`LL-Part loading ON after seeking to ${y.toFixed(2)} with buffer @${N.toFixed(2)}`),this.loadingParts=de)}}!this.hls.hasEnoughToStart&&!C.len&&(this.log(`setting startPosition to ${y} because of seek before start`),this.nextLoadPosition=this.startPosition=y),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new cr(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Xr(e.config)}registerListeners(){const{hls:e}=this;e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Ht.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Ht.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.nextStart;if(i&&i>r&&i<t.edge||this.media.currentTime<e.start)return!1;const l=t.partList;if(l!=null&&l.length){const c=l[l.length-1];return In.isBuffered(this.media,c.start+c.duration/2)}const d=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(d)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===Ht.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=Ht.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,l=i.frag;if(this.fragContextChanged(l)){(s===Ht.FRAG_LOADING||!this.fragCurrent&&s===Ht.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=Ht.IDLE);return}"payload"in i&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(p.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Ht.STOPPED||this.state===Ht.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===jn.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),l=Math.max(e.duration,s?s.len:this.config.maxBufferLength),d=this.backtrackFragment;((d?e.sn-d.sn:0)===1||this.reduceMaxBufferLength(l,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===jn.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(p.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:i,payload:s}=n,l=i.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&wr(l.method)){const d=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,Ar(l.method)).catch(c=>{throw r.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:i}),c}).then(c=>{const m=self.performance.now();return r.trigger(p.FRAG_DECRYPTED,{frag:i,payload:c,stats:{tstart:d,tdecrypt:m}}),n.payload=c,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===Ht.STOPPED||this.state===Ht.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==Ht.STOPPED&&(this.state=Ht.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?ts.toString(In.getBuffered(n)):"(detached)"})`),F(e)){var r;if(e.type!==re.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=Ht.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=Ht.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(d=>!d),l=new Hr(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(l)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Ht.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(y=>{if(!this.fragContextChanged(y.frag))return this.hls.trigger(p.KEY_LOADED,y),this.state===Ht.KEY_LOADING&&(this.state=Ht.IDLE),y}),this.hls.trigger(p.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(l=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments);const d=this.fragPrevious;if(F(e)&&(!d||e.sn!==d.sn)){const y=this.shouldLoadParts(t.details,e.end);y!==this.loadingParts&&(this.log(`LL-Part loading ${y?"ON":"OFF"} loading sn ${d==null?void 0:d.sn}->${e.sn}`),this.loadingParts=y)}if(n=Math.max(e.start,n||0),this.loadingParts&&F(e)){const y=s.partList;if(y&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const C=this.getNextPart(y,e,n);if(C>-1){const L=y[C];e=this.fragCurrent=L.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${L.index} (${C}/${y.length-1}) of ${this.fragInfo(e,!1,L)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=L.start+L.duration,this.state=Ht.FRAG_LOADING;let N;return l?N=l.then(de=>!de||this.fragContextChanged(de.frag)?null:this.doFragPartsLoad(e,L,t,r)).catch(de=>this.handleFragLoadError(de)):N=this.doFragPartsLoad(e,L,t,r).catch(de=>this.handleFragLoadError(de)),this.hls.trigger(p.FRAG_LOADING,{frag:e,part:L,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):N}else if(!e.url||this.loadedEndOfParts(y,n))return Promise.resolve(null)}}if(F(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${s?"["+s.startSN+"-"+s.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),S(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Ht.FRAG_LOADING;const c=this.config.progressive;let m;return c&&l?m=l.then(y=>!y||this.fragContextChanged(y==null?void 0:y.frag)?null:this.fragmentLoader.load(e,r)).catch(y=>this.handleFragLoadError(y)):m=Promise.all([this.fragmentLoader.load(e,c?r:void 0),l]).then(([y])=>(!c&&y&&r&&r(y),y)).catch(y=>this.handleFragLoadError(y)),this.hls.trigger(p.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):m}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const d=[],c=(l=n.details)==null?void 0:l.partList,m=y=>{this.fragmentLoader.loadPart(e,y,r).then(C=>{d[y.index]=C;const L=C.part;this.hls.trigger(p.FRAG_LOADED,C);const N=us(n.details,e.sn,y.index+1)||cs(c,e.sn,y.index+1);if(N)m(N);else return i({frag:e,part:L,partsLoaded:d})}).catch(s)};m(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===$.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(p.ERROR,t)}else this.hls.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Ht.PARSING){!this.fragCurrent&&this.state!==Ht.STOPPED&&this.state!==Ht.ERROR&&(this.state=Ht.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const l=this.getLevelDetails(),c=l&&n.sn>l.endSN||this.shouldLoadParts(l,n.end);c!==this.loadingParts&&(this.log(`LL-Part loading ${c?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=c),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var n;const i=e.partList[0],s=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const l=t[r],d=l.details,c=s>-1?us(d,i,s):null,m=c?c.fragment:Ds(d,i,n);return m?(n&&n!==m&&(m.stats=n.stats),{frag:m,part:c,level:l}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==Ht.PARSING)return;const{data1:l,data2:d}=e;let c=l;if(l&&d&&(c=St(l,d)),!((s=c)!=null&&s.length))return;const m={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:c};if(this.hls.trigger(p.BUFFER_APPENDING,m),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!In.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=In.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),l=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-l>s&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!S(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=In.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(i.nextStart,s.end)-t,r);return In.bufferInfo(e,t,l)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=re.MAIN){var n;const r=(n=this.fragmentTracker)==null?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,l=i.lowLatencyMode&&!!t.partList;let d=null;if(t.live){const y=i.initialLiveManifestSize;if(r<y)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${y})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var c;l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),d=this.getInitialLiveFragment(t,n);const C=this.hls.startPosition,L=this.hls.liveSyncPosition,N=d?(C!==-1&&C>=s?C:L)||d.start:e;this.log(`Setting startPosition to ${N} to match start frag at live edge. mainStart: ${C} liveSyncPosition: ${L} frag.start: ${(c=d)==null?void 0:c.start}`),this.startPosition=this.nextLoadPosition=N}}else e<=s&&(d=n[0]);if(!d){const y=this.loadingParts?t.partEnd:t.fragmentEnd;d=this.getFragmentAtPosition(e,y,t)}let m=this.filterReplacedPrimary(d,t);if(!m&&d){const y=d.sn-t.startSN;m=this.filterReplacedPrimary(n[y+1]||null,t)}return this.mapToInitFragWhenRequired(m)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===jn.OK||n===jn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(l!==null&&n.len+l.len>=i){const d=s.sn;return this.loopSn!==d&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${d}`),this.loopSn=d),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(Is(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(Is(this.hls.config)&&e.type!==re.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const l=i[s].interstitial;if(l.appendInPlace&&e.start>=l.startTime&&e.end<=l.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let l=0,d=e.length;l<d;l++){const c=e[l];if(s=s&&!c.independent,r>-1&&n<c.start)break;const m=c.loaded;m?r=-1:(i||c.independent||s)&&c.fragment===t&&(r=l),i=m}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=Kn(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=Rn(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:l}=n;const{fragmentHint:d}=n,{maxFragLookUpTolerance:c}=r,m=n.partList,y=!!(this.loadingParts&&m!=null&&m.length&&d);y&&d&&!this.bitrateTest&&m[m.length-1].fragment.sn===d.sn&&(s=s.concat(d),l=d.sn);let C;if(e<t){var L;const de=e<this.lastCurrentTime||e>t-c||(L=this.media)!=null&&L.paused||!this.startFragRequested?0:c;C=bn(i,s,e,de)}else C=s[s.length-1];if(C){const N=C.sn-n.startSN,de=this.fragmentTracker.getState(C);if((de===jn.OK||de===jn.PARTIAL&&C.gap)&&(i=C),i&&C.sn===i.sn&&(!y||m[0].fragment.sn>C.sn||!n.live&&!y)&&i&&C.level===i.level){const Be=s[N+1];C.sn<l&&this.fragmentTracker.getState(Be)!==jn.OK?C=Be:C=null}}return C}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,l=e.alignedSliding&&S(i);if(s||!l&&!i){br(n,e);const d=e.fragmentStart;return this.log(`Live playlist sliding: ${d.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),d}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&S(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&F(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Ht.FRAG_LOADING_WAITING_RETRY)&&(this.state=Ht.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const N=this.getCurrentContext(t.chunkMeta);N&&(t.frag=N.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===$.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:l,flags:d,retryCount:c=0,retryConfig:m}=s||{},y=!!s&&!!m,C=y&&l===Qn.RetryRequest,L=y&&!s.resolved&&d===lt.MoveAllAlternatesMatchingHost;if(!C&&L&&F(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),s.resolved=!0;else if((C||L)&&c<m.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const N=Bn(m,c);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${c+1}/${m.maxNumRetry} in ${N}ms`),s.resolved=!0,this.retryDate=self.performance.now()+N,this.state=Ht.FRAG_LOADING_WAITING_RETRY}else if(m&&s)if(this.resetFragmentErrors(e),c<m.maxNumRetry)!i&&l!==Qn.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${c})`);return}else l===Qn.SendAlternateToPenaltyBox?this.state=Ht.WAITING_LEVEL:this.state=Ht.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Ht.PARSING||this.state===Ht.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===re.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Ht.STOPPED&&(this.state=Ht.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=In.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===Ht.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Ht.STOPPED&&(this.state=Ht.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((d,c)=>{const m=e.elementaryStreams[c];if(m){const y=m.endPTS-m.startPTS;if(y<=0)return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${y})`),d||!1;const C=r?0:qi(i,e,m.startPTS,m.endPTS,m.startDTS,m.endDTS);return this.hls.trigger(p.LEVEL_PTS_UPDATED,{details:i,level:n,drift:C,type:c,frag:e,start:m.startPTS,end:m.endPTS}),!0}return d},!1)){var l;if(n.fragmentError===0&&this.treatAsGap(e,n),((l=this.transmuxer)==null?void 0:l.error)===null){const d=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(d.message),this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:d,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Ht.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(p.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===re.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function Is(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class hs{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=Wi(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Wi(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var Ui={exports:{}},Ls;function ka(){return Ls||(Ls=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(d,c,m){this.fn=d,this.context=c,this.once=m||!1}function i(d,c,m,y,C){if(typeof m!="function")throw new TypeError("The listener must be a function");var L=new r(m,y||d,C),N=t?t+c:c;return d._events[N]?d._events[N].fn?d._events[N]=[d._events[N],L]:d._events[N].push(L):(d._events[N]=L,d._eventsCount++),d}function s(d,c){--d._eventsCount===0?d._events=new n:delete d._events[c]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],m,y;if(this._eventsCount===0)return c;for(y in m=this._events)e.call(m,y)&&c.push(t?y.slice(1):y);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(m)):c},l.prototype.listeners=function(c){var m=t?t+c:c,y=this._events[m];if(!y)return[];if(y.fn)return[y.fn];for(var C=0,L=y.length,N=new Array(L);C<L;C++)N[C]=y[C].fn;return N},l.prototype.listenerCount=function(c){var m=t?t+c:c,y=this._events[m];return y?y.fn?1:y.length:0},l.prototype.emit=function(c,m,y,C,L,N){var de=t?t+c:c;if(!this._events[de])return!1;var oe=this._events[de],Be=arguments.length,Ve,Ue;if(oe.fn){switch(oe.once&&this.removeListener(c,oe.fn,void 0,!0),Be){case 1:return oe.fn.call(oe.context),!0;case 2:return oe.fn.call(oe.context,m),!0;case 3:return oe.fn.call(oe.context,m,y),!0;case 4:return oe.fn.call(oe.context,m,y,C),!0;case 5:return oe.fn.call(oe.context,m,y,C,L),!0;case 6:return oe.fn.call(oe.context,m,y,C,L,N),!0}for(Ue=1,Ve=new Array(Be-1);Ue<Be;Ue++)Ve[Ue-1]=arguments[Ue];oe.fn.apply(oe.context,Ve)}else{var ut=oe.length,dt;for(Ue=0;Ue<ut;Ue++)switch(oe[Ue].once&&this.removeListener(c,oe[Ue].fn,void 0,!0),Be){case 1:oe[Ue].fn.call(oe[Ue].context);break;case 2:oe[Ue].fn.call(oe[Ue].context,m);break;case 3:oe[Ue].fn.call(oe[Ue].context,m,y);break;case 4:oe[Ue].fn.call(oe[Ue].context,m,y,C);break;default:if(!Ve)for(dt=1,Ve=new Array(Be-1);dt<Be;dt++)Ve[dt-1]=arguments[dt];oe[Ue].fn.apply(oe[Ue].context,Ve)}}return!0},l.prototype.on=function(c,m,y){return i(this,c,m,y,!1)},l.prototype.once=function(c,m,y){return i(this,c,m,y,!0)},l.prototype.removeListener=function(c,m,y,C){var L=t?t+c:c;if(!this._events[L])return this;if(!m)return s(this,L),this;var N=this._events[L];if(N.fn)N.fn===m&&(!C||N.once)&&(!y||N.context===y)&&s(this,L);else{for(var de=0,oe=[],Be=N.length;de<Be;de++)(N[de].fn!==m||C&&!N[de].once||y&&N[de].context!==y)&&oe.push(N[de]);oe.length?this._events[L]=oe.length===1?oe[0]:oe:s(this,L)}return this},l.prototype.removeAllListeners=function(c){var m;return c?(m=t?t+c:c,this._events[m]&&s(this,m)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,a.exports=l}(Ui)),Ui.exports}var Pa=ka(),Vs=O(Pa);const ns="1.6.1",Vi={};function Oa(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Ma(){const a=Vi[ns];if(a)return a.clientCount++,a;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return Vi[ns]=r,r}function Ba(a){const e=Vi[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Vi[a]=r,r}function po(a){const e=Vi[a||ns];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete Vi[a||ns],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Zs(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Ys(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function ks(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function fs(a,e){const t=e;let n=0;for(;Ys(a,e);){n+=10;const r=ks(a,e+6);n+=r,Zs(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function ps(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const L=new Error(`invalid ADTS sampling index:${s}`);a.emit(p.ERROR,p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!0,error:L,reason:L.message});return}const l=(i>>6&3)+1,d=e[t+3]>>6&3|(i&1)<<2,c="mp4a.40."+l,m=r[s];let y=s;(l===5||l===29)&&(y-=3);const C=[l<<3|(y&14)>>1,(y&1)<<7|d<<3];return J.log(`manifest codec:${n}, parsed codec:${c}, channels:${d}, rate:${m} (ADTS object type:${l} sampling index:${s})`),{config:C,samplerate:m,channelCount:d,codec:c,parsedCodec:c,manifestCodec:n}}function ms(a,e){return a[e]===255&&(a[e+1]&246)===240}function Na(a,e){return a[e+1]&1?7:9}function oa(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Fa(a,e){return e+5<a.length}function Xs(a,e){return e+1<a.length&&ms(a,e)}function $a(a,e){return Fa(a,e)&&ms(a,e)&&oa(a,e)<=a.length-e}function Ua(a,e){if(Xs(a,e)){const t=Na(a,e);if(e+t>=a.length)return!1;const n=oa(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Xs(a,r)}return!1}function za(a,e,t,n,r){if(!a.samplerate){const i=ps(e,t,n,r);if(!i)return;v(a,i)}}function la(a){return 1024*9e4/a}function mo(a,e){const t=Na(a,e);if(e+t<=a.length){const n=oa(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function ua(a,e,t,n,r){const i=la(a.samplerate),s=n+r*i,l=mo(e,t);let d;if(l){const{frameLength:y,headerLength:C}=l,L=C+y,N=Math.max(0,t+L-e.length);N?(d=new Uint8Array(L-C),d.set(e.subarray(t+C,e.length),0)):d=e.subarray(t+C,t+L);const de={unit:d,pts:s};return N||a.samples.push(de),{sample:de,length:L,missing:N}}const c=e.length-t;return d=new Uint8Array(c),d.set(e.subarray(t,e.length),0),{sample:{unit:d,pts:s},length:c,missing:-1}}function ca(a,e){return Ys(a,e)&&ks(a,e+6)+10<=a.length-e}function da(a){if(a.size<2)return;const e=Fe(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function ja(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=Fe(a.data.subarray(t),!0);t+=n.length+1;const r=Fe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Fe(a.data.subarray(1));return{key:a.type,info:"",data:e}}function Ha(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=Fe(a.data.subarray(t),!0);t+=n.length+1;const r=Fe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Fe(a.data);return{key:a.type,info:"",data:e}}function Ga(a){return btoa(String.fromCharCode(...a))}function Ka(a,e){if(a<0)return-Ka(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}function Wa(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function Va(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function go(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function rs(a,e=0,t=1/0){return ha(a,e,t,Uint8Array)}function ha(a,e,t,n){const r=Za(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=vo(a)?a.byteOffset:0,l=(s+a.byteLength)/i,d=(s+e)/i,c=Math.floor(Math.max(0,Math.min(d,l))),m=Math.floor(Math.min(c+Math.max(t,0),l));return new n(r,c,m-c)}function Za(a){return a instanceof ArrayBuffer?a:a.buffer}function vo(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function _o(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=Fe(rs(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=Fe(rs(a.data,3+n,s));let d;return r==="-->"?d=Fe(rs(a.data,4+n+s)):d=go(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=d,e}function yo(a){return a.type==="PRIV"?da(a):a.type[0]==="W"?Ha(a):a.type==="APIC"?_o(a):ja(a)}function fa(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=ks(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const Qs=10,bo=10;function pa(a){let e=0;const t=[];for(;Ys(a,e);){const n=ks(a,e+6);a[e+5]>>6&1&&(e+=Qs),e+=Qs;const r=e+n;for(;e+bo<r;){const i=fa(a.subarray(e)),s=yo(i);s&&t.push(s),e+=i.size+Qs}Zs(a,e)&&(e+=Qs)}return t}function Ya(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function Xa(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function ma(a){const e=pa(a);for(let t=0;t<e.length;t++){const n=e[t];if(Ya(n))return Xa(n)}}let Me=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function Oi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ps{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=St(this.cachedData,e),this.cachedData=null);let n=fs(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,d=n?ma(n):void 0,c=e.length;for((this.basePTS===null||this.frameIndex===0&&S(d))&&(this.basePTS=ga(d,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Me.audioId3,duration:Number.POSITIVE_INFINITY});r<c;){if(this.canParse(e,r)){const m=this.appendFrame(s,e,r);m?(this.frameIndex++,this.lastPTS=m.sample.pts,r+=m.length,i=r):r=c}else ca(e,r)?(n=fs(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Me.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===c&&i!==c){const m=e.slice(i);this.cachedData?this.cachedData=St(this.cachedData,m):this.cachedData=m}}return{audioTrack:s,videoTrack:Oi(),id3Track:l,textTrack:Oi()}}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:Oi(),id3Track:this._id3Track,textTrack:Oi()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const ga=(a,e,t)=>{if(S(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let Os=null;const va=[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],Qa=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Ja=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],xo=[0,1,1,4];function _a(a,e,t,n,r){if(t+24>e.length)return;const i=ya(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,l=n+r*s,d={unit:e.subarray(t,t+i.frameLength),pts:l,dts:l};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(d),{sample:d,length:i.frameLength,missing:0}}}function ya(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,l=a[e+3]>>6,d=t===3?3-n:n===3?3:4,c=va[d*14+r-1]*1e3,y=Qa[(t===3?0:t===2?1:2)*3+i],C=l===3?1:2,L=Ja[t][n],N=xo[n],de=L*8*N,oe=Math.floor(L*c/y+s)*N;if(Os===null){const Ue=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Os=Ue?parseInt(Ue[1]):0}return!!Os&&Os<=87&&n===2&&c>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:y,channelCount:C,frameLength:oe,samplesPerFrame:de}}}function gs(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function qa(a,e){return e+1<a.length&&gs(a,e)}function ba(a,e){return gs(a,e)&&4<=a.length-e}function xa(a,e){if(e+1<a.length&&gs(a,e)){const n=ya(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||qa(a,i)}return!1}class Eo extends Ps{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=fs(e,0);let r=(n==null?void 0:n.length)||0;if(xa(e,r))return!1;for(let i=e.length;r<i;r++)if(Ua(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return $a(e,t)}appendFrame(e,t,n){za(e,this.observer,t,n,e.manifestCodec);const r=ua(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const eo=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const l=Math.min(n,8),d=8-l;i[0]=4278190080>>>24+d<<d,r[0]=(s[0]&i[0])>>d,t=t?t<<l|r[0]:r[0],e+=1,n-=l}return t};class to extends Ps{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=Js(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=fs(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&ma(t)!==void 0&&eo(e,n)<16}}function Js(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const l=[48e3,44100,32e3][i],d=e[t+4]&63,m=[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][d*3+i]*2;if(t+m>e.length)return-1;const y=e[t+6]>>5;let C=0;y===2?C+=2:(y&1&&y!==1&&(C+=2),y&4&&(C+=2));const L=(e[t+6]<<8|e[t+7])>>12-C&1,de=[2,1,2,3,3,4,4,5][y]+L,oe=e[t+5]>>3,Be=e[t+5]&7,Ve=new Uint8Array([i<<6|oe<<1|Be>>2,(Be&3)<<6|y<<3|L<<2|d>>4,d<<4&224]),Ue=1536/l*9e4,ut=n+r*Ue,dt=e.subarray(t,t+m);return a.config=Ve,a.channelCount=de,a.samplerate=l,a.samples.push({unit:dt,pts:ut}),m}class So extends Ps{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=fs(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&ma(t)!==void 0&&eo(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(xa(e,n))return J.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return ba(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return _a(e,t,n,this.basePTS,this.frameIndex)}}const wo=/\/emsg[-/]ID3/i;class Qo{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=Oi("video",1),s=this.audioTrack=Oi("audio",1),l=this.txtTrack=Oi("text",1);if(this.id3Track=Oi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const d=pe(e);if(d.video){const{id:c,timescale:m,codec:y,supplemental:C}=d.video;i.id=c,i.timescale=l.timescale=m,i.codec=y,i.supplemental=C}if(d.audio){const{id:c,timescale:m,codec:y}=d.audio;s.id=c,s.timescale=m,s.codec=y}l.id=rt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return me(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=St(this.remainderData,e));const l=Tt(n);this.remainderData=l.remainder,r.samples=l.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=wt(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=wt(e,t),{videoTrack:t,audioTrack:Oi(),id3Track:r,textTrack:Oi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=ce(e.samples,["emsg"]);r&&r.forEach(i=>{const s=nn(i);if(wo.test(s.schemeIdUri)){const l=V(s,t);let d=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;d<=.001&&(d=Number.POSITIVE_INFINITY);const c=s.payload;n.samples.push({data:c,len:c.byteLength,dts:l,pts:l,type:Me.emsg,duration:d})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=V(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Me.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function V(a,e){return S(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class u{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Xr(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,kn.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(l=>{const d=new Uint8Array(l);r.set(d,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Jt(i.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then(d=>{i.data=this.getAvcDecryptedUnit(s,d),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class h{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let d=0,c,m,y,C=-1,L=0;for(i===-1&&(C=0,L=this.getNALuType(t,0),i=0,d=1);d<r;){if(c=t[d++],!i){i=c?0:1;continue}if(i===1){i=c?0:2;continue}if(!c)i=3;else if(c===1){if(m=d-i-1,C>=0){const N={data:t.subarray(C,m),type:L};l.push(N)}else{const N=this.getLastNalUnit(e.samples);N&&(s&&d<=4-s&&N.state&&(N.data=N.data.subarray(0,N.data.byteLength-s)),m>0&&(N.data=St(N.data,t.subarray(0,m)),N.state=0))}d<r?(y=this.getNALuType(t,d),C=d,L=y,i=0):i=-1}else i=0}if(C>=0&&i>=0){const N={data:t.subarray(C,r),type:L,state:i};l.push(N)}if(l.length===0){const N=this.getLastNalUnit(e.samples);N&&(N.data=St(N.data,t))}return e.naluState=i,l}}class f{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&J.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class _ extends h{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,d=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(c=>{var m,y;switch(c.type){case 1:{let de=!1;l=!0;const oe=c.data;if(d&&oe.length>4){const Be=this.readSliceType(oe);(Be===2||Be===4||Be===7||Be===9)&&(de=!0)}if(de){var C;(C=s)!=null&&C.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=de;break}case 5:l=!0,(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,Nt(c.data,1,n.pts,t.samples);break}case 7:{var L,N;l=!0,d=!0;const de=c.data,oe=this.readSPS(de);if(!e.sps||e.width!==oe.width||e.height!==oe.height||((L=e.pixelRatio)==null?void 0:L[0])!==oe.pixelRatio[0]||((N=e.pixelRatio)==null?void 0:N[1])!==oe.pixelRatio[1]){e.width=oe.width,e.height=oe.height,e.pixelRatio=oe.pixelRatio,e.sps=[de];const Be=de.subarray(1,4);let Ve="avc1.";for(let Ue=0;Ue<3;Ue++){let ut=Be[Ue].toString(16);ut.length<2&&(ut="0"+ut),Ve+=ut}e.codec=Ve}break}case 8:l=!0,e.pps=[c.data];break;case 9:l=!0,e.audFound=!0,(y=s)!=null&&y.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(c)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new f(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new f(e);let n=0,r=0,i=0,s=0,l,d,c;const m=t.readUByte.bind(t),y=t.readBits.bind(t),C=t.readUEG.bind(t),L=t.readBoolean.bind(t),N=t.skipBits.bind(t),de=t.skipEG.bind(t),oe=t.skipUEG.bind(t),Be=this.skipScalingList.bind(this);m();const Ve=m();if(y(5),N(3),m(),oe(),Ve===100||Ve===110||Ve===122||Ve===244||Ve===44||Ve===83||Ve===86||Ve===118||Ve===128){const Rt=C();if(Rt===3&&N(1),oe(),oe(),N(1),L())for(d=Rt!==3?8:12,c=0;c<d;c++)L()&&(c<6?Be(16,t):Be(64,t))}oe();const Ue=C();if(Ue===0)C();else if(Ue===1)for(N(1),de(),de(),l=C(),c=0;c<l;c++)de();oe(),N(1);const ut=C(),dt=C(),Mt=y(1);Mt===0&&N(1),N(1),L()&&(n=C(),r=C(),i=C(),s=C());let ht=[1,1];if(L()&&L())switch(m()){case 1:ht=[1,1];break;case 2:ht=[12,11];break;case 3:ht=[10,11];break;case 4:ht=[16,11];break;case 5:ht=[40,33];break;case 6:ht=[24,11];break;case 7:ht=[20,11];break;case 8:ht=[32,11];break;case 9:ht=[80,33];break;case 10:ht=[18,11];break;case 11:ht=[15,11];break;case 12:ht=[64,33];break;case 13:ht=[160,99];break;case 14:ht=[4,3];break;case 15:ht=[3,2];break;case 16:ht=[2,1];break;case 255:{ht=[m()<<8|m(),m()<<8|m()];break}}return{width:Math.ceil((ut+1)*16-n*2-r*2),height:(2-Mt)*(dt+1)*16-(Mt?2:4)*(i+s),pixelRatio:ht}}}class D extends h{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,d=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(c=>{var m,y;switch(c.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,d){var C;(C=s)!=null&&C.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,Nt(c.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=v(e.params,this.readVPS(c.data)),this.initVPS=c.data),e.vps=[c.data];break;case 33:if(l=!0,d=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],c.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const L=this.readSPS(c.data);e.width=L.width,e.height=L.height,e.pixelRatio=L.pixelRatio,e.codec=L.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const N in L.params)e.params[N]=L.params[N]}this.pushParameterSet(e.sps,c.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const L=this.readPPS(c.data);for(const N in L)e.params[N]=L[N]}this.pushParameterSet(e.pps,c.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(y=s)!=null&&y.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:l=!1;break}s&&l&&s.units.push(c)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new f(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new f(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),l=t.readUByte(),d=t.readUByte(),c=t.readUByte(),m=t.readUByte(),y=t.readUByte(),C=t.readUByte(),L=t.readUByte(),N=t.readUByte(),de=t.readUByte(),oe=t.readUByte(),Be=t.readUByte(),Ve=[],Ue=[];for(let Rr=0;Rr<n;Rr++)Ve.push(t.readBoolean()),Ue.push(t.readBoolean());if(n>0)for(let Rr=n;Rr<8;Rr++)t.readBits(2);for(let Rr=0;Rr<n;Rr++)Ve[Rr]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Ue[Rr]&&t.readUByte();t.readUEG();const ut=t.readUEG();ut==3&&t.skipBits(1);const dt=t.readUEG(),Mt=t.readUEG(),ht=t.readBoolean();let Rt=0,Ft=0,_t=0,ln=0;ht&&(Rt+=t.readUEG(),Ft+=t.readUEG(),_t+=t.readUEG(),ln+=t.readUEG());const yn=t.readUEG(),mr=t.readUEG(),Gn=t.readUEG(),Fn=t.readBoolean();for(let Rr=Fn?0:n;Rr<=n;Rr++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let wi=0;wi<4;wi++)for(let Fi=0;Fi<(wi===3?2:6);Fi++)if(!t.readBoolean())t.readUEG();else{const Gi=Math.min(64,1<<4+(wi<<1));wi>1&&t.readEG();for(let sa=0;sa<Gi;sa++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Mn=t.readUEG();let un=0;for(let Rr=0;Rr<Mn;Rr++){let wi=!1;if(Rr!==0&&(wi=t.readBoolean()),wi){Rr===Mn&&t.readUEG(),t.readBoolean(),t.readUEG();let Fi=0;for(let Fs=0;Fs<=un;Fs++){const Gi=t.readBoolean();let sa=!1;Gi||(sa=t.readBoolean()),(Gi||sa)&&Fi++}un=Fi}else{const Fi=t.readUEG(),Fs=t.readUEG();un=Fi+Fs;for(let Gi=0;Gi<Fi;Gi++)t.readUEG(),t.readBoolean();for(let Gi=0;Gi<Fs;Gi++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Rr=t.readUEG();for(let wi=0;wi<Rr;wi++){for(let Fi=0;Fi<Gn+4;Fi++)t.readBits(1);t.readBits(1)}}let tr=0,Zn=1,fr=1,Sr=!0,Mr=1,jr=0;t.readBoolean(),t.readBoolean();let Ti=!1;if(t.readBoolean()){if(t.readBoolean()){const $s=t.readUByte(),Hl=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],fo=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];$s>0&&$s<16?(Zn=Hl[$s-1],fr=fo[$s-1]):$s===255&&(Zn=t.readBits(16),fr=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),Ti=t.readBoolean(),Ti&&(Rt+=t.readUEG(),Ft+=t.readUEG(),_t+=t.readUEG(),ln+=t.readUEG()),t.readBoolean()&&(Mr=t.readBits(32),jr=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const fo=t.readBoolean(),Gl=t.readBoolean();let Ia=!1;(fo||Gl)&&(Ia=t.readBoolean(),Ia&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Ia&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let Kl=0;Kl<=n;Kl++){Sr=t.readBoolean();const tc=Sr||t.readBoolean();let Wl=!1;tc?t.readEG():Wl=t.readBoolean();const Vl=Wl?1:t.readUEG()+1;if(fo)for(let La=0;La<Vl;La++)t.readUEG(),t.readUEG(),Ia&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Gl)for(let La=0;La<Vl;La++)t.readUEG(),t.readUEG(),Ia&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),tr=t.readUEG())}let ys=dt,jl=Mt;if(ht||Ti){let Rr=1,wi=1;ut===1?Rr=wi=2:ut==2&&(Rr=2),ys=dt-Rr*Ft-Rr*Rt,jl=Mt-wi*ln-wi*_t}const q0=r?["A","B","C"][r]:"",ec=l<<24|d<<16|c<<8|m;let Yo=0;for(let Rr=0;Rr<32;Rr++)Yo=(Yo|(ec>>Rr&1)<<31-Rr)>>>0;let Xo=Yo.toString(16);return s===1&&Xo==="2"&&(Xo="6"),{codecString:`hvc1.${q0}${s}.${Xo}.${i?"H":"L"}${Be}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[l,d,c,m],general_constraint_indicator_flags:[y,C,L,N,de,oe],general_level_idc:Be,bit_depth:yn+8,bit_depth_luma_minus8:yn,bit_depth_chroma_minus8:mr,min_spatial_segmentation_idc:tr,chroma_format_idc:ut,frame_rate:{fixed:Sr,fps:jr/Mr}},width:ys,height:jl,pixelRatio:[Zn,fr]}}readPPS(e){const t=new f(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),i=t.readBoolean();let s=1;return i&&r?s=0:i?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const H=188;class be{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=be.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(H*5,t-H)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let d=r;d<t;d+=H)if(e[d]===71&&(t-d===H||e[d+H]===71)){if(l++,s===-1&&(s=d,s!==0&&(n=Math.min(s+H*99,e.length-H)+1)),i||(i=Le(e,d)===0),i&&l>1&&(s===0&&l>2||d+H>n))return s}else{if(l)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:rt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=be.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=be.createTrack("audio",r),this._id3Track=be.createTrack("id3"),this._txtTrack=be.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,l=this._audioTrack,d=this._id3Track,c=this._txtTrack;let m=s.pid,y=s.pesData,C=l.pid,L=d.pid,N=l.pesData,de=d.pesData,oe=null,Be=this.pmtParsed,Ve=this._pmtId,Ue=e.length;if(this.remainderData&&(e=St(this.remainderData,e),Ue=e.length,this.remainderData=null),Ue<H&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:d,textTrack:c};const ut=Math.max(0,be.syncOffset(e));Ue-=(Ue-ut)%H,Ue<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Ue,e.buffer.byteLength-Ue));let dt=0;for(let ht=ut;ht<Ue;ht+=H)if(e[ht]===71){const Rt=!!(e[ht+1]&64),Ft=Le(e,ht),_t=(e[ht+3]&48)>>4;let ln;if(_t>1){if(ln=ht+5+e[ht+4],ln===ht+H)continue}else ln=ht+4;switch(Ft){case m:if(Rt){if(y&&(i=Zt(y,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new _;break;case"hevc":this.videoParser=new D;break}this.videoParser!==null&&this.videoParser.parsePES(s,c,i,!1)}y={data:[],size:0}}y&&(y.data.push(e.subarray(ln,ht+H)),y.size+=ht+H-ln);break;case C:if(Rt){if(N&&(i=Zt(N,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,i);break;case"mp3":this.parseMPEGPES(l,i);break;case"ac3":this.parseAC3PES(l,i);break}N={data:[],size:0}}N&&(N.data.push(e.subarray(ln,ht+H)),N.size+=ht+H-ln);break;case L:Rt&&(de&&(i=Zt(de,this.logger))&&this.parseID3PES(d,i),de={data:[],size:0}),de&&(de.data.push(e.subarray(ln,ht+H)),de.size+=ht+H-ln);break;case 0:Rt&&(ln+=e[ln]+1),Ve=this._pmtId=$e(e,ln);break;case Ve:{Rt&&(ln+=e[ln]+1);const yn=st(e,ln,this.typeSupported,n,this.observer,this.logger);m=yn.videoPid,m>0&&(s.pid=m,s.segmentCodec=yn.segmentVideoCodec),C=yn.audioPid,C>0&&(l.pid=C,l.segmentCodec=yn.segmentAudioCodec),L=yn.id3Pid,L>0&&(d.pid=L),oe!==null&&!Be&&(this.logger.warn(`MPEG-TS PMT found at ${ht} after unknown PID '${oe}'. Backtracking to sync byte @${ut} to parse all TS packets.`),oe=null,ht=ut-188),Be=this.pmtParsed=!0;break}case 17:case 8191:break;default:oe=Ft;break}}else dt++;dt>0&&mt(this.observer,new Error(`Found ${dt} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=y,l.pesData=N,d.pesData=de;const Mt={audioTrack:l,videoTrack:s,id3Track:d,textTrack:c};return r&&this.extractRemainingSamples(Mt),Mt}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,l=t.pesData,d=r.pesData;let c;if(s&&(c=Zt(s,this.logger))){if(this.videoParser===null)switch(n.segmentCodec){case"avc":this.videoParser=new _;break;case"hevc":this.videoParser=new D;break}this.videoParser!==null&&(this.videoParser.parsePES(n,i,c,!0),n.pesData=null)}else n.pesData=s;if(l&&(c=Zt(l,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,c);break;case"mp3":this.parseMPEGPES(t,c);break;case"ac3":this.parseAC3PES(t,c);break}t.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=l;d&&(c=Zt(d,this.logger))?(this.parseID3PES(r,c),r.pesData=null):r.pesData=d}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new u(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const y=r.missing,C=r.sample.unit.byteLength;if(y===-1)i=St(r.sample.unit,i);else{const L=C-y;r.sample.unit.set(i.subarray(0,y),L),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!Xs(i,s);s++);if(s!==n){let y;const C=s<l-1;if(C?y=`AAC PES did not start with ADTS header,offset:${s}`:y="No ADTS header found in AAC PES",mt(this.observer,new Error(y),C,this.logger),!C)return}za(e,this.observer,i,s,this.audioCodec);let d;if(t.pts!==void 0)d=t.pts;else if(r){const y=la(e.samplerate);d=r.sample.pts+y}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,m;for(;s<l;)if(m=ua(e,i,s,d,c),s+=m.length,m.missing){this.aacOverFlow=m;break}else for(c++;s<l-1&&!Xs(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const l=t.pts;if(l===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(qa(n,s)){const d=_a(e,n,s,l,i);if(d)s+=d.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,l=0,d;for(;l<i&&(d=Js(e,n,l,r,s++))>0;)l+=d}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=v({},t,{type:this._videoTrack?Me.emsg:Me.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Le(a,e){return((a[e+1]&31)<<8)+a[e+2]}function $e(a,e){return(a[e+10]&31)<<8|a[e+11]}function st(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(a[e+1]&15)<<8|a[e+2],d=e+3+l-4,c=(a[e+10]&15)<<8|a[e+11];for(e+=12+c;e<d;){const m=Le(a,e),y=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Pt("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=m);break;case 21:s.id3Pid===-1&&(s.id3Pid=m);break;case 219:if(!n){Pt("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=m);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=m,s.segmentAudioCodec="mp3");break;case 193:if(!n){Pt("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=m,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&y>0){let C=e+5,L=y;for(;L>2;){switch(a[C]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=m,s.segmentAudioCodec="ac3");break}const de=a[C+1]+2;C+=de,L-=de}}break;case 194:case 135:return mt(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=m,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=y+5}return s}function mt(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(p.ERROR,p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Pt(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Zt(a,e){let t=0,n,r,i,s,l;const d=a.data;if(!a||a.size===0)return null;for(;d[0].length<19&&d.length>1;)d[0]=St(d[0],d[1]),d.splice(1,1);if(n=d[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>a.size-6)return null;const m=n[7];m&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,m&64?(l=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-l>60*9e4&&(e.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=n[8];let y=i+9;if(a.size<=y)return null;a.size-=y;const C=new Uint8Array(a.size);for(let L=0,N=d.length;L<N;L++){n=d[L];let de=n.byteLength;if(y)if(y>de){y-=de;continue}else n=n.subarray(y),de-=y,y=0;C.set(n,t),t+=de}return r&&(r-=i+3),{data:C,pts:s,dts:l,len:r}}return null}class sn{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const hn=Math.pow(2,32)-1;class Xe{static init(){Xe.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in Xe.types)Xe.types.hasOwnProperty(e)&&(Xe.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]);Xe.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]);Xe.STTS=Xe.STSC=Xe.STCO=i,Xe.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Xe.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Xe.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Xe.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Xe.FTYP=Xe.box(Xe.types.ftyp,s,d,s,l),Xe.DINF=Xe.box(Xe.types.dinf,Xe.box(Xe.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return Xe.box(Xe.types.hdlr,Xe.HDLR_TYPES[e])}static mdat(e){return Xe.box(Xe.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(hn+1)),r=Math.floor(t%(hn+1));return Xe.box(Xe.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return Xe.box(Xe.types.mdia,Xe.mdhd(e.timescale||0,e.duration||0),Xe.hdlr(e.type),Xe.minf(e))}static mfhd(e){return Xe.box(Xe.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?Xe.box(Xe.types.minf,Xe.box(Xe.types.smhd,Xe.SMHD),Xe.DINF,Xe.stbl(e)):Xe.box(Xe.types.minf,Xe.box(Xe.types.vmhd,Xe.VMHD),Xe.DINF,Xe.stbl(e))}static moof(e,t,n){return Xe.box(Xe.types.moof,Xe.mfhd(e),Xe.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Xe.trak(e[t]);return Xe.box.apply(null,[Xe.types.moov,Xe.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Xe.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Xe.trex(e[t]);return Xe.box.apply(null,[Xe.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(hn+1)),r=Math.floor(t%(hn+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Xe.box(Xe.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 Xe.box(Xe.types.sdtp,n)}static stbl(e){return Xe.box(Xe.types.stbl,Xe.stsd(e),Xe.box(Xe.types.stts,Xe.STTS),Xe.box(Xe.types.stsc,Xe.STSC),Xe.box(Xe.types.stsz,Xe.STSZ),Xe.box(Xe.types.stco,Xe.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const l=Xe.box(Xe.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),d=e.width,c=e.height,m=e.pixelRatio[0],y=e.pixelRatio[1];return Xe.box(Xe.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,d>>8&255,d&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,Xe.box(Xe.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Xe.box(Xe.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,y>>24,y>>16&255,y>>8&255,y&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Xe.box(Xe.types.mp4a,Xe.audioStsd(e),Xe.box(Xe.types.esds,Xe.esds(e)))}static mp3(e){return Xe.box(Xe.types[".mp3"],Xe.audioStsd(e))}static ac3(e){return Xe.box(Xe.types["ac-3"],Xe.audioStsd(e),Xe.box(Xe.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return Xe.box(Xe.types.stsd,Xe.STSD,Xe.mp4a(e));if(t==="ac3"&&e.config)return Xe.box(Xe.types.stsd,Xe.STSD,Xe.ac3(e));if(t==="mp3"&&e.codec==="mp3")return Xe.box(Xe.types.stsd,Xe.STSD,Xe.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return Xe.box(Xe.types.stsd,Xe.STSD,Xe.avc1(e));if(t==="hevc"&&e.vps)return Xe.box(Xe.types.stsd,Xe.STSD,Xe.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,s=Math.floor(n/(hn+1)),l=Math.floor(n%(hn+1));return Xe.box(Xe.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=Xe.sdtp(e),r=e.id,i=Math.floor(t/(hn+1)),s=Math.floor(t%(hn+1));return Xe.box(Xe.types.traf,Xe.box(Xe.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Xe.box(Xe.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),Xe.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Xe.box(Xe.types.trak,Xe.tkhd(e),Xe.mdia(e))}static trex(e){const t=e.id;return Xe.box(Xe.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let l,d,c,m,y,C;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<r;l++)d=n[l],c=d.duration,m=d.size,y=d.flags,C=d.cts,s.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255,y.isLeading<<2|y.dependsOn,y.isDependedOn<<6|y.hasRedundancy<<4|y.paddingValue<<1|y.isNonSync,y.degradPrio&61440,y.degradPrio&15,C>>>24&255,C>>>16&255,C>>>8&255,C&255],12+16*l);return Xe.box(Xe.types.trun,s)}static initSegment(e){Xe.types||Xe.init();const t=Xe.moov(e);return St(Xe.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=i.length;for(let N=0;N<n.length;N+=1){s+=3;for(let de=0;de<n[N].length;de+=1)s+=2+n[N][de].length}const l=new Uint8Array(s);l.set(i,0),s=i.length;const d=n.length-1;for(let N=0;N<n.length;N+=1){l.set(new Uint8Array([32+N|(N===d?128:0),0,n[N].length]),s),s+=3;for(let de=0;de<n[N].length;de+=1)l.set(new Uint8Array([n[N][de].length>>8,n[N][de].length&255]),s),s+=2,l.set(n[N][de],s),s+=n[N][de].length}const c=Xe.box(Xe.types.hvcC,l),m=e.width,y=e.height,C=e.pixelRatio[0],L=e.pixelRatio[1];return Xe.box(Xe.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,m>>8&255,m&255,y>>8&255,y&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,Xe.box(Xe.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Xe.box(Xe.types.pasp,new Uint8Array([C>>24,C>>16&255,C>>8&255,C&255,L>>24,L>>16&255,L>>8&255,L&255])))}}Xe.types=void 0,Xe.HDLR_TYPES=void 0,Xe.STTS=void 0,Xe.STSC=void 0,Xe.STCO=void 0,Xe.STSZ=void 0,Xe.VMHD=void 0,Xe.SMHD=void 0,Xe.STSD=void 0,Xe.FTYP=void 0,Xe.DINF=void 0;const Xn=9e4;function er(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function lr(a,e,t=1,n=!1){return er(a,e,1/t,n)}function Cr(a,e=!1){return er(a,1e3,1/Xn,e)}function Or(a,e=1){return er(a,Xn,1/e)}const Kr=10*1e3,Wr=1024,Jr=1152,gi=1536;let qr=null,Dr=null;function Ai(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class Mi{constructor(e,t,n,r){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.ISGenerated=!1,qr===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);qr=s?parseInt(s[1]):0}if(Dr===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);Dr=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let l=s.pts,d=l-i;return d<-4294967296&&(t=!0,l=ei(l,n),d=l-i),d>0?i:l},n);return t&&this.logger.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,l,d){let c,m,y,C,L,N,de=i,oe=i;const Be=e.pid>-1,Ve=t.pid>-1,Ue=t.samples.length,ut=e.samples.length>0,dt=l&&Ue>0||Ue>1;if((!Be||ut)&&(!Ve||dt)||this.ISGenerated||l){if(this.ISGenerated){var ht,Rt,Ft,_t;const Gn=this.videoTrackConfig;(Gn&&(t.width!==Gn.width||t.height!==Gn.height||((ht=t.pixelRatio)==null?void 0:ht[0])!==((Rt=Gn.pixelRatio)==null?void 0:Rt[0])||((Ft=t.pixelRatio)==null?void 0:Ft[1])!==((_t=Gn.pixelRatio)==null?void 0:_t[1]))||!Gn&&dt||this.nextAudioPts===null&&ut)&&this.resetInitSegment()}this.ISGenerated||(y=this.generateIS(e,t,i,s));const ln=this.isVideoContiguous;let yn=-1,mr;if(dt&&(yn=vi(t.samples),!ln&&this.config.forceKeyFrameOnDiscontinuity))if(N=!0,yn>0){this.logger.warn(`[mp4-remuxer]: Dropped ${yn} out of ${Ue} video samples due to a missing keyframe`);const Gn=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(yn),t.dropped+=yn,oe+=(t.samples[0].pts-Gn)/t.inputTimeScale,mr=oe}else yn===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${Ue} video samples`),N=!1);if(this.ISGenerated){if(ut&&dt){const Gn=this.getVideoStartPts(t.samples),Dn=(ei(e.samples[0].pts,Gn)-Gn)/t.inputTimeScale;de+=Math.max(0,Dn),oe+=Math.max(0,-Dn)}if(ut){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),y=this.generateIS(e,t,i,s)),m=this.remuxAudio(e,de,this.isAudioContiguous,s,Ve||dt||d===re.AUDIO?oe:void 0),dt){const Gn=m?m.endPTS-m.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),y=this.generateIS(e,t,i,s)),c=this.remuxVideo(t,oe,ln,Gn)}}else dt&&(c=this.remuxVideo(t,oe,ln,0));c&&(c.firstKeyFrame=yn,c.independent=yn!==-1,c.firstKeyFramePTS=mr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(L=zi(n,i,this._initPTS,this._initDTS)),r.samples.length&&(C=Bi(r,i,this._initPTS))),{audio:m,video:c,initSegment:y,independent:N,text:C,id3:L}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,d={},c=this._initPTS;let m=!c||r,y="audio/mp4",C,L,N;if(m&&(C=L=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(y="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}d.audio={id:"audio",container:y,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):Xe.initSegment([e]),metadata:{channelCount:e.channelCount}},m&&(N=e.inputTimeScale,!c||N!==c.timescale?C=L=i[0].pts-Math.round(N*n):m=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,d.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Xe.initSegment([t]),metadata:{width:t.width,height:t.height}},m)if(N=t.inputTimeScale,!c||N!==c.timescale){const de=this.getVideoStartPts(s),oe=Math.round(N*n);L=Math.min(L,ei(s[0].dts,de)-oe),C=Math.min(C,de-oe)}else m=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(d).length)return this.ISGenerated=!0,m?(this._initPTS={baseTime:C,timescale:N},this._initDTS={baseTime:L,timescale:N}):C=N=void 0,{tracks:d,initPTS:C,timescale:N}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],d=s.length,c=this._initPTS;let m=this.nextAvcDts,y=8,C=this.videoSampleDuration,L,N,de=Number.POSITIVE_INFINITY,oe=Number.NEGATIVE_INFINITY,Be=!1;if(!n||m===null){const un=t*i,dn=s[0].pts-ei(s[0].dts,s[0].pts);qr&&m!==null&&Math.abs(un-dn-m)<15e3?n=!0:m=un-dn}const Ve=c.baseTime*i/c.timescale;for(let un=0;un<d;un++){const dn=s[un];dn.pts=ei(dn.pts-Ve,m),dn.dts=ei(dn.dts-Ve,m),dn.dts<s[un>0?un-1:un].dts&&(Be=!0)}Be&&s.sort(function(un,dn){const tr=un.dts-dn.dts,Zn=un.pts-dn.pts;return tr||Zn}),L=s[0].dts,N=s[s.length-1].dts;const Ue=N-L,ut=Ue?Math.round(Ue/(d-1)):C||e.inputTimeScale/30;if(n){const un=L-m,dn=un>ut,tr=un<-1;if((dn||tr)&&(dn?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Cr(un,!0)} ms (${un}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Cr(-un,!0)} ms (${un}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!tr||m>=s[0].pts||qr)){L=m;const Zn=s[0].pts-un;if(dn)s[0].dts=L,s[0].pts=Zn;else{let fr=!0;for(let Sr=0;Sr<s.length&&!(s[Sr].dts>Zn&&fr);Sr++){const Mr=s[Sr].pts;if(s[Sr].dts-=un,s[Sr].pts-=un,Sr<s.length-1){const jr=s[Sr+1].pts,Ti=s[Sr].pts,Li=jr<=Ti,ys=jr<=Mr;fr=Li==ys}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${Cr(Zn,!0)}/${Cr(L,!0)}, delta: ${Cr(un,!0)} ms`)}}L=Math.max(0,L);let dt=0,Mt=0,ht=L;for(let un=0;un<d;un++){const dn=s[un],tr=dn.units,Zn=tr.length;let fr=0;for(let Sr=0;Sr<Zn;Sr++)fr+=tr[Sr].data.length;Mt+=fr,dt+=Zn,dn.length=fr,dn.dts<ht?(dn.dts=ht,ht+=ut/4|0||1):ht=dn.dts,de=Math.min(dn.pts,de),oe=Math.max(dn.pts,oe)}N=s[d-1].dts;const Rt=Mt+4*dt+8;let Ft;try{Ft=new Uint8Array(Rt)}catch(un){this.observer.emit(p.ERROR,p.ERROR,{type:ve.MUX_ERROR,details:$.REMUX_ALLOC_ERROR,fatal:!1,error:un,bytes:Rt,reason:`fail allocating video mdat ${Rt}`});return}const _t=new DataView(Ft.buffer);_t.setUint32(0,Rt),Ft.set(Xe.types.mdat,4);let ln=!1,yn=Number.POSITIVE_INFINITY,mr=Number.POSITIVE_INFINITY,Gn=Number.NEGATIVE_INFINITY,Fn=Number.NEGATIVE_INFINITY;for(let un=0;un<d;un++){const dn=s[un],tr=dn.units;let Zn=0;for(let Mr=0,jr=tr.length;Mr<jr;Mr++){const Ti=tr[Mr],Li=Ti.data,ys=Ti.data.byteLength;_t.setUint32(y,ys),y+=4,Ft.set(Li,y),y+=ys,Zn+=4+ys}let fr;if(un<d-1)C=s[un+1].dts-dn.dts,fr=s[un+1].pts-dn.pts;else{const Mr=this.config,jr=un>0?dn.dts-s[un-1].dts:ut;if(fr=un>0?dn.pts-s[un-1].pts:ut,Mr.stretchShortVideoTrack&&this.nextAudioPts!==null){const Ti=Math.floor(Mr.maxBufferHole*i),Li=(r?de+r*i:this.nextAudioPts)-dn.pts;Li>Ti?(C=Li-jr,C<0?C=jr:ln=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${Li/90} ms to the next segment; using duration ${C/90} ms for the last video frame.`)):C=jr}else C=jr}const Sr=Math.round(dn.pts-dn.dts);yn=Math.min(yn,C),Gn=Math.max(Gn,C),mr=Math.min(mr,fr),Fn=Math.max(Fn,fr),l.push(Ai(dn.key,C,Zn,Sr))}if(l.length){if(qr){if(qr<70){const un=l[0].flags;un.dependsOn=2,un.isNonSync=0}}else if(Dr&&Fn-mr<Gn-yn&&ut/Gn<.025&&l[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let un=L;for(let dn=0,tr=l.length;dn<tr;dn++){const Zn=un+l[dn].duration,fr=un+l[dn].cts;if(dn<tr-1){const Sr=Zn+l[dn+1].cts;l[dn].duration=Sr-fr}else l[dn].duration=dn?l[dn-1].duration:ut;l[dn].cts=0,un=Zn}}}C=ln||!C?ut:C,this.nextAvcDts=m=N+C,this.videoSampleDuration=C,this.isVideoContiguous=!0;const Mn={data1:Xe.moof(e.sequenceNumber++,L,v(e,{samples:l})),data2:Ft,startPTS:de/i,endPTS:(oe+C)/i,startDTS:L/i,endDTS:m/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Mn}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return Jr;case"ac3":return gi;default:return Wr}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,d=s/l,c=this.getSamplesPerFrame(e),m=c*d,y=this._initPTS,C=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,L=[],N=i!==void 0;let de=e.samples,oe=C?0:8,Be=this.nextAudioPts||-1;const Ve=t*s,Ue=y.baseTime*s/y.timescale;if(this.isAudioContiguous=n=n||de.length&&Be>0&&(r&&Math.abs(Ve-Be)<9e3||Math.abs(ei(de[0].pts-Ue,Ve)-Be)<20*m),de.forEach(function(Dn){Dn.pts=ei(Dn.pts-Ue,Ve)}),!n||Be<0){if(de=de.filter(Dn=>Dn.pts>=0),!de.length)return;i===0?Be=0:r&&!N?Be=Math.max(0,Ve):Be=de[0].pts}if(e.segmentCodec==="aac"){const Dn=this.config.maxAudioFramesDrift;for(let $n=0,Mn=Be;$n<de.length;$n++){const un=de[$n],dn=un.pts,tr=dn-Mn,Zn=Math.abs(1e3*tr/s);if(tr<=-Dn*m&&N)$n===0&&(this.logger.warn(`Audio frame @ ${(dn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*tr/s)} ms.`),this.nextAudioPts=Be=Mn=dn);else if(tr>=Dn*m&&Zn<Kr&&N){let fr=Math.round(tr/m);Mn=dn-fr*m,Mn<0&&(fr--,Mn+=m),$n===0&&(this.nextAudioPts=Be=Mn),this.logger.warn(`[mp4-remuxer]: Injecting ${fr} audio frame @ ${(Mn/s).toFixed(3)}s due to ${Math.round(1e3*tr/s)} ms gap.`);for(let Sr=0;Sr<fr;Sr++){const Mr=Math.max(Mn,0);let jr=sn.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);jr||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),jr=un.unit.subarray()),de.splice($n,0,{unit:jr,pts:Mr}),Mn+=m,$n++}}un.pts=Mn,Mn+=m}}let ut=null,dt=null,Mt,ht=0,Rt=de.length;for(;Rt--;)ht+=de[Rt].unit.byteLength;for(let Dn=0,$n=de.length;Dn<$n;Dn++){const Mn=de[Dn],un=Mn.unit;let dn=Mn.pts;if(dt!==null){const Zn=L[Dn-1];Zn.duration=Math.round((dn-dt)/d)}else if(n&&e.segmentCodec==="aac"&&(dn=Be),ut=dn,ht>0){ht+=oe;try{Mt=new Uint8Array(ht)}catch(Zn){this.observer.emit(p.ERROR,p.ERROR,{type:ve.MUX_ERROR,details:$.REMUX_ALLOC_ERROR,fatal:!1,error:Zn,bytes:ht,reason:`fail allocating audio mdat ${ht}`});return}C||(new DataView(Mt.buffer).setUint32(0,ht),Mt.set(Xe.types.mdat,4))}else return;Mt.set(un,oe);const tr=un.byteLength;oe+=tr,L.push(Ai(!0,c,tr,0)),dt=dn}const Ft=L.length;if(!Ft)return;const _t=L[L.length-1];this.nextAudioPts=Be=dt+d*_t.duration;const ln=C?new Uint8Array(0):Xe.moof(e.sequenceNumber++,ut/d,v({},e,{samples:L}));e.samples=[];const yn=ut/s,mr=Be/s,Fn={data1:ln,data2:Mt,startPTS:yn,endPTS:mr,startDTS:yn,endDTS:mr,type:"audio",hasAudio:!0,hasVideo:!1,nb:Ft};return this.isAudioContiguous=!0,Fn}}function ei(a,e){let t;if(e===null)return a;for(e<a?t=-8589934592:t=8589934592;Math.abs(a-e)>4294967296;)a+=t;return a}function vi(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function zi(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let l=0;l<r;l++){const d=a.samples[l];d.pts=ei(d.pts-t.baseTime*i/t.timescale,e*i)/i,d.dts=ei(d.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function Bi(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const l=a.samples[s];l.pts=ei(l.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,l)=>s.pts-l.pts);const i=a.samples;return a.samples=[],{samples:i}}class no{constructor(e,t,n,r){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=r}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(ke(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=pe(e);r.audio&&(t=is(r.audio,b.AUDIO)),r.video&&(n=is(r.video,b.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var l,d;let{initPTS:c,lastEndTime:m}=this;const y={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};S(m)||(m=this.lastEndTime=i||0);const C=t.samples;if(!(C!=null&&C.length))return y;const L={initPTS:void 0,timescale:1};let N=this.initData;if((l=N)!=null&&l.length||(this.generateInitSegment(C),N=this.initData),!((d=N)!=null&&d.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),y;this.emitInitSegment&&(L.tracks=this.initTracks,this.emitInitSegment=!1);const de=it(C,N),oe=Ze(N,C),Be=oe===null?i:oe;(s||!c)&&(Ao(c,Be,i,de)||L.timescale!==c.timescale)&&(L.initPTS=Be-i,c&&c.timescale===1&&this.logger.warn(`Adjusting initPTS @${i} from ${c.baseTime/c.timescale} to ${L.initPTS}`),this.initPTS=c={baseTime:L.initPTS,timescale:1});const Ve=e?Be-c.baseTime/c.timescale:m,Ue=Ve+de;Ke(N,C,c.baseTime/c.timescale),de>0?this.lastEndTime=Ue:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const ut=!!N.audio,dt=!!N.video;let Mt="";ut&&(Mt+="audio"),dt&&(Mt+="video");const ht={data1:C,startPTS:Ve,startDTS:Ve,endPTS:Ue,endDTS:Ue,type:Mt,hasAudio:ut,hasVideo:dt,nb:1,dropped:0};return y.audio=ht.type==="audio"?ht:void 0,y.video=ht.type!=="audio"?ht:void 0,y.initSegment=L,y.id3=zi(n,i,c,c),r.samples.length&&(y.text=Bi(r,i,c)),y}}function Ao(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function is(a,e){const t=a==null?void 0:a.codec;return t&&t.length>4?t:e===b.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?Pe(t,!1):(J.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(J.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let Si;try{Si=self.performance.now.bind(self.performance)}catch(a){Si=Date.now}const ji=[{demux:Qo,remux:no},{demux:be,remux:Mi},{demux:Eo,remux:Mi},{demux:So,remux:Mi}];ji.splice(2,0,{demux:to,remux:Mi});class Ms{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=Si();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:d}=this;r&&(this.currentTransmuxState=r);const{contiguous:c,discontinuity:m,trackSwitch:y,accurateTimeOffset:C,timeOffset:L,initSegmentChange:N}=r||l,{audioCodec:de,videoCodec:oe,defaultInitPts:Be,duration:Ve,initSegmentData:Ue}=d,ut=qs(s,t);if(ut&&wr(ut.method)){const Rt=this.getDecrypter(),Ft=Ar(ut.method);if(Rt.isSync()){let _t=Rt.softwareDecrypt(s,ut.key.buffer,ut.iv.buffer,Ft);if(n.part>-1){const yn=Rt.flush();_t=yn&&yn.buffer}if(!_t)return i.executeEnd=Si(),Ea(n);s=new Uint8Array(_t)}else return this.asyncResult=!0,this.decryptionPromise=Rt.webCryptoDecrypt(s,ut.key.buffer,ut.iv.buffer,Ft).then(_t=>{const ln=this.push(_t,null,n);return this.decryptionPromise=null,ln}),this.decryptionPromise}const dt=this.needsProbing(m,y);if(dt){const Rt=this.configureTransmuxer(s);if(Rt)return this.logger.warn(`[transmuxer] ${Rt.message}`),this.observer.emit(p.ERROR,p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,fatal:!1,error:Rt,reason:Rt.message}),i.executeEnd=Si(),Ea(n)}(m||y||N||dt)&&this.resetInitSegment(Ue,de,oe,Ve,t),(m||N||dt)&&this.resetInitialTimestamp(Be),c||this.resetContiguity();const Mt=this.transmux(s,ut,L,C,n);this.asyncResult=Bs(Mt);const ht=this.currentTransmuxState;return ht.contiguous=!0,ht.discontinuity=!1,ht.trackSwitch=!1,i.executeEnd=Si(),Mt}flush(e){const t=e.transmuxing;t.executeStart=Si();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:l}=r;if(n){const y=n.flush();y&&s.push(this.push(y.buffer,null,e))}const{demuxer:d,remuxer:c}=this;if(!d||!c){t.executeEnd=Si();const y=[Ea(e)];return this.asyncResult?Promise.resolve(y):y}const m=d.flush(l);return Bs(m)?(this.asyncResult=!0,m.then(y=>(this.flushRemux(s,y,e),s))):(this.flushRemux(s,m,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:l}=t,{accurateTimeOffset:d,timeOffset:c}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===re.MAIN?"level":"track"} ${n.level}`);const m=this.remuxer.remux(r,i,s,l,c,d,!0,this.id);e.push({remuxResult:m,chunkMeta:n}),n.transmuxing.executeEnd=Si()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(e,t,n,r),l.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:d}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,l,d,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let y=0,C=ji.length;y<C;y++){var s;if((s=ji[y].demux)!=null&&s.probe(e,this.logger)){i=ji[y];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,d=this.remuxer,c=i.remux,m=i.demux;(!d||!(d instanceof c))&&(this.remuxer=new c(n,t,r,this.logger)),(!l||!(l instanceof m))&&(this.demuxer=new m(n,t,r,this.logger),this.probe=m.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Xr(this.config)),e}}function qs(a,e){let t=null;return a.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Ea=a=>({remuxResult:{},chunkMeta:a});function Bs(a){return"then"in a&&a.then instanceof Function}class To{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 Sa{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 wa=0;class Aa{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=wa++,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=d=>{const c=d.data,m=this.hls;if(!(!m||!(c!=null&&c.event)||c.instanceNo!==this.instanceNo))switch(c.event){case"init":{var y;const C=(y=this.workerContext)==null?void 0:y.objectURL;C&&self.URL.revokeObjectURL(C);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}case"workerLog":{m.logger[c.data.logType]&&m.logger[c.data.logType](c.data.message);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.part=this.part,c.data.id=this.id,m.trigger(c.event,c.data);break}}},this.onWorkerError=d=>{if(!this.hls)return;const c=new Error(`${d.message} (${d.filename}:${d.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:c})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(d,c)=>{c=c||{},c.frag=this.frag||void 0,d===p.ERROR&&(c=c,c.parent=this.id,c.part=this.part,this.error=c.error),this.hls.trigger(d,c)};this.observer=new Vs,this.observer.on(p.FRAG_DECRYPTED,s),this.observer.on(p.ERROR,s);const l=Et(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const d=this.hls.logger;if(i.workerPath||Oa()){try{i.workerPath?(d.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=Ba(i.workerPath)):(d.log(`injecting Web Worker for "${t}"`),this.workerContext=Ma());const{worker:m}=this.workerContext;m.addEventListener("message",this.onWorkerMessage),m.addEventListener("error",this.onWorkerError),m.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:gn(i)})}catch(m){d.warn(`Error setting up "${t}" Web Worker, fallback to inline`,m),this.terminateWorker(),this.error=null,this.transmuxer=new Ms(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new Ms(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=wa++;const t=this.hls.config,n=Et(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:gn(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),po(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,l,d,c,m){var y,C;c.transmuxing.start=self.performance.now();const{instanceNo:L,transmuxer:N}=this,de=s?s.start:i.start,oe=i.decryptdata,Be=this.frag,Ve=!(Be&&i.cc===Be.cc),Ue=!(Be&&c.level===Be.level),ut=Be?c.sn-Be.sn:-1,dt=this.part?c.part-this.part.index:-1,Mt=ut===0&&c.id>1&&c.id===(Be==null?void 0:Be.stats.chunkCount),ht=!Ue&&(ut===1||ut===0&&(dt===1||Mt&&dt<=0)),Rt=self.performance.now();(Ue||ut||i.stats.parsing.start===0)&&(i.stats.parsing.start=Rt),s&&(dt||!ht)&&(s.stats.parsing.start=Rt);const Ft=!(Be&&((y=i.initSegment)==null?void 0:y.url)===((C=Be.initSegment)==null?void 0:C.url)),_t=new Sa(Ve,ht,d,Ue,de,Ft);if(!ht||Ve||Ft){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${c.sn}${c.part>-1?" part: "+c.part:""} ${this.id===re.MAIN?"level":"track"}: ${c.level} id: ${c.id}
|
|
discontinuity: ${Ve}
|
|
trackSwitch: ${Ue}
|
|
contiguous: ${ht}
|
|
accurateTimeOffset: ${d}
|
|
timeOffset: ${de}
|
|
initSegmentChange: ${Ft}`);const ln=new To(n,r,t,l,m);this.configureTransmuxer(ln)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:L,cmd:"demux",data:e,decryptdata:oe,chunkMeta:c,state:_t},e instanceof ArrayBuffer?[e]:[]);else if(N){const ln=N.push(e,oe,c,_t);Bs(ln)?ln.then(yn=>{this.handleTransmuxComplete(yn)}).catch(yn=>{this.transmuxerError(yn,c,"transmuxer-interface push error")}):this.handleTransmuxComplete(ln)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);Bs(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Ta=100;class ea extends ds{constructor(e,t,n){super(e,t,n,"audio-stream-controller",re.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(p.BUFFER_RESET,this.onBufferReset,this),e.on(p.BUFFER_CREATED,this.onBufferCreated,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(p.FRAG_LOADING,this.onFragLoading,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(p.BUFFER_RESET,this.onBufferReset,this),e.off(p.BUFFER_CREATED,this.onBufferCreated,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(p.FRAG_LOADING,this.onFragLoading,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n===re.MAIN){const s=t.cc,l=this.fragCurrent;if(this.initPTS[s]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}/${i}`),this.mainAnchor=t,this.state===Ht.WAITING_INIT_PTS){const d=this.waitingData;(!d&&!this.loadingParts||d&&d.frag.cc!==s)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&l&&l.cc!==s?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,l.abortRequests(),this.resetLoadingState()):this.state===Ht.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),n=e.cc;return On(t,n,e)||t&&Rn(t.fragments,n)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Ht.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(Ta),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=Ht.IDLE):this.state=Ht.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Ht.IDLE:this.doTickIdle();break;case Ht.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=Ht.WAITING_INIT_PTS}break}case Ht.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((r==null?void 0:r[i])||null),this.state=Ht.IDLE}break}case Ht.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:s}=t,l=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=Ht.FRAG_LOADING;const d=i.flush().buffer,c={frag:n,part:r,payload:d,networkDetails:null};this._handleFragmentLoadProgress(c),s&&super._handleFragmentLoadComplete(c)}else l&&l.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${l.cc}`),this.nextLoadPosition=this.findSyncFrag(l).start,this.clearWaitingFragment())}else this.state=Ht.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==Ht.STOPPED&&(this.state=Ht.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const l=n[i],d=l.details;if(!d||this.waitForLive(l)||this.waitForCdnTuneIn(d)){this.state=Ht.WAITING_TRACK,this.startFragRequested=!1;return}const c=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&c&&(this.bufferFlushed=!1,this.afterBufferFlushed(c,b.AUDIO,re.AUDIO));const m=this.getFwdBufferInfo(c,re.AUDIO);if(m===null)return;if(!this.switchingTrack&&this._streamEnded(m,d)){t.trigger(p.BUFFER_EOS,{type:"audio"}),this.state=Ht.ENDED;return}const y=m.len,C=t.maxBufferLength,L=d.fragments,N=L[0].start,de=this.getLoadPosition(),oe=this.flushing?de:m.end;if(this.switchingTrack&&r){const Ue=de;d.PTSKnown&&Ue<N&&(m.end>N||m.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=N+.05)}if(y>=C&&!this.switchingTrack&&oe<L[L.length-1].start)return;let Be=this.getNextFragment(oe,d);if(Be&&this.isLoopLoading(Be,oe)&&(Be=this.getNextFragmentLoopLoading(Be,d,m,re.MAIN,C)),!Be){this.bufferFlushed=!0;return}let Ve=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Ve&&F(Be)&&!Be.endList&&(!d.live||!this.loadingParts&&oe<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Ve)===jn.OK&&(this.mainFragLoading=Ve=null),Ve&&F(Ve))){if(Be.start>Ve.end){const ut=this.fragmentTracker.getFragAtPos(oe,re.MAIN);ut&&ut.end>Ve.end&&(Ve=ut,this.mainFragLoading={frag:ut,targetBufferTime:null})}if(Be.start>Ve.end)return}this.loadFragment(Be,l,oe)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Pn(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Ht.STOPPED&&(this.setInterval(Ta),this.state=Ht.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(p.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:s,groupId:l,track:d}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${d.name}" of "${l}"`);return}const c=this.mainDetails;if(!c||i.endCC>c.endCC||c.expired){this.cachedTrackLoadedData=t,this.state!==Ht.STOPPED&&(this.state=Ht.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${d.name}" of "${l}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const m=r[s];let y=0;if(i.live||(n=m.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(m.details){var C;y=this.alignPlaylists(i,m.details,(C=this.levelLastLoaded)==null?void 0:C.details)}i.alignedSliding||(mi(i,c),i.alignedSliding||zr(i,c),y=i.fragmentStart)}m.details=i,this.levelLastLoaded=m,this.startFragRequested||this.setStartPosition(c,y),this.hls.trigger(p.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===Ht.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Ht.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:s,trackId:l,levels:d}=this;if(!d){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const c=d[l];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const m=c.details;if(!m){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const y=s.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let C=this.transmuxer;C||(C=this.transmuxer=new Aa(this.hls,re.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const L=this.initPTS[n.cc],N=(t=n.initSegment)==null?void 0:t.data;if(L!==void 0){const oe=r?r.index:-1,Be=oe!==-1,Ve=new Hr(n.level,n.sn,n.stats.chunkCount,i.byteLength,oe,Be);C.push(i,N,y,"",n,r,m.totalduration,!1,Ve,L)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${m.startSN} ,${m.endSN}],track ${l}`);const{cache:de}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new hs,complete:!1};de.push(new Uint8Array(i)),this.state!==Ht.STOPPED&&(this.state=Ht.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===re.MAIN&&F(t.frag)&&(this.mainFragLoading=t,this.state===Ht.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==re.AUDIO){!this.audioOnly&&n.type===re.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(F(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(p.AUDIO_TRACK_SWITCHED,A({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=Ht.ERROR;return}switch(t.details){case $.FRAG_GAP:case $.FRAG_PARSING_ERROR:case $.FRAG_DECRYPT_ERROR:case $.FRAG_LOAD_ERROR:case $.FRAG_LOAD_TIMEOUT:case $.KEY_LOAD_ERROR:case $.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(re.AUDIO,t);break;case $.AUDIO_TRACK_LOAD_ERROR:case $.AUDIO_TRACK_LOAD_TIMEOUT:case $.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Ht.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===he.AUDIO_TRACK&&(this.state=Ht.IDLE);break;case $.BUFFER_ADD_CODEC_ERROR:case $.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case $.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case $.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==b.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==b.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Ht.ENDED&&(this.state=Ht.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,re.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:d,part:c,level:m}=l,{details:y}=m,{audio:C,text:L,id3:N,initSegment:de}=i;if(this.fragContextChanged(d)||!y){this.fragmentTracker.removeFragment(d);return}if(this.state=Ht.PARSING,this.switchingTrack&&C&&this.completeAudioSwitch(this.switchingTrack),de!=null&&de.tracks){const oe=d.initSegment||d;this._bufferInitSegment(m,de.tracks,oe,s),r.trigger(p.FRAG_PARSING_INIT_SEGMENT,{frag:oe,id:n,tracks:de.tracks})}if(C){const{startPTS:oe,endPTS:Be,startDTS:Ve,endDTS:Ue}=C;c&&(c.elementaryStreams[b.AUDIO]={startPTS:oe,endPTS:Be,startDTS:Ve,endDTS:Ue}),d.setElementaryStreamInfo(b.AUDIO,oe,Be,Ve,Ue),this.bufferFragmentData(C,d,c,s)}if(N!=null&&(t=N.samples)!=null&&t.length){const oe=v({id:n,frag:d,details:y},N);r.trigger(p.FRAG_PARSING_METADATA,oe)}if(L){const oe=v({id:n,frag:d,details:y},L);r.trigger(p.FRAG_PARSING_USERDATA,oe)}}_bufferInitSegment(e,t,n,r){if(this.state!==Ht.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=re.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(p.BUFFER_CODECS,t);const l=i.initSegment;if(l!=null&&l.byteLength){const d={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:l};this.hls.trigger(p.BUFFER_APPENDING,d)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===jn.NOT_LOADED||r===jn.PARTIAL){var i;if(!F(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Ht.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&zr(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l}=this.bufferedTrack;Lt({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,At)||(qt(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(p.AUDIO_TRACK_SWITCHED,A({},e))}}class Co extends ie{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const l=r[s];let d;try{d=new self.URL(l.URI,t.url).href}catch(c){this.warn(`Could not construct new URL for Rendition Report: ${c}`),d=l.URI||""}if(d===e){i=s;break}else d===e.substring(0,d.length)&&(i=s)}if(i!==-1){const s=r[i],l=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let d=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const m=Math.min(t.age-t.partTarget,t.targetduration);d>=0&&m>t.partTarget&&(d+=1)}const c=n&&xn(n);return new on(l,d>=0?d:void 0,c)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),l=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-l;const d=this.hls.config.timelineOffset;if(d!==r.appliedTimelineOffset){const m=Math.max(d||0,0);r.appliedTimelineOffset=m,r.fragments.forEach(y=>{y.start=y.playlistOffset+m})}if(r.live||n!=null&&n.live){const m="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){aa(n,r);const Ve=r.playlistParsingError;if(Ve){this.warn(Ve);const Ue=this.hls;if(!Ue.config.ignorePlaylistParsingErrors){var c;const{networkDetails:ut}=t;Ue.trigger(p.ERROR,{type:ve.NETWORK_ERROR,details:$.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Ve,reason:Ve.message,level:t.level||void 0,parent:(c=r.fragments[0])==null?void 0:c.type,networkDetails:ut,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const y=this.hls.mainForwardBufferInfo,C=y?y.end-y.len:0,L=(r.edge-C)*1e3,N=es(r,L);if(r.requestScheduled+N<s?r.requestScheduled=s:r.requestScheduled+=N,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let de,oe,Be;if(r.canBlockReload&&r.endSN&&r.advanced){const Ve=this.hls.config.lowLatencyMode,Ue=r.lastPartSn,ut=r.endSN,dt=r.lastPartIndex,Mt=dt!==-1,ht=Ue===ut;Mt?ht?(oe=ut+1,Be=Ve?0:dt):(oe=Ue,Be=Ve?dt+1:r.maxPartIndex):oe=ut+1;const Rt=r.age,Ft=Rt+r.ageHeader;let _t=Math.min(Ft-r.partTarget,r.targetduration*1.5);if(_t>0){if(Ft>r.targetduration*3)this.log(`Playlist last advanced ${Rt.toFixed(2)}s ago. Omitting segment and part directives.`),oe=void 0,Be=void 0;else if(n!=null&&n.tuneInGoal&&Ft-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${_t} with playlist age: ${r.age}`),_t=0;else{const ln=Math.floor(_t/r.targetduration);if(oe+=ln,Be!==void 0){const yn=Math.round(_t%r.targetduration/r.partTarget);Be+=yn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Rt.toFixed(2)}s goal: ${_t} skip sn ${ln} to part ${Be}`)}r.tuneInGoal=_t}if(de=this.getDeliveryDirectives(r,t.deliveryDirectives,oe,Be),Ve||!ht){r.requestScheduled=s,this.loadingPlaylist(m,de);return}}else(r.canBlockReload||r.canSkipUntil)&&(de=this.getDeliveryDirectives(r,t.deliveryDirectives,oe,Be));de&&oe!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(N-l*2,N/2)),this.scheduleLoading(m,de,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const l=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),l)}getDeliveryDirectives(e,t,n,r){let i=xn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Wt.No),new on(n,r,i)}checkRetry(e){const t=e.details,n=Nn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},d=!!r&&!!l&&(i===Qn.RetryRequest||!r.resolved&&i===Qn.SendAlternateToPenaltyBox);if(d){var c;if(s>=l.maxNumRetry)return!1;if(n&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const m=Bn(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),m),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" in ${m}ms`)}e.levelRetry=!0,r.resolved=!0}return d}}function Jo(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Ca(a[t].attrs,e[t].attrs))return!1;return!0}function Ca(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function Do(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Ql extends Co{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVEL_LOADING,this.onLevelLoading,this),e.off(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(p.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(l=>(r==null?void 0:r.indexOf(l))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(C=>!n||n.indexOf(C.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(C=>C.default)&&(this.selectDefaultTrack=!1),l.forEach((C,L)=>{C.id=L});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const d=this.hls.config.audioPreference;if(!i&&d){const C=gt(d,l,At);if(C>-1)i=l[C];else{const L=gt(d,this.tracks);i=this.tracks[L]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const m={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(p.AUDIO_TRACKS_UPDATED,m);const y=this.trackId;if(c!==-1&&y===-1)this.setAudioTrack(c);else if(l.length&&y===-1){var s;const C=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(C.message),this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:C})}}}onError(e,t){t.fatal||!t.context||t.context.type===he.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Lt(e,r,At))return r;const i=gt(e,this.tracksInGroup,At);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const l=jt(e,t.levels,n,s,At);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=gt(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(p.AUDIO_TRACK_SWITCHING,A({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||Lt(e,r,At)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:d}=e;for(let c=0;c<t.length;c++){const m=t[c];if(Lt({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:d},m,At))return c}for(let c=0;c<t.length;c++){const m=t[c];if(Ca(e.attrs,m.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<t.length;c++){const m=t[c];if(Ca(e.attrs,m.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&qt(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(p.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class Jl{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
${this.list("video")}
|
|
${this.list("audio")}
|
|
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const qo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,el="HlsJsTrackRemovedError";class ql extends Error{constructor(e){super(e),this.name=el}}class eu extends ie{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(p.MEDIA_ATTACHED,{media:r,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=Ce(ge(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.BUFFER_RESET,this.onBufferReset,this),e.on(p.BUFFER_APPENDING,this.onBufferAppending,this),e.on(p.BUFFER_CODECS,this.onBufferCodecs,this),e.on(p.BUFFER_EOS,this.onBufferEos,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.FRAG_PARSED,this.onFragParsed,this),e.on(p.FRAG_CHANGED,this.onFragChanged,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.BUFFER_RESET,this.onBufferReset,this),e.off(p.BUFFER_APPENDING,this.onBufferAppending,this),e.off(p.BUFFER_CODECS,this.onBufferCodecs,this),e.off(p.BUFFER_EOS,this.onBufferEos,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.FRAG_PARSED,this.onFragParsed,this),e.off(p.FRAG_CHANGED,this.onFragChanged,this),e.off(p.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?v(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=v({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,r=ge(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const d=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||d&&s instanceof d,tl(n),tu(n,l),n.load()}catch(d){n.src=l}else n.src=l}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,l=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
required tracks: ${gn(n,(d,c)=>d==="initSegment"?void 0:c)};
|
|
transfer tracks: ${gn(r,(d,c)=>d==="initSegment"?void 0:c)}}`),!Te(r,n)){t.mediaSource=null,t.tracks=void 0;const d=e.currentTime,c=this.details,m=Math.max(d,(c==null?void 0:c.fragments[0].start)||0);if(m-d>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${d} -> ${m}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${m} currentTime: ${d}`),this.onMediaDetaching(p.MEDIA_DETACHING,{}),this.onMediaAttaching(p.MEDIA_ATTACHING,t),e.currentTime=m;return}this.transferData=void 0,i.forEach(d=>{const c=d,m=r[c];if(m){const y=m.buffer;if(y){const C=this.fragmentTracker,L=m.id;if(C.hasFragments(L)||C.hasParts(L)){const oe=In.getBuffered(y);C.detectEvictedFragments(c,oe,L,null,!0)}const N=Ro(c),de=[c,y];this.sourceBuffers[N]=de,y.updating&&this.operationQueue&&this.operationQueue.prependBlocker(c),this.trackSourceBuffer(c,m)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=i.readyState==="open";try{const d=i.sourceBuffers;for(let c=d.length;c--;)l&&d[c].abort(),i.removeSourceBuffer(d[c]);l&&i.endOfStream()}catch(d){this.warn(`onMediaDetaching: ${d.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&&tl(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(p.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ro(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Jl(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&r.some(l=>!n[l]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(l=>{var d,c,m;const y=t[l],{id:C,codec:L,levelCodec:N,container:de,metadata:oe,supplemental:Be}=y;let Ve=n[l];const Ue=(d=this.transferData)==null||(c=d.tracks)==null?void 0:c[l],ut=Ue!=null&&Ue.buffer?Ue:Ve,dt=(ut==null?void 0:ut.pendingCodec)||(ut==null?void 0:ut.codec),Mt=ut==null?void 0:ut.levelCodec;Ve||(Ve=n[l]={buffer:void 0,listeners:[],codec:L,supplemental:Be,container:de,levelCodec:N,metadata:oe,id:C});const ht=an(dt,Mt),Rt=ht==null?void 0:ht.replace(qo,"$1");let Ft=an(L,N);const _t=(m=Ft)==null?void 0:m.replace(qo,"$1");Ft&&ht&&Rt!==_t&&(l.slice(0,5)==="audio"&&(Ft=Pe(Ft,this.appendSource)),this.log(`switching codec ${dt} to ${Ft}`),Ft!==(Ve.pendingCodec||Ve.codec)&&(Ve.pendingCodec=Ft),Ve.container=de,this.appendChangeType(l,de,Ft))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),l.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,re.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const d=this.tracks.video;(this.lastVideoAppendEnd>r||d!=null&&d.buffer&&In.isBuffered(d.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,re.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:s,frag:l,part:d,chunkMeta:c}=t,m=c.buffering[i],y=l.sn,C=self.performance.now();m.start=C;const L=l.stats.buffering,N=d?d.stats.buffering:null;L.start===0&&(L.start=C),N&&N.start===0&&(N.start=C);const de=n.audio;let oe=!1;i==="audio"&&(de==null?void 0:de.container)==="audio/mpeg"&&(oe=!this.lastMpegAudioChunk||c.id===1||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const Be=this.tracks.video,Ve=Be==null?void 0:Be.buffer;if(Ve&&y!=="initSegment"){const dt=d||l,Mt=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const Rt=dt.start+dt.duration*.05,Ft=Ve.buffered,_t=this.currentOp("video");!Ft.length&&!_t?this.blockAudio(dt):!_t&&!In.isBuffered(Ve,Rt)&&this.lastVideoAppendEnd<Rt&&this.blockAudio(dt)}else if(i==="video"){const ht=dt.end;if(Mt){const Rt=Mt.frag.start;(ht>Rt||ht<this.lastVideoAppendEnd||In.isBuffered(Ve,Rt))&&this.unblockAudio()}this.lastVideoAppendEnd=ht}}const Ue=(d||l).start,ut={label:`append-${i}`,execute:()=>{if(m.executeStart=self.performance.now(),oe){const dt=this.tracks[i];if(dt){const Mt=dt.buffer;if(Mt){const ht=Ue-Mt.timestampOffset;Math.abs(ht)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ue} (delta: ${ht}) sn: ${y})`),Mt.timestampOffset=Ue)}}}this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const dt=self.performance.now();m.executeEnd=m.end=dt,L.first===0&&(L.first=dt),N&&N.first===0&&(N.first=dt);const Mt={};this.sourceBuffers.forEach(([ht,Rt])=>{ht&&(Mt[ht]=In.getBuffered(Rt))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(p.BUFFER_APPENDED,{type:i,frag:l,part:d,chunkMeta:c,parent:l.type,timeRanges:Mt})},onError:dt=>{var Mt;const ht={type:ve.MEDIA_ERROR,parent:l.type,details:$.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:d,chunkMeta:c,error:dt,err:dt,fatal:!1},Rt=(Mt=this.media)==null?void 0:Mt.error;if(dt.code===DOMException.QUOTA_EXCEEDED_ERR)ht.details=$.BUFFER_FULL_ERROR;else if(dt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Rt)ht.errorAction=Hn(!0);else if(dt.name===el&&this.sourceBufferCount===0)ht.errorAction=Hn(!0);else{const Ft=++this.appendErrors[i];this.warn(`Failed ${Ft}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${Rt||"no media error"})`),(Ft>=this.hls.config.appendErrorMaxRetry||Rt)&&(ht.fatal=!0)}this.hls.trigger(p.ERROR,ht)}};this.append(ut,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(p.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[b.AUDIOVIDEO]?i.push("audiovideo"):(s[b.AUDIO]&&i.push("audio"),s[b.VIDEO]&&i.push("video"));const l=()=>{const d=self.performance.now();n.stats.buffering.end=d,r&&(r.stats.buffering.end=d);const c=r?r.stats:n.stats;this.hls.trigger(p.FRAG_BUFFERED,{frag:n,part:r,stats:c,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(l,i).catch(d=>{this.warn(`Fragment buffered callback ${d}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,n;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((n=this.tracks[e])==null?void 0:n.ending))})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})&&(r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(p.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(p.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===$.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;S(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,s=t.levelTargetDuration,l=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(S(l)&&l>=0){const d=Math.max(l,s),c=Math.floor(i/s)*s-d;this.flushBackBuffer(i,s,c)}if(S(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const d=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),c=Math.max(d,s),m=Math.floor(i/s)*s+c;this.flushFrontBuffer(i,s,m)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=In.getBuffered(i);if(l.length>0&&n>l.start(0)){var s;this.hls.trigger(p.BACK_BUFFER_REACHED,{bufferEnd:n});const d=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(p.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(d!=null&&d.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(p.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const s=In.getBuffered(i),l=s.length;if(l<2)return;const d=s.start(l-1),c=s.end(l-1);if(n>d||e>=d&&e<=c)return;this.hls.trigger(p.BUFFER_FLUSHING,{startOffset:d,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const c=Math.max(0,t.fragmentStart),m=Math.max(c,r);return{duration:1/0,start:c,end:m}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return S(i)?{duration:i}:null;const s=this.media.duration,l=S(n.duration)?n.duration:0;return r>l&&r>s||!S(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(S(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${gn(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(p.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const s=i,l=e[s];if(this.isPending(l)){const d=this.getTrackCodec(l,s),c=`${l.container};codecs=${d}`;l.codec=d,this.log(`creating sourceBuffer(${c})${this.currentOp(s)?" Queued":""} ${gn(l)}`);try{const m=n.addSourceBuffer(c),y=Ro(s),C=[s,m];t[y]=C,l.buffer=m}catch(m){var r;this.error(`error while trying to add sourceBuffer: ${m.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:m,sourceBufferName:s,mimeType:c,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&Ge(n,"video")&&(r=Qt(r,n));const i=an(r,e.levelCodec);return i?t.slice(0,5)==="audio"?Pe(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(p.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],l=s==null?void 0:s.buffer;if(!r||!i||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const d=S(r.duration)?r.duration:1/0,c=S(i.duration)?i.duration:1/0,m=Math.max(0,t),y=Math.min(n,d,c);y>m&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${m},${y}] from the ${e} SourceBuffer`),l.remove(m,y)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new ql(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function tl(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function tu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Ro(a){return a==="audio"?1:0}class Io{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(p.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.BUFFER_CODECS,this.onBufferCodecs,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(p.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.BUFFER_CODECS,this.onBufferCodecs,this),e.off(p.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&&S(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,Io.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(l,d)=>d?l.width!==d.width||l.height!==d.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let l=0;l<e.length;l+=1){const d=e[l];if((d.width>=s||d.height>=s)&&r(d,e[l+1])){i=l;break}}return i}}const Ii={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},nu={HLS:"h"},Da={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},ru={[Da.OBJECT]:["br","d","ot","tb"],[Da.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Da.SESSION]:["cid","pr","sf","sid","st","v"],[Da.STATUS]:["bs","rtp"]};class ta{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof ta?n:new ta(n))),this.value=e,this.params=t}}const iu="Dict";function su(a){return Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a=="object"?JSON.stringify(a):String(a)}function au(a,e,t,n){return new Error(`failed to ${a} "${su(e)}" as ${t}`,{cause:n})}function Zi(a,e,t){return au("serialize",a,e,t)}class nl{constructor(e){this.description=e}}const rl="Bare Item",ou="Boolean";function lu(a){if(typeof a!="boolean")throw Zi(a,ou);return a?"?1":"?0"}const uu="Byte Sequence";function cu(a){if(ArrayBuffer.isView(a)===!1)throw Zi(a,uu);return`:${Ga(a)}:`}const du="Integer";function hu(a){return a<-999999999999999||999999999999999<a}function il(a){if(hu(a))throw Zi(a,du);return a.toString()}function fu(a){return`@${il(a.getTime()/1e3)}`}const pu="Decimal";function mu(a){const e=Ka(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Zi(a,pu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const gu="String",vu=/[\x00-\x1f\x7f]+/;function _u(a){if(vu.test(a))throw Zi(a,gu);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function yu(a){return a.description||a.toString().slice(7,-1)}const bu="Token";function sl(a){const e=yu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Zi(e,bu);return e}function Lo(a){switch(typeof a){case"number":if(!S(a))throw Zi(a,rl);return Number.isInteger(a)?il(a):mu(a);case"string":return _u(a);case"symbol":return sl(a);case"boolean":return lu(a);case"object":if(a instanceof Date)return fu(a);if(a instanceof Uint8Array)return cu(a);if(a instanceof nl)return sl(a);default:throw Zi(a,rl)}}const xu="Key";function ko(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Zi(a,xu);return a}function Po(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${ko(e)}`:`;${ko(e)}=${Lo(t)}`).join("")}function al(a){return a instanceof ta?`${Lo(a.value)}${Po(a.params)}`:Lo(a)}function Eu(a){return`(${a.value.map(al).join(" ")})${Po(a.params)}`}function Su(a,e={whitespace:!0}){if(typeof a!="object")throw Zi(a,iu);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof ta||(i=new ta(i));let s=ko(r);return i.value===!0?s+=Po(i.params):(s+="=",Array.isArray(i.value)?s+=Eu(i):s+=al(i)),s}).join(`,${n}`)}function wu(a,e){return Su(a,e)}function Au(a){return a==="ot"||a==="sf"||a==="st"}function Tu(a){return typeof a=="number"?S(a):a!=null&&a!==""&&a!==!1}const ro=a=>Math.round(a),Cu=(a,e)=>(e!=null&&e.baseUrl&&(a=Wa(a,e.baseUrl)),encodeURIComponent(a)),io=a=>ro(a/100)*100,Du={br:ro,d:ro,bl:io,dl:io,mtp:io,nor:Cu,rtp:io,tb:ro};function Ru(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=v({},Du,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let l=a[s];const d=r[s];d&&(l=d(l,e)),!(s==="v"&&l===1)&&(s=="pr"&&l===1||Tu(l)&&(Au(s)&&typeof l=="string"&&(l=new nl(l)),t[s]=l))}),t}function ol(a,e={}){return a?wu(Ru(a,e),v({whitespace:!1},e)):""}function Iu(a,e={}){const t={};if(!a)return t;const n=Object.entries(a),r=Object.entries(ru).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,l)=>{var d,c;const[m,y]=l,C=((d=r.find(L=>L[1].includes(m)))===null||d===void 0?void 0:d[0])||Da.REQUEST;return(c=s[C])!==null&&c!==void 0||(s[C]={}),s[C][m]=y,s},{});return Object.entries(i).reduce((s,[l,d])=>(s[l]=ol(d,e),s),t)}function Lu(a,e,t){return v(a,Iu(e,t))}const ku="CMCD";function Pu(a,e={}){if(!a)return"";const t=ol(a,e);return`${ku}=${encodeURIComponent(t)}`}const ll=/CMCD=[^&#]+/;function Ou(a,e,t){const n=Pu(e,t);if(!n)return a;if(ll.test(a))return a.replace(ll,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Mu{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:Ii.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,l=this.hls.levels[i.level],d=this.getObjectType(i),c={d:(s||i).duration*1e3,ot:d};(d===Ii.VIDEO||d===Ii.AUDIO||d==Ii.MUXED)&&(c.br=l.bitrate/1e3,c.tb=this.getTopBandwidth(d)/1e3,c.bl=this.getBufferLength(d));const m=s?this.getNextPart(s):this.getNextFrag(i);m!=null&&m.url&&m.url!==i.url&&(c.nor=m.url),this.apply(r,c)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHED,this.onMediaDetached,this),e.on(p.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHED,this.onMediaDetached,this),e.off(p.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:nu.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){v(t,this.createData());const n=t.ot===Ii.INIT||t.ot===Ii.VIDEO||t.ot===Ii.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,l)=>(r.includes(l)&&(s[l]=t[l]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Lu(e.headers,t,i)):e.url=Ou(e.url,t,i)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t,n;const{index:r,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(n=t.details)==null?void 0:n.partList;if(s){const{sn:l}=i;for(let d=s.length-1;d>=0;d--){const c=s[d];if(c.index===r&&c.fragment.sn===l)return s[d+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Ii.TIMED_TEXT;if(e.sn==="initSegment")return Ii.INIT;if(t==="audio")return Ii.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ii.VIDEO:Ii.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Ii.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===Ii.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:In.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,l){t(i),this.loader.load(i,s,l)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,l){t(i),this.loader.load(i,s,l)}}}}const Bu=3e5;class Nu extends ie{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Qn.SendAlternateToPenaltyBox&&n.flags===lt.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:l,pathwayId:d,type:c}=t.context;l&&r?s=this.getPathwayForGroupId(l,c,s):d&&(s=d)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${gn(i)} penalized: ${gn(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Bu&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const l=this.hls.nextLoadLevel,d=this.hls.levels[l];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,Rs(t),this.hls.trigger(p.LEVELS_UPDATED,{levels:t});const c=this.hls.levels[l];d&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==d.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==d.bitrate&&this.log(`Unstable Pathways change from bitrate ${d.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===he.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===he.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":d}=i;if(t.some(m=>m.pathwayId===s))return;const c=this.getLevelsForPathway(l).map(m=>{const y=new zn(m.attrs);y["PATHWAY-ID"]=s;const C=y.AUDIO&&`${y.AUDIO}_clone_${s}`,L=y.SUBTITLES&&`${y.SUBTITLES}_clone_${s}`;C&&(n[y.AUDIO]=C,y.AUDIO=C),L&&(r[y.SUBTITLES]=L,y.SUBTITLES=L);const N=cl(m.uri,y["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",d),de=new Pn({attrs:y,audioCodec:m.audioCodec,bitrate:m.bitrate,height:m.height,name:m.name,url:N,videoCodec:m.videoCodec,width:m.width});if(m.audioGroups)for(let oe=1;oe<m.audioGroups.length;oe++)de.addGroupId("audio",`${m.audioGroups[oe]}_clone_${s}`);if(m.subtitleGroups)for(let oe=1;oe<m.subtitleGroups.length;oe++)de.addGroupId("text",`${m.subtitleGroups[oe]}_clone_${s}`);return de});t.push(...c),ul(this.audioTracks,n,d,s),ul(this.subtitleTracks,r,d,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(m){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const m=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+m)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,l=s.errorRetry||s.timeoutRetry||{},d={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},c={onSuccess:(m,y,C,L)=>{this.log(`Loaded steering manifest: "${r}"`);const N=m.data;if((N==null?void 0:N.VERSION)!==1){this.log(`Steering VERSION ${N.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=N.TTL;const{"RELOAD-URI":de,"PATHWAY-CLONES":oe,"PATHWAY-PRIORITY":Be}=N;if(de)try{this.uri=new self.URL(de,r).href}catch(Ue){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${de}`);return}this.scheduleRefresh(this.uri||C.url),oe&&this.clonePathways(oe);const Ve={steeringManifest:N,url:r.toString()};this.hls.trigger(p.STEERING_MANIFEST_LOADED,Ve),Be&&this.updatePathwayPriority(Be)},onError:(m,y,C,L)=>{if(this.log(`Error loading steering manifest: ${m.code} ${m.text} (${y.url})`),this.stopLoad(),m.code===410){this.enabled=!1,this.log(`Steering manifest ${y.url} no longer available`);return}let N=this.timeToLoad*1e3;if(m.code===429){const de=this.loader;if(typeof(de==null?void 0:de.getResponseHeader)=="function"){const oe=de.getResponseHeader("Retry-After");oe&&(N=parseFloat(oe)*1e3)}this.log(`Steering manifest ${y.url} rate limited`);return}this.scheduleRefresh(this.uri||y.url,N)},onTimeout:(m,y,C)=>{this.log(`Timeout loading steering manifest (${y.url})`),this.scheduleRefresh(this.uri||y.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,d,c)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function ul(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=v({},s);return l.details=void 0,l.attrs=new zn(l.attrs),l.url=l.attrs.URI=cl(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[r],l.attrs["PATHWAY-ID"]=n,l});a.push(...i)})}function cl(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let l;e&&(l=s==null?void 0:s[e],l&&(a=l));const d=new self.URL(a);return r&&!l&&(d.host=r),i&&Object.keys(i).sort().forEach(c=>{c&&d.searchParams.set(c,i[c])}),d.href}class na extends ie{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=na.CDMCleanupPromise?[na.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=mn(this.config));const l=s.map(ri).filter(d=>!!d);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=qn(s);let d,c;if(n==="sinf"){if(l!==or.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}const N=yt(new Uint8Array(r));try{const de=ar(JSON.parse(N).sinf),oe=Oe(de);if(!oe)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");d=new Uint8Array(oe.subarray(8,24)),c=or.FAIRPLAY}catch(de){this.warn(`${i} Failed to parse sinf: ${de}`);return}}else{if(l!==or.WIDEVINE&&l!==or.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}const N=ft(r),de=N.filter(Be=>!!Be.systemId&&Fr(Be.systemId)===l);de.length>1&&this.warn(`${i} Using first of ${de.length} pssh found for selected key-system ${l}`);const oe=de[0];if(!oe){N.length===0||N.some(Be=>!Be.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${N.map(Be=>Fr(Be.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(c=Fr(oe.systemId),oe.version===0&&oe.data)if(c===or.WIDEVINE){const Be=oe.data.length-22;d=new Uint8Array(oe.data.subarray(Be,Be+16))}else c===or.PLAYREADY&&(d=Ci(oe.data))}if(!c||!d)return;const m=Q.hexDump(d),{keyIdToKeySessionPromise:y,mediaKeySessions:C}=this;let L=y[m];for(let N=0;N<C.length;N++){const de=C[N],oe=de.decryptdata;if(!oe.keyId)continue;const Be=Q.hexDump(oe.keyId);if(m===Be||oe.uri.replace(/-/g,"").indexOf(m)!==-1){if(L=y[Be],oe.pssh)break;delete y[Be],oe.pssh=new Uint8Array(r),oe.keyId=d,L=y[m]=L.then(()=>this.generateRequestWithPreferredKeySession(de,n,r,"encrypted-event-key-match")),L.catch(Ve=>this.handleError(Ve));break}}if(!L){if(c!==l){this.log(`Ignoring "${t.type}" event with ${c} init data for selected key-system ${l}`);return}L=y[m]=this.getKeySystemSelectionPromise([c]).then(({keySystem:N,mediaKeys:de})=>{var oe;this.throwIfDestroyed();const Be=new Di("ISO-23001-7",m,(oe=ri(N))!=null?oe:"");return Be.pssh=new Uint8Array(r),Be.keyId=d,this.attemptSetMediaKeys(N,de).then(()=>{this.throwIfDestroyed();const Ve=this.createMediaKeySessionContext({decryptdata:Be,keySystem:N,mediaKeys:de});return this.generateRequestWithPreferredKeySession(Ve,n,r,"encrypted-event-no-match")})}),L.catch(N=>this.handleError(N))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(p.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(p.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(p.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(p.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(p.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(p.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===or.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,l,d)=>!!s&&d.indexOf(s)===l,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,l)=>{const d=c=>{const m=c.shift();this.getMediaKeysPromise(m,r,i).then(y=>s({keySystem:m,mediaKeys:y})).catch(y=>{c.length?d(c):y instanceof Ni?l(y):l(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_NO_ACCESS,error:y,fatal:!0},y.message))})};d(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return Ln===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=Pr(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${gn(r)}`),s=this.requestMediaKeySystemAccess(e,r);const l=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(d=>{this.log(`Failed to obtain access to key-system "${e}": ${d}`)}),s.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const c=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),l.mediaKeys=d.createMediaKeys().then(m=>(this.log(`Media-keys created for "${e}"`),c.then(y=>y?this.setMediaKeysServerCertificate(m,e,y):m))),l.mediaKeys.catch(m=>{this.error(`Failed to create media-keys for "${e}"}: ${m}`)}),l.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${Q.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Q.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${Q.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
|
|
} (data length: ${t&&t.byteLength})`),r.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,n)=>{const r=mn(this.config),i=e.map(qn).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const l=ri(s);l?t(l):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:d})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(l,d).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:l,mediaKeys:d,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(l=>{const d="cenc",c=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(l,d,c,"playlist-key")})).catch(l=>this.handleError(l))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ni?this.hls.trigger(p.ERROR,e.data):this.hls.trigger(p.ERROR,{type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=qn(e.keyFormat),i=r?[r]:mn(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=mn(this.config)),e.length===0)throw new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${gn({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,s;const l=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(l)try{const N=l.call(this.hls,t,n,e);if(!N)throw new Error("Invalid response from configured generateRequest filter");t=N.initDataType,n=N.initData?N.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(N){var d;if(this.warn(N.message),(d=this.hls)!=null&&d.config.debug)throw N}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const c=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${c} (init data type: ${t} length: ${n?n.byteLength:null})`);const m=new Vs,y=e._onmessage=N=>{const de=e.mediaKeysSession;if(!de){m.emit("error",new Error("invalid state"));return}const{messageType:oe,message:Be}=N;this.log(`"${oe}" message event for session "${de.sessionId}" message size: ${Be.byteLength}`),oe==="license-request"||oe==="license-renewal"?this.renewLicense(e,Be).catch(Ve=>{m.eventNames().length?m.emit("error",Ve):this.handleError(Ve)}):oe==="license-release"?e.keySystem===or.FAIRPLAY&&(this.updateKeySession(e,Tr("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${oe}"`)},C=e._onkeystatuseschange=N=>{if(!e.mediaKeysSession){m.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const oe=e.keyStatus;m.emit("keyStatus",oe),oe==="expired"&&(this.warn(`${e.keySystem} expired for key ${c}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",y),e.mediaKeysSession.addEventListener("keystatuseschange",C);const L=new Promise((N,de)=>{m.on("error",de),m.on("keyStatus",oe=>{oe.startsWith("usable")?N():oe==="output-restricted"?de(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):oe==="internal-error"?de(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${oe}"`)):oe==="expired"?de(new Error("key expired while generating request")):this.warn(`unhandled key status change "${oe}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var N;this.log(`Request generated for key-session "${(N=e.mediaKeysSession)==null?void 0:N.sessionId}" keyId: ${c}`)}).catch(N=>{throw new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_NO_SESSION,error:N,fatal:!1},`Error generating key-session request: ${N}`)}).then(()=>L).catch(N=>{throw m.removeAllListeners(),this.removeSession(e),N}).then(()=>(m.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if(typeof n=="string"&&typeof t=="object"){const r=n;n=t,t=r}this.log(`key status change "${t}" for keyStatuses keyId: ${Q.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${Q.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,l)=>{const d={responseType:"arraybuffer",url:i},c=t.certLoadPolicy.default,m={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},y={onSuccess:(C,L,N,de)=>{s(C.data)},onError:(C,L,N,de)=>{l(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:N,response:A({url:d.url,data:void 0},C)},`"${e}" certificate request failed (${i}). Status: ${C.code} (${C.text})`))},onTimeout:(C,L,N)=>{l(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:N,response:{url:d.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(C,L,N)=>{l(new Error("aborted"))}};r.load(d,m,y)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let m;for(let y=0,C=i.length;y<C;y++){var s,l;m=i[y];const L=(s=m.querySelector("name"))==null?void 0:s.textContent,N=(l=m.querySelector("value"))==null?void 0:l.textContent;L&&N&&e.setRequestHeader(L,N)}}const d=r.querySelector("Challenge"),c=d==null?void 0:d.textContent;if(!c)throw new Error("Cannot find <Challenge> in key message");return Tr(atob(c))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let d=l.response;this.log(`License received ${d instanceof ArrayBuffer?d.byteLength:d}`);const c=this.config.licenseResponseCallback;if(c)try{d=c.call(this.hls,l,s,e)}catch(m){this.error(m)}r(d)}else{const d=n.errorRetry,c=d?d.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||l.status>=400&&l.status<500)i(new Ni({type:ve.KEY_SYSTEM_ERROR,details:$.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const m=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${m} 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:d,licenseChallenge:c})=>{e.keySystem==or.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(d,c)),d.send(c)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const n=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Di.clearKeyUriToKeyIdMap();const r=n.length;na.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{drmSystemOptions:i}=this.config;return(_r(i)?new Promise((l,d)=>{self.setTimeout(()=>d(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(l)}):Promise.resolve()).catch(l=>{var d;this.log(`Could not remove session: ${l}`),(d=this.hls)==null||d.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${l}`)})}).then(()=>t.close()).catch(l=>{var d;this.log(`Could not close session: ${l}`),(d=this.hls)==null||d.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${l}`)})})}}}na.CDMCleanupPromise=void 0;class Ni extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class Fu{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(p.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(p.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(p.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,l=t-this.lastDecodedFrames,d=1e3*s/i,c=this.hls;if(c.trigger(p.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:n}),d>0&&s>c.config.fpsDroppedMonitoringThreshold*l){let m=c.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+m),m>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=m)&&(m=m-1,c.trigger(p.FPS_DROP_LEVEL_CAPPING,{level:m,droppedLevel:c.currentLevel}),c.autoLevelCapping=m,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function dl(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function hl(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){J.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){J.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function ra(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function Oo(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Uu(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function $u(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function Uu(a,e,t){const n=[],r=$u(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const l=a[i];if(l.startTime>=e&&l.endTime<=t)n.push(l);else if(l.startTime>t)return n}return n}function so(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class zu extends Co{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=so(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVEL_LOADING,this.onLevelLoading,this),e.off(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(p.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;so(n.textTracks).forEach(s=>{ra(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(m=>!n||n.indexOf(m.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(m=>m.default)&&(this.selectDefaultTrack=!1),s.forEach((m,y)=>{m.id=y});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const m=gt(l,s);if(m>-1)i=s[m];else{const y=gt(l,this.tracks);i=this.tracks[y]}}let d=this.findTrackId(i);d===-1&&i&&(d=this.findTrackId(null));const c={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(p.SUBTITLE_TRACKS_UPDATED,c),d!==-1&&this.trackId===-1&&this.setSubtitleTrack(d)}}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||Lt(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Ca(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Ca(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(Do(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===he.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Lt(e,n))return n;const r=gt(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=gt(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(p.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=so(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Do(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!S(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(p.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:l="",name:d,type:c,url:m}=r;this.hls.trigger(p.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:d,type:c,url:m});const y=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(y)}}function Ra(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const ia=.025;let ao=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function ju(a,e,t){return`${a.identifier}-${t+1}-${Ra(e)}`}class Hu{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Mo(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=Mo(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=S(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 Mo(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<ia))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?ao.Range:ao.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Gu(this)}}function Mo(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<ia)?e.start:e.start+e.duration}function fl(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Gu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Bo(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Ku{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const c=this.interstitial.playoutLimit,m=this.currentTime;this.startOffset+m>=c&&this.hls.trigger(p.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let s=r.uri;try{s=fl(s,i.sessionId).href}catch(d){}i.loadSource(s);const l=()=>{this.hasDetails=!0};i.once(p.LEVEL_LOADED,l),i.once(p.AUDIO_TRACK_LOADED,l),i.once(p.SUBTITLE_TRACK_LOADED,l),i.on(p.MEDIA_ATTACHING,(d,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&c.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=In.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=In.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Bo(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const pl=.033;class Wu extends ie{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const s=n[i];if(!s.error){const l=s.timelineStart;if(t===l||t>l&&t<l+(s.duration||0))return i}}return 0}get assetIdAtEnd(){var e,t;const n=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,i=r[r.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),l=Object.keys(r),d=i?i.filter(c=>!l.includes(c.identifier)):[];s.length&&s.sort((c,m)=>{const y=c.cue.pre,C=c.cue.post,L=m.cue.pre,N=m.cue.post;if(y&&!L)return-1;if(L&&!y||C&&!N)return 1;if(N&&!C)return-1;if(!y&&!L&&!C&&!N){const de=c.startTime,oe=m.startTime;if(de!==oe)return de-oe}return c.dateRange.tagOrder-m.dateRange.tagOrder}),this.events=s,d.forEach(c=>{this.removeEvent(c)}),this.updateSchedule(e,d)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e);(t.length||(r==null?void 0:r.length)!==i.length||i.some((l,d)=>Math.abs(l.playout.start-r[d].playout.start)>.005||Math.abs(l.playout.end-r[d].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const l=i[s],d=e[l];if(d.isInterstitial){let c=this.eventMap[l];c?c.setDateRange(d):(c=new Hu(d,t),this.eventMap[l]=c,n===!1&&(c.appendInPlace=n)),r.push(c)}}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(d=>!d.error&&!(d.cue.once&&d.hasPlayed)),e.length){this.resolveOffsets(e,t);let d=0,c=0;if(e.forEach((m,y)=>{const C=m.cue.pre,L=m.cue.post,N=e[y-1]||null,de=m.appendInPlace,oe=L?i:m.startOffset,Be=m.duration,Ve=m.timelineOccupancy===ao.Range?Be:0,Ue=m.resumptionOffset,ut=(N==null?void 0:N.startTime)===oe,dt=oe+m.cumulativeDuration;let Mt=de?dt+Be:oe+Ue;if(C||!L&&oe<=0){const Rt=c;c+=Ve,m.timelineStart=dt;const Ft=s;s+=Be,n.push({event:m,start:dt,end:Mt,playout:{start:Ft,end:s},integrated:{start:Rt,end:c}})}else if(oe<=i){if(!ut){const _t=oe-d;if(_t>pl){const ln=d,yn=c;c+=_t;const mr=s;s+=_t;const Gn={previousEvent:e[y-1]||null,nextEvent:m,start:ln,end:ln+_t,playout:{start:mr,end:s},integrated:{start:yn,end:c}};n.push(Gn)}else _t>0&&N&&(N.cumulativeDuration+=_t,n[n.length-1].end=oe)}L&&(Mt=dt),m.timelineStart=dt;const Rt=c;c+=Ve;const Ft=s;s+=Be,n.push({event:m,start:dt,end:Mt,playout:{start:Ft,end:s},integrated:{start:Rt,end:c}})}else return;const ht=m.resumeTime;L||ht>i?d=i:d=ht}),d<i){var l;const m=d,y=c,C=i-d;c+=C;const L=s;s+=C,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:d,end:m+C,playout:{start:L,end:s},integrated:{start:y,end:c}})}this.setDurations(i,s,c)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,s=-1;e.forEach((l,d)=>{const c=l.cue.pre,m=l.cue.post,y=c?0:m?r:l.startTime;this.updateAssetDurations(l),s===y?l.cumulativeDuration=i:(i=0,s=y),!m&&l.snapOptions.in&&(l.resumeAnchor=bn(null,n.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&d+1<e.length&&e[d+1].startTime-e[d].resumeTime<pl&&(e[d+1].appendInPlace=!1,e[d+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const L=S(l.resumeOffset)?l.resumeOffset:l.duration;i+=L})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>ia?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!Object.keys(t).some(s=>{const l=t[s].details,d=l.edge;if(n>=d)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${d}`),!1;const c=bn(null,l.fragments,n);if(!c)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const m=s==="audio"?.175:0;return Math.abs(c.start-n)<ia+m||Math.abs(c.end-n)<ia+m?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${c.start}-${c.end} sn: ${c.sn} cc: ${c.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach((s,l)=>{const d=t+n;s.startOffset=n,s.timelineStart=d,r||(r=s.duration===null),i||(i=!!s.error);const c=s.error?0:s.duration||0;n+=c}),r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function vs(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Vu{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=fl(n,this.hls.sessionId,e.baseUrl)}catch(C){const L=this.assignAssetListError(e,$.ASSET_LIST_LOAD_ERROR,C,n);this.hls.trigger(p.ERROR,L);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,l=new s(i),d={responseType:"json",url:r.href},c=i.interstitialAssetListLoadPolicy.default,m={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},y={onSuccess:(C,L,N,de)=>{const oe=C.data,Be=oe==null?void 0:oe.ASSETS;if(!Array.isArray(Be)){const Ve=this.assignAssetListError(e,$.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),N.url,L,de);this.hls.trigger(p.ERROR,Ve);return}e.assetListResponse=oe,this.hls.trigger(p.ASSET_LIST_LOADED,{event:e,assetListResponse:oe,networkDetails:de})},onError:(C,L,N,de)=>{const oe=this.assignAssetListError(e,$.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${C.code} ${C.text} (${L.url})`),L.url,de,N);this.hls.trigger(p.ERROR,oe)},onTimeout:(C,L,N)=>{const de=this.assignAssetListError(e,$.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${L.url})`),L.url,C,N);this.hls.trigger(p.ERROR,de)}};return l.load(d,m,y),this.hls.trigger(p.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ve.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function ss(a,e,t){Yi(a,e,t),a.addEventListener(e,t)}function Yi(a,e,t){a.removeEventListener(e,t)}function ml(a){a==null||a.play().catch(()=>{})}class Zu extends ie{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(),this.checkBuffer(),s&&n<l.start||n>=l.end){var d;const C=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(l)&&(d=this.media)!=null&&d.paused&&(this.shouldPlay=!1),!s){const L=this.findItemIndex(l);if(C>L){const N=this.schedule.findJumpRestrictedIndex(L+1,C);if(N>L){this.setSchedulePosition(N);return}}}this.setSchedulePosition(C);return}const c=this.playingAsset;if(!c){if(this.playingLastItem&&this.isInterstitial(l)){const C=l.event.assetList[0];C&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,C))}return}const m=c.timelineStart,y=c.duration||0;(s&&n<m||n>=m+y)&&this.setScheduleToAssetAtTime(n,c)},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const l=this.findItemIndex(r);this.setSchedulePosition(l+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule,s=this.playingItem,l=i.events||[],d=i.items||[],c=i.durations,m=n.map(L=>L.identifier),y=!!(l.length||m.length);if(y&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
|
|
Schedule: ${d.map(L=>vs(L))}`),m.length&&this.log(`Removed events ${m}`),this.playerQueue.forEach(L=>{if(L.interstitial.appendInPlace){const N=L.assetItem.timelineStart,de=L.timelineOffset-N;if(de)try{L.timelineOffset=N}catch(oe){Math.abs(de)>ia&&this.warn(`${oe} ("${L.assetId}" ${L.timelineOffset}->${N})`)}}}),s){const L=this.updateItem(s,this.timelinePos);this.itemsMatch(s,L)&&(this.playingItem=L,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const C=this.bufferingItem;if(C){const L=this.updateItem(C,this.bufferedPos);this.itemsMatch(C,L)?this.bufferingItem=L:C.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(C.event,null))}if(n.forEach(L=>{L.assetList.forEach(N=>{this.clearAssetPlayer(N.identifier,null)})}),y||r){if(this.hls.trigger(p.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:d.slice(0),durations:c,removedIds:m}),this.isInterstitial(s)&&m.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Vu(e),this.schedule=new Wu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(p.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(p.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(p.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(p.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(p.BUFFER_APPENDED,this.onBufferAppended,this),e.on(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(p.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(p.MEDIA_ENDED,this.onMediaEnded,this),e.on(p.ERROR,this.onError,this),e.on(p.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(p.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(p.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(p.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(p.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(p.BUFFER_CODECS,this.onBufferCodecs,this),e.off(p.BUFFER_APPENDED,this.onBufferAppended,this),e.off(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(p.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(p.MEDIA_ENDED,this.onMediaEnded,this),e.off(p.ERROR,this.onError,this),e.off(p.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Yi(e,"play",this.onPlay),Yi(e,"pause",this.onPause),Yi(e,"seeking",this.onSeeking),Yi(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;ss(n,"seeking",this.onSeeking),ss(n,"timeupdate",this.onTimeupdate),ss(n,"play",this.onPlay),ss(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const i=this.findItemIndex(n);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=y=>y&&e.getAssetPlayer(y.identifier),r=(y,C,L,N,de)=>{if(y){let oe=y[C].start;const Be=y.event;if(Be){if(C==="playout"||Be.timelineOccupancy!==ao.Point){const Ve=n(L);(Ve==null?void 0:Ve.interstitial)===Be&&(oe+=Ve.assetItem.startOffset+Ve[de])}}else{const Ve=N==="bufferedPos"?s():e[N];oe+=Ve-y.start}return oe}return 0},i=(y,C)=>{if(y!==0&&C!=="primary"&&e.schedule.length){var L;const N=e.schedule.findItemIndexAtTime(y),de=(L=e.schedule.items)==null?void 0:L[N];if(de){const oe=de[C].start-de.start;return y+oe}}return y},s=()=>{const y=e.bufferedPos;return y===Number.MAX_VALUE?l("primary"):Math.max(y,0)},l=y=>{var C;return(C=e.primaryDetails)!=null&&C.live?e.primaryDetails.edge:e.schedule.durations[y]},d=(y,C)=>{var L,N;const de=e.effectivePlayingItem;if(de!=null&&(L=de.event)!=null&&L.restrictions.skip)return;e.log(`seek to ${y} "${C}"`);const oe=e.effectivePlayingItem,Be=e.schedule.findItemIndexAtTime(y,C),Ve=(N=e.schedule.items)==null?void 0:N[Be],Ue=e.getBufferingPlayer(),ut=Ue==null?void 0:Ue.interstitial,dt=ut==null?void 0:ut.appendInPlace,Mt=oe&&e.itemsMatch(oe,Ve);if(oe&&(dt||Mt)){const Rt=n(e.playingAsset),Ft=(Rt==null?void 0:Rt.media)||e.primaryMedia;if(Ft){const _t=C==="primary"?Ft.currentTime:r(oe,C,e.playingAsset,"timelinePos","currentTime"),ln=y-_t,yn=(dt?_t:Ft.currentTime)+ln;if(yn>=0&&(!Rt||dt||yn<=Rt.duration)){Ft.currentTime=yn;return}}}if(Ve){let Rt=y;if(C!=="primary"){const _t=Ve[C].start,ln=y-_t;Rt=Ve.start+ln}const Ft=!e.isInterstitial(Ve);if((!e.isInterstitial(oe)||oe.event.appendInPlace)&&(Ft||Ve.event.appendInPlace)){const _t=e.media||(dt?Ue==null?void 0:Ue.media:null);_t&&(_t.currentTime=Rt)}else if(oe){const _t=e.findItemIndex(oe);if(Be>_t){const yn=e.schedule.findJumpRestrictedIndex(_t+1,Be);if(yn>_t){e.setSchedulePosition(yn);return}}let ln=0;if(Ft)e.timelinePos=Rt,e.checkBuffer();else{var ht;const yn=Ve==null||(ht=Ve.event)==null?void 0:ht.assetList;if(yn){const mr=y-(Ve[C]||Ve).start;for(let Gn=yn.length;Gn--;){const Fn=yn[Gn];if(Fn.duration&&mr>=Fn.startOffset&&mr<Fn.startOffset+Fn.duration){ln=Gn;break}}}}e.setSchedulePosition(Be,ln)}}},c=()=>{const y=e.effectivePlayingItem;if(e.isInterstitial(y))return y;const C=t();return e.isInterstitial(C)?C:null},m={get currentTime(){const y=c(),C=e.effectivePlayingItem;return C&&C===y?r(C,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-C.playout.start:0},set currentTime(y){const C=c(),L=e.effectivePlayingItem;L&&L===C&&d(y+L.playout.start,"playout")},get duration(){const y=c();return y?y.playout.end-y.playout.start:0},get assetPlayers(){var y;const C=(y=c())==null?void 0:y.event.assetList;return C?C.map(L=>e.getAssetPlayer(L.identifier)):[]},get playingIndex(){var y;const C=(y=c())==null?void 0:y.event;return C&&e.effectivePlayingAsset?C.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return c()}};this.manager={get events(){var y,C;return((y=e.schedule)==null||(C=y.events)==null?void 0:C.slice(0))||[]},get schedule(){var y,C;return((y=e.schedule)==null||(C=y.items)==null?void 0:C.slice(0))||[]},get interstitialPlayer(){return c()?m:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const y=t();return e.findItemIndex(y)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const y=e.effectivePlayingItem;return e.findItemIndex(y)},primary:{get bufferedEnd(){return s()},get currentTime(){const y=e.timelinePos;return y>0?y:0},set currentTime(y){d(y,"primary")},get duration(){return l("primary")},get seekableStart(){var y;return((y=e.primaryDetails)==null?void 0:y.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(y){d(y,"integrated")},get duration(){return l("integrated")},get seekableStart(){var y;return i(((y=e.primaryDetails)==null?void 0:y.fragmentStart)||0,"integrated")}},skip:()=>{const y=e.effectivePlayingItem,C=y==null?void 0:y.event;if(C&&!C.restrictions.skip){const L=e.findItemIndex(y);if(C.appendInPlace){const N=y.playout.start+y.event.duration;d(N+.001,"playout")}else e.advanceAfterAssetEnded(C,L,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(n=i)==null?void 0:n.currentTime;if(!(s===void 0||!S(s)))return s}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${gn(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,l=e!==s,d=l&&e.interstitial.appendInPlace,c=(n=this.detachedData)==null?void 0:n.mediaSource;let m;if(s.media)d&&(i=s.transferMedia(),this.detachedData=i),m="Primary";else if(c){const L=this.getBufferingPlayer();L?(i=L.transferMedia(),m=`${L}`):m="detached MediaSource"}else m="detached media";if(!i){if(c)i=this.detachedData,this.log(`using detachedData: MediaSource ${gn(i)}`);else if(!this.detachedData||s.media===t){const L=this.playerQueue;L.length>1&&L.forEach(N=>{if(l&&N.interstitial.appendInPlace!==d){const de=N.interstitial;this.clearInterstitial(N.interstitial,null),de.appendInPlace=!1,de.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${de}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const y=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",C=y&&i?i:t;if(this.log(`${y?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${m}`),C===i){const L=l&&e.assetId===this.schedule.assetIdAtEnd;C.overrides={duration:this.schedule.duration,endOfStream:!l||L,cueRemoval:!l}}e.attachMedia(C)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,l=e.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAfterAssetEnded(e,t,n){const r=n+1;if(!e.isAssetPastPlayoutLimit(r)&&!e.assetList[r].error)this.setSchedulePosition(t,r);else{const i=this.schedule.items;if(i){const s=t+1,l=i.length;if(s>=l){this.setSchedulePosition(-1);return}const d=e.resumeTime;this.timelinePos<d&&(this.timelinePos=d,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),l=n.findAssetIndex(i,e);this.setSchedulePosition(s,l)}}setSchedulePosition(e,t){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const r=e>=0?n[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var l;const c=i.event,m=this.playingAsset,y=m==null?void 0:m.identifier,C=y?this.getAssetPlayer(y):null;if(C&&y&&(!this.eventItemsMatch(i,r)||t!==void 0&&y!==((l=c.assetList)==null?void 0:l[t].identifier))){var d;const L=c.findAssetIndex(m);this.log(`INTERSTITIAL_ASSET_ENDED ${L+1}/${c.assetList.length} ${Bo(m)}`),this.endedAsset=m,this.playingAsset=null,this.hls.trigger(p.INTERSTITIAL_ASSET_ENDED,{asset:m,assetListIndex:L,event:c,schedule:n.slice(0),scheduleIndex:e,player:C}),this.retreiveMediaSource(y,r),C.media&&!((d=this.detachedData)!=null&&d.mediaSource)&&C.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${c} ${vs(i)}`),c.hasPlayed=!0,this.hls.trigger(p.INTERSTITIAL_ENDED,{event:c,schedule:n.slice(0),scheduleIndex:e}),c.cue.once)){this.updateSchedule();const L=this.schedule.items;if(r&&L){const N=this.schedule.findItemIndex(r);this.advanceSchedule(N,L,t,i,s)}return}}this.advanceSchedule(e,n,t,i,s)}advanceSchedule(e,t,n,r,i){const s=e>=0?t[e]:null,l=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(c=>{const m=c.interstitial,y=this.schedule.findEventIndex(m.identifier);(y<e||y>e+1)&&this.clearInterstitial(m,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const c=s.event;n===void 0&&(n=this.schedule.findAssetIndex(c,this.timelinePos));const m=this.waitingItem;this.assetsBuffered(s,l)||this.setBufferingItem(s);let y=this.preloadAssets(c,n);if(this.eventItemsMatch(s,m||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${vs(s)} ${c.appendInPlace?"append in place":""}`),this.hls.trigger(p.INTERSTITIAL_STARTED,{event:c,schedule:t.slice(0),scheduleIndex:e})),!c.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${c}`);return}if(c.assetListLoader&&(c.assetListLoader.destroy(),c.assetListLoader=void 0),!l){this.log(`Waiting for attachMedia to start Interstitial ${c}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const C=c.assetList[n];if(!C){const L=t[e+1],N=this.media;L&&N&&!this.isInterstitial(L)&&N.currentTime<L.start&&(N.currentTime=this.timelinePos=L.start),this.advanceAfterAssetEnded(c,e,n||0);return}if(y||(y=this.getAssetPlayer(C.identifier)),y===null||y.destroyed){const L=c.assetList.length;this.warn(`asset ${n+1}/${L} player destroyed ${c}`),y=this.createAssetPlayer(c,C,n)}if(!this.eventItemsMatch(s,this.bufferingItem)&&c.appendInPlace&&this.isAssetBuffered(C))return;this.startAssetPlayer(y,n,t,e,l),this.shouldPlay&&ml(y.media)}else s!==null?(this.resumePrimary(s,e,r),this.shouldPlay&&ml(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${vs(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!n)return;const i=this.schedule.items;i&&(this.log(`resumed ${vs(e)}`),this.hls.trigger(p.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:In.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(p.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(p.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const n=this.hls.levels[t.level],r=A(A({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=A(A({},this.altSelection),{},{audio:n});return}const i=A(A({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=A(A({},this.altSelection),{},{subtitles:n});return}const i=A(A({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=Qe(t);this.playerQueue.forEach(r=>r.hls.setAudioOption(t)||r.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){const n=Qe(t);this.playerQueue.forEach(r=>r.hls.setSubtitleOption(t)||t.id!==-1&&r.hls.setSubtitleOption(n))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),l=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(l)&&this.eventItemsMatch(l,this.bufferingItem)&&this.bufferedToItem(l,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){const n=this.schedule.items;if(e&&n){const r=this.findItemIndex(e,t);return n[r]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=In.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,l=this.findItemIndex(s);let d=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var c,m;const y=this.findItemIndex(i),C=Math.min(y+1,t.length-1),L=t[C];if((d===-1&&i&&e>=i.end||(c=L.event)!=null&&c.appendInPlace&&e+.01>=L.start)&&(d=C),C-l>1&&(i==null||(m=i.event)==null?void 0:m.appendInPlace)===!1)return;if(this.bufferedPos=e,d>y&&d>l)this.bufferedToItem(L);else{const N=this.primaryDetails;this.primaryLive&&N&&e>N.edge-N.targetduration&&L.start<N.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(L)&&this.preloadAssets(L.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(d===l?this.bufferedToItem(s):d===l+1&&this.bufferedToItem(t[d]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const d=l?l.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${vs(e)}`+(t?` (${d.toFixed(2)} remaining)`:"")),s?e.event.assetList.forEach(c=>{const m=this.getAssetPlayer(c.identifier);m&&m.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(c=>c.pauseBuffering()))}this.hls.trigger(p.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const l=n.assetList[t],d=this.primaryMedia;l&&d&&this.bufferAssetPlayer(s,d)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const d=e.timelineStart;if(e.appendInPlace){var l;const C=this.playingItem;!this.isInterstitial(C)&&(C==null||(l=C.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(d+.25)}let c,m=0;if(!this.playingItem&&this.primaryLive&&(m=this.hls.startPosition,m===-1&&(m=this.hls.liveSyncPosition||0)),m&&!(e.cue.pre||e.cue.post)){const C=m-d;C>0&&(c=Math.round(C*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${c?` live-start: ${m} start-offset: ${c}`:""}`),n)return this.createAsset(e,0,0,d,e.duration,n);const y=this.assetListLoader.loadAssetList(e,c);y&&(e.assetListLoader=y)}else if(!s&&r){for(let d=t;d<r;d++){const c=e.assetList[d],m=this.getAssetPlayerQueueIndex(c.identifier);(m===-1||this.playerQueue[m].destroyed)&&!c.error&&this.createAssetPlayer(e,c,d)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(p.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,s){const l={parentIdentifier:e.identifier,identifier:ju(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){this.log(`create HLSAssetPlayer for ${Bo(t)}`);const r=this.hls,i=r.userConfig;let s=i.videoPreference;const l=r.loadLevelObj||r.levels[r.currentLevel];(s||l)&&(s=v({},s),l.videoCodec&&(s.videoCodec=l.videoCodec),l.videoRange&&(s.allowedVideoRanges=[l.videoRange]));const d=r.audioTracks[r.audioTrack],c=r.subtitleTracks[r.subtitleTrack];let m=0;if(this.primaryLive||e.appendInPlace){const Ue=this.timelinePos-t.timelineStart;if(Ue>1){const ut=t.duration;ut&&Ue<ut&&(m=Ue)}}const y=t.identifier,C=A(A({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:y,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:m,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:d||i.audioPreference,subtitlePreference:c||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(C.timelineOffset=t.timelineStart));const L=C.cmcd;L!=null&&L.sessionId&&L.contentId&&(C.cmcd=v({},L,{contentId:Ra(t.uri)})),this.getAssetPlayer(y)&&this.warn(`Duplicate date range identifier ${e} and asset ${y}`);const N=new Ku(this.HlsPlayerClass,C,e,t);this.playerQueue.push(N),e.assetList[n]=t;const de=Ue=>{if(Ue.live){const Mt=new Error(`Interstitials MUST be VOD assets ${e}`),ht={fatal:!0,type:ve.OTHER_ERROR,details:$.INTERSTITIAL_ASSET_ITEM_ERROR,error:Mt};this.handleAssetItemError(ht,e,this.schedule.findEventIndex(e.identifier),n,Mt.message);return}const ut=Ue.edge-Ue.fragmentStart,dt=t.duration;(dt===null||ut>dt)&&(this.log(`Interstitial asset "${y}" duration change ${dt} > ${ut}`),t.duration=ut,this.updateSchedule())};N.on(p.LEVEL_UPDATED,(Ue,{details:ut})=>de(ut)),N.on(p.LEVEL_PTS_UPDATED,(Ue,{details:ut})=>de(ut));const oe=(Ue,ut)=>{const dt=this.getAssetPlayer(y);if(dt&&ut.tracks){dt.off(p.BUFFER_CODECS,oe),dt.tracks=ut.tracks;const Mt=this.primaryMedia;this.bufferingAsset===dt.assetItem&&Mt&&!dt.media&&this.bufferAssetPlayer(dt,Mt)}};N.on(p.BUFFER_CODECS,oe);const Be=()=>{var Ue;const ut=this.getAssetPlayer(y);if(this.log(`buffered to end of asset ${ut}`),!ut)return;const dt=this.schedule.findEventIndex(e.identifier),Mt=e.findAssetIndex(t),ht=Mt+1,Rt=(Ue=this.schedule.items)==null?void 0:Ue[dt];if(this.isInterstitial(Rt))if(Mt!==-1&&!e.isAssetPastPlayoutLimit(ht)&&!e.assetList[ht].error)this.bufferedToItem(Rt,ht);else{var Ft;const _t=(Ft=this.schedule.items)==null?void 0:Ft[dt+1];_t&&this.bufferedToItem(_t)}};N.on(p.BUFFERED_TO_END,Be);const Ve=Ue=>()=>{if(!this.getAssetPlayer(y))return;this.shouldPlay=!0;const dt=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,dt,Ue)};return N.once(p.MEDIA_ENDED,Ve(n)),N.once(p.PLAYOUT_LIMIT_REACHED,Ve(1/0)),N.on(p.ERROR,(Ue,ut)=>{const dt=this.getAssetPlayer(y);if(ut.details===$.BUFFER_STALLED_ERROR){if(dt!=null&&dt.media){const Mt=dt.currentTime,ht=dt.duration-Mt;Mt&&e.appendInPlace&&ht/dt.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${y} ${e} at ${dt.media.currentTime}`),Be()):(this.warn(`Stalled at ${Mt} of ${Mt+ht} in asset ${y} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(ut,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${ut.error} ${e}`)}),N.on(p.DESTROYING,()=>{if(!this.getAssetPlayer(y))return;const ut=new Error(`Asset player destroyed unexpectedly ${y}`),dt={fatal:!0,type:ve.OTHER_ERROR,details:$.INTERSTITIAL_ASSET_ITEM_ERROR,error:ut};this.handleAssetItemError(dt,e,this.schedule.findEventIndex(e.identifier),n,ut.message)}),this.hls.trigger(p.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:N}),N}clearInterstitial(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&vs(t)}`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:s,assetItem:l,assetId:d}=e,c=s.assetList.length,m=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!m||m.identifier!==d)&&(m&&(this.clearAssetPlayer(m.identifier,n[r]),delete m.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${c} ${e}`),this.hls.trigger(p.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;const{interstitial:i,assetItem:s,assetId:l}=e,d=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[d];if(!c)return;this.setBufferingItem(c),this.bufferingAsset=s;const m=this.getBufferingPlayer();if(m===e)return;const y=i.appendInPlace;if(y&&(m==null?void 0:m.interstitial.appendInPlace)===!1)return;const C=(m==null?void 0:m.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(y&&s!==this.playingAsset){if(!e.tracks)return;if(C&&!Te(C,e.tracks)){const L=new Error(`Asset "${l}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(C)}')`),N={fatal:!0,type:ve.OTHER_ERROR,details:$.INTERSTITIAL_ASSET_ITEM_ERROR,error:L},de=i.findAssetIndex(s);this.handleAssetItemError(N,i,d,de,L.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===$.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;let l=null;if(s){const y=this.getAssetPlayerQueueIndex(s.identifier);l=this.playerQueue[y]||null}const d=this.schedule.items,c=v({},e,{fatal:!1,errorAction:Hn(!0),asset:s,assetListIndex:r,event:t,schedule:d,scheduleIndex:n,player:l});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(p.INTERSTITIAL_ASSET_ERROR,c),!e.fatal)return;const m=new Error(i);s&&(this.playingAsset!==s&&this.clearAssetPlayer(s.identifier,null),s.error=m),t.assetList.some(y=>!y.error)?t.appendInPlace&&(t.error=m):t.error=m,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?vs(n):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i))this.clearInterstitial(e,null);else{const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const l=r.timelineStart,d=r.duration;let c=0;s.forEach((N,de)=>{const oe=parseFloat(N.DURATION);this.createAsset(r,de,c,l+c,oe,N.URI),c+=oe}),r.duration=c,this.log(`Loaded asset-list with duration: ${c} (was: ${d}) ${r}`);const m=this.waitingItem,y=(m==null?void 0:m.event.identifier)===i;this.updateSchedule();const C=(n=this.bufferingItem)==null?void 0:n.event;if(y){var L;const N=this.schedule.findEventIndex(i),de=(L=this.schedule.items)==null?void 0:L[N];if(de){if(!this.playingItem&&this.timelinePos>de.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==N){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.primaryFallback(r);return}this.setBufferingItem(de)}this.setSchedulePosition(N)}else if((C==null?void 0:C.identifier)===i&&C.appendInPlace){const N=r.assetList[0],de=this.getAssetPlayer(N.identifier),oe=this.primaryMedia;N&&de&&oe&&this.bufferAssetPlayer(de,oe)}}onError(e,t){switch(t.details){case $.ASSET_LIST_PARSING_ERROR:case $.ASSET_LIST_LOAD_ERROR:case $.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&this.primaryFallback(n);break}case $.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const gl=500;class Yu extends ds{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",re.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(p.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(p.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Ht.IDLE,this.setInterval(gl),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(F(n)&&(this.fragPrevious=n),this.state=Ht.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const l=n.start;for(let c=0;c<i.length;c++)if(l>=i[c].start&&l<=i[c].end){s=i[c];break}const d=n.start+n.duration;s?s.end=d:(s={start:l,end:d},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let l=0;l<s.length;){if(s[l].end<=i){s.shift();continue}else if(s[l].start<i)s[l].start=i;else break;l++}}),this.fragmentTracker.removeFragmentsInRange(n,i,re.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===re.SUBTITLE&&(t.details===$.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Ht.STOPPED&&(this.state=Ht.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Jo(this.levels,t)){this.levels=t.map(n=>new Pn(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Pn(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,re.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==Ht.STOPPED&&this.setInterval(gl)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const d=i[l];if(l>=i.length||!d)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let c=0;if(s.live||(n=d.details)!=null&&n.live){const y=this.mainDetails;if(s.deltaUpdateFailed||!y)return;const C=y.fragments[0];if(!d.details)s.hasProgramDateTime&&y.hasProgramDateTime?(zr(s,y),c=s.fragmentStart):C&&(c=C.start,Cs(s,c));else{var m;c=this.alignPlaylists(s,d.details,(m=this.levelLastLoaded)==null?void 0:m.details),c===0&&C&&(c=C.start,Cs(s,c))}}d.details=s,this.levelLastLoaded=d,l===r&&(this.hls.trigger(p.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Ht.IDLE&&(bn(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),d.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&wr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Ar(r.method)).catch(l=>{throw i.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const d=performance.now();i.trigger(p.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:s,tdecrypt:d}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=Ht.IDLE})}}doTick(){if(!this.media){this.state=Ht.IDLE;return}if(this.state===Ht.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),s=In.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:l,len:d}=s,c=n.details,m=this.hls.maxBufferLength+c.levelTargetDuration;if(d>m)return;const y=c.fragments,C=y.length,L=c.edge;let N=null;const de=this.fragPrevious;if(l<L){const Ve=r.maxFragLookUpTolerance,Ue=l>L-Ve?0:Ve;N=bn(de,y,Math.max(y[0].start,l),Ue),!N&&de&&de.start<y[0].start&&(N=y[0])}else N=y[C-1];if(N=this.filterReplacedPrimary(N,n.details),!N)return;const oe=N.sn-c.startSN,Be=y[oe-1];if(Be&&Be.cc===N.cc&&this.fragmentTracker.getState(Be)===jn.NOT_LOADED&&(N=Be),this.fragmentTracker.getState(N)===jn.NOT_LOADED){const Ve=this.mapToInitFragWhenRequired(N);Ve&&this.loadFragment(Ve,n,l)}}}loadFragment(e,t,n){F(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Xu(this.tracksBuffered[this.currentTrackId]||[])}}class Xu{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const Qu={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},vl=a=>String.fromCharCode(Qu[a]||a),Hi=15,as=100,Ju={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},qu={17:2,18:4,21:6,22:8,23:10,19:13,20:15},e0={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},t0={25:2,26:4,29:6,30:8,31:10,27:13,28:15},n0=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class r0{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;J.log(`${this.time} [${e}] ${n}`)}}}const Ns=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class _l{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class i0{constructor(){this.uchar=" ",this.penState=new _l}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 s0{constructor(e){this.chars=[],this.pos=0,this.currPenState=new _l,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<as;t++)this.chars.push(new i0);this.logger=e}equals(e){for(let t=0;t<as;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<as;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<as;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>as&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=as)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=vl(e);if(this.pos>=as){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<as;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<as;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 No{constructor(e){this.rows=[],this.currRow=Hi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Hi;t++)this.rows.push(new s0(e));this.logger=e}reset(){for(let e=0;e<Hi;e++)this.rows[e].clear();this.currRow=Hi-1}equals(e){let t=!0;for(let n=0;n<Hi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Hi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Hi;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 = "+gn(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let l=0;l<Hi;l++)this.rows[l].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const l=s.rows[i].cueStartTime,d=this.logger.time;if(l!==null&&d!==null&&l<d)for(let c=0;c<this.nrRollUpRows;c++)this.rows[t-this.nrRollUpRows+c+1].copy(s.rows[i+c])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+gn(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<Hi;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
|
|
`)),n}getTextAndFormat(){return this.rows}}class yl{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 No(n),this.nonDisplayedMemory=new No(n),this.lastOutputScreen=new No(n),this.currRollUpRow=this.displayedMemory.rows[Hi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Hi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+gn(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class bl{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=o0(),this.logger=void 0;const r=this.logger=new r0;this.channels=[null,new yl(e,t,r),new yl(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,l=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+Ns([t[n],t[n+1]])+"] -> ("+Ns([r,i])+")");const d=this.cmdHistory;if(r>=16&&r<=31){if(a0(r,i,d)){oo(null,null,d),this.logger.log(3,()=>"Repeated command ("+Ns([r,i])+") is dropped");continue}oo(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else oo(null,null,d);if(!s&&(l=this.parseChars(r,i),l)){const m=this.currentChannel;m&&m>0?this.channels[m].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Ns([r,i])+" orig: "+Ns([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Ns([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?Ju[e]:e0[e]:n=s===1?qu[e]:t0[e];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+vl(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+Ns(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=n0[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const l=e<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}oo(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 oo(a,e,t){t.a=a,t.b=e}function a0(a,e,t){return t.a===a&&t.b===e}function o0(){return{a:null,b:null}}var Fo=function(){if(Nr!=null&&Nr.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,d){if(typeof d!="string"||!Array.isArray(l))return!1;const c=d.toLowerCase();return~l.indexOf(c)?c:!1}function n(l){return t(a,l)}function r(l){return t(e,l)}function i(l,...d){let c=1;for(;c<arguments.length;c++){const m=arguments[c];for(const y in m)l[y]=m[y]}return l}function s(l,d,c){const m=this,y={enumerable:!0};m.hasBeenReset=!1;let C="",L=!1,N=l,de=d,oe=c,Be=null,Ve="",Ue=!0,ut="auto",dt="start",Mt=50,ht="middle",Rt=50,Ft="middle";Object.defineProperty(m,"id",i({},y,{get:function(){return C},set:function(_t){C=""+_t}})),Object.defineProperty(m,"pauseOnExit",i({},y,{get:function(){return L},set:function(_t){L=!!_t}})),Object.defineProperty(m,"startTime",i({},y,{get:function(){return N},set:function(_t){if(typeof _t!="number")throw new TypeError("Start time must be set to a number.");N=_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"endTime",i({},y,{get:function(){return de},set:function(_t){if(typeof _t!="number")throw new TypeError("End time must be set to a number.");de=_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"text",i({},y,{get:function(){return oe},set:function(_t){oe=""+_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"region",i({},y,{get:function(){return Be},set:function(_t){Be=_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"vertical",i({},y,{get:function(){return Ve},set:function(_t){const ln=n(_t);if(ln===!1)throw new SyntaxError("An invalid or illegal string was specified.");Ve=ln,this.hasBeenReset=!0}})),Object.defineProperty(m,"snapToLines",i({},y,{get:function(){return Ue},set:function(_t){Ue=!!_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"line",i({},y,{get:function(){return ut},set:function(_t){if(typeof _t!="number"&&_t!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");ut=_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"lineAlign",i({},y,{get:function(){return dt},set:function(_t){const ln=r(_t);if(!ln)throw new SyntaxError("An invalid or illegal string was specified.");dt=ln,this.hasBeenReset=!0}})),Object.defineProperty(m,"position",i({},y,{get:function(){return Mt},set:function(_t){if(_t<0||_t>100)throw new Error("Position must be between 0 and 100.");Mt=_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"positionAlign",i({},y,{get:function(){return ht},set:function(_t){const ln=r(_t);if(!ln)throw new SyntaxError("An invalid or illegal string was specified.");ht=ln,this.hasBeenReset=!0}})),Object.defineProperty(m,"size",i({},y,{get:function(){return Rt},set:function(_t){if(_t<0||_t>100)throw new Error("Size must be between 0 and 100.");Rt=_t,this.hasBeenReset=!0}})),Object.defineProperty(m,"align",i({},y,{get:function(){return Ft},set:function(_t){const ln=r(_t);if(!ln)throw new SyntaxError("An invalid or illegal string was specified.");Ft=ln,this.hasBeenReset=!0}})),m.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class l0{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function xl(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class u0{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 El(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const l=s[0],d=s[1];e(l,d)}}const $o=new Fo(0,0,""),lo=$o.align==="middle"?"middle":"center";function c0(a,e,t){const n=a;function r(){const l=xl(a);if(l===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),l}function i(l,d){const c=new u0;El(l,function(C,L){let N;switch(C){case"region":for(let de=t.length-1;de>=0;de--)if(t[de].id===L){c.set(C,t[de].region);break}break;case"vertical":c.alt(C,L,["rl","lr"]);break;case"line":N=L.split(","),c.integer(C,N[0]),c.percent(C,N[0])&&c.set("snapToLines",!1),c.alt(C,N[0],["auto"]),N.length===2&&c.alt("lineAlign",N[1],["start",lo,"end"]);break;case"position":N=L.split(","),c.percent(C,N[0]),N.length===2&&c.alt("positionAlign",N[1],["start",lo,"end","line-left","line-right","auto"]);break;case"size":c.percent(C,L);break;case"align":c.alt(C,L,["start",lo,"end","left","right"]);break}},/:/,/\s/),d.region=c.get("region",null),d.vertical=c.get("vertical","");let m=c.get("line","auto");m==="auto"&&$o.line===-1&&(m=-1),d.line=m,d.lineAlign=c.get("lineAlign","start"),d.snapToLines=c.get("snapToLines",!0),d.size=c.get("size",100),d.align=c.get("align",lo);let y=c.get("position","auto");y==="auto"&&$o.position===50&&(y=d.align==="start"||d.align==="left"?0:d.align==="end"||d.align==="right"?100:50),d.position=y}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function Sl(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
`)}class d0{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new l0,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=Sl(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
|
|
`;)++s;const l=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
|
|
`&&++s,t.buffer=i.slice(s),l}function r(i){El(i,function(s,l){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const l=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(l!=null&&l[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Fo(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{c0(i,t.cue,t.regionList)}catch(l){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const l=i.indexOf("-->")!==-1;if(!i||l&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const h0=/\r\n|\n\r|\n|\r/g,Uo=function(e,t,n=0){return e.slice(n,n+t.length)===t},f0=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!S(t)||!S(n)||!S(r)||!S(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function zo(a,e,t){return Ra(a.toString())+Ra(e.toString())+Ra(t)}const p0=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function m0(a,e,t,n,r,i,s){const l=new d0,d=Fe(new Uint8Array(a)).trim().replace(h0,`
|
|
`).split(`
|
|
`),c=[],m=e?Or(e.baseTime,e.timescale):0;let y="00:00.000",C=0,L=0,N,de=!0;l.oncue=function(oe){const Be=t[n];let Ve=t.ccOffset;const Ue=(C-m)/9e4;if(Be!=null&&Be.new&&(L!==void 0?Ve=t.ccOffset=Be.start:p0(t,n,Ue)),Ue){if(!e){N=new Error("Missing initPTS for VTT MPEGTS");return}Ve=Ue-t.presentationOffset}const ut=oe.endTime-oe.startTime,dt=ei((oe.startTime+Ve-L)*9e4,r*9e4)/9e4;oe.startTime=Math.max(dt,0),oe.endTime=Math.max(dt+ut,0);const Mt=oe.text.trim();oe.text=decodeURIComponent(encodeURIComponent(Mt)),oe.id||(oe.id=zo(oe.startTime,oe.endTime,Mt)),oe.endTime>0&&c.push(oe)},l.onparsingerror=function(oe){N=oe},l.onflush=function(){if(N){s(N);return}i(c)},d.forEach(oe=>{if(de)if(Uo(oe,"X-TIMESTAMP-MAP=")){de=!1,oe.slice(16).split(",").forEach(Be=>{Uo(Be,"LOCAL:")?y=Be.slice(6):Uo(Be,"MPEGTS:")&&(C=parseInt(Be.slice(7)))});try{L=f0(y)/1e3}catch(Be){N=Be}return}else oe===""&&(de=!1);l.parse(oe+`
|
|
`)}),l.flush()}const jo="stpp.ttml.im1t",wl=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Al=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,g0={left:"start",center:"center",right:"end",start:"start",end:"end"};function Tl(a,e,t,n){const r=ce(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>Fe(l)),s=lr(e.baseTime,1,e.timescale);try{i.forEach(l=>t(v0(l,s)))}catch(l){n(l)}}function v0(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((y,C)=>(y[C]=r.getAttribute(`ttp:${C}`)||i[C],y),{}),l=r.getAttribute("xml:space")!=="preserve",d=Cl(Ho(r,"styling","style")),c=Cl(Ho(r,"layout","region")),m=Ho(r,"body","[begin]");return[].map.call(m,y=>{const C=Dl(y,l);if(!C||!y.hasAttribute("begin"))return null;const L=Ko(y.getAttribute("begin"),s),N=Ko(y.getAttribute("dur"),s);let de=Ko(y.getAttribute("end"),s);if(L===null)throw Rl(y);if(de===null){if(N===null)throw Rl(y);de=L+N}const oe=new Fo(L-e,de-e,C);oe.id=zo(oe.startTime,oe.endTime,oe.text);const Be=c[y.getAttribute("region")],Ve=d[y.getAttribute("style")],Ue=_0(Be,Ve,d),{textAlign:ut}=Ue;if(ut){const dt=g0[ut];dt&&(oe.lineAlign=dt),oe.align=ut}return v(oe,Ue),oe}).filter(y=>y!==null)}function Ho(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Cl(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Dl(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
`:(i=n.childNodes)!=null&&i.length?Dl(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function _0(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((l,d)=>{const c=Go(e,n,d)||Go(a,n,d)||Go(r,n,d);return c&&(l[d]=c),l},{})}function Go(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Rl(a){return new Error(`Could not parse ttml timestamp ${a}`)}function Ko(a,e){if(!a)return null;let t=xl(a);return t===null&&(wl.test(a)?t=y0(a,e):Al.test(a)&&(t=b0(a,e))),t}function y0(a,e){const t=wl.exec(a),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function b0(a,e){const t=Al.exec(a),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class uo{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class x0{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=kl(),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(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(p.FRAG_LOADING,this.onFragLoading,this),e.on(p.FRAG_LOADED,this.onFragLoaded,this),e.on(p.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(p.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(p.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(p.FRAG_LOADING,this.onFragLoading,this),e.off(p.FRAG_LOADED,this.onFragLoaded,this),e.off(p.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(p.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(p.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new uo(this,"textTrack1"),t=new uo(this,"textTrack2"),n=new uo(this,"textTrack3"),r=new uo(this,"textTrack4");this.cea608Parser1=new bl(1,e,t),this.cea608Parser2=new bl(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const d=i[l],c=E0(d[0],d[1],t,n);if(c>=0&&(d[0]=Math.min(d[0],t),d[1]=Math.max(d[1],n),s=!0,c/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const l=this.captionsTracks[e];this.Cues.newCue(l,t,n,r)}else{const l=this.Cues.newCue(null,t,n,r);this.hls.trigger(p.CUES_PARSED,{type:"captions",cues:l,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n===re.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(l=>{this.onFragLoaded(p.FRAG_LOADED,l)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(Ll(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],l=this.getExistingTrack(i,s);if(l)n[e]=l,ra(n[e]),dl(n[e],r);else{const d=this.createTextTrack("captions",i,s);d&&(d[e]=!0,n[e]=d)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(p.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(i=>{ra(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=kl(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)ra(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===jo);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Jo(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?so(s.textTracks):null;if(this.tracks.forEach((d,c)=>{let m;if(l){let y=null;for(let C=0;C<l.length;C++)if(l[C]&&Ll(l[C],d)){y=l[C],l[C]=null;break}y&&(m=y)}if(m)ra(m);else{const y=Il(d);m=this.createTextTrack(y,d.name,d.lang),m&&(m.mode="disabled")}m&&this.textTracks.push(m)}),l!=null&&l.length){const d=l.filter(c=>c!==null).map(c=>c.label);d.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${d.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(p.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===re.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:l}=this,{cc:d,sn:c}=t.frag,m=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(c!==l+1||c===l&&m!==this.lastPartIndex+1||d!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=d,this.lastSn=c,this.lastPartIndex=m}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===re.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const l=this.tracks[n.level],d=this.vttCCs;d[n.cc]||(d[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),l&&l.textCodec===jo?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Tl(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,l=i.length-1;if(!i[n.cc]&&l===-1){s.push(e);return}const d=this.hls,c=(t=n.initSegment)!=null&&t.data?St(n.initSegment.data,new Uint8Array(r)).buffer:r;m0(c,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,m=>{this._appendCues(m,n.level),d.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},m=>{const y=m.message==="Missing initPTS for VTT MPEGTS";y?s.push(e):this._fallbackToIMSC1(n,r),d.logger.log(`Failed to parse VTT cue: ${m}`),!(y&&l>n.cc)&&d.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:m})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Tl(t,this.initPTS[e.cc],()=>{n.textCodec=jo,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>hl(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(p.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===re.SUBTITLE&&this.onFragLoaded(p.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===re.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,l[0]),this.cea608Parser2.addData(r[i].pts,l[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:l}=this;Object.keys(l).forEach(d=>Oo(l[d],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(d=>Oo(l[d],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],l=127&e[r++],d=127&e[r++];if(l===0&&d===0)continue;if((4&s)!==0){const m=3&s;(m===0||m===1)&&(t[m].push(l),t[m].push(d))}}return t}}function Il(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Ll(a,e){return!!a&&a.kind===Il(e)&&Do(e,a)}function E0(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function kl(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const S0=/\s/,w0={newCue(a,e,t,n){const r=[];let i,s,l,d,c;const m=self.VTTCue||self.TextTrackCue;for(let C=0;C<n.rows.length;C++)if(i=n.rows[C],l=!0,d=0,c="",!i.isEmpty()){var y;for(let de=0;de<i.chars.length;de++)S0.test(i.chars[de].uchar)&&l?d++:(c+=i.chars[de].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),d>=16?d--:d++;const L=Sl(c.trim()),N=zo(e,t,L);a!=null&&(y=a.cues)!=null&&y.getCueById(N)||(s=new m(e,t,L),s.id=N,s.line=C+1,s.align="left",s.position=10+Math.min(80,Math.floor(d*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((C,L)=>C.line==="auto"||L.line==="auto"?0:C.line>8&&L.line>8?L.line-C.line:C.line-L.line),r.forEach(C=>hl(a,C))),r}};function A0(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const T0=/(\d+)-(\d+)\/(\d+)/;class Pl{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||I0,this.controller=new self.AbortController,this.stats=new g}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=C0(e,this.controller.signal),s=e.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:d,maxLoadTimeMs:c}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=d&&S(d)?d:c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Bs(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(y=>{var C;this.response=this.loader=y;const L=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},c-(L-r.loading.start)),!y.ok){const{status:de,statusText:oe}=y;throw new L0(oe||"fetch, bad network response",de,y)}r.loading.first=L,r.total=R0(y.headers)||r.total;const N=(C=this.callbacks)==null?void 0:C.onProgress;return N&&S(t.highWaterMark)?this.loadProgressively(y,r,e,t.highWaterMark,N):s?y.arrayBuffer():e.responseType==="json"?y.json():y.text()}).then(y=>{var C,L;const N=this.response;if(!N)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const de=y[l];de&&(r.loaded=r.total=de);const oe={url:N.url,data:y,code:N.status},Be=(C=this.callbacks)==null?void 0:C.onProgress;Be&&!S(t.highWaterMark)&&Be(r,e,y,N),(L=this.callbacks)==null||L.onSuccess(oe,r,e,N)}).catch(y=>{var C;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const L=y&&y.code||0,N=y?y.message:null;(C=this.callbacks)==null||C.onError({code:L,text:N},e,y?y.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new hs,l=e.body.getReader(),d=()=>l.read().then(c=>{if(c.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const m=c.value,y=m.length;return t.loaded+=y,y<r||s.dataLength?(s.push(m),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,m.buffer,e),d()}).catch(()=>Promise.reject());return d()}}function C0(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(v({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function D0(a){const e=T0.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function R0(a){const e=a.get("Content-Range");if(e){const n=D0(e);if(S(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function I0(a,e){return new self.Request(a.url,e)}class L0 extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const k0=/^age:\s*[\d.]+\s*$/im;class Ol{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new g,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const l in r)e.setRequestHeader(l,r[l]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&S(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const c=t.status,m=t.responseType==="text"?t.responseText:null;if(c>=200&&c<300){const N=m!=null?m:t.response;if(N!=null){var s,l;n.loading.end=Math.max(self.performance.now(),n.loading.first);const de=t.responseType==="arraybuffer"?N.byteLength:N.length;n.loaded=n.total=de,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const oe=(s=this.callbacks)==null?void 0:s.onProgress;oe&&oe(n,e,N,t);const Be={url:t.responseURL,data:N,code:c};(l=this.callbacks)==null||l.onSuccess(Be,n,e,t);return}}const y=i.loadPolicy.errorRetry,C=n.retry,L={url:e.url,data:void 0,code:c};if(ur(y,C,!1,L))this.retry(y);else{var d;J.error(`${c} while loading ${e.url}`),(d=this.callbacks)==null||d.onError({code:c,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(ur(e,t,!0))this.retry(e);else{var n;J.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=Bn(e,n.retry),n.retry++,J.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&k0.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 P0={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},O0=A(A({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Ol,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:wn,bufferController:eu,capLevelController:Io,errorController:Tn,fpsController:Fu,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,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:P0},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},M0()),{},{subtitleStreamController:Yu,subtitleTrackController:zu,timelineController:x0,audioStreamController:ea,audioTrackController:Ql,emeController:na,cmcdController:Mu,contentSteeringController:Nu,interstitialsController:Zu});function M0(){return{cueHandler:w0,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function B0(a,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=Wo(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,d=e[l]===void 0,c=[];i.forEach(m=>{const y=`${s}Loading${m}`,C=e[y];if(C!==void 0&&d){c.push(y);const L=n[l].default;switch(e[l]={default:L},m){case"TimeOut":L.maxLoadTimeMs=C,L.maxTimeToFirstByteMs=C;break;case"MaxRetry":L.errorRetry.maxNumRetry=C,L.timeoutRetry.maxNumRetry=C;break;case"RetryDelay":L.errorRetry.retryDelayMs=C,L.timeoutRetry.retryDelayMs=C;break;case"MaxRetryTimeout":L.errorRetry.maxRetryDelayMs=C,L.timeoutRetry.maxRetryDelayMs=C;break}}}),c.length&&t.warn(`hls.js config: "${c.join('", "')}" setting(s) are deprecated, use "${l}": ${gn(e[l])}`)}),A(A({},n),e)}function Wo(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Wo):Object.keys(a).reduce((e,t)=>(e[t]=Wo(a[t]),e),{}):a}function N0(a,e){const t=a.loader;t!==Pl&&t!==Ol?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):A0()&&(a.loader=Pl,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const co=2,F0=.1,$0=.05,U0=100;class z0 extends xr{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(p.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.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(U0),this.mediaSource=t.mediaSource;const n=this.media=t.media;ss(n,"playing",this.onMediaPlaying),ss(n,"waiting",this.onMediaWaiting),ss(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Yi(n,"playing",this.onMediaPlaying),Yi(n,"waiting",this.onMediaWaiting),Yi(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=(n=this.hls)==null?void 0:n.config;if(!i)return;const{media:s,stalled:l}=this;if(!s)return;const{seeking:d}=s,c=this.seeking&&!d,m=!this.seeking&&d,y=s.paused&&!d||s.ended||s.playbackRate===0;if(this.seeking=d,e!==t){t&&(this.ended=0),this.moved=!0,d||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!y&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(m||c){c&&this.stallResolved(e);return}if(y){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(p.MEDIA_ENDED,{stalled:!1}));return}if(!In.getBuffered(s).length){this.nudgeRetry=0;return}const C=In.bufferInfo(s,e,0),L=C.nextStart||0,N=this.fragmentTracker;if(d&&N&&this.hls){const Mt=Ml(this.hls.inFlightFragments,e),ht=C.len>co,Rt=!L||Mt||L-e>co&&!N.getPartialFragment(e);if(ht||Rt)return;this.moved=!1}const de=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&N){if(!(C.len>0)&&!L)return;const ht=Math.max(L,C.start||0)-e,Ft=!!(de!=null&&de.live)?de.targetduration*2:co,_t=N.getPartialFragment(e);if(ht>0&&(ht<=Ft||_t)){s.paused||this._trySkipBufferHole(_t);return}}const oe=i.detectStallWithCurrentTimeMs,Be=self.performance.now(),Ve=this.waiting;if(l===null){Ve>0&&Be-Ve<oe?this.stalled=Ve:this.stalled=Be;return}const Ue=Be-l;if(!d&&(Ue>=oe||Ve)&&this.hls){var ut;if(((ut=this.mediaSource)==null?void 0:ut.readyState)==="ended"&&!(de!=null&&de.live)&&Math.abs(e-((de==null?void 0:de.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(p.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(C),!this.media||!this.hls)return}const dt=In.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(dt,Ue)}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(p.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const i=In.bufferedInfo(In.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=In.timeRangesToArray(r),l=In.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const d=In.bufferedInfo(s,e,0).bufferedIndex,c=s[l].end,m=s[l+1].start;if((d===-1||d>l)&&m-c<1&&e-c<2){const y=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${c} -> ${m} buffered index: ${d}`);this.warn(y.message),this.media.currentTime+=1e-6;const C=this.fragmentTracker.getPartialFragment(e)||void 0,L=In.bufferInfo(this.media,e,0);this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:y,reason:y.message,frag:C,buffer:L.len,bufferInfo:L})}}}}}_tryFixBufferStall(e,t){var n,r;const{fragmentTracker:i,media:s}=this,l=(n=this.hls)==null?void 0:n.config;if(!s||!i||!l)return;const d=s.currentTime,c=(r=this.hls)==null?void 0:r.latestLevelDetails,m=i.getPartialFragment(d);if((m||c!=null&&c.live&&d<c.fragmentStart)&&(this._trySkipBufferHole(m)||!this.media))return;const y=e.buffered;(y&&y.length>1&&e.len>l.maxBufferHole||e.nextStart&&e.nextStart-d<l.maxBufferHole)&&(t>l.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${gn(e)})`);this.warn(s.message),t.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,l=In.bufferInfo(r,s,0),d=s<l.start?l.start:l.nextStart;if(d&&this.hls){const m=l.len<=i.maxBufferHole,y=l.len>0&&l.len<1&&r.readyState<3,C=d-s;if(C>0&&(m||y)){if(C>i.maxBufferHole){let N=!1;if(s===0){const de=n.getAppendedFrag(0,re.MAIN);de&&d<de.end&&(N=!0)}if(!N){const de=e||n.getAppendedFrag(s,re.MAIN);if(de){var c;if(!((c=this.hls.loadLevelObj)!=null&&c.details)||Ml(this.hls.inFlightFragments,d))return 0;let Be=!1,Ve=de.end;for(;Ve<d;){const Ue=n.getPartialFragment(Ve);if(Ue)Ve+=Ue.duration;else{Be=!0;break}}if(Be)return 0}}}const L=Math.max(d+$0,s+F0);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${L}`),this.moved=!0,r.currentTime=L,!(e!=null&&e.gap)){const N=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${L}`);this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:N,reason:N.message,frag:e||void 0,buffer:l.len,bufferInfo:l})}return L}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const l=s+(r+1)*i.nudgeOffset,d=new Error(`Nudging 'currentTime' from ${s} to ${l}`);this.warn(d.message),n.currentTime=l,t.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_NUDGE_ON_STALL,error:d,fatal:!1,buffer:e.len,bufferInfo:e})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(l.message),t.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Ml(a,e){const t=Bl(a.main);if(t&&t.start<=e)return t;const n=Bl(a.audio);return n&&n.start<=e?n:null}function Bl(a){if(!a)return null;switch(a.state){case Ht.IDLE:case Ht.STOPPED:case Ht.ENDED:case Ht.ERROR:return null}return a.frag}const j0=.25;function Vo(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Nl(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,gn(r?A({type:r},n):n))}return i}const ho=(()=>{const a=Vo();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function H0(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class G0{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(p.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&ra(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return dl(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Vo();if(s)for(let l=0;l<i.length;l++){const d=i[l].type;if(d===Me.emsg&&!n||!r)continue;const c=pa(i[l].data);if(c){const m=i[l].pts;let y=m+i[l].duration;y>ho&&(y=ho),y-m<=0&&(y=m+j0);for(let L=0;L<c.length;L++){const N=c[L];if(!Ya(N)){this.updateId3CueEnds(m,d);const de=Nl(s,m,y,N,d);de&&this.id3Track.addCue(de)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===ho&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:d}}=s;if(i&&(l||d)){let c;r==="audio"?c=m=>m.type===Me.audioId3&&d:r==="video"?c=m=>m.type===Me.emsg&&l:c=m=>m.type===Me.audioId3&&d||m.type===Me.emsg&&l,Oo(i,t,n,c)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let s=this.dateRangeCuesAppended;if(n&&t){var l;if((l=n.cues)!=null&&l.length){const m=Object.keys(s).filter(y=>!i.includes(y));for(let y=m.length;y--;){const C=m[y],L=s[C].cues;delete s[C],Object.keys(L).forEach(N=>{try{const de=L[N];de.removeEventListener("enter",this.onEventCueEnter),n.removeCue(de)}catch(de){}})}}else s=this.dateRangeCuesAppended={}}const d=e.fragments[e.fragments.length-1];if(i.length===0||!S(d==null?void 0:d.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const c=Vo();for(let m=0;m<i.length;m++){const y=i[m],C=r[y],L=C.startTime,N=s[y],de=(N==null?void 0:N.cues)||{};let oe=(N==null?void 0:N.durationKnown)||!1,Be=ho;const{duration:Ve,endDate:Ue}=C;if(Ue&&Ve!==null)Be=L+Ve,oe=!0;else if(C.endOnNext&&!oe){const dt=i.reduce((Mt,ht)=>{if(ht!==C.id){const Rt=r[ht];if(Rt.class===C.class&&Rt.startDate>C.startDate&&(!Mt||C.startDate<Mt.startDate))return Rt}return Mt},null);dt&&(Be=dt.startTime,oe=!0)}const ut=Object.keys(C.attr);for(let dt=0;dt<ut.length;dt++){const Mt=ut[dt];if(!yi(Mt))continue;const ht=de[Mt];if(ht)oe&&!N.durationKnown?ht.endTime=Be:Math.abs(ht.startTime-L)>.01&&(ht.startTime=L,ht.endTime=Be);else if(c){let Rt=C.attr[Mt];tn(Mt)&&(Rt=H0(Rt));const _t=Nl(c,L,Be,{key:Mt,data:Rt},Me.dateRange);_t&&(_t.id=y,this.id3Track.addCue(_t),de[Mt]=_t,this.hls.config.interstitialsController&&(Mt==="X-ASSET-LIST"||Mt==="X-ASSET-URL")&&_t.addEventListener("enter",this.onEventCueEnter))}}s[y]={cues:de,dateRange:C,durationKnown:oe}}}}class K0{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const l=this.targetLatency;if(l===null)return;const d=r-l,c=Math.min(this.maxLatency,l+n.targetduration);if(d<c&&d>.05&&this.forwardBufferLength>1){const y=Math.min(2,Math.max(1,s)),C=Math.round(2/(1+Math.exp(-.75*d-this.edgeStalled))*20)/20,L=Math.min(y,Math.max(1,C));this.changeMediaPlaybackRate(t,L)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,d=this.hls.userConfig;let c=l&&n||t;(this._targetLatencyUpdated||d.liveSyncDuration||d.liveSyncDurationCount||c===0)&&(c=i!==void 0?i:s*r);const m=r;return c+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,m)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,l=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),l)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.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===$.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class W0 extends Co{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this),e.on(p.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this),e.off(p.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let l=!1,d=!1,c=!1;t.levels.forEach(m=>{var y;const C=m.attrs;let{audioCodec:L,videoCodec:N}=m;L&&(m.audioCodec=L=Pe(L,n)||void 0),((y=N)==null?void 0:y.indexOf("avc1"))===0&&(N=m.videoCodec=kt(N));const{width:de,height:oe,unknownCodecs:Be}=m;let Ve=Be?Be.length:0;if(Be)for(let ln=Ve;ln--;){const yn=Be[ln];this.isAudioSupported(yn)?(m.audioCodec=L=L?`${L},${yn}`:yn,Ve--,pn.audio[L.substring(0,4)]=2):this.isVideoSupported(yn)&&(m.videoCodec=N=N?`${N},${yn}`:yn,Ve--,pn.video[N.substring(0,4)]=2)}if(l||(l=!!(de&&oe)),d||(d=!!N),c||(c=!!L),Ve||L&&!this.isAudioSupported(L)||N&&!this.isVideoSupported(N)){this.log(`Some or all CODECS not supported "${C.CODECS}"`);return}const{CODECS:Ue,"FRAME-RATE":ut,"HDCP-LEVEL":dt,"PATHWAY-ID":Mt,RESOLUTION:ht,"VIDEO-RANGE":Rt}=C,_t=`${`${Mt||"."}-`}${m.bitrate}-${ht}-${ut}-${Ue}-${Rt}-${dt}`;if(i[_t])if(i[_t].uri!==m.url&&!m.attrs["PATHWAY-ID"]){const ln=s[_t]+=1;m.attrs["PATHWAY-ID"]=new Array(ln+1).join(".");const yn=this.createLevel(m);i[_t]=yn,r.push(yn)}else i[_t].addGroupId("audio",C.AUDIO),i[_t].addGroupId("text",C.SUBTITLES);else{const ln=this.createLevel(m);i[_t]=ln,s[_t]=1,r.push(ln)}}),this.filterAndSortMediaOptions(r,t,l,d,c)}createLevel(e){const t=new Pn(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=_e(r,[])}return t}isAudioSupported(e){return Ge(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Ge(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],l=[],d=e;if((n||r)&&i&&(d=d.filter(({videoCodec:oe,videoRange:Be,width:Ve,height:Ue})=>(!!oe||!!(Ve&&Ue))&&cn(Be))),d.length===0){Promise.resolve().then(()=>{if(this.hls){let oe="no level with compatible codecs found in manifest",Be=oe;t.levels.length&&(Be=`one or more CODECS in variant not supported: ${gn(t.levels.map(Ue=>Ue.attrs.CODECS).filter((Ue,ut,dt)=>dt.indexOf(Ue)===ut))}`,this.warn(Be),oe+=` (${Be})`);const Ve=new Error(oe);this.hls.trigger(p.ERROR,{type:ve.MEDIA_ERROR,details:$.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Ve,reason:Be})}});return}t.audioTracks&&(s=t.audioTracks.filter(oe=>!oe.audioCodec||this.isAudioSupported(oe.audioCodec)),Fl(s)),t.subtitles&&(l=t.subtitles,Fl(l));const c=d.slice(0);d.sort((oe,Be)=>{if(oe.attrs["HDCP-LEVEL"]!==Be.attrs["HDCP-LEVEL"])return(oe.attrs["HDCP-LEVEL"]||"")>(Be.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&oe.height!==Be.height)return oe.height-Be.height;if(oe.frameRate!==Be.frameRate)return oe.frameRate-Be.frameRate;if(oe.videoRange!==Be.videoRange)return Xt.indexOf(oe.videoRange)-Xt.indexOf(Be.videoRange);if(oe.videoCodec!==Be.videoCodec){const Ve=Ee(oe.videoCodec),Ue=Ee(Be.videoCodec);if(Ve!==Ue)return Ue-Ve}if(oe.uri===Be.uri&&oe.codecSet!==Be.codecSet){const Ve=De(oe.codecSet),Ue=De(Be.codecSet);if(Ve!==Ue)return Ue-Ve}return oe.averageBitrate!==Be.averageBitrate?oe.averageBitrate-Be.averageBitrate:0});let m=c[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==c.length)){for(let oe=0;oe<c.length;oe++)if(c[oe].pathwayId===d[0].pathwayId){m=c[oe];break}}this._levels=d;for(let oe=0;oe<d.length;oe++)if(d[oe]===m){var y;this._firstLevel=oe;const Be=m.bitrate,Ve=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${d.length} level(s) found, first bitrate: ${Be}`),((y=this.hls.userConfig)==null?void 0:y.abrEwmaDefaultEstimate)===void 0){const Ue=Math.min(Be,this.hls.config.abrEwmaDefaultEstimateMax);Ue>Ve&&Ve===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ue)}break}const C=i&&!r,L=this.hls.config,N=!!(L.audioStreamController&&L.audioTrackController),de={levels:d,audioTracks:s,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:N&&!C&&s.some(oe=>!!oe.url)};this.hls.trigger(p.MANIFEST_PARSED,de)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const m=new Error("invalid level idx"),y=e<0;if(this.hls.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.LEVEL_SWITCH_ERROR,level:e,fatal:y,error:m,reason:m.message}),y)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===l)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${n}${i?" with Pathway "+i:""}`);const d={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(p.LEVEL_SWITCHING,d);const c=s.details;if(!c||c.live){const m=this.switchParams(s.uri,r==null?void 0:r.details,c);this.loadPlaylist(m)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===he.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===re.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var l;this.warn(`Invalid level index ${r}`),(l=t.deliveryDirectives)!=null&&l.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let d=s.details;d===t.details&&d.advanced&&(d=void 0),this.playlistLoaded(r,t,d)}else(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,l=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(p.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));Rs(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(p.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(p.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Fl(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function $l(){return self.SourceBuffer||self.WebKitSourceBuffer}function Ul(){if(!ge())return!1;const e=$l();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function V0(){if(!Ul())return!1;const a=ge();return typeof(a==null?void 0:a.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>a.isTypeSupported(ae(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(ae(e,"audio"))))}function Z0(){var a;const e=$l();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Y0=100;class X0 extends ds{constructor(e,t,n){super(e,t,n,"stream-controller",re.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,i=r?r.currentTime:null;if(i===null||!S(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,re.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(p.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(p.BUFFER_CREATED,this.onBufferCreated,this),e.on(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(p.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(p.BUFFER_CREATED,this.onBufferCreated,this),e.off(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.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(Y0),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=Ht.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Ht.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Ht.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=Ht.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Ht.IDLE;break}break}case Ht.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=Ht.IDLE}}break}this.state===Ht.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],l=this.getMainFwdBufferInfo();if(l===null)return;const d=this.getLevelDetails();if(d&&this._streamEnded(l,d)){const de={};this.altAudio===2&&(de.type="video"),this.hls.trigger(p.BUFFER_EOS,de),this.state=Ht.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const c=s.details;if(!c||this.state===Ht.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=Ht.WAITING_LEVEL,this.startFragRequested=!1;return}const m=l.len,y=this.getMaxBufferLength(s.maxBitrate);if(m>=y)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const C=this.backtrackFragment?this.backtrackFragment.start:l.end;let L=this.getNextFragment(C,c);if(this.couldBacktrack&&!this.fragPrevious&&L&&F(L)&&this.fragmentTracker.getState(L)!==jn.OK){var N;const oe=((N=this.backtrackFragment)!=null?N:L).sn-c.startSN,Be=c.fragments[oe-1];Be&&L.cc===Be.cc&&(L=Be,this.fragmentTracker.removeFragment(Be))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(L&&this.isLoopLoading(L,C)){if(!L.gap){const oe=this.audioOnly&&!this.altAudio?b.AUDIO:b.VIDEO,Be=(oe===b.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Be&&this.afterBufferFlushed(Be,oe,re.MAIN)}L=this.getNextFragmentLoopLoading(L,c,l,re.MAIN,y)}L&&(L.initSegment&&!L.initSegment.data&&!this.bitrateTest&&(L=L.initSegment),this.loadFragment(L,s,C))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===jn.NOT_LOADED||r===jn.PARTIAL?F(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,re.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const l=this.getMainFwdBufferInfo();if(!l||l.len<i.targetduration*2)return}if(!t.paused&&e){const l=this.hls.nextLoadLevel,d=e[l],c=this.fragLastKbps;c&&this.fragCurrent?n=this.fragCurrent.duration*d.maxBitrate/(1e3*c)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const l=this.followingBufferedFrag(s);if(l){this.abortCurrentFrag();const d=l.maxStartPTS?l.maxStartPTS:l.start,c=l.duration,m=Math.max(s.end,d+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(m,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 Ht.KEY_LOADING:case Ht.FRAG_LOADING:case Ht.FRAG_LOADING_WAITING_RETRY:case Ht.PARSING:case Ht.PARSED:this.state=Ht.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;ss(n,"playing",this.onMediaPlaying),ss(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Yi(n,"playing",this.onMediaPlaying),Yi(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(p.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!Z0(),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!==Ht.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=Ht.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,l=t.details,d=l.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${d}`);const c=t.levelInfo,m=this.fragCurrent;m&&(this.state===Ht.FRAG_LOADING||this.state===Ht.FRAG_LOADING_WAITING_RETRY)&&m.level!==t.level&&m.loader&&this.abortCurrentFrag();let y=0;if(l.live||(n=c.details)!=null&&n.live){var C;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;y=this.alignPlaylists(l,c.details,(C=this.levelLastLoaded)==null?void 0:C.details)}if(c.details=l,this.levelLastLoaded=c,i||this.setStartPosition(l,y),this.hls.trigger(p.LEVEL_UPDATED,{details:l,level:s}),this.state===Ht.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=Ht.IDLE}i&&l.live&&this.synchronizeToLiveEdge(l),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,l=e.edge,d=i>=s-t.maxFragLookUpTolerance&&i<=l;if(r!==null&&n.duration>r&&(i<r||!d)){const c=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!d&&n.readyState<4||i<l-c)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const l=s[n.level];if(!l){this.warn(`Level ${n.level} not found on progress`);return}const d=l.details;if(!d){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const c=l.videoCodec,m=d.PTSKnown||!d.live,y=(t=n.initSegment)==null?void 0:t.data,C=this._getAudioCodec(l),L=this.transmuxer=this.transmuxer||new Aa(this.hls,re.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),N=r?r.index:-1,de=N!==-1,oe=new Hr(n.level,n.sn,n.stats.chunkCount,i.byteLength,N,de),Be=this.initPTS[n.cc];L.push(i,y,C,c,n,r,d.totalduration,m,oe,Be)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(qt(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(p.BUFFER_FLUSHED,()=>{var s;(s=this.hls)==null||s.trigger(p.AUDIO_TRACK_SWITCHED,t)}),n.trigger(p.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(p.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=qt(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const l in n){const d=n[l];if(d.id==="main"){if(i=l,r=d,l==="video"){const c=n[l];c&&(this.videoBuffer=c.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===re.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Ht.PARSED&&(this.state=Ht.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),F(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&In.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=Ht.ERROR;return}switch(t.details){case $.FRAG_GAP:case $.FRAG_PARSING_ERROR:case $.FRAG_DECRYPT_ERROR:case $.FRAG_LOAD_ERROR:case $.FRAG_LOAD_TIMEOUT:case $.KEY_LOAD_ERROR:case $.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(re.MAIN,t);break;case $.LEVEL_LOAD_ERROR:case $.LEVEL_LOAD_TIMEOUT:case $.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Ht.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===he.LEVEL&&(this.state=Ht.IDLE);break;case $.BUFFER_ADD_CODEC_ERROR:case $.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case $.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case $.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Ht.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==b.AUDIO||!this.altAudio){const n=(t===b.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,re.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),s=In.getBuffered(e),l=s.length?s.start(0):0,d=l-n,c=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);d>0&&(d<c||this.loadingParts&&d<2*((i==null?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${d} to match buffer start`),n+=d,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${l}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=Ht.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(p.FRAG_LOADED,n),i.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:d,part:c,level:m}=l,{video:y,text:C,id3:L,initSegment:N}=i,{details:de}=m,oe=this.altAudio?void 0:i.audio;if(this.fragContextChanged(d)){this.fragmentTracker.removeFragment(d);return}if(this.state=Ht.PARSING,N){if(N!=null&&N.tracks){const Ue=d.initSegment||d;this._bufferInitSegment(m,N.tracks,Ue,s),r.trigger(p.FRAG_PARSING_INIT_SEGMENT,{frag:Ue,id:n,tracks:N.tracks})}const Be=N.initPTS,Ve=N.timescale;S(Be)&&(this.initPTS[d.cc]={baseTime:Be,timescale:Ve},r.trigger(p.INIT_PTS_FOUND,{frag:d,id:n,initPTS:Be,timescale:Ve}))}if(y&&de){!oe&&y.type==="audiovideo"&&this.logMuxedErr(d);const Be=de.fragments[d.sn-1-de.startSN],Ve=d.sn===de.startSN,Ue=!Be||d.cc>Be.cc;if(i.independent!==!1){const{startPTS:ut,endPTS:dt,startDTS:Mt,endDTS:ht}=y;if(c)c.elementaryStreams[y.type]={startPTS:ut,endPTS:dt,startDTS:Mt,endDTS:ht};else if(y.firstKeyFrame&&y.independent&&s.id===1&&!Ue&&(this.couldBacktrack=!0),y.dropped&&y.independent){const Rt=this.getMainFwdBufferInfo(),Ft=(Rt?Rt.end:this.getLoadPosition())+this.config.maxBufferHole,_t=y.firstKeyFramePTS?y.firstKeyFramePTS:ut;if(!Ve&&Ft<_t-this.config.maxBufferHole&&!Ue){this.backtrack(d);return}else Ue&&(d.gap=!0);d.setElementaryStreamInfo(y.type,d.start,dt,d.start,ht,!0)}else Ve&&ut-(de.appliedTimelineOffset||0)>co&&(d.gap=!0);d.setElementaryStreamInfo(y.type,ut,dt,Mt,ht),this.backtrackFragment&&(this.backtrackFragment=d),this.bufferFragmentData(y,d,c,s,Ve||Ue)}else if(Ve||Ue)d.gap=!0;else{this.backtrack(d);return}}if(oe){const{startPTS:Be,endPTS:Ve,startDTS:Ue,endDTS:ut}=oe;c&&(c.elementaryStreams[b.AUDIO]={startPTS:Be,endPTS:Ve,startDTS:Ue,endDTS:ut}),d.setElementaryStreamInfo(b.AUDIO,Be,Ve,Ue,ut),this.bufferFragmentData(oe,d,c,s)}if(de&&L!=null&&(t=L.samples)!=null&&t.length){const Be={id:n,frag:d,details:de,samples:L.samples};r.trigger(p.FRAG_PARSING_METADATA,Be)}if(de&&C){const Be={id:n,frag:d,details:de,samples:C.samples};r.trigger(p.FRAG_PARSING_USERDATA,Be)}}logMuxedErr(e){this.warn(`${F(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==Ht.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:l}=t;if(i){let c=an(i.codec,e.audioCodec);c==="mp4a"&&(c="mp4a.40.5");const m=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5");const y=i.metadata;y&&"channelCount"in y&&(y.channelCount||1)!==1&&m.indexOf("firefox")===-1&&(c="mp4a.40.5")}c&&c.indexOf("mp4a.40.5")!==-1&&m.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(c="mp4a.40.2",this.log(`Android: force audio codec to ${c}`)),e.audioCodec&&e.audioCodec!==c&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${c}"`),i.levelCodec=c,i.id=re.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${c||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=re.MAIN;const c=s.codec;if((c==null?void 0:c.length)===4)switch(c){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${c}]${s.codec!==c?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${e.codecs}/${l.codec}]`),delete t.video,delete t.audio);const d=Object.keys(t);if(d.length){if(this.hls.trigger(p.BUFFER_CODECS,t),!this.hls)return;d.forEach(c=>{const y=t[c].initSegment;y!=null&&y.byteLength&&this.hls.trigger(p.BUFFER_APPENDING,{type:c,data:y,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,re.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Ht.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(In.isBuffered(e,n)?t=this.getAppendedFrag(n):In.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(p.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(p.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return S(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(S(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?bn(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Q0{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=$.KEY_LOAD_ERROR,n,r,i){return new kr({type:ve.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const s=t[i];if(r<=s.cc&&(n==="initSegment"||s.sn==="initSegment"||n<s.sn)){this.emeController.selectKeySystemFormat(s).then(l=>{s.setKeyFormat(l)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const c=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,$.KEY_LOAD_ERROR,c))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,$.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let l=this.keyUriToKeyInfo[s];if((n=l)!=null&&n.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if((r=l)!=null&&r.keyLoadPromise){var d;switch((d=l.mediaKeySessionContext)==null?void 0:d.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then(c=>(i.key=c.keyInfo.decryptdata.key,{frag:e,keyInfo:l}))}}switch(l=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(l,e):this.loadKeyEME(l,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,$.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,l)=>{const d={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},c=n.keyLoadPolicy.default,m={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},y={onSuccess:(C,L,N,de)=>{const{frag:oe,keyInfo:Be,url:Ve}=N;if(!oe.decryptdata||Be!==this.keyUriToKeyInfo[Ve])return l(this.createKeyLoadError(oe,$.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),de));Be.decryptdata.key=oe.decryptdata.key=new Uint8Array(C.data),oe.keyLoader=null,Be.loader=null,s({frag:oe,keyInfo:Be})},onError:(C,L,N,de)=>{this.resetLoader(L),l(this.createKeyLoadError(t,$.KEY_LOAD_ERROR,new Error(`HTTP Error ${C.code} loading key ${C.text}`),N,A({url:d.url,data:void 0},C)))},onTimeout:(C,L,N)=>{this.resetLoader(L),l(this.createKeyLoadError(t,$.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),N))},onAbort:(C,L,N)=>{this.resetLoader(L),l(this.createKeyLoadError(t,$.INTERNAL_ABORTED,new Error("key loading aborted"),N))}};i.load(d,m,y)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function zl(a){const{type:e}=a;switch(e){case he.AUDIO_TRACK:return re.AUDIO;case he.SUBTITLE_TRACK:return re.SUBTITLE;default:return re.MAIN}}function Zo(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class J0{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(p.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_LOADING,this.onLevelLoading,this),e.off(p.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(p.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:he.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:l,levelInfo:d}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:he.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:d})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:he.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:he.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[he.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[he.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const c=this.hls.logger,m=r.context;if(m&&m.levelOrTrack===e.levelOrTrack&&(m.url===e.url||m.deliveryDirectives&&!e.deliveryDirectives)){m.url===e.url?c.log(`[playlist-loader]: ignore ${e.url} ongoing request`):c.log(`[playlist-loader]: ignore ${e.url} in favor of ${m.url}`);return}c.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===he.MANIFEST?i=n.manifestLoadPolicy.default:i=v({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),S((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===he.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===he.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===he.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const m=c.partTarget,y=c.targetduration;if(m&&y){const C=Math.max(m*3,y*.8)*1e3;i=v({},i,{maxTimeToFirstByteMs:Math.min(C,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(C,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},l={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},d={onSuccess:(c,m,y,C)=>{const L=this.getInternalLoader(y);this.resetInternalLoader(y.type);const N=c.data;if(N.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,y,new Error("no EXTM3U delimiter"),C||null,m);return}m.parsing.start=performance.now(),ii.isMediaPlaylist(N)||y.type!==he.MANIFEST?this.handleTrackOrLevelPlaylist(c,m,y,C||null,L):this.handleMasterPlaylist(c,m,y,C)},onError:(c,m,y,C)=>{this.handleNetworkError(m,y,!1,c,C)},onTimeout:(c,m,y)=>{this.handleNetworkError(m,y,!0,void 0,c)}};r.load(e,l,d)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,l=Zo(e,n),d=ii.parseMasterPlaylist(s,l);if(d.playlistParsingError){this.handleManifestParsingError(e,n,d.playlistParsingError,r,t);return}const{contentSteering:c,levels:m,sessionData:y,sessionKeys:C,startTimeOffset:L,variableList:N}=d;this.variableList=N;const{AUDIO:de=[],SUBTITLES:oe,"CLOSED-CAPTIONS":Be}=ii.parseMasterPlaylistMedia(s,l,d);de.length&&!de.some(Ue=>!Ue.url)&&m[0].audioCodec&&!m[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),de.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new zn({}),bitrate:0,url:""})),i.trigger(p.MANIFEST_LOADED,{levels:m,audioTracks:de,subtitles:oe,captions:Be,contentSteering:c,url:l,stats:t,networkDetails:r,sessionData:y,sessionKeys:C,startTimeOffset:L,variableList:N})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:d,type:c}=n,m=Zo(e,n),y=S(d)?d:S(l)?l:0,C=zl(n),L=ii.parseLevelPlaylist(e.data,m,y,C,0,this.variableList);if(c===he.MANIFEST){const N={attrs:new zn({}),bitrate:0,details:L,name:"",url:m};L.requestScheduled=t.loading.start+es(L,0),s.trigger(p.MANIFEST_LOADED,{levels:[N],audioTracks:[],url:m,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=L,this.handlePlaylistLoaded(L,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(p.ERROR,{type:ve.NETWORK_ERROR,details:$.MANIFEST_PARSING_ERROR,fatal:t.type===he.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===he.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===he.AUDIO_TRACK||e.type===he.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let d=$.UNKNOWN,c=!1;const m=this.getInternalLoader(e);switch(e.type){case he.MANIFEST:d=n?$.MANIFEST_LOAD_TIMEOUT:$.MANIFEST_LOAD_ERROR,c=!0;break;case he.LEVEL:d=n?$.LEVEL_LOAD_TIMEOUT:$.LEVEL_LOAD_ERROR,c=!1;break;case he.AUDIO_TRACK:d=n?$.AUDIO_TRACK_LOAD_TIMEOUT:$.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case he.SUBTITLE_TRACK:d=n?$.SUBTITLE_TRACK_LOAD_TIMEOUT:$.SUBTITLE_LOAD_ERROR,c=!1;break}m&&this.resetInternalLoader(e.type);const y={type:ve.NETWORK_ERROR,details:d,fatal:c,url:e.url,loader:m,context:e,error:l,networkDetails:t,stats:i};if(r){const C=(t==null?void 0:t.url)||e.url;y.response=A({url:C,data:void 0},r)}this.hls.trigger(p.ERROR,y)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:d,level:c,id:m,groupId:y,deliveryDirectives:C}=r,L=Zo(t,r),N=zl(r),de=typeof r.level=="number"&&N===re.MAIN?c:void 0;if(!e.fragments.length){const Be=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(p.ERROR,{type:ve.NETWORK_ERROR,details:$.LEVEL_EMPTY_ERROR,fatal:!1,url:L,error:Be,reason:Be.message,response:t,context:r,level:de,parent:N,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const oe=e.playlistParsingError;if(oe){if(this.hls.logger.warn(oe),!l.config.ignorePlaylistParsingErrors){l.trigger(p.ERROR,{type:ve.NETWORK_ERROR,details:$.LEVEL_PARSING_ERROR,fatal:!1,url:L,error:oe,reason:oe.message,response:t,context:r,level:de,parent:N,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),d){case he.MANIFEST:case he.LEVEL:l.trigger(p.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||l.levels[0],level:de||0,id:m||0,stats:n,networkDetails:i,deliveryDirectives:C,withoutMultiVariant:d===he.MANIFEST});break;case he.AUDIO_TRACK:l.trigger(p.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:m||0,groupId:y||"",stats:n,networkDetails:i,deliveryDirectives:C});break;case he.SUBTITLE_TRACK:l.trigger(p.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:m||0,groupId:y||"",stats:n,networkDetails:i,deliveryDirectives:C});break}}}class _s{static get version(){return ns}static isMSESupported(){return Ul()}static isSupported(){return V0()}static getMediaSource(){return ge()}static get Events(){return p}static get MetadataSchema(){return Me}static get ErrorTypes(){return ve}static get ErrorDetails(){return $}static get DefaultConfig(){return _s.defaultConfig?_s.defaultConfig:O0}static set DefaultConfig(e){_s.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Vs,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=se(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=B0(_s.DefaultConfig,e,t);this.userConfig=e,n.progressive&&N0(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:d}=n,c=new l(this),m=this.abrController=new r(this),y=new $r(this),C=n.interstitialsController,L=C?this.interstitialsController=new C(this,_s):null,N=this.bufferController=new i(this,y),de=this.capLevelController=new s(this),oe=new d(this),Be=new J0(this),Ve=n.contentSteeringController,Ue=Ve?new Ve(this):null,ut=this.levelController=new W0(this,Ue),dt=new G0(this),Mt=new Q0(this.config),ht=this.streamController=new X0(this,y,Mt),Rt=this.gapController=new z0(this,y);de.setStreamController(ht),oe.setStreamController(ht);const Ft=[Be,ut,ht];L&&Ft.splice(1,0,L),Ue&&Ft.splice(1,0,Ue),this.networkControllers=Ft;const _t=[m,N,Rt,de,oe,dt,y];this.audioTrackController=this.createController(n.audioTrackController,Ft);const ln=n.audioStreamController;ln&&Ft.push(this.audioStreamController=new ln(this,y,Mt)),this.subtitleTrackController=this.createController(n.subtitleTrackController,Ft);const yn=n.subtitleStreamController;yn&&Ft.push(this.subtititleStreamController=new yn(this,y,Mt)),this.createController(n.timelineController,_t),Mt.emeController=this.emeController=this.createController(n.emeController,_t),this.cmcdController=this.createController(n.cmcdController,_t),this.latencyController=this.createController(K0,_t),this.coreComponents=_t,Ft.push(c);const mr=c.onErrorOut;typeof mr=="function"&&this.on(p.ERROR,mr,c),this.on(p.MANIFEST_LOADED,Be.onManifestLoaded,Be)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===p.ERROR;this.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(p.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(p.ERROR,{type:ve.OTHER_ERROR,details:$.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(p.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(p.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(p.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(p.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={[re.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[re.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[re.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=Va()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Ct(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=fn(t);return We(e,n,navigator.mediaCapabilities)}}_s.defaultConfig=void 0}}]);
|
|
}()); |