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

1317 lines
1.3 MiB

!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[5402],{70557:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},84105:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},18785:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},73331:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},15277:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},33853:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},62772:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},38819:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},47472:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return he}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(V,F){return J.createElement(oe.Z,(0,A.Z)({},V,{ref:F,icon:Le}))},fe=J.forwardRef(X),he=fe},35593:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return It}});var A=y(44127),J=y(72071),ye=y(6620),Le=y(43403),oe=y(92310),X=y.n(oe),fe=y(29301),he=y(76846),o=y(96452),V=y(6089),F=y(80402),g=y(34280),c=y(49658),w=y(59301),b=y(96663),z=y(77900),te=y(8654);function k(le){var ve=le.prefixCls,N=le.align,ce=le.arrow,Ae=le.arrowPos,L=ce||{},ee=L.className,ue=L.content,_e=Ae.x,ke=_e===void 0?0:_e,Pe=Ae.y,We=Pe===void 0?0:Pe,rt=w.useRef();if(!N||!N.points)return null;var Ze={position:"absolute"};if(N.autoArrow!==!1){var Ge=N.points[0],mt=N.points[1],At=Ge[0],_t=Ge[1],Lt=mt[0],Ht=mt[1];At===Lt||!["t","b"].includes(At)?Ze.top=We:At==="t"?Ze.top=0:Ze.bottom=0,_t===Ht||!["l","r"].includes(_t)?Ze.left=ke:_t==="l"?Ze.left=0:Ze.right=0}return w.createElement("div",{ref:rt,className:X()("".concat(ve,"-arrow"),ee),style:Ze},ue)}function P(le){var ve=le.prefixCls,N=le.open,ce=le.zIndex,Ae=le.mask,L=le.motion;return Ae?w.createElement(z.default,(0,b.Z)({},L,{motionAppear:!0,visible:N,removeOnLeave:!0}),function(ee){var ue=ee.className;return w.createElement("div",{style:{zIndex:ce},className:X()("".concat(ve,"-mask"),ue)})}):null}var H=w.memo(function(le){var ve=le.children;return ve},function(le,ve){return ve.cache}),ae=H,E=w.forwardRef(function(le,ve){var N=le.popup,ce=le.className,Ae=le.prefixCls,L=le.style,ee=le.target,ue=le.onVisibleChanged,_e=le.open,ke=le.keepDom,Pe=le.fresh,We=le.onClick,rt=le.mask,Ze=le.arrow,Ge=le.arrowPos,mt=le.align,At=le.motion,_t=le.maskMotion,Lt=le.forceRender,Ht=le.getPopupContainer,Pt=le.autoDestroy,Yt=le.portal,$t=le.zIndex,S=le.onMouseEnter,C=le.onMouseLeave,ot=le.onPointerEnter,Q=le.ready,Re=le.offsetX,pr=le.offsetY,Be=le.offsetR,He=le.offsetB,Ve=le.onAlign,re=le.onPrepare,me=le.stretch,Me=le.targetWidth,Ue=le.targetHeight,Y=typeof N=="function"?N():N,Ft=_e||ke,Oe=(Ht==null?void 0:Ht.length)>0,Wt=w.useState(!Ht||!Oe),ir=(0,J.Z)(Wt,2),bt=ir[0],kt=ir[1];if((0,g.Z)(function(){!bt&&Oe&&ee&&kt(!0)},[bt,Oe,ee]),!bt)return null;var lt="auto",pt={left:"-1000vw",top:"-1000vh",right:lt,bottom:lt};if(Q||!_e){var tr,pe=mt.points,Ce=mt.dynamicInset||((tr=mt._experimental)===null||tr===void 0?void 0:tr.dynamicInset),it=Ce&&pe[0][1]==="r",Ke=Ce&&pe[0][0]==="b";it?(pt.right=Be,pt.left=lt):(pt.left=Re,pt.right=lt),Ke?(pt.bottom=He,pt.top=lt):(pt.top=pr,pt.bottom=lt)}var st={};return me&&(me.includes("height")&&Ue?st.height=Ue:me.includes("minHeight")&&Ue&&(st.minHeight=Ue),me.includes("width")&&Me?st.width=Me:me.includes("minWidth")&&Me&&(st.minWidth=Me)),_e||(st.pointerEvents="none"),w.createElement(Yt,{open:Lt||Ft,getContainer:Ht&&function(){return Ht(ee)},autoDestroy:Pt},w.createElement(P,{prefixCls:Ae,open:_e,zIndex:$t,mask:rt,motion:_t}),w.createElement(fe.Z,{onResize:Ve,disabled:!_e},function(ft){return w.createElement(z.default,(0,b.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Lt,leavedClassName:"".concat(Ae,"-hidden")},At,{onAppearPrepare:re,onEnterPrepare:re,visible:_e,onVisibleChanged:function(Xt){var ar;At==null||(ar=At.onVisibleChanged)===null||ar===void 0||ar.call(At,Xt),ue(Xt)}}),function(wt,Xt){var ar=wt.className,jt=wt.style,gr=X()(Ae,ar,ce);return w.createElement("div",{ref:(0,te.sQ)(ft,ve,Xt),className:gr,style:(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({"--arrow-x":"".concat(Ge.x||0,"px"),"--arrow-y":"".concat(Ge.y||0,"px")},pt),st),jt),{},{boxSizing:"border-box",zIndex:$t},L),onMouseEnter:S,onMouseLeave:C,onPointerEnter:ot,onClick:We},Ze&&w.createElement(k,{prefixCls:Ae,arrow:Ze,arrowPos:Ge,align:mt}),w.createElement(ae,{cache:!_e&&!Pe},Y))})}))}),W=E,ne=w.forwardRef(function(le,ve){var N=le.children,ce=le.getTriggerDOMNode,Ae=(0,te.Yr)(N),L=w.useCallback(function(ue){(0,te.mH)(ve,ce?ce(ue):ue)},[ce]),ee=(0,te.x1)(L,N.ref);return Ae?w.cloneElement(N,{ref:ee}):N}),q=ne,ge=w.createContext(null),Te=ge;function Se(le){return le?Array.isArray(le)?le:[le]:[]}function Fe(le,ve,N,ce){return w.useMemo(function(){var Ae=Se(N!=null?N:ve),L=Se(ce!=null?ce:ve),ee=new Set(Ae),ue=new Set(L);return le&&(ee.has("hover")&&(ee.delete("hover"),ee.add("click")),ue.has("hover")&&(ue.delete("hover"),ue.add("click"))),[ee,ue]},[le,ve,N,ce])}var G=y(29194);function I(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=arguments.length>2?arguments[2]:void 0;return N?le[0]===ve[0]:le[0]===ve[0]&&le[1]===ve[1]}function $(le,ve,N,ce){for(var Ae=N.points,L=Object.keys(le),ee=0;ee<L.length;ee+=1){var ue,_e=L[ee];if(I((ue=le[_e])===null||ue===void 0?void 0:ue.points,Ae,ce))return"".concat(ve,"-placement-").concat(_e)}return""}function R(le,ve,N,ce){return ve||(N?{motionName:"".concat(le,"-").concat(N)}:ce?{motionName:ce}:null)}function Z(le){return le.ownerDocument.defaultView}function B(le){for(var ve=[],N=le==null?void 0:le.parentElement,ce=["hidden","scroll","clip","auto"];N;){var Ae=Z(N).getComputedStyle(N),L=Ae.overflowX,ee=Ae.overflowY,ue=Ae.overflow;[L,ee,ue].some(function(_e){return ce.includes(_e)})&&ve.push(N),N=N.parentElement}return ve}function m(le){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(le)?ve:le}function _(le){return m(parseFloat(le),0)}function O(le,ve){var N=(0,A.Z)({},le);return(ve||[]).forEach(function(ce){if(!(ce instanceof HTMLBodyElement||ce instanceof HTMLHtmlElement)){var Ae=Z(ce).getComputedStyle(ce),L=Ae.overflow,ee=Ae.overflowClipMargin,ue=Ae.borderTopWidth,_e=Ae.borderBottomWidth,ke=Ae.borderLeftWidth,Pe=Ae.borderRightWidth,We=ce.getBoundingClientRect(),rt=ce.offsetHeight,Ze=ce.clientHeight,Ge=ce.offsetWidth,mt=ce.clientWidth,At=_(ue),_t=_(_e),Lt=_(ke),Ht=_(Pe),Pt=m(Math.round(We.width/Ge*1e3)/1e3),Yt=m(Math.round(We.height/rt*1e3)/1e3),$t=(Ge-mt-Lt-Ht)*Pt,S=(rt-Ze-At-_t)*Yt,C=At*Yt,ot=_t*Yt,Q=Lt*Pt,Re=Ht*Pt,pr=0,Be=0;if(L==="clip"){var He=_(ee);pr=He*Pt,Be=He*Yt}var Ve=We.x+Q-pr,re=We.y+C-Be,me=Ve+We.width+2*pr-Q-Re-$t,Me=re+We.height+2*Be-C-ot-S;N.left=Math.max(N.left,Ve),N.top=Math.max(N.top,re),N.right=Math.min(N.right,me),N.bottom=Math.min(N.bottom,Me)}}),N}function M(le){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N="".concat(ve),ce=N.match(/^(.*)\%$/);return ce?le*(parseFloat(ce[1])/100):parseFloat(N)}function we(le,ve){var N=ve||[],ce=(0,J.Z)(N,2),Ae=ce[0],L=ce[1];return[M(le.width,Ae),M(le.height,L)]}function Ee(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[le[0],le[1]]}function De(le,ve){var N=ve[0],ce=ve[1],Ae,L;return N==="t"?L=le.y:N==="b"?L=le.y+le.height:L=le.y+le.height/2,ce==="l"?Ae=le.x:ce==="r"?Ae=le.x+le.width:Ae=le.x+le.width/2,{x:Ae,y:L}}function $e(le,ve){var N={t:"b",b:"t",l:"r",r:"l"};return le.map(function(ce,Ae){return Ae===ve?N[ce]||"c":ce}).join("")}function Je(le,ve,N,ce,Ae,L,ee){var ue=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ae[ce]||{}}),_e=(0,J.Z)(ue,2),ke=_e[0],Pe=_e[1],We=w.useRef(0),rt=w.useMemo(function(){return ve?B(ve):[]},[ve]),Ze=w.useRef({}),Ge=function(){Ze.current={}};le||Ge();var mt=(0,V.Z)(function(){if(ve&&N&&le){let xn=function(En,Fn){var Qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gr,In=Y.x+En,Kn=Y.y+Fn,Ri=In+tr,gn=Kn+pt,Hr=Math.max(In,Qn.left),Pn=Math.max(Kn,Qn.top),Mn=Math.min(Ri,Qn.right),ai=Math.min(gn,Qn.bottom);return Math.max(0,(Mn-Hr)*(ai-Pn))},Jr=function(){xr=Y.y+dr,$r=xr+pt,dn=Y.x+vr,kn=dn+tr};var Lt,Ht,Pt=ve,Yt=Pt.ownerDocument,$t=Z(Pt),S=$t.getComputedStyle(Pt),C=S.width,ot=S.height,Q=S.position,Re=Pt.style.left,pr=Pt.style.top,Be=Pt.style.right,He=Pt.style.bottom,Ve=Pt.style.overflow,re=(0,A.Z)((0,A.Z)({},Ae[ce]),L),me=Yt.createElement("div");(Lt=Pt.parentElement)===null||Lt===void 0||Lt.appendChild(me),me.style.left="".concat(Pt.offsetLeft,"px"),me.style.top="".concat(Pt.offsetTop,"px"),me.style.position=Q,me.style.height="".concat(Pt.offsetHeight,"px"),me.style.width="".concat(Pt.offsetWidth,"px"),Pt.style.left="0",Pt.style.top="0",Pt.style.right="auto",Pt.style.bottom="auto",Pt.style.overflow="hidden";var Me;if(Array.isArray(N))Me={x:N[0],y:N[1],width:0,height:0};else{var Ue=N.getBoundingClientRect();Me={x:Ue.x,y:Ue.y,width:Ue.width,height:Ue.height}}var Y=Pt.getBoundingClientRect(),Ft=Yt.documentElement,Oe=Ft.clientWidth,Wt=Ft.clientHeight,ir=Ft.scrollWidth,bt=Ft.scrollHeight,kt=Ft.scrollTop,lt=Ft.scrollLeft,pt=Y.height,tr=Y.width,pe=Me.height,Ce=Me.width,it={left:0,top:0,right:Oe,bottom:Wt},Ke={left:-lt,top:-kt,right:ir-lt,bottom:bt-kt},st=re.htmlRegion,ft="visible",wt="visibleFirst";st!=="scroll"&&st!==wt&&(st=ft);var Xt=st===wt,ar=O(Ke,rt),jt=O(it,rt),gr=st===ft?jt:ar,sr=Xt?jt:gr;Pt.style.left="auto",Pt.style.top="auto",Pt.style.right="0",Pt.style.bottom="0";var Gt=Pt.getBoundingClientRect();Pt.style.left=Re,Pt.style.top=pr,Pt.style.right=Be,Pt.style.bottom=He,Pt.style.overflow=Ve,(Ht=Pt.parentElement)===null||Ht===void 0||Ht.removeChild(me);var Ot=m(Math.round(tr/parseFloat(C)*1e3)/1e3),ur=m(Math.round(pt/parseFloat(ot)*1e3)/1e3);if(Ot===0||ur===0||(0,he.Sh)(N)&&!(0,G.Z)(N))return;var Dr=re.offset,yr=re.targetOffset,Lr=we(Y,Dr),en=(0,J.Z)(Lr,2),Ar=en[0],nr=en[1],tt=we(Me,yr),Ye=(0,J.Z)(tt,2),gt=Ye[0],Tt=Ye[1];Me.x-=gt,Me.y-=Tt;var at=re.points||[],Ct=(0,J.Z)(at,2),xt=Ct[0],zt=Ct[1],rr=Ee(zt),qt=Ee(xt),br=De(Me,rr),Mr=De(Y,qt),Fr=(0,A.Z)({},re),vr=br.x-Mr.x+Ar,dr=br.y-Mr.y+nr,Yr=xn(vr,dr),Nr=xn(vr,dr,jt),Cr=De(Me,["t","l"]),Rr=De(Y,["t","l"]),Br=De(Me,["b","r"]),Pr=De(Y,["b","r"]),kr=re.overflow||{},zr=kr.adjustX,sn=kr.adjustY,Qr=kr.shiftX,Tr=kr.shiftY,Xe=function(Fn){return typeof Fn=="boolean"?Fn:Fn>=0},xr,$r,dn,kn;Jr();var jr=Xe(sn),hn=qt[0]===rr[0];if(jr&&qt[0]==="t"&&($r>sr.bottom||Ze.current.bt)){var Or=dr;hn?Or-=pt-pe:Or=Cr.y-Pr.y-nr;var yn=xn(vr,Or),Rn=xn(vr,Or,jt);yn>Yr||yn===Yr&&(!Xt||Rn>=Nr)?(Ze.current.bt=!0,dr=Or,nr=-nr,Fr.points=[$e(qt,0),$e(rr,0)]):Ze.current.bt=!1}if(jr&&qt[0]==="b"&&(xr<sr.top||Ze.current.tb)){var rn=dr;hn?rn+=pt-pe:rn=Br.y-Rr.y-nr;var Cn=xn(vr,rn),ni=xn(vr,rn,jt);Cn>Yr||Cn===Yr&&(!Xt||ni>=Nr)?(Ze.current.tb=!0,dr=rn,nr=-nr,Fr.points=[$e(qt,0),$e(rr,0)]):Ze.current.tb=!1}var Un=Xe(zr),ei=qt[1]===rr[1];if(Un&&qt[1]==="l"&&(kn>sr.right||Ze.current.rl)){var cr=vr;ei?cr-=tr-Ce:cr=Cr.x-Pr.x-Ar;var tn=xn(cr,dr),an=xn(cr,dr,jt);tn>Yr||tn===Yr&&(!Xt||an>=Nr)?(Ze.current.rl=!0,vr=cr,Ar=-Ar,Fr.points=[$e(qt,1),$e(rr,1)]):Ze.current.rl=!1}if(Un&&qt[1]==="r"&&(dn<sr.left||Ze.current.lr)){var mn=vr;ei?mn+=tr-Ce:mn=Br.x-Rr.x-Ar;var Zn=xn(mn,dr),Vn=xn(mn,dr,jt);Zn>Yr||Zn===Yr&&(!Xt||Vn>=Nr)?(Ze.current.lr=!0,vr=mn,Ar=-Ar,Fr.points=[$e(qt,1),$e(rr,1)]):Ze.current.lr=!1}Jr();var vn=Qr===!0?0:Qr;typeof vn=="number"&&(dn<jt.left&&(vr-=dn-jt.left-Ar,Me.x+Ce<jt.left+vn&&(vr+=Me.x-jt.left+Ce-vn)),kn>jt.right&&(vr-=kn-jt.right-Ar,Me.x>jt.right-vn&&(vr+=Me.x-jt.right+vn)));var Nn=Tr===!0?0:Tr;typeof Nn=="number"&&(xr<jt.top&&(dr-=xr-jt.top-nr,Me.y+pe<jt.top+Nn&&(dr+=Me.y-jt.top+pe-Nn)),$r>jt.bottom&&(dr-=$r-jt.bottom-nr,Me.y>jt.bottom-Nn&&(dr+=Me.y-jt.bottom+Nn)));var un=Y.x+vr,Yn=un+tr,Gn=Y.y+dr,si=Gn+pt,jn=Me.x,ii=jn+Ce,Gr=Me.y,di=Gr+pe,wi=Math.max(un,jn),yi=Math.min(Yn,ii),pn=(wi+yi)/2,fi=pn-un,xi=Math.max(Gn,Gr),Jt=Math.min(si,di),Xn=(xi+Jt)/2,mi=Xn-Gn;ee==null||ee(ve,Fr);var li=Gt.right-Y.x-(vr+Y.width),On=Gt.bottom-Y.y-(dr+Y.height);Pe({ready:!0,offsetX:vr/Ot,offsetY:dr/ur,offsetR:li/Ot,offsetB:On/ur,arrowX:fi/Ot,arrowY:mi/ur,scaleX:Ot,scaleY:ur,align:Fr})}}),At=function(){We.current+=1;var Ht=We.current;Promise.resolve().then(function(){We.current===Ht&&mt()})},_t=function(){Pe(function(Ht){return(0,A.Z)((0,A.Z)({},Ht),{},{ready:!1})})};return(0,g.Z)(_t,[ce]),(0,g.Z)(function(){le||_t()},[le]),[ke.ready,ke.offsetX,ke.offsetY,ke.offsetR,ke.offsetB,ke.arrowX,ke.arrowY,ke.scaleX,ke.scaleY,ke.align,At]}var Qe=y(19127);function et(le,ve,N,ce,Ae){(0,g.Z)(function(){if(le&&ve&&N){let We=function(){ce(),Ae()};var L=ve,ee=N,ue=B(L),_e=B(ee),ke=Z(ee),Pe=new Set([ke].concat((0,Qe.Z)(ue),(0,Qe.Z)(_e)));return Pe.forEach(function(rt){rt.addEventListener("scroll",We,{passive:!0})}),ke.addEventListener("resize",We,{passive:!0}),ce(),function(){Pe.forEach(function(rt){rt.removeEventListener("scroll",We),ke.removeEventListener("resize",We)})}}},[le,ve,N])}var St=y(48736),Et=y(16089);function Bt(le,ve,N,ce,Ae,L,ee,ue){var _e=w.useRef(le),ke=w.useRef(!1);_e.current!==le&&(ke.current=!0,_e.current=le),w.useEffect(function(){var Pe=(0,Et.Z)(function(){ke.current=!1});return function(){Et.Z.cancel(Pe)}},[le]),w.useEffect(function(){if(ve&&ce&&(!Ae||L)){var Pe=function(){var Q=!1,Re=function(He){var Ve=He.target;Q=ee(Ve)},pr=function(He){var Ve=He.target;!ke.current&&_e.current&&!Q&&!ee(Ve)&&ue(!1)};return[Re,pr]},We=Pe(),rt=(0,J.Z)(We,2),Ze=rt[0],Ge=rt[1],mt=Pe(),At=(0,J.Z)(mt,2),_t=At[0],Lt=At[1],Ht=Z(ce);Ht.addEventListener("mousedown",Ze,!0),Ht.addEventListener("click",Ge,!0),Ht.addEventListener("contextmenu",Ge,!0);var Pt=(0,o.A)(N);if(Pt&&(Pt.addEventListener("mousedown",_t,!0),Pt.addEventListener("click",Lt,!0),Pt.addEventListener("contextmenu",Lt,!0)),0)var Yt,$t,S,C;return function(){Ht.removeEventListener("mousedown",Ze,!0),Ht.removeEventListener("click",Ge,!0),Ht.removeEventListener("contextmenu",Ge,!0),Pt&&(Pt.removeEventListener("mousedown",_t,!0),Pt.removeEventListener("click",Lt,!0),Pt.removeEventListener("contextmenu",Lt,!0))}}},[ve,N,ce,Ae,L])}var ht=["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 Rt(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Le.Z,ve=w.forwardRef(function(N,ce){var Ae=N.prefixCls,L=Ae===void 0?"rc-trigger-popup":Ae,ee=N.children,ue=N.action,_e=ue===void 0?"hover":ue,ke=N.showAction,Pe=N.hideAction,We=N.popupVisible,rt=N.defaultPopupVisible,Ze=N.onPopupVisibleChange,Ge=N.afterPopupVisibleChange,mt=N.mouseEnterDelay,At=N.mouseLeaveDelay,_t=At===void 0?.1:At,Lt=N.focusDelay,Ht=N.blurDelay,Pt=N.mask,Yt=N.maskClosable,$t=Yt===void 0?!0:Yt,S=N.getPopupContainer,C=N.forceRender,ot=N.autoDestroy,Q=N.destroyPopupOnHide,Re=N.popup,pr=N.popupClassName,Be=N.popupStyle,He=N.popupPlacement,Ve=N.builtinPlacements,re=Ve===void 0?{}:Ve,me=N.popupAlign,Me=N.zIndex,Ue=N.stretch,Y=N.getPopupClassNameFromAlign,Ft=N.fresh,Oe=N.alignPoint,Wt=N.onPopupClick,ir=N.onPopupAlign,bt=N.arrow,kt=N.popupMotion,lt=N.maskMotion,pt=N.popupTransitionName,tr=N.popupAnimation,pe=N.maskTransitionName,Ce=N.maskAnimation,it=N.className,Ke=N.getTriggerDOMNode,st=(0,ye.Z)(N,ht),ft=ot||Q||!1,wt=w.useState(!1),Xt=(0,J.Z)(wt,2),ar=Xt[0],jt=Xt[1];(0,g.Z)(function(){jt((0,c.Z)())},[]);var gr=w.useRef({}),sr=w.useContext(Te),Gt=w.useMemo(function(){return{registerSubPopup:function(mr,nn){gr.current[mr]=nn,sr==null||sr.registerSubPopup(mr,nn)}}},[sr]),Ot=(0,F.Z)(),ur=w.useState(null),Dr=(0,J.Z)(ur,2),yr=Dr[0],Lr=Dr[1],en=(0,V.Z)(function(fr){(0,he.Sh)(fr)&&yr!==fr&&Lr(fr),sr==null||sr.registerSubPopup(Ot,fr)}),Ar=w.useState(null),nr=(0,J.Z)(Ar,2),tt=nr[0],Ye=nr[1],gt=w.useRef(null),Tt=(0,V.Z)(function(fr){(0,he.Sh)(fr)&&tt!==fr&&(Ye(fr),gt.current=fr)}),at=w.Children.only(ee),Ct=(at==null?void 0:at.props)||{},xt={},zt=(0,V.Z)(function(fr){var mr,nn,zn=tt;return(zn==null?void 0:zn.contains(fr))||((mr=(0,o.A)(zn))===null||mr===void 0?void 0:mr.host)===fr||fr===zn||(yr==null?void 0:yr.contains(fr))||((nn=(0,o.A)(yr))===null||nn===void 0?void 0:nn.host)===fr||fr===yr||Object.values(gr.current).some(function(ln){return(ln==null?void 0:ln.contains(fr))||fr===ln})}),rr=R(L,kt,tr,pt),qt=R(L,lt,Ce,pe),br=w.useState(rt||!1),Mr=(0,J.Z)(br,2),Fr=Mr[0],vr=Mr[1],dr=We!=null?We:Fr,Yr=(0,V.Z)(function(fr){We===void 0&&vr(fr)});(0,g.Z)(function(){vr(We||!1)},[We]);var Nr=w.useRef(dr);Nr.current=dr;var Cr=w.useRef([]);Cr.current=[];var Rr=(0,V.Z)(function(fr){var mr;Yr(fr),((mr=Cr.current[Cr.current.length-1])!==null&&mr!==void 0?mr:dr)!==fr&&(Cr.current.push(fr),Ze==null||Ze(fr))}),Br=w.useRef(),Pr=function(){clearTimeout(Br.current)},kr=function(mr){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Pr(),nn===0?Rr(mr):Br.current=setTimeout(function(){Rr(mr)},nn*1e3)};w.useEffect(function(){return Pr},[]);var zr=w.useState(!1),sn=(0,J.Z)(zr,2),Qr=sn[0],Tr=sn[1];(0,g.Z)(function(fr){(!fr||dr)&&Tr(!0)},[dr]);var Xe=w.useState(null),xr=(0,J.Z)(Xe,2),$r=xr[0],dn=xr[1],kn=w.useState([0,0]),jr=(0,J.Z)(kn,2),hn=jr[0],Or=jr[1],yn=function(mr){Or([mr.clientX,mr.clientY])},Rn=Je(dr,yr,Oe?hn:tt,He,re,me,ir),rn=(0,J.Z)(Rn,11),Cn=rn[0],ni=rn[1],Un=rn[2],ei=rn[3],cr=rn[4],tn=rn[5],an=rn[6],mn=rn[7],Zn=rn[8],Vn=rn[9],vn=rn[10],Nn=Fe(ar,_e,ke,Pe),un=(0,J.Z)(Nn,2),Yn=un[0],Gn=un[1],si=Yn.has("click"),jn=Gn.has("click")||Gn.has("contextMenu"),ii=(0,V.Z)(function(){Qr||vn()}),Gr=function(){Nr.current&&Oe&&jn&&kr(!1)};et(dr,tt,yr,ii,Gr),(0,g.Z)(function(){ii()},[hn,He]),(0,g.Z)(function(){dr&&!(re!=null&&re[He])&&ii()},[JSON.stringify(me)]);var di=w.useMemo(function(){var fr=$(re,L,Vn,Oe);return X()(fr,Y==null?void 0:Y(Vn))},[Vn,Y,re,L,Oe]);w.useImperativeHandle(ce,function(){return{nativeElement:gt.current,forceAlign:ii}});var wi=w.useState(0),yi=(0,J.Z)(wi,2),pn=yi[0],fi=yi[1],xi=w.useState(0),Jt=(0,J.Z)(xi,2),Xn=Jt[0],mi=Jt[1],li=function(){if(Ue&&tt){var mr=tt.getBoundingClientRect();fi(mr.width),mi(mr.height)}},On=function(){li(),ii()},xn=function(mr){Tr(!1),vn(),Ge==null||Ge(mr)},Jr=function(){return new Promise(function(mr){li(),dn(function(){return mr})})};(0,g.Z)(function(){$r&&(vn(),$r(),dn(null))},[$r]);function En(fr,mr,nn,zn){xt[fr]=function(ln){var pi;zn==null||zn(ln),kr(mr,nn);for(var Ki=arguments.length,zi=new Array(Ki>1?Ki-1:0),Ti=1;Ti<Ki;Ti++)zi[Ti-1]=arguments[Ti];(pi=Ct[fr])===null||pi===void 0||pi.call.apply(pi,[Ct,ln].concat(zi))}}(si||jn)&&(xt.onClick=function(fr){var mr;Nr.current&&jn?kr(!1):!Nr.current&&si&&(yn(fr),kr(!0));for(var nn=arguments.length,zn=new Array(nn>1?nn-1:0),ln=1;ln<nn;ln++)zn[ln-1]=arguments[ln];(mr=Ct.onClick)===null||mr===void 0||mr.call.apply(mr,[Ct,fr].concat(zn))}),Bt(dr,jn,tt,yr,Pt,$t,zt,kr);var Fn=Yn.has("hover"),Qn=Gn.has("hover"),In,Kn;Fn&&(En("onMouseEnter",!0,mt,function(fr){yn(fr)}),En("onPointerEnter",!0,mt,function(fr){yn(fr)}),In=function(mr){(dr||Qr)&&yr!==null&&yr!==void 0&&yr.contains(mr.target)&&kr(!0,mt)},Oe&&(xt.onMouseMove=function(fr){var mr;(mr=Ct.onMouseMove)===null||mr===void 0||mr.call(Ct,fr)})),Qn&&(En("onMouseLeave",!1,_t),En("onPointerLeave",!1,_t),Kn=function(){kr(!1,_t)}),Yn.has("focus")&&En("onFocus",!0,Lt),Gn.has("focus")&&En("onBlur",!1,Ht),Yn.has("contextMenu")&&(xt.onContextMenu=function(fr){var mr;Nr.current&&Gn.has("contextMenu")?kr(!1):(yn(fr),kr(!0)),fr.preventDefault();for(var nn=arguments.length,zn=new Array(nn>1?nn-1:0),ln=1;ln<nn;ln++)zn[ln-1]=arguments[ln];(mr=Ct.onContextMenu)===null||mr===void 0||mr.call.apply(mr,[Ct,fr].concat(zn))}),it&&(xt.className=X()(Ct.className,it));var Ri=(0,A.Z)((0,A.Z)({},Ct),xt),gn={},Hr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Hr.forEach(function(fr){st[fr]&&(gn[fr]=function(){for(var mr,nn=arguments.length,zn=new Array(nn),ln=0;ln<nn;ln++)zn[ln]=arguments[ln];(mr=Ri[fr])===null||mr===void 0||mr.call.apply(mr,[Ri].concat(zn)),st[fr].apply(st,zn)})});var Pn=w.cloneElement(at,(0,A.Z)((0,A.Z)({},Ri),gn)),Mn={x:tn,y:an},ai=bt?(0,A.Z)({},bt!==!0?bt:{}):null;return w.createElement(w.Fragment,null,w.createElement(fe.Z,{disabled:!dr,ref:Tt,onResize:On},w.createElement(q,{getTriggerDOMNode:Ke},Pn)),w.createElement(Te.Provider,{value:Gt},w.createElement(W,{portal:le,ref:en,prefixCls:L,popup:Re,className:X()(pr,di),style:Be,target:tt,onMouseEnter:In,onMouseLeave:Kn,onPointerEnter:In,zIndex:Me,open:dr,keepDom:Qr,fresh:Ft,onClick:Wt,mask:Pt,motion:rr,maskMotion:qt,onVisibleChanged:xn,onPrepare:Jr,forceRender:C,autoDestroy:ft,getPopupContainer:S,align:Vn,arrow:ai,arrowPos:Mn,ready:Cn,offsetX:ni,offsetY:Un,offsetR:ei,offsetB:cr,onAlign:ii,stretch:Ue,targetWidth:pn/mn,targetHeight:Xn/Zn})))});return ve}var It=Rt(Le.Z)},50304:function(){"use strict"},76895:function(Ut,qe){"use strict";qe.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(Ut,qe,y){"use strict";var A=y(59301),J=y(93314),ye=y(3113),Le=Object.defineProperty,oe=Object.defineProperties,X=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,V=(w,b,z)=>b in w?Le(w,b,{enumerable:!0,configurable:!0,writable:!0,value:z}):w[b]=z,F=(w,b)=>{for(var z in b||(b={}))he.call(b,z)&&V(w,z,b[z]);if(fe)for(var z of fe(b))o.call(b,z)&&V(w,z,b[z]);return w},g=(w,b)=>oe(w,X(b));const c=({img:w,buttonProps:b={},styles:z={},customText:te,ButtonText:k,ButtonClick:P,Buttonclass:H,ButtonTwo:ae,imgStyles:E,loading:W=!1})=>A.createElement("section",{className:"tc animated fadeIn",style:F(F({},{color:"#999",margin:"100px auto",visibility:W?"hidden":"visible"}),z)},A.createElement("img",{src:w||J,style:g(F({},E),{pointerEvents:"none",userSelect:"none"})}),A.createElement("p",{className:"mt20 font14"},te||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),k&&A.createElement(ye.ZP,F({className:H,onClick:P},b),k),ae&&ae);qe.Z=c},23210:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return H}});var A=y(59301),J={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ye=y(3113),Le=y(70557),oe=y(23954),X=y(6848),fe=y(955),he=y(94941),o=y(8797),V=y(3294),F=y(19381),g=y(59301),c=Object.defineProperty,w=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ae,E,W)=>E in ae?c(ae,E,{enumerable:!0,configurable:!0,writable:!0,value:W}):ae[E]=W,k=(ae,E)=>{for(var W in E||(E={}))b.call(E,W)&&te(ae,W,E[W]);if(w)for(var W of w(E))z.call(E,W)&&te(ae,W,E[W]);return ae},P=(ae,E,W)=>new Promise((ne,q)=>{var ge=Fe=>{try{Se(W.next(Fe))}catch(G){q(G)}},Te=Fe=>{try{Se(W.throw(Fe))}catch(G){q(G)}},Se=Fe=>Fe.done?ne(Fe.value):Promise.resolve(Fe.value).then(ge,Te);Se((W=W.apply(ae,E)).next())}),H=({editOffice:ae="view",data:E,theme:W,type:ne,filename:q,monacoEditor:ge,className:Te,style:Se,close:Fe,onClose:G,hasMask:I,disabledDownload:$,onImgDimensions:R,showNodata:Z,recordInfo:B})=>{const[m,_]=(0,A.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[O,M]=(0,A.useState)(""),[we,Ee]=(0,A.useState)(),De=window.ENV==="build"?"/react/build":"",$e=location.host.startsWith("localhost")?V.Z.PROXY_SERVER:V.Z.API_SERVER,Qe=10*(1024*1024),et=(0,A.useRef)();E!=null&&E.startsWith("/api")&&ne!=="txt"&&(E=V.Z.API_SERVER+E);const St=Rt=>Rt.substring(Rt.lastIndexOf("/")+1).split(".").pop();q&&ge&&(ge.filename=q),(0,A.useEffect)(()=>{var Rt,It;const le=(It=(Rt=document.cookie)==null?void 0:Rt.replace(/\s/g,""))==null?void 0:It.split(";");le==null||le.map(ve=>{let N=ve.split("=");N[0]==="_educoder_session"&&M(N[1])})},[]),(0,A.useEffect)(()=>{ne==="office"&&(E.indexOf("bigfilescdn.")>-1||E.indexOf("bigfiles1")>-1?Ee({url:E,fileType:St(E),model:E.indexOf("model=edit")?"edit":"view"}):Et())},[ne,E]);const Et=()=>P(void 0,null,function*(){console.log("data:",E);let Rt=E;E.startsWith("http")||(Rt=location.origin+Rt);let It=new URL(Rt).pathname.split("/").pop();const le=yield(0,he.gJ)({attachment_id:It});le.url=$e+le.url,Ee(le)}),Bt=()=>{if(E.startsWith("http")||E.startsWith("blob:")){ht();return}(0,fe.Sv)(q||"educoder",E,q)},ht=()=>{B&&(0,F.fc)({id:B==null?void 0:B.id,watch_type:1,course_id:B==null?void 0:B.course_id}),(0,fe.Nd)(q||"educoder",decodeURIComponent(E))};return g.createElement("div",{style:k({},Se||{}),className:`${I&&J.bgBlack} ${ne?J.wrp:"hide"}`},Fe&&g.createElement("div",{className:J.close,ref:et},!!R&&g.createElement(X.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>et.current},g.createElement("span",{onClick:()=>{G(),R()}},g.createElement("i",{className:"icon-yulanpizhu"}))),!$&&g.createElement(X.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>et.current},g.createElement("span",{onClick:ht},g.createElement("i",{className:"icon-quxiaozhiding"}))),g.createElement(X.Z,{title:"\u5173\u95ED",getPopupContainer:()=>et.current},g.createElement("span",{className:"",onClick:G},g.createElement("i",{className:"icon-guanbi1"})))),g.createElement("div",{className:`${J[Te]} ${Te} ${J.monaco} ${ne==="txt"?"show":"hide"}`},ne==="txt"&&g.createElement(g.Fragment,null,g.createElement(oe.ZP,k({},ge)))),ne==="audio"&&g.createElement("audio",{src:`${(E==null?void 0:E.indexOf("http://"))>-1||(E==null?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${E}`,autoPlay:!0}),ne==="video"&&g.createElement(g.Fragment,null,(E==null?void 0:E.indexOf("http"))>-1?g.createElement("video",{controls:!0,src:`${E}`,autoPlay:!0}):g.createElement("video",{controls:!0,src:`data:video/mp4;base64,${E}`,autoPlay:!0})),ne==="office"&&we&&g.createElement("iframe",{src:`${De}/office.html?key=${we.key}&url=${btoa(we.url)}&callbackUrl=${$e+(we.callbackUrl||"")}&fileType=${we.fileType}&title=${we.title||""}&model=${ae}&officeServer=${V.Z.ONLYOFFICE}&disabledDownload=${!!$}`}),ne==="html"&&g.createElement("iframe",{src:E+"&disposition=inline"}),ne==="pdf"&&g.createElement("iframe",{src:`${De}/js/pdfview/index.html?filename=${q||"educoder.pdf"}&url=${encodeURIComponent(E)}&disabledDownload=${!!$}`}),ne==="image"&&g.createElement("img",{src:`${(E==null?void 0:E.indexOf("http://"))>-1||(E==null?void 0:E.indexOf("https://"))>-1?"":"data:image/png;base64,"}${E}`}),(ne==="other"||ne==="download")&&g.createElement(g.Fragment,null,Z?g.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:g.createElement(ye.ZP,{icon:g.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Bt,disabled:$},"\u4E0B\u8F7D")}):g.createElement(ye.ZP,{type:"primary",size:"middle",onClick:Bt,disabled:$},g.createElement(Le.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Ut,qe,y){"use strict";y.d(qe,{z:function(){return ne},Z:function(){return q}});var A=y(59301),J=y(50304),ye=y(24768),Le=y(64018),oe=y(40846),X=y(3294),fe=y(955),he=y(15342),o=y(1012),V=y(23210),F=y(59301),c=({html:ge})=>{const Te=(0,A.useRef)(null),Se=(0,A.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,A.useEffect)(()=>{const G=Te.current.attachShadow({mode:"open"});Se.current=document.createElement("div"),Se.current.className="markdown-body",Se.current.innerHTML=ge,G.appendChild(Se.current);const I=document.createElement("style");return I.textContent=Fe,G.appendChild(I),()=>{G.innerHTML=""}},[]),(0,A.useEffect)(()=>{Se.current&&(Se.current.innerHTML=ge)},[ge]),F.createElement("div",{ref:Te})},w=Object.defineProperty,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,k=(ge,Te,Se)=>Te in ge?w(ge,Te,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ge[Te]=Se,P=(ge,Te)=>{for(var Se in Te||(Te={}))z.call(Te,Se)&&k(ge,Se,Te[Se]);if(b)for(var Se of b(Te))te.call(Te,Se)&&k(ge,Se,Te[Se]);return ge};const H="@\u2581\u2581@",ae="@\u2581@",E=/<pre[^>]*>/g;function W(ge){let Te=document.createElement("div");return Te.innerHTML=ge,Te.childNodes.length===0?"":Te.childNodes[0].nodeValue}const ne=(ge,Te)=>{ge=ge||"";const Se=/(?: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,G=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,I=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Te?ge.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Se,($,R,Z,B,m,_,O)=>{const M=R||B||_,we=Z||m||O||"?";return X.Z.API_SERVER+"/api/attachments/"+M+we+"&t="+(0,fe.Jn)(M,Date.now())+($.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ge=ge.replace(I,($,R,Z,B,m,_,O)=>{const M=R||B||_,we=Z||m||O||"?";return X.Z.API_SERVER+"/attachments/download/"+M+we+"&t="+(0,fe.Jn)(M,Date.now())+($.indexOf(")")>-1?")":"&")}).replace(Se,($,R,Z,B,m,_,O)=>{const M=R||B||_,we=Z||m||O||"?";return X.Z.API_SERVER+"/api/attachments/"+M+we+"&t="+(0,fe.Jn)(M,Date.now())+($.indexOf(")")>-1?")":"&")}).replace(Fe,($,R,Z,B,m)=>{const _=R||B,O=Z||m||"";return'"'+X.Z.API_SERVER+"/api/attachments/"+_+O+_+O+"&t="+(0,fe.Jn)(_,Date.now())}).replace(G,($,R,Z,B,m)=>{const _=R||B,O=Z||m||"";return"("+X.Z.API_SERVER+"/files/uploads/"+_+O+_+O+"&t="+(0,fe.Jn)(_,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 q=({value:ge="",className:Te,showTextOnly:Se,showLines:Fe,style:G={},stylesPrev:I={},highlightKeywords:$,showProgramFill:R,isProgramFill:Z,disabledFill:B=!1,programFillValue:m,onFillChange:_=we=>{},onFillBlur:O=()=>{},onFillFocus:M=()=>{}})=>{let we=String(ge);const[Ee,De]=(0,A.useState)(""),[$e,Je]=(0,A.useState)("office"),[Qe,et]=(0,A.useState)([]),St=(0,A.useRef)("a"+(0,o.Z)()),Et={},Bt=(_e,ke,Pe)=>{const We=document.createElement(_e===ae?"input":"textarea");We.style.width="100%",We.style.height=_e===ae?"40px":"151px",We.rows=5,We.spellcheck=!1,We.name="edu-program-fill",We.placeholder="\u8BF7\u8F93\u5165",We.dataset.id=ke;const rt=Object.keys(Et).length;return Et[rt]=We,`<span class="edu-program-fill-wrap ${_e===ae?"":"show"}" style="width:${_e===ae?"400px":"100%"}" title=${Pe||""}><span>${We.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ht(_e){return _e=_e.replace(/!\[.*?\]\(.*?\)/g,""),_e=_e.replace(/\[.*?\]\(.*?\)/g,""),_e=_e.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),_e=_e.replace(/<embed.*?>/g,""),_e=_e.replace(/<img.*?>/g,""),_e=_e.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),_e=_e.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),_e=_e.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),_e=_e.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),_e}const Rt=_e=>_e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ke,Pe){let We=Pe.replace(/(\n|\r)/g,"").split("}"),rt=[];return We.map(Ze=>{Ze!=""&&rt.push(`.${St.current} ${Ze}`)}),`<style>${rt.join("}")}</style>`}),It=(0,A.useMemo)(()=>{try{const We=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,rt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ze=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ge=/\(\/attachments\/download\//g;we=we.replace(Ge,"("+X.Z.API_SERVER+"/attachments/download/").replace(We,"("+X.Z.API_SERVER+"/api/attachments/").replace(rt,'"'+X.Z.API_SERVER+"/api/attachments/").replace(Ze,'"'+X.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(We){}if(R){let We=-1;return we=we.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(rt,Ze,Ge){var mt;return++We,Bt(rt,We,(mt=m==null?void 0:m[We])==null?void 0:mt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Rt(we||"")}</pre>`}let _e=Rt(we);_e=(0,ye.ZP)(_e);const ke=(0,ye.ez)();we.match(/\[TOC\]/)&&(_e=_e.replace("<p>[TOC]</p>",(0,ye.Qv)()),(0,ye.Iy)()),_e=_e.replace(/(__special_katext_id_\d+__)/g,(We,rt)=>{const{type:Ze,expression:Ge}=ke[rt];return(0,he.renderToString)(W(Ge)||"",{displayMode:Ze==="block",throwOnError:!1,output:"html"})}),_e=_e.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ye.AL)();const Pe=document.createElement("div");if(Pe.innerHTML=_e,Se)return Pe.innerText;if($){const We=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ce(Pe,We),Pe.innerHTML}return setTimeout(()=>ee(),500),Pe.innerHTML},[we,$]);(0,A.useEffect)(()=>{Ae.current&&Ae.current.querySelectorAll(["input","textarea"]).forEach(ke=>{ke.oninput=le,ke.onblur=ve,ke.onfocus=N})},[Qe]),(0,A.useEffect)(()=>{var _e,ke,Pe,We,rt;if(m!=null&&m.length)try{const Ze=Ae.current.querySelectorAll(".edu-program-fill-score"),Ge=Ae.current.querySelectorAll('[name="edu-program-fill"]');for(const[mt,At]of Ge.entries())At.value=((_e=m==null?void 0:m[mt])==null?void 0:_e.value)||"",((ke=m==null?void 0:m[mt])==null?void 0:ke.type)==="warning"?At.className="program-fill-warning":((Pe=m==null?void 0:m[mt])==null?void 0:Pe.type)==="success"?At.className="program-fill-success":At.className="";for(const[mt,At]of Ze.entries())At.innerHTML=(We=m==null?void 0:m[mt])!=null&&We.score?`${(rt=m==null?void 0:m[mt])==null?void 0:rt.score}\u5206`:"";et(m)}catch(Ze){console.log(Ze,"error")}},[m]);const le=_e=>{Qe[_e.target.dataset.id]=Qe[_e.target.dataset.id]||{},Qe[_e.target.dataset.id].value=_e.target.value,et([...Qe]),_(Qe,_e.target.dataset.id)},ve=_e=>{Qe[_e.target.dataset.id]=Qe[_e.target.dataset.id]||{},Qe[_e.target.dataset.id].value=_e.target.value,et([...Qe]),O(Qe,_e.target.dataset.id)},N=_e=>{Qe[_e.target.dataset.id]=Qe[_e.target.dataset.id]||{},Qe[_e.target.dataset.id].value=_e.target.value,et([...Qe]),M(Qe,_e.target.dataset.id)};function ce(_e,ke){return _e.childNodes.forEach(Pe=>{var We;if(Pe.childNodes.length>0)ce(Pe,ke);else if(Pe.nodeName!=="IMG")if(Pe.innerHTML)Pe.innerHTML=(We=Pe.innerHTML)==null?void 0:We.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const rt=document.createElement("span");rt.innerHTML=Pe.textContent.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Pe.replaceWith(rt)}})}const Ae=(0,A.useRef)();ye.jb.WebkitLineClamp=Fe,Fe&&(G=P(P({},G),ye.jb));function L(_e){let ke=_e.target;if(ke.tagName.toUpperCase()==="A"){let Pe=ke.getAttribute("href");if(Pe.indexOf("office")>-1)_e.preventDefault(),De(Pe),Je("office");else if(Pe.indexOf("application/pdf")>-1)_e.preventDefault(),De(Pe),Je("pdf");else if(Pe.indexOf("text/html")>-1)_e.preventDefault(),De(Pe),Je("html");else if(Pe.startsWith("#")){_e.preventDefault();let We=document.getElementById(Pe.replace("#",""));We&&We.scrollIntoView(!0)}}}const ee=()=>{var _e;const ke=(_e=Ae.current)==null?void 0:_e.querySelectorAll("video");ke==null||ke.forEach(Pe=>{if(Pe.oncontextmenu=()=>!1,Pe.src.indexOf(".m3u8")>-1&&!Pe.canPlayType("application/vnd.apple.mpegurl")){if(oe.ZP.isSupported()){var We=new oe.ZP;We.loadSource(Pe.src),We.attachMedia(Pe)}}})};(0,A.useEffect)(()=>{if(Ae.current&&It&&It.match(E)&&window.PR.prettyPrint(),Ae.current)return Ae.current.addEventListener("click",L),()=>{var _e;(_e=Ae.current)==null||_e.removeEventListener("click",L),(0,ye.AL)(),(0,ye.Iy)()}},[It,Ae.current,L]),(0,A.useEffect)(()=>{var _e;const ke=Pe=>{Pe.preventDefault(),Pe.clipboardData.setData("text",window.getSelection().toString())};return(_e=Ae.current)==null||_e.addEventListener("copy",ke),()=>{var Pe;(Pe=Ae.current)==null||Pe.removeEventListener("copy",ke)}},[Ae.current]);const ue=_e=>/<style[\s\S]*?>/i.test(_e||"");return A.createElement(A.Fragment,null,Se&&A.createElement("div",{ref:Ae},It),!Se&&!ue(It)&&A.createElement("div",{ref:Ae,style:P({},G),className:`${Te||""} ${B?"disabled-fill":""} markdown-body ${St.current}`,dangerouslySetInnerHTML:{__html:It}}),!Se&&ue(It)&&A.createElement(c,{html:It}),A.createElement(V.Z,{close:!0,data:Ee,type:Ee!=null&&Ee.length?$e:"",style:P({},I),onClose:()=>De("")}))}},23954:function(Ut,qe,y){"use strict";y.d(qe,{SV:function(){return Ae},ZP:function(){return ce}});var A=y(59301),J=y(76374);const ye={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"]},Le={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"]},oe={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(`
`)}]},X={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(`
`)}]},fe={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 he=y(53184),o=y.n(he),V=Object.defineProperty,F=Object.defineProperties,g=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,z=(L,ee,ue)=>ee in L?V(L,ee,{enumerable:!0,configurable:!0,writable:!0,value:ue}):L[ee]=ue,te=(L,ee)=>{for(var ue in ee||(ee={}))w.call(ee,ue)&&z(L,ue,ee[ue]);if(c)for(var ue of c(ee))b.call(ee,ue)&&z(L,ue,ee[ue]);return L},k=(L,ee)=>F(L,g(ee)),P=(L,ee,ue)=>new Promise((_e,ke)=>{var Pe=Ze=>{try{rt(ue.next(Ze))}catch(Ge){ke(Ge)}},We=Ze=>{try{rt(ue.throw(Ze))}catch(Ge){ke(Ge)}},rt=Ze=>Ze.done?_e(Ze.value):Promise.resolve(Ze.value).then(Pe,We);rt((ue=ue.apply(L,ee)).next())});const H={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"]}},ae=(L,ee)=>ee.map(ue=>({label:ue,kind:L.languages.CompletionItemKind.Keyword,insertText:ue})),E=L=>Object.keys(H.tables).map(ee=>({label:ee,kind:L.languages.CompletionItemKind.Variable,insertText:ee})),W=(L,ee)=>{const ue=H.tables[L];return ue?ue.map(_e=>({label:_e,kind:ee.languages.CompletionItemKind.Field,insertText:_e})):[]};function ne(L,ee,ue,_e,ke){let Pe=ee.getWordUntilPosition(ue),We={startLineNumber:ue.lineNumber,endLineNumber:ue.lineNumber,startColumn:Pe.startColumn,endColumn:Pe.endColumn},rt=_e.map(Ze=>({label:Ze,kind:L.languages.CompletionItemKind.Keyword,insertText:Ze,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}));return ke.map(Ze=>{rt.push(k(te({},Ze),{range:We}))}),rt}var q=L=>{H.languages.map(ke=>(L.languages.registerDocumentFormattingEditProvider(ke,{provideDocumentFormattingEdits(Pe,We,rt){return P(this,null,function*(){const Ze=o()(Pe.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:Pe.getFullModelRange(),text:Ze}]})}}),ke));const ee=oe.quickKey.map(ke=>({label:ke.label,kind:L.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ue=X.quickKey.map(ke=>({label:ke.label,kind:L.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet})),_e=Le.quickKey.map(ke=>({label:ke.label,kind:L.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}));L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Pe){var We=ke.getWordUntilPosition(Pe),rt={startLineNumber:Pe.lineNumber,endLineNumber:Pe.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},Ze=ke.getLineContent(Pe.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[...oe.keywords.map(Ge=>({label:Ge,kind:L.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt})),...oe.quickKey.map(Ge=>({label:Ge.label,kind:L.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:Ze.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt}))]}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Pe){var We=ke.getWordUntilPosition(Pe),rt={startLineNumber:Pe.lineNumber,endLineNumber:Pe.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn};return{suggestions:[...ye.keywords.map(Ze=>({label:Ze,kind:L.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt}))]}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Pe){var We=ke.getWordUntilPosition(Pe),rt={startLineNumber:Pe.lineNumber,endLineNumber:Pe.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},Ze=ke.getLineContent(Pe.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[...Le.keywords.map(Ge=>({label:Ge,kind:L.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt})),...Le.quickKey.map(Ge=>({label:Ge.label,kind:L.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:Ze.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt}))]}}}),L.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ke,Pe){var We=ke.getWordUntilPosition(Pe),rt={startLineNumber:Pe.lineNumber,endLineNumber:Pe.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},Ze=ke.getLineContent(Pe.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[...fe.keywords.map(Ge=>({label:Ge,kind:L.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt})),...fe.quickKey.map(Ge=>({label:Ge.label,kind:L.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:Ze.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt}))]}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Pe){var We=ke.getWordUntilPosition(Pe),rt={startLineNumber:Pe.lineNumber,endLineNumber:Pe.lineNumber,startColumn:We.startColumn,endColumn:We.endColumn},Ze=ke.getLineContent(Pe.lineNumber).substring(We.startColumn-2,We.endColumn);return{suggestions:[...X.keywords.map(Ge=>({label:Ge,kind:L.languages.CompletionItemKind.Function,documentation:Ge,insertText:Ge,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt})),...X.quickKey.map(Ge=>({label:Ge.label,kind:L.languages.CompletionItemKind.Function,documentation:Ge.content,insertText:Ze.startsWith("#")?Ge.content.replace(/#/,""):Ge.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt}))]}}})};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 Te=Object.defineProperty,Se=(L,ee,ue)=>ee in L?Te(L,ee,{enumerable:!0,configurable:!0,writable:!0,value:ue}):L[ee]=ue,Fe=(L,ee,ue)=>Se(L,typeof ee!="symbol"?ee+"":ee,ue);const G=class Xo{constructor(ee,ue,_e){this.placeholder=ee,this.editor=ue,this.monaco=_e,ue.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Xo.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(G,"ID","editor.widget.placeholderHint");var $=G,R=y(96236),Z=y(8591),B=y(6848),m=y(89392),_=y(34604),O=y(56102),M=Object.defineProperty,we=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Qe=(L,ee,ue)=>ee in L?M(L,ee,{enumerable:!0,configurable:!0,writable:!0,value:ue}):L[ee]=ue,et=(L,ee)=>{for(var ue in ee||(ee={}))$e.call(ee,ue)&&Qe(L,ue,ee[ue]);if(De)for(var ue of De(ee))Je.call(ee,ue)&&Qe(L,ue,ee[ue]);return L},St=(L,ee)=>we(L,Ee(ee)),Et=(L,ee)=>{var ue={};for(var _e in L)$e.call(L,_e)&&ee.indexOf(_e)<0&&(ue[_e]=L[_e]);if(L!=null&&De)for(var _e of De(L))ee.indexOf(_e)<0&&Je.call(L,_e)&&(ue[_e]=L[_e]);return ue},Bt=(L,ee,ue)=>new Promise((_e,ke)=>{var Pe=Ze=>{try{rt(ue.next(Ze))}catch(Ge){ke(Ge)}},We=Ze=>{try{rt(ue.throw(Ze))}catch(Ge){ke(Ge)}},rt=Ze=>Ze.done?_e(Ze.value):Promise.resolve(Ze.value).then(Pe,We);rt((ue=ue.apply(L,ee)).next())});function ht(L){return/^\d+$/.test(L)?`${L}px`:L}function Rt(){}let It=!1;const le={"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 ve(L=[]){let ee=L;if(Array.isArray(L)){for(let ue=0;ue<L.length;ue++){let _e=le[L[ue]];if(_e)return _e}return ee[0]}return le[ee]||ee}let N=null;var ce=L=>{var ee=L,{width:ue="100%",height:_e="100%",value:ke,language:Pe="javascript",style:We={},options:rt={},overrideServices:Ze={},theme:Ge="vs-dark",onEditBlur:mt,isCopy:At=!1,onSave:_t,autoHeight:Lt=!1,forbidCopy:Ht=!1,onChange:Pt=Rt,editorDidMount:Yt=Rt,onFocus:$t=Rt,onBreakPoint:S=Rt,breakPointValue:C=[],filename:ot="educoder.txt",errorLine:Q,errorContent:Re="",highlightLine:pr,openBreakPoint:Be=!1,placeholder:He=""}=ee,Ve=Et(ee,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const re=(0,A.useRef)(),me=(0,A.useRef)({}),Me=(0,A.useRef)(),Ue=(0,A.useRef)(),Y=(0,A.useRef)([]),Ft=(0,A.useRef)(!1),Oe=(0,A.useRef)(),Wt=(0,A.useRef)(),ir=(0,A.useRef)(!1),[bt,kt]=(0,A.useState)(!1);function lt(){let Gt;return re.current&&(Gt=new J.Z(Ot=>{for(let ur of Ot)(ur.target.offsetHeight>0||ur.target.offsetWidth>0)&&me.current.instance.layout()}),Gt.observe(re.current)),Gt}function pt(){Z.ZP.warning({content:decodeURIComponent(ge),key:"monaco-editor-tip"})}const tr=()=>{let Gt=me.current.instance;if(ke!=null&&Gt&&bt){const Ot=Gt.getModel();Ot&&ke!==Ot.getValue()&&(It=!0,Ot.setValue(ke),Gt.layout(),It=!1)}};(0,A.useEffect)(()=>{const Gt=_.Z.subscribe("formatDocument",Ot=>{var ur;let Dr=me.current.instance;(ur=Dr==null?void 0:Dr.getAction)==null||ur.call(Dr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ot=>{Pt(Ot)},Gt},[]),(0,A.useEffect)(()=>{var Gt;let Ot=me.current.instance;Ue.current&&clearTimeout(Ue.current),Ue.current=setTimeout(()=>{tr()},500),ke&&(ke!=null&&ke.length)&&((Gt=Ot==null?void 0:Ot.updateOptions)==null||Gt.call(Ot,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[ke,bt,me.current]),(0,A.useEffect)(()=>{if(Q&&me.current&&me.current.instance){let Ot=me.current.instance;Ot.changeViewZones(function(ur){var Dr=document.createElement("div");Dr.style.padding="10px 20px",Dr.style.width="calc(100% - 20px)",Dr.className="my-error-line-wrp",Dr.innerHTML=Re,ur.addZone({afterLineNumber:Q||11,heightInLines:3,domNode:Dr})});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}};Ot.addOverlayWidget(Gt),Ot.revealPositionInCenter({lineNumber:20,column:1})}},[Q,me.current,bt]);const pe=(Gt="",Ot)=>{if(!Gt||Gt.trim()==="")return!0;const Dr=me.current.instance.getModel().getLineTokens(Ot);let yr=!1;for(let Lr=0;Lr<2;Lr++)Dr.getStandardTokenType(Lr)===1&&(yr=!0);return yr};(0,A.useEffect)(()=>{var Gt;const Ot=(Gt=me.current)==null?void 0:Gt.instance;if(Ot&&bt&&Ht){const ur=Ot.onDidBlurEditorWidget(()=>{ir.current=!1}),Dr=Ot.onDidFocusEditorText(()=>{ir.current=!0});return()=>{ur.dispose(),Dr.dispose()}}},[me.current,bt,Ht]),(0,A.useEffect)(()=>{var Gt;if((Gt=me.current)!=null&&Gt.instance&&bt&&Be){let Ot=me.current.instance,ur=Ot.getModel();if(!ur)return;(()=>{var Ct;let xt=[],zt=[];const rr=ur.getAllDecorations();for(let br of rr)br.options.className==="highlighted-line"&&(xt.push((Ct=br==null?void 0:br.range)==null?void 0:Ct.startLineNumber),zt.push(br==null?void 0:br.id));if(pr===xt[0])return;ur.deltaDecorations(zt,[]);const qt=ur.getLineCount();pr&&pr<=qt&&(Ot.deltaDecorations([],[{range:new N.Range(pr,1,pr,ur.getLineMaxColumn(pr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ot.revealLineInCenter(pr))})();const yr=(Ct=!1)=>{var xt;let zt=[],rr=[];const qt=ur.getAllDecorations();for(let br of qt)br.options.linesDecorationsClassName==="breakpoints-select"&&(zt.push((xt=br==null?void 0:br.range)==null?void 0:xt.startLineNumber),rr.push(br==null?void 0:br.id));if(Ct)return{lines:zt,ids:rr};S(zt)},Lr=Ct=>Bt(void 0,null,function*(){let xt={range:new N.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ur.deltaDecorations([],[xt]),yr()}),en=Ct=>Bt(void 0,null,function*(){let xt=[];const zt=Ot.getLineDecorations(Ct);for(let rr of zt)rr.options.linesDecorationsClassName==="breakpoints-select"&&xt.push(rr.id);yield ur.deltaDecorations(xt,[]),yr()}),Ar=Ct=>{let xt=Ot.getLineDecorations(Ct);for(let zt of xt)if(zt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,m.isEqual)(C,yr(!0).lines)){ur.deltaDecorations(yr(!0).ids,[]);const Ct=C.map(xt=>({range:new N.Range(xt,1,xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ur.deltaDecorations([],Ct)}const nr=Ot.onDidChangeModelContent(Ct=>{let xt=Ot.getPosition();if(xt){let zt=xt.lineNumber;clearTimeout(Wt.current),Wt.current=setTimeout(()=>{pe(ur.getLineContent(zt),zt)?en(zt):Ar(zt)?(en(zt),Lr(zt)):yr()},100)}}),tt=Ot.onMouseDown(Ct=>{var xt,zt,rr;if(Ct.target.detail&&((rr=(zt=(xt=Ct.target)==null?void 0:xt.element)==null?void 0:zt.className)!=null&&rr.includes("line-numbers"))){let qt=Ct.target.position.lineNumber;if(pe(ur.getLineContent(qt),qt))return;Ar(qt)?en(qt):Lr(qt)}}),Ye=Ct=>{let xt={range:new N.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Y.current=Ot.deltaDecorations(Y.current,[xt])},gt=()=>{Y.current=Ot.deltaDecorations(Y.current,[])},Tt=Ot.onMouseMove(Ct=>{var xt,zt,rr;if(gt(),Ct.target.detail&&((rr=(zt=(xt=Ct.target)==null?void 0:xt.element)==null?void 0:zt.className)!=null&&rr.includes("line-numbers"))){let qt=Ct.target.position.lineNumber;if(pe(ur.getLineContent(qt),qt))return;Ye(qt)}}),at=Ot.onMouseLeave(()=>{gt()});return()=>{nr.dispose(),tt.dispose(),Tt.dispose(),at.dispose()}}},[me.current,bt,C,pr,Be,Pe]),(0,A.useEffect)(()=>{var Gt;(Gt=me.current)!=null&&Gt.instance&&Be&&me.current.instance.setPosition({lineNumber:0,column:0})},[pr]);function Ce(){let Gt=me.current.instance;if(Gt){const Ot=Gt.getSelection(),ur=me.current.pastePos||{},Dr=new N.Range(ur.startLineNumber||Ot.endLineNumber,ur.startColumn||Ot.endColumn,ur.endLineNumber||Ot.endLineNumber,ur.endColumn||Ot.endColumn);setTimeout(()=>{Gt.executeEdits("",[{range:Dr,text:""}])},300)}}function it(Gt){(window.navigator.platform.match("Mac")?Gt.metaKey:Gt.ctrlKey)&&Gt.keyCode==83&&(Gt.preventDefault(),_t())}const Ke=()=>{if(Lt&&me.current.instance){const Gt=me.current.instance.getContentHeight();gr(Gt<_e?_e:Gt)}else gr(_e)};function st(Gt){var Ot=document.createEvent("MouseEvents");Ot.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Ot)}const ft=Gt=>{if(!ir.current)return;const{keyCode:Ot,ctrlKey:ur,metaKey:Dr,target:yr,type:Lr}=Gt;return(Lr==="paste"||(Ot===67||Ot===86)&&(Dr||ur))&&yr.nodeName==="TEXTAREA"&&(pt(),Gt.preventDefault()),!1};function wt(Gt,Ot){var ur=window.URL||window.webkitURL||window,Dr=new Blob([Ot]),yr=document.createElementNS("http://www.w3.org/1999/xhtml","a");yr.href=ur.createObjectURL(Dr),yr.download=Gt,st(yr)}(0,A.useEffect)(()=>{Ke()},[Ke]),(0,A.useEffect)(()=>{re.current&&!bt&&Promise.all([y.e(8909),y.e(3267)]).then(y.bind(y,71448)).then(Gt=>{try{N=Gt,me.current.instance=N.editor.create(re.current,{value:ke,language:ve(Pe),theme:Ge,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ze);const Ot=me.current.instance;let yr=[...R.BH._menuItems].find(nr=>nr[0]._debugName=="EditorContext")[1],Lr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],en=(nr,tt)=>{var Ye,gt;let Tt=nr._first;do tt.includes((gt=(Ye=Tt.element)==null?void 0:Ye.command)==null?void 0:gt.id)&&nr._remove(Tt);while(Tt=Tt.next)};if(Yt(Ot,N),setTimeout(()=>{Ke(),me.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{wt(ot||"educoder.txt",Ot.getValue())}})},500),me.current.subscription=Ot.onDidChangeModelContent(nr=>{Ft.current?clearTimeout(Oe.current):(Ke(),Pt(Ot.getValue(),nr)),Oe.current=setTimeout(()=>{Ft.current=!1},500)}),window.Monaco||q(N,ve(Pe)),Ht&&(en(yr,Lr),re.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ft),window.removeEventListener("paste",ft),window.addEventListener("keydown",ft),window.addEventListener("paste",ft)),window.Monaco=N,mt&&Ot.onDidBlurEditorWidget(()=>{mt(Ot.getValue())}),$t&&Ot.onDidFocusEditorText(()=>{$t(Ot.getValue())}),Ht)try{Ot.onDidPaste(nr=>{const tt=Ot.getSelection(),Ye=me.current.pastePos||{},gt=new N.Range(Ye.startLineNumber||tt.endLineNumber,Ye.startColumn||tt.endColumn,Ye.endLineNumber||tt.endLineNumber,Ye.endColumn||tt.endColumn);Ot.executeEdits("",[{range:nr.range,text:""}])})}catch(nr){}let Ar=lt();return He&&typeof He=="string"&&new $(He,Ot,N),kt(!0),()=>{const nr=me.current.instance;nr.dispose();const tt=nr.getModel();tt&&tt.dispose(),me.current.subscription&&me.current.subscription.dispose(),Ar.unobserve(re.current)}}catch(Ot){}})},[]),(0,A.useEffect)(()=>{if(me.current.instance&&bt)return document.addEventListener("keydown",it,!1),()=>{document.removeEventListener("keydown",it)}},[_t,bt]),(0,A.useEffect)(()=>{let Gt=me.current.instance;if(Gt&&bt){let Ot=ve(Pe);N.editor.setModelLanguage(Gt.getModel(),Ot)}},[Pe,bt]),(0,A.useEffect)(()=>{me.current.instance&&bt&&N.editor.setTheme(Ge)},[Ge,bt]),(0,A.useEffect)(()=>{let Gt=me.current.instance;Me.current=rt,Gt&&bt&&(Gt.updateOptions(et({},rt)),setTimeout(()=>{Gt.getModel().updateOptions(et({},rt))},200))},[JSON.stringify(rt),bt]),(0,A.useEffect)(()=>{let Gt=me.current.instance;Gt&&bt&&Gt.layout()},[ue,_e,bt]);const[Xt,ar]=(0,A.useState)(ht(ue)),[jt,gr]=(0,A.useState)(ht(_e)),sr=St(et({},We),{width:Xt,height:jt,position:"relative"});return A.createElement("div",{className:"my-monaco-editor",ref:re,style:sr},At&&A.createElement(O.CopyToClipboard,{text:ke,onCopy:()=>Z.ZP.success("\u590D\u5236\u6210\u529F")},A.createElement(B.Z,{title:"\u590D\u5236\u4EE3\u7801"},A.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},A.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ae({width:L="100%",height:ee="100%",original:ue,modified:_e,language:ke,options:Pe={}}){const We=(0,A.useRef)(),[rt,Ze]=(0,A.useState)(null);function Ge(Lt){let Ht;return We.current&&(Ht=new J.Z(Pt=>{for(let Yt of Pt)(Yt.target.offsetHeight>0||Yt.target.offsetWidth>0)&&Lt.layout()}),Ht.observe(We.current)),Ht}(0,A.useEffect)(()=>(We.current&&Promise.all([y.e(8909),y.e(9404)]).then(y.bind(y,2550)).then(Lt=>{N=Lt;const Ht=N.editor.createDiffEditor(We.current,St(et({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},Pe),{wordWrap:!0}));Ze(Ht);let Pt=Ge(Ht);return()=>{Ht.dispose();const Yt=Ht.getModel();Yt&&Yt.dispose(),Pt.unobserve(We.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,A.useEffect)(()=>{rt&&rt.setModel({original:N.editor.createModel(ue,ke),modified:N.editor.createModel(_e,ke)})},[ue,_e,ke,rt]);const mt=ht(L),At=ht(ee),_t={width:mt,height:At};return A.createElement("div",{className:"my-diff-editor",ref:We,style:_t})}},85057:function(Ut,qe,y){"use strict";y.d(qe,{jL:function(){return oe},w9:function(){return $e},QD:function(){return Pt},cQ:function(){return O},op:function(){return Ge},O5:function(){return ir},_b:function(){return Q},t7:function(){return k},Gi:function(){return Bt},YG:function(){return St},qp:function(){return F},vr:function(){return S},qE:function(){return _t},Je:function(){return ae},wb:function(){return R},cq:function(){return N},tp:function(){return w}});var A=y(59301),J={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"},ye="data:image/png;base64,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",oe=({dataSource:bt=[],img:kt,imgWidth:lt=346,title:pt,sunTitle:tr,bannerExtraContent:pe})=>A.createElement("div",{className:J.banner},A.createElement("div",{className:J.content},A.createElement("aside",null,A.createElement("p",null,A.createElement("b",null,pt),A.createElement("span",null,tr)),bt.length>0&&A.createElement("div",{className:J.btns},bt.map((Ce,it)=>A.createElement("div",{key:it,onClick:Ce.click},Ce.name,Ce.sign?A.createElement("img",{src:ye,width:39}):null))),pe),kt&&A.createElement("img",{style:{marginTop:33,marginRight:38},src:kt,width:lt}))),X={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"},fe=y(92310),he=y.n(fe),o=y(89392),F=({dataSource:bt=[],value:kt,onChange:lt,onTitleChange:pt,className:tr,title:pe,titleWidth:Ce=41,style:it={},fontColor:Ke="#6A7283",showCount:st})=>{const[ft,wt]=(0,A.useState)(0),[Xt,ar]=(0,A.useState)(!1),jt=(0,A.useRef)(null),gr=(0,A.useRef)(null);return(0,A.useEffect)(()=>{var sr;bt.length!==0&&(((sr=jt==null?void 0:jt.current)==null?void 0:sr.clientHeight)>97?wt(1):wt(0)),bt.length===0&&wt(0),ar(!1)},[bt]),A.createElement("div",{className:he()(X.row,tr),style:it},A.createElement("div",{onClick:(0,o.throttle)(()=>pt==null?void 0:pt(),2e3),style:{width:Ce,marginTop:Xt?12:4},className:`${X.title} ${pt?"current":""}`},pe),A.createElement("div",{className:Xt?`${X.tagsWrap} ${X.tagsBorderWrap}`:X.tagsWrap},A.createElement("div",{className:X.bar,ref:gr,style:ft>0?{height:ft===1?97:"auto",overflow:ft===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},A.createElement("div",{className:X.tag,ref:jt},bt==null?void 0:bt.map(sr=>A.createElement("span",{onClick:()=>lt(sr.id),key:sr.id,style:{color:Ke},className:kt===sr.id?X.active:""},A.createElement("span",{title:sr.name,className:X.name},sr.name),!!st&&A.createElement("span",{className:X.num},sr.count))))),!!ft&&A.createElement(A.Fragment,null,ft===1?A.createElement("div",{onClick:()=>{var sr;wt(2),((sr=jt==null?void 0:jt.current)==null?void 0:sr.clientHeight)>245?ar(!0):ar(!1)},className:X.action},"\u5C55\u5F00",A.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):A.createElement("div",{onClick:()=>{gr.current.scrollTop=0,wt(1),ar(!1)},className:X.action},"\u6536\u8D77",A.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},g={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"},w=({dataSource:bt=[],value:kt,onChange:lt,className:pt,style:tr={}})=>A.createElement("div",{style:tr,className:he()(g.tabs,pt)},bt.map(pe=>A.createElement("span",{onClick:()=>lt(pe.id),className:kt===pe.id?g.active:"",key:pe.id},pe.name))),b={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=y(92832),k=({dataSource:bt=[],value:kt="",onChange:lt,onInputChange:pt=()=>{},className:tr,style:pe={},placeholder:Ce,allowClear:it=!1})=>{var Ke;const[st,ft]=(0,A.useState)(""),[wt,Xt]=(0,A.useState)("");(0,A.useEffect)(()=>{var gr;let sr=kt;(gr=JSON.stringify(kt))!=null&&gr.includes("{")&&(ft(kt.id),sr=kt.value||"");try{Xt(decodeURIComponent(sr||""))}catch(Gt){Xt(decodeURIComponent(sr||""))}},[kt]);const ar=()=>{lt(encodeURIComponent(wt),st||null)},jt=gr=>{gr!==st&&(ft(gr),lt(encodeURIComponent(wt),gr))};return A.createElement("div",{className:he()(b.input,tr),style:pe},!!bt.length&&A.createElement("div",{className:b.dropdown},A.createElement("div",{className:b.text},(Ke=bt.find(gr=>gr.id===st))==null?void 0:Ke.name,A.createElement("i",{className:"iconfont icon-zhankai4"}),A.createElement("b",{className:b.b1}),A.createElement("b",{className:b.b2})),A.createElement("div",{className:b.menu},bt.map((gr,sr)=>A.createElement("div",{key:sr,onClick:()=>jt(gr.id)},gr.name)))),A.createElement(z.default,{onPressEnter:ar,value:wt,onChange:gr=>{Xt(gr.target.value),pt(encodeURIComponent(gr.target.value),st||null)},bordered:!1,placeholder:Ce}),A.createElement("i",{onClick:ar,className:"iconfont icon-sousuo9 font14 pl10 current"}))},P={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"},ae=({value:bt,onChange:kt,className:lt,total:pt,pageSize:tr,style:pe={}})=>{const Ce=bt<2,it=bt>=Math.ceil(pt/tr);return pt<=tr?A.createElement(A.Fragment,null):A.createElement("div",{className:he()(P.quickPager,lt),style:pe},A.createElement("div",{onClick:()=>{Ce||kt(bt-1,"prev")},className:Ce?P.disabled:""},"\u4E0A\u4E00\u9875"),A.createElement("div",{onClick:()=>{it||kt(bt+1,"next")},className:it?P.disabled:""},"\u4E0B\u4E00\u9875"))},E={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},W=y(71418),ne=y(6848),q=y(13570),ge=y(3294),Te=y(955),Se=y(96908),Fe=y(57177),G=y(81378),I=y(8797),R=({className:bt,dataSource:kt=[],col:lt=4,right:pt,bottom:tr=23,precision:pe=0,wrapWidth:Ce=1200,trackEventItems:it,loading:Ke})=>{const st=Math.floor((Ce-(lt-1)*pt)/lt);return A.createElement(W.Z,{spinning:Ke},A.createElement("div",{className:he()(E.list,bt)},!!kt.length&&kt.map((ft,wt)=>{const{name:Xt,id:ar,identifier:jt,power:gr,cover_image_id:sr,pic:Gt}=ft;return A.createElement("div",{className:E.wrap,key:ar,style:{width:st,marginRight:(1+wt)%lt===0?0:pt+pe,marginBottom:tr}},A.createElement("a",{target:"_blank",href:`/shixuns/${jt}/challenges`,className:E.li,onClick:Ot=>{Ot.preventDefault(),it&&(0,Te.L9)([it]),gr&&(0,Te.xg)(`/shixuns/${jt}/challenges`)}},A.createElement("div",{className:E.img},A.createElement("img",{className:E.cover,src:`${Gt}`}),ft.is_jupyter&&A.createElement("img",{className:E.sign,src:Se}),ft.is_jupyter_lab&&A.createElement("img",{className:E.sign,src:Fe}),ft.is_unity_3d&&A.createElement("img",{className:E.sign,src:G})),A.createElement("div",{className:E.name},A.createElement(ne.Z,{title:Xt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},A.createElement("span",{className:E.e},Xt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),A.createElement("div",{className:E.tags},A.createElement(ne.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},A.createElement("span",null,A.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),A.createElement("span",null,ft.challenges_count))),!!ft.myshixuns_count&&A.createElement(ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},A.createElement("span",null,A.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),A.createElement("span",null,ft.myshixuns_count))),A.createElement(ne.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},A.createElement("span",null,A.createElement("span",null,ft.level))),A.createElement("div",{className:E.rate},A.createElement(q.Z,{allowHalf:!0,disabled:!0,defaultValue:ft.score_info}),A.createElement("span",null,"\xA0",ft.score_info?`${ft.score_info}\u5206`:"5\u5206")))),!gr&&A.createElement("div",{className:E.lockWrap},A.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),A.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!kt.length&&A.createElement(I.Z,null)))},Z={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"},B=y(24065),m=y(59301),O=({className:bt,dataSource:kt=[],col:lt=4,right:pt,bottom:tr=23,precision:pe=0,wrapWidth:Ce=1200,trackEventItems:it,loading:Ke,onRemove:st=()=>{},isCurrent:ft=!0,showAlias:wt=!1})=>{const Xt=Math.floor((Ce-(lt-1)*pt)/lt),ar=[{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 m.createElement(W.Z,{spinning:Ke},m.createElement("div",{className:he()(Z.list,bt)},!!(kt!=null&&kt.length)&&(kt==null?void 0:kt.map((jt,gr)=>{var sr;const{name:Gt,id:Ot,identifier:ur,featured:Dr,school_name:yr,image_url:Lr,excellent:en,is_plan:Ar}=jt;return m.createElement("div",{key:Ot,className:Z.wrap,style:{width:Xt,marginRight:(1+gr)%lt===0?0:pt+pe,marginBottom:tr}},m.createElement("a",{className:Z.li,onClick:nr=>{nr.preventDefault(),nr.stopPropagation(),it&&(0,Te.L9)([it]),(0,Te.xg)(`/paths/${ur}`)}},m.createElement("div",{className:Z.img},m.createElement("img",{className:Z.cover,src:`${Lr}`}),ft&&(0,B.bg)()&&(jt==null?void 0:jt.studying)&&m.createElement("div",{className:`${Z.movebq} user-path-items`,onClick:nr=>{nr.stopPropagation(),st(jt)}},m.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),m.createElement("span",{className:"c-red"},"\u79FB\u9664")),(sr=jt==null?void 0:jt.subject_tags)==null?void 0:sr.map((nr,tt)=>{var Ye,gt;if(tt===0){const at=(Ye=ar.find(Ct=>Ct.name==nr))==null?void 0:Ye.swimg;return m.createElement("img",{className:Z.sign,src:at,style:{left:"-4px"}})}const Tt=(gt=ar.find(at=>at.name==nr))==null?void 0:gt.ptimg;return m.createElement("img",{className:Z.sign,src:Tt,style:{left:`${48+52*(tt-1)+2*tt}px`}})}),m.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(jt==null?void 0:jt.excellent)&&m.createElement("div",{className:Z.bq},"\u5F00\u653E\u8BFE\u7A0B"))),m.createElement("div",{className:Z.name},m.createElement(ne.Z,{title:wt&&(jt!=null&&jt.excellent_alias_name)?m.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Gt}`,m.createElement("br",null),m.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${jt==null?void 0:jt.excellent_alias_name}`)):Gt},m.createElement("span",{className:Z.e},wt&&(jt==null?void 0:jt.excellent_alias_name)||Gt))),m.createElement(ne.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${yr}`},m.createElement("div",{className:Z.unit},m.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),yr)),m.createElement("div",{className:Z.tags},m.createElement("div",null,m.createElement(ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},m.createElement("span",null,m.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),m.createElement("span",null,jt.stages_count))),m.createElement(ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},m.createElement("span",null,m.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),m.createElement("span",null,jt.members_count)))))))})),!kt.length&&m.createElement(I.Z,null)))},M={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"},we="data:image/png;base64,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",Ee=y(59301),$e=({className:bt,dataSource:kt=[],col:lt=4,right:pt,bottom:tr=23,precision:pe=0,wrapWidth:Ce=1200,trackEventItems:it,loading:Ke,handleVery:st=()=>!0})=>{const ft=Math.floor((Ce-(lt-1)*pt)/lt);return Ee.createElement(W.Z,{spinning:Ke},Ee.createElement("div",{className:he()(M.list,bt)},!!kt.length&&kt.map((wt,Xt)=>{const{subject_identifier:ar,id:jt,identifier:gr,power:sr}=wt,Gt=wt.is_public!=0&&wt.is_public;return Ee.createElement("div",{className:M.wrap,key:jt,style:{width:ft,marginRight:(1+Xt)%lt===0?0:pt+pe,marginBottom:tr}},Ee.createElement("a",{className:M.li,onClick:Ot=>{Ot.preventDefault(),st(wt==null?void 0:wt.first_category_url)&&(it&&(0,Te.L9)([it]),(0,Te.xg)(wt.first_category_url))}},Ee.createElement("div",{className:M.top},Ee.createElement(ne.Z,{title:wt.name},Ee.createElement("div",{className:M.name},wt.name)),Ee.createElement("img",{className:M.img,src:ge.Z.IMG_SERVER+"/images/"+wt.avatar_url}),Ee.createElement("div",{className:M.text,title:wt.creator},wt.creator),ar&&Ee.createElement("div",{className:M.btns},Ee.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ee.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Gt&&Ee.createElement("div",{className:M.sign},"\u516C\u5F00")),Ee.createElement("div",{className:M.bottom},wt.visits>0&&Ee.createElement(ne.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-liulanyan"}),Ee.createElement("span",null,wt.visits))),wt.course_members_count>0&&Ee.createElement(ne.Z,{title:"\u6210\u5458",placement:"bottom"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-chengyuan"}),wt.course_members_count)),wt.tasks_count>0&&Ee.createElement(ne.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-zuoye"}),wt.tasks_count)),wt.is_end?Ee.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ee.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!wt.is_accessible&&Ee.createElement("div",{className:M.lockWrap},Ee.createElement("img",{src:`${ge.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ee.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!kt.length&&Ee.createElement(I.Z,null)))},Je={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=y(89070),St=({dataSource:bt=[],value:kt,onChange:lt,className:pt,style:tr={},tabBarExtraContent:pe})=>A.createElement("div",{className:he()(Je.tabs,pt),style:tr},A.createElement("div",{className:Je.tabsWrap},bt.map((Ce,it)=>!(Ce!=null&&Ce.hide)&&A.createElement("aside",{className:Je.tab,onClick:()=>{lt(Ce.id),Ce.link&&Qe.history.push(Ce.link)},key:it},A.createElement("div",{className:kt===Ce.id?Je.active:""},Ce.name),(Ce==null?void 0:Ce.resetCount)==null&&(Ce==null?void 0:Ce.total)!==void 0&&A.createElement("span",null,"\uFF08",Ce==null?void 0:Ce.total,"\uFF09"),(Ce==null?void 0:Ce.resetCount)!==void 0&&(Ce==null?void 0:Ce.total)!==void 0&&A.createElement(ne.Z,{title:(Ce==null?void 0:Ce.tip)!=null?Ce==null?void 0:Ce.tip:""},A.createElement("span",{style:{color:"#9096A3"}},"\uFF08",A.createElement("span",{style:{color:"#000"}},Ce==null?void 0:Ce.resetCount),"/",A.createElement("span",null,Ce==null?void 0:Ce.total),"\uFF09"))))),A.createElement("div",{className:Je.tabBar},pe)),Bt=({className:bt,style:kt={},children:lt})=>A.createElement("div",{className:he()(bt),style:kt},lt),ht={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"},Rt=y(38854),It=y(20834);const le=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var N=({sortValue:bt,dropValue:kt,className:lt,onSort:pt,onDrop:tr,dataSource:pe=le})=>{var Ce;return A.createElement("div",{className:he()(ht.orderWrap,lt)},A.createElement(Rt.Z,{dropdownRender:()=>A.createElement(It.default,null,pe.map((it,Ke)=>A.createElement(It.default.Item,{key:Ke,onClick:()=>tr(it.id)},it.name)))},A.createElement("span",{className:ht.orderTextWrap},(Ce=pe.find(it=>kt===it.id))==null?void 0:Ce.name)),A.createElement("span",{className:ht.orderIconWrap},A.createElement("span",{className:ht.orderAsc},A.createElement("i",{className:bt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer}`,onClick:()=>pt(bt==="asc"?"desc":"asc")})),A.createElement("span",{className:ht.orderDesc},A.createElement("i",{className:bt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer}`,onClick:()=>pt(bt==="asc"?"desc":"asc")}))))},ce={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"},Ae=y(3113),L=Object.defineProperty,ee=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ke=(bt,kt,lt)=>kt in bt?L(bt,kt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):bt[kt]=lt,Pe=(bt,kt)=>{for(var lt in kt||(kt={}))ue.call(kt,lt)&&ke(bt,lt,kt[lt]);if(ee)for(var lt of ee(kt))_e.call(kt,lt)&&ke(bt,lt,kt[lt]);return bt},We=(bt,kt)=>{var lt={};for(var pt in bt)ue.call(bt,pt)&&kt.indexOf(pt)<0&&(lt[pt]=bt[pt]);if(bt!=null&&ee)for(var pt of ee(bt))kt.indexOf(pt)<0&&_e.call(bt,pt)&&(lt[pt]=bt[pt]);return lt},rt=(bt,kt,lt)=>new Promise((pt,tr)=>{var pe=Ke=>{try{it(lt.next(Ke))}catch(st){tr(st)}},Ce=Ke=>{try{it(lt.throw(Ke))}catch(st){tr(st)}},it=Ke=>Ke.done?pt(Ke.value):Promise.resolve(Ke.value).then(pe,Ce);it((lt=lt.apply(bt,kt)).next())}),Ge=bt=>{var kt=bt,{className:lt,style:pt,children:tr,loading:pe=!1,openLoading:Ce,onClick:it=()=>{},size:Ke="middle",shape:st="round"}=kt,ft=We(kt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[wt,Xt]=(0,A.useState)(!1);return A.createElement(Ae.ZP,Pe({onClick:(0,o.throttle)(ar=>rt(void 0,null,function*(){Ce&&Xt(!0);try{yield it(ar)}catch(jt){console.log("error",jt)}Ce&&Xt(!1)}),2e3,{leading:!0,trailing:!1}),className:he()(ce.btn,ce[`${Ke}-${st}`],lt),style:pt,size:Ke,shape:st,loading:wt||pe},ft),tr)},mt={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"},_t=({className:bt,style:kt,children:lt=null,onClick:pt,title:tr})=>A.createElement("div",{className:he()(mt.head,bt),style:kt},A.createElement("span",{className:"primary-hover",onClick:pt},A.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),A.createElement("b",{title:tr},tr),A.createElement("div",{className:mt.node},lt)),Lt={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"},Pt=({confirmShow:bt=!0,confirmTitle:kt,confirmClick:lt,cancelShow:pt=!0,cancelTitle:tr,cancelClick:pe,className:Ce,style:it,confirmLoading:Ke=!1})=>A.createElement("div",{className:he()(Lt.btns,Ce),style:it},bt&&A.createElement(Ae.ZP,{loading:Ke,onClick:lt,type:"primary",className:Lt.confirm},kt),pt&&A.createElement(Ae.ZP,{onClick:pe,className:Lt.cancel},tr)),Yt={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"},S=({className:bt,style:kt={},LeftContent:lt,children:pt,RightContent:tr})=>A.createElement("div",{className:he()(Yt.fixedBottom,bt),style:kt},A.createElement("div",{className:Yt.wrap},A.createElement("div",{className:Yt.left},lt),A.createElement("div",{className:Yt.center},pt),A.createElement("div",{className:Yt.right},tr))),C={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"},Q=({className:bt,style:kt={},dataSource:lt=[]})=>A.createElement("div",{className:he()(C.crumbs,bt),style:kt},lt.map((pt,tr)=>tr<lt.length-1?A.createElement(A.Fragment,{key:tr},pt.path||pt.onClick?A.createElement("span",{className:C.hover,onClick:pt!=null&&pt.onClick?pt.onClick:()=>Qe.history.push(pt.path)},pt.name):A.createElement("span",null,pt.name),A.createElement("span",null,"\xA0",">","\xA0")):A.createElement("span",{key:tr,style:{color:"#5F6368"}},pt.name))),Re=y(31797),pr=Object.defineProperty,Be=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Me=(bt,kt,lt)=>kt in bt?pr(bt,kt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):bt[kt]=lt,Ue=(bt,kt)=>{for(var lt in kt||(kt={}))re.call(kt,lt)&&Me(bt,lt,kt[lt]);if(Ve)for(var lt of Ve(kt))me.call(kt,lt)&&Me(bt,lt,kt[lt]);return bt},Y=(bt,kt)=>Be(bt,He(kt)),Ft=(bt,kt)=>{var lt={};for(var pt in bt)re.call(bt,pt)&&kt.indexOf(pt)<0&&(lt[pt]=bt[pt]);if(bt!=null&&Ve)for(var pt of Ve(bt))kt.indexOf(pt)<0&&me.call(bt,pt)&&(lt[pt]=bt[pt]);return lt};const{Countdown:Oe}=Re.default;var ir=bt=>{var kt=bt,{onChange:lt}=kt,pt=Ft(kt,["onChange"]);const[tr,pe]=(0,A.useState)(null);(0,A.useEffect)(()=>{typeof tr=="number"&&tr>=0&&lt(tr)},[tr]);const Ce=it=>{const Ke=Math.floor(it/1e3);pe(Ke)};return A.createElement(Oe,Y(Ue({},pt),{onChange:Ce}))}},69039:function(Ut,qe,y){"use strict";y.r(qe),y.d(qe,{default:function(){return Fe}});var A=y(59301),J=y(89070),ye=y(66104),Le=y(43418),oe=y(99313),X=y(955),fe=y(24780),he=y(3294),o=y(85149),V=y(61186),F=y.n(V),g={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"};F().locale("ZH-cn");const c=({userDetail:G,dispatch:I})=>{var $;const R=(0,J.useParams)(),Z=(0,J.useLocation)();(0,A.useEffect)(()=>{var m,_;R.type=(_=(m=Z.pathname)==null?void 0:m.split("/"))==null?void 0:_[6]},[Z.pathname]);const{homeworkBanksDetail:B}=G;return A.createElement("section",{className:g.bg},A.createElement("section",{className:""},A.createElement("aside",{className:[g.desc,"c-black","font14","bg-white"].join(" ")},G.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&A.createElement(o.Z,{value:(B==null?void 0:B.description)||"\u6682\u65E0\uFF5E"}),($=B==null?void 0:B.attachments)==null?void 0:$.map((m,_)=>A.createElement("div",null,A.createElement("a",{href:`${he.Z.API_SERVER}${m.url}`},A.createElement("span",{className:"iconfont icon-fujian c-green font14"}),A.createElement("span",{className:"ml10 c-black"},m.title),A.createElement("span",{className:"c-light-black ml20 font12"},m.filesize)))),R.type==="group"&&A.createElement(A.Fragment,null,(B.min_num||B.max_num)&&A.createElement("div",{className:"mt10"},A.createElement("span",{className:"c-grey-666"},"\u5206\u7EC4\u8981\u6C42\uFF1A"),A.createElement("span",{className:"c-black-051"},B.min_num,"~ ",B.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")),B.base_on_project?A.createElement("p",null,A.createElement("span",{className:"c-grey-666"},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),A.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")):A.createElement("p",null,A.createElement("span",{className:"c-grey-666"},"\u4E0D\u57FA\u4E8E\u9879\u76EE"),A.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 w=(0,J.connect)(({userDetail:G})=>({userDetail:G}))(c),b=y(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"};F().locale("ZH-cn");const te=({userDetail:G,dispatch:I})=>{var $,R;const{homeworkBanksDetail:Z}=G;return A.createElement("section",{className:z.bg},A.createElement("section",{className:""},A.createElement("aside",{className:[z.desc,"c-black","font14","bg-white"].join(" ")},Z!=null&&Z.reference_answer||($=Z==null?void 0:Z.reference_attachments)!=null&&$.length?A.createElement(A.Fragment,null,A.createElement(o.Z,{value:(Z==null?void 0:Z.reference_answer)||""}),(R=Z==null?void 0:Z.reference_attachments)==null?void 0:R.map((B,m)=>A.createElement("div",null,A.createElement("a",{href:`${he.Z.API_SERVER}${B.url}`},A.createElement("span",{className:"iconfont icon-fujian c-green font14"}),A.createElement("span",{className:"ml10 c-black"},B.title),A.createElement("span",{className:"c-light-black ml20 font12"},B.filesize))))):A.createElement(b.Z,null))))};var k=(0,J.connect)(({userDetail:G})=>({userDetail:G}))(te),P={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"},H=y(93018),ae=Object.defineProperty,E=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,q=(G,I,$)=>I in G?ae(G,I,{enumerable:!0,configurable:!0,writable:!0,value:$}):G[I]=$,ge=(G,I)=>{for(var $ in I||(I={}))W.call(I,$)&&q(G,$,I[$]);if(E)for(var $ of E(I))ne.call(I,$)&&q(G,$,I[$]);return G},Te=(G,I,$)=>new Promise((R,Z)=>{var B=O=>{try{_($.next(O))}catch(M){Z(M)}},m=O=>{try{_($.throw(O))}catch(M){Z(M)}},_=O=>O.done?R(O.value):Promise.resolve(O.value).then(B,m);_(($=$.apply(G,I)).next())});const Se=({userDetail:G,dispatch:I,history:$})=>{const[R]=(0,J.useSearchParams)(),Z=(0,J.useParams)(),B=(0,J.useLocation)(),[m,_]=(0,A.useState)(R.get("tabs")||0),{homeworkBanksDetail:O}=G;(0,A.useEffect)(()=>{var Ee,De;Z.type=(De=(Ee=B.pathname)==null?void 0:Ee.split("/"))==null?void 0:De[6],I({type:"userDetail/getHomeworkBanksDetail",payload:ge({},Z)})},[Z.topicId,B.pathname]);const M=()=>{I({type:"userDetail/setActionTabs",payload:{key:"UserDetail-SendToClass",params:{object_id:[Z.topicId],object_type:Z.type}}})},we=[{name:"\u5185\u5BB9\u8BE6\u60C5",id:0,compontent:A.createElement("div",{className:"minH500"},A.createElement(w,null))},{name:"\u53C2\u8003\u7B54\u6848",id:1,compontent:A.createElement(k,null)}];return A.createElement("section",{className:P.bg},A.createElement("div",{className:"edu-container"},A.createElement("section",{className:"animated fadeIn"},A.createElement("aside",{className:"mt10"},A.createElement(ye.Z,{separator:">"},A.createElement(ye.Z.Item,null,A.createElement(J.Link,{to:`/users/${Z.username}/${Z.topictype==="personal"?"topics":"topicbank"}/${Z.topictype}`},Z.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),A.createElement(ye.Z.Item,null,"\u8BE6\u60C5"))),A.createElement("aside",{className:[P.title,"mt20"].join(" ")},A.createElement("strong",{className:"font20 ml5"},O.name),O.is_public&&A.createElement(X.VV,{status:["\u516C\u5F00"]}))),A.createElement("aside",{className:"mt30 relative bg-white mb20"},A.createElement("div",{className:P.export},(O==null?void 0:O.authorize)&&A.createElement(A.Fragment,null,A.createElement("a",{onClick:Ee=>{Ee.preventDefault(),Le.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Te(void 0,null,function*(){(yield(0,fe.Tv)({object_type:"normal",object_id:[Z.topicId]})).status===0&&$.push(`/users/${Z.username}/topics/personal`)})})}},"\u5220\u9664"),A.createElement(J.Link,{to:`/users/${Z.username}/topics/${Z.topicId}/${Z.topictype}/${Z.type}/edit`},"\u7F16\u8F91")),A.createElement("a",{onClick:Ee=>{Ee.preventDefault(),M()}},"\u53D1\u9001")),A.createElement(oe.default,{defaultActiveKey:m,className:P.tabs},we.map((Ee,De)=>A.createElement(oe.default.TabPane,{tab:Ee.name,key:Ee.id},Ee.compontent))))),A.createElement(H.Z,null))};var Fe=(0,J.connect)(({userDetail:G,loading:I})=>({userDetail:G,loading:I.effects}))(Se)},93018:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return G}});var A=y(59301),J=y(89070),ye=y(8591),Le=y(43418),oe=y(99313),X=y(61621),fe=y(5112),he={title:"title___XAxiE",radioWrap:"radioWrap___k0pOB",radio:"radio___x9kMt",colorFF0000:"colorFF0000___IMgd0",pagination:"pagination___ou2ht",checkboxWrapper:"checkboxWrapper___kF7xI"},o=y(955),V=y(85057),F=y(71418),g=y(24905),c=y(24780),w=y(26724),b=y.n(w),z=(I,$,R)=>new Promise((Z,B)=>{var m=M=>{try{O(R.next(M))}catch(we){B(we)}},_=M=>{try{O(R.throw(M))}catch(we){B(we)}},O=M=>M.done?Z(M.value):Promise.resolve(M.value).then(m,_);O((R=R.apply(I,$)).next())}),k=({username:I,setStages:$,stages:R,hasError:Z,setHasError:B})=>{const[m,_]=(0,A.useState)(""),[O,M]=(0,A.useState)(1),[we,Ee]=(0,A.useState)([]),[De,$e]=(0,A.useState)(!1),[Je,Qe]=(0,A.useState)(0);(0,A.useEffect)(()=>{et({page:1,search:""},!0)},[]);const et=(Et,Bt)=>z(void 0,null,function*(){$e(!0);const ht=yield(0,c.w3)({username:I,category:"manage",page:Et.page,search:Et.search});$e(!1),Ee(Rt=>Bt?ht==null?void 0:ht.subjects:[...Rt,...ht==null?void 0:ht.subjects]),Qe(ht==null?void 0:ht.count)}),St=(0,A.useRef)();return A.createElement("div",{className:he.wrap},A.createElement("div",{className:"mb10"},A.createElement(V.t7,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:m,style:{width:500},onChange:Et=>{_(Et),M(1),St.current.scrollTo({behavior:"smooth",top:0}),et({page:1,search:Et},!0)}})),A.createElement(F.Z,{spinning:De},A.createElement("div",{className:he.radioWrap,ref:St},A.createElement(b(),{initialLoad:!1,pageStart:1,threshold:6,loadMore:()=>{M(O+1),et({page:O+1,search:m},!1)},hasMore:we.length<Je,useWindow:!1},A.createElement(fe.ZP.Group,{value:R.subjectId,onChange:Et=>{$({subjectId:Et.target.value,stage_ids:[]}),B(!1)}},we.map(Et=>{const Bt=Et.stages.map(ht=>({label:ht.name,value:ht.id}));return A.createElement("div",{key:Et.id},A.createElement(fe.ZP,{className:he.radio,value:Et.id},Et.name),Et.id===R.subjectId&&A.createElement("div",{className:he.checkboxWrapper},Bt.length>0&&A.createElement(g.default,{indeterminate:R.stage_ids.length>0&&R.stage_ids.length<Bt.length,onChange:ht=>{$({subjectId:Et.id,stage_ids:ht.target.checked?Bt.map(Rt=>Rt.value):[]})},checked:R.stage_ids.length===Bt.length},"\u5168\u9009"),A.createElement(g.default.Group,{options:Bt,value:R.stage_ids,onChange:ht=>$({subjectId:Et.id,stage_ids:ht})})))}))))),Z&&A.createElement("div",{className:he.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u5B9E\u8DF5\u8BFE\u7A0B\u53CA\u7AE0\u8282"))},P=y(76895),H=y(35390),ae=Object.defineProperty,E=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,q=(I,$,R)=>$ in I?ae(I,$,{enumerable:!0,configurable:!0,writable:!0,value:R}):I[$]=R,ge=(I,$)=>{for(var R in $||($={}))W.call($,R)&&q(I,R,$[R]);if(E)for(var R of E($))ne.call($,R)&&q(I,R,$[R]);return I},Te=(I,$)=>{var R={};for(var Z in I)W.call(I,Z)&&$.indexOf(Z)<0&&(R[Z]=I[Z]);if(I!=null&&E)for(var Z of E(I))$.indexOf(Z)<0&&ne.call(I,Z)&&(R[Z]=I[Z]);return R},Se=(I,$,R)=>new Promise((Z,B)=>{var m=M=>{try{O(R.next(M))}catch(we){B(we)}},_=M=>{try{O(R.throw(M))}catch(we){B(we)}},O=M=>M.done?Z(M.value):Promise.resolve(M.value).then(m,_);O((R=R.apply(I,$)).next())});const Fe=I=>{var $=I,{userDetail:R,globalSetting:Z,loading:B,user:m,dispatch:_}=$,O=Te($,["userDetail","globalSetting","loading","user","dispatch"]),M,we,Ee,De,$e;const[Je,Qe]=(0,A.useState)("course"),[et,St]=(0,A.useState)(""),[Et,Bt]=(0,A.useState)([]),[ht,Rt]=(0,A.useState)(),[It,le]=(0,A.useState)(!1),[ve,N]=(0,A.useState)(!1);(0,A.useEffect)(()=>{R.actionTabs.key==="UserDetail-SendToClass"&&ce(et)},[R.actionTabs.key]);const ce=ue=>Se(void 0,null,function*(){le(!0);const _e=yield _({type:"userDetail/topicGetCourseList",payload:{search:ue}});_e&&Bt((_e==null?void 0:_e.courses)||[]),le(!1)}),[Ae,L]=(0,A.useState)({subjectId:"",stage_ids:[]}),ee=()=>Se(void 0,null,function*(){var ue,_e,ke,Pe,We,rt;if(Je==="course"){if(!ht){N(!0);return}const Ze=yield _({type:"userDetail/topicSendToClass",payload:ge({course_id:ht},(ue=R.actionTabs)==null?void 0:ue.params)});if(_({type:"userDetail/setActionTabs",payload:{}}),Ze&&Ze.status===0){const Ge={normal:"common_homework",group:"group_homework",exercise:"exercise",poll:"poll",videos:"video"};(0,o.xg)(`/classrooms/${ht}/${Ge[(ke=(_e=R.actionTabs)==null?void 0:_e.params)==null?void 0:ke.object_type]}`)}}else{if(!Ae.subjectId||!Ae.stage_ids.length){N(!0);return}(yield(0,H.nI)({id:(We=(Pe=R.actionTabs)==null?void 0:Pe.params)==null?void 0:We.object_id,login:(rt=m.userInfo)==null?void 0:rt.login},{stage_ids:Ae.stage_ids})).status===0&&(ye.ZP.success("\u53D1\u9001\u6210\u529F"),_({type:"userDetail/setActionTabs",payload:{}}),(0,o.xg)(`/paths/${Ae.subjectId}`))}});return A.createElement(Le.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:R.actionTabs.key==="UserDetail-SendToClass",title:"\u53D1\u9001",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:B["userDetail/sendToClass"],width:600,afterClose:()=>{N(!1),Bt([]),L({subjectId:"",stage_ids:[]}),St("")},onOk:ee,wrapClassName:P.Z.CustomCss,onCancel:()=>{_({type:"userDetail/setActionTabs",payload:{}})}},A.createElement(oe.default,{activeKey:Je,onChange:ue=>{N(!1),Qe(ue)},items:[{label:"\u8BFE\u5802",key:"course",children:A.createElement("div",{className:he.wrap},A.createElement("div",{className:"mb10"},A.createElement(V.t7,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:et,style:{width:500},onChange:ue=>{St(ue),ce(ue)}})),A.createElement(X.Z,{active:!0,loading:It},A.createElement("div",{className:he.radioWrap},A.createElement(fe.ZP.Group,{value:ht,onChange:ue=>{Rt(ue.target.value),N(!1)}},Et.map((ue,_e)=>A.createElement(fe.ZP,{className:he.radio,value:ue.course_id,key:ue.course_id},ue.course_name))))),((we=(M=R.actionTabs)==null?void 0:M.params)==null?void 0:we.object_type)!=="videos"&&A.createElement("div",{className:he.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u9898\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),ve&&A.createElement("div",{className:he.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802")),show:!0},{label:"\u5B9E\u8DF5\u8BFE\u7A0B",key:"subject",children:A.createElement(k,{username:(Ee=m.userInfo)==null?void 0:Ee.login,stages:Ae,setStages:L,hasError:ve,setHasError:N}),show:(($e=(De=R.actionTabs)==null?void 0:De.params)==null?void 0:$e.object_type)==="videos"}].filter(ue=>ue.show)}))};var G=(0,J.connect)(({userDetail:I,loading:$,globalSetting:R,user:Z})=>({userDetail:I,globalSetting:R,loading:$.effects,user:Z}))(Fe)},24768:function(Ut,qe,y){"use strict";y.d(qe,{AL:function(){return ae},Iy:function(){return F},Qv:function(){return w},ez:function(){return H},jb:function(){return g}});var A=y(32834),J=y.n(A),ye=y(11690),Le=y.n(ye);let oe=1;function X(ge,Te){const Se=ge.match(/^(\s+)(?:```)/);if(Se===null)return Te;const Fe=Se[1];return Te.split(`
`).map(G=>{const I=G.match(/^\s+/);if(I===null)return G;const[$]=I;return $.length>=Fe.length?G.slice(Fe.length):G}).join(`
`)}let fe=[],he=["<ul>"];const o=new(J()).Renderer,V=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function F(){fe.length=0,he=["<ul>"]}const g={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(ge,Te,Se,Fe){if(Te>=ge.length||ge[Te].level<=Se)return Te;var G=ge[Te];Fe.push("<li><a href='#"+oe+G.anchor+"'>"+G.text+"</a>"),Te++;var I=[];return Te=c(ge,Te,G.level,I),I.length>0&&(Fe.push("<ul>"),I.forEach(function($){Fe.push($)}),Fe.push("</ul>")),Fe.push("</li>"),Te=c(ge,Te,Se,Fe),Te}function w(){return c(fe,0,0,he),he.push("</ul>"),he.join("")}const b={heading(ge){const Te=V.exec(ge);if(oe+=1,Te)return{type:"heading",raw:Te[0],depth:Te[1].length,text:Te[2]}},fences(ge){const Te=this.rules.block.fences.exec(ge);if(Te){const Se=Te[0];let Fe=X(Se,Te[3]||"");const G=Te[2]?Te[2].trim():Te[2];if(["latex","katex","math"].indexOf(G)>=0){const I=k(),$=Fe;Fe=I,P[I]={type:"block",expression:$}}return{type:"code",raw:Se,lang:G,text:Fe}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let te=0;const k=()=>`__special_katext_id_${te++}__`;let P={};function H(){return P}function ae(){te=0,P={}}function E(ge){return ge=ge.replace(z,(Te,Se)=>{const Fe=k();return P[Fe]={type:"inline",expression:Se},Fe}),ge}const W=o.listitem;o.listitem=function(ge){return W(E(ge))};const ne=o.paragraph;o.paragraph=function(ge){return ne(E(ge))};const q=o.tablecell;o.tablecell=function(ge,Te){return q(E(ge),Te)},o.code=function(ge,Te,Se){const Fe=(Te||"").match(/\S*/)[0];return Fe?["latex","katex","math"].indexOf(Fe)>=0?`<p class='editormd-tex'>${ge}</p>`:`<pre class="prettyprint linenums"><code class="language-${Te}">${Se?ge:(0,ye.escape)(ge,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Se?ge:(0,ye.escape)(ge,!0))+"</code></pre>"},o.heading=function(ge,Te,Se){let Fe=this.options.headerPrefix+Se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return fe.push({anchor:Fe,level:Te,text:ge}),"<h"+Te+' id="'+oe+Fe+'">'+ge+"</h"+Te+">"},J().setOptions({silent:!0,gfm:!0,pedantic:!1}),J().use({tokenizer:b,renderer:o}),qe.ZP=J()},36785:function(Ut,qe,y){"use strict";y.d(qe,{o2:function(){return oe},yT:function(){return X}});var A=y(19127),J=y(33166);const ye=J.i.map(fe=>`${fe}-inverse`),Le=["success","processing","error","default","warning"];function oe(fe){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,A.Z)(ye),(0,A.Z)(J.i)).includes(fe):J.i.includes(fe)}function X(fe){return Le.includes(fe)}},56762:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return J}});var A=y(59301);function J(){const[,ye]=A.useReducer(Le=>Le+1,0);return ye}},79676:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return X}});var A=y(19447);function J(fe,he,o,V){if(V===!1)return{adjustX:!1,adjustY:!1};const F=V&&typeof V=="object"?V:{},g={};switch(fe){case"top":case"bottom":g.shiftX=he.dropdownArrowOffset*2+o;break;case"left":case"right":g.shiftY=he.dropdownArrowOffsetVertical*2+o;break}const c=Object.assign(Object.assign({},g),F);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const ye={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"]}},Le={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"]}},oe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function X(fe){const{arrowWidth:he,autoAdjustOverflow:o,arrowPointAtCenter:V,offset:F,borderRadius:g,visibleFirst:c}=fe,w=he/2,b={};return Object.keys(ye).forEach(z=>{const te=V&&Le[z]||ye[z],k=Object.assign(Object.assign({},te),{offset:[0,0]});switch(b[z]=k,oe.has(z)&&(k.autoArrow=!1),z){case"top":case"topLeft":case"topRight":k.offset[1]=-w-F;break;case"bottom":case"bottomLeft":case"bottomRight":k.offset[1]=w+F;break;case"left":case"leftTop":case"leftBottom":k.offset[0]=-w-F;break;case"right":case"rightTop":case"rightBottom":k.offset[0]=w+F;break}const P=(0,A.fS)({contentRadius:g,limitVerticalRadius:!0});if(V)switch(z){case"topLeft":case"bottomLeft":k.offset[0]=-P.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":k.offset[0]=P.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":k.offset[1]=-P.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":k.offset[1]=P.dropdownArrowOffset+w;break}k.overflow=J(z,P,he,o),c&&(k.htmlRegion="visibleFirst")}),b}},19080:function(Ut,qe,y){"use strict";y.d(qe,{F:function(){return oe},Z:function(){return Le}});var A=y(92310),J=y.n(A);const ye=null;function Le(X,fe,he){return J()({[`${X}-status-success`]:fe==="success",[`${X}-status-warning`]:fe==="warning",[`${X}-status-error`]:fe==="error",[`${X}-status-validating`]:fe==="validating",[`${X}-has-feedback`]:he})}const oe=(X,fe)=>fe||X},66104:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return $}});var A=y(92310),J=y.n(A),ye=y(11592),Le=y(26112),oe=y(59301),X=y(92343),fe=y(36355),he=y(84105),o=y(91857);const V=R=>{let{children:Z}=R;const{getPrefixCls:B}=oe.useContext(fe.E_),m=B("breadcrumb");return oe.createElement("li",{className:`${m}-separator`,"aria-hidden":"true"},Z===""?Z:Z||"/")};V.__ANT_BREADCRUMB_SEPARATOR=!0;var F=V,g=function(R,Z){var B={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&Z.indexOf(m)<0&&(B[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,m=Object.getOwnPropertySymbols(R);_<m.length;_++)Z.indexOf(m[_])<0&&Object.prototype.propertyIsEnumerable.call(R,m[_])&&(B[m[_]]=R[m[_]]);return B};function c(R,Z){if(R.title===void 0||R.title===null)return null;const B=Object.keys(Z).join("|");return typeof R.title=="object"?R.title:String(R.title).replace(new RegExp(`:(${B})`,"g"),(m,_)=>Z[_]||m)}function w(R,Z,B,m){if(B==null)return null;const{className:_,onClick:O}=Z,M=g(Z,["className","onClick"]),we=Object.assign(Object.assign({},(0,Le.Z)(M,{data:!0,aria:!0})),{onClick:O});return m!==void 0?oe.createElement("a",Object.assign({},we,{className:J()(`${R}-link`,_),href:m}),B):oe.createElement("span",Object.assign({},we,{className:J()(`${R}-link`,_)}),B)}function b(R,Z){return(m,_,O,M,we)=>{if(Z)return Z(m,_,O,M);const Ee=c(m,_);return w(R,m,Ee,we)}}var z=function(R,Z){var B={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&Z.indexOf(m)<0&&(B[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,m=Object.getOwnPropertySymbols(R);_<m.length;_++)Z.indexOf(m[_])<0&&Object.prototype.propertyIsEnumerable.call(R,m[_])&&(B[m[_]]=R[m[_]]);return B};const te=R=>{const{prefixCls:Z,separator:B="/",children:m,menu:_,overlay:O,dropdownProps:M,href:we}=R,De=($e=>{if(_||O){const Je=Object.assign({},M);if(_){const Qe=_||{},{items:et}=Qe,St=z(Qe,["items"]);Je.menu=Object.assign(Object.assign({},St),{items:et==null?void 0:et.map((Et,Bt)=>{var{key:ht,title:Rt,label:It,path:le}=Et,ve=z(Et,["key","title","label","path"]);let N=It!=null?It:Rt;return le&&(N=oe.createElement("a",{href:`${we}${le}`},N)),Object.assign(Object.assign({},ve),{key:ht!=null?ht:Bt,label:N})})})}else O&&(Je.overlay=O);return oe.createElement(o.Z,Object.assign({placement:"bottom"},Je),oe.createElement("span",{className:`${Z}-overlay-link`},$e,oe.createElement(he.Z,null)))}return $e})(m);return De!=null?oe.createElement(oe.Fragment,null,oe.createElement("li",null,De),B&&oe.createElement(F,null,B)):null},k=R=>{const{prefixCls:Z,children:B,href:m}=R,_=z(R,["prefixCls","children","href"]),{getPrefixCls:O}=oe.useContext(fe.E_),M=O("breadcrumb",Z);return oe.createElement(te,Object.assign({},_,{prefixCls:M}),w(M,_,B,m))};k.__ANT_BREADCRUMB_ITEM=!0;var P=k,H=y(17313),ae=y(83116),E=y(37613);const W=R=>{const{componentCls:Z,iconCls:B}=R;return{[Z]:Object.assign(Object.assign({},(0,H.Wf)(R)),{color:R.itemColor,fontSize:R.fontSize,[B]:{fontSize:R.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:R.linkColor,transition:`color ${R.motionDurationMid}`,padding:`0 ${R.paddingXXS}px`,borderRadius:R.borderRadiusSM,height:R.lineHeight*R.fontSize,display:"inline-block",marginInline:-R.marginXXS,"&:hover":{color:R.linkHoverColor,backgroundColor:R.colorBgTextHover}},(0,H.Qy)(R)),"li:last-child":{color:R.lastItemColor},[`${Z}-separator`]:{marginInline:R.separatorMargin,color:R.separatorColor},[`${Z}-link`]:{[`
> ${B} + span,
> ${B} + a
`]:{marginInlineStart:R.marginXXS}},[`${Z}-overlay-link`]:{borderRadius:R.borderRadiusSM,height:R.lineHeight*R.fontSize,display:"inline-block",padding:`0 ${R.paddingXXS}px`,marginInline:-R.marginXXS,[`> ${B}`]:{marginInlineStart:R.marginXXS,fontSize:R.fontSizeIcon},"&:hover":{color:R.linkHoverColor,backgroundColor:R.colorBgTextHover,a:{color:R.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${R.componentCls}-rtl`]:{direction:"rtl"}})}};var ne=(0,ae.Z)("Breadcrumb",R=>{const Z=(0,E.TS)(R,{});return[W(Z)]},R=>({itemColor:R.colorTextDescription,lastItemColor:R.colorText,iconFontSize:R.fontSize,linkColor:R.colorTextDescription,linkHoverColor:R.colorText,separatorColor:R.colorTextDescription,separatorMargin:R.marginXS})),q=function(R,Z){var B={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&Z.indexOf(m)<0&&(B[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,m=Object.getOwnPropertySymbols(R);_<m.length;_++)Z.indexOf(m[_])<0&&Object.prototype.propertyIsEnumerable.call(R,m[_])&&(B[m[_]]=R[m[_]]);return B};function ge(R){const{breadcrumbName:Z,children:B}=R,m=q(R,["breadcrumbName","children"]),_=Object.assign({title:Z},m);return B&&(_.menu={items:B.map(O=>{var{breadcrumbName:M}=O,we=q(O,["breadcrumbName"]);return Object.assign(Object.assign({},we),{title:M})})}),_}function Te(R,Z){return(0,oe.useMemo)(()=>R||(Z?Z.map(ge):null),[R,Z])}var Se=function(R,Z){var B={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&Z.indexOf(m)<0&&(B[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,m=Object.getOwnPropertySymbols(R);_<m.length;_++)Z.indexOf(m[_])<0&&Object.prototype.propertyIsEnumerable.call(R,m[_])&&(B[m[_]]=R[m[_]]);return B};const Fe=(R,Z)=>{if(Z===void 0)return Z;let B=(Z||"").replace(/^\//,"");return Object.keys(R).forEach(m=>{B=B.replace(`:${m}`,R[m])}),B},G=R=>{const{prefixCls:Z,separator:B="/",style:m,className:_,rootClassName:O,routes:M,items:we,children:Ee,itemRender:De,params:$e={}}=R,Je=Se(R,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Qe,direction:et,breadcrumb:St}=oe.useContext(fe.E_);let Et;const Bt=Qe("breadcrumb",Z),[ht,Rt]=ne(Bt),It=Te(we,M),le=b(Bt,De);if(It&&It.length>0){const ce=[],Ae=we||M;Et=It.map((L,ee)=>{const{path:ue,key:_e,type:ke,menu:Pe,overlay:We,onClick:rt,className:Ze,separator:Ge,dropdownProps:mt}=L,At=Fe($e,ue);At!==void 0&&ce.push(At);const _t=_e!=null?_e:ee;if(ke==="separator")return oe.createElement(F,{key:_t},Ge);const Lt={},Ht=ee===It.length-1;Pe?Lt.menu=Pe:We&&(Lt.overlay=We);let{href:Pt}=L;return ce.length&&At!==void 0&&(Pt=`#/${ce.join("/")}`),oe.createElement(te,Object.assign({key:_t},Lt,(0,Le.Z)(L,{data:!0,aria:!0}),{className:Ze,dropdownProps:mt,href:Pt,separator:Ht?"":B,onClick:rt,prefixCls:Bt}),le(L,$e,Ae,ce,Pt))})}else if(Ee){const ce=(0,ye.Z)(Ee).length;Et=(0,ye.Z)(Ee).map((Ae,L)=>{if(!Ae)return Ae;const ee=L===ce-1;return(0,X.Tm)(Ae,{separator:ee?"":B,key:L})})}const ve=J()(Bt,St==null?void 0:St.className,{[`${Bt}-rtl`]:et==="rtl"},_,O,Rt),N=Object.assign(Object.assign({},St==null?void 0:St.style),m);return ht(oe.createElement("nav",Object.assign({className:ve,style:N},Je),oe.createElement("ol",null,Et)))};G.Item=P,G.Separator=F;var I=G,$=I},24905:function(Ut,qe,y){"use strict";y.d(qe,{default:function(){return ne}});var A=y(92310),J=y.n(A),ye=y(5630),Le=y(59301),oe=y(36355),X=y(1684),fe=y(32441),o=Le.createContext(null),V=y(98447),F=y(14088),g=y(4572),c=function(q,ge){var Te={};for(var Se in q)Object.prototype.hasOwnProperty.call(q,Se)&&ge.indexOf(Se)<0&&(Te[Se]=q[Se]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Se=Object.getOwnPropertySymbols(q);Fe<Se.length;Fe++)ge.indexOf(Se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(q,Se[Fe])&&(Te[Se[Fe]]=q[Se[Fe]]);return Te};const w=(q,ge)=>{var Te;const{prefixCls:Se,className:Fe,rootClassName:G,children:I,indeterminate:$=!1,style:R,onMouseEnter:Z,onMouseLeave:B,skipGroup:m=!1,disabled:_}=q,O=c(q,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:M,direction:we,checkbox:Ee}=Le.useContext(oe.E_),De=Le.useContext(o),{isFormItemInput:$e}=Le.useContext(fe.aM),Je=Le.useContext(X.Z),Qe=(Te=(De==null?void 0:De.disabled)||_)!==null&&Te!==void 0?Te:Je,et=Le.useRef(O.value);Le.useEffect(()=>{De==null||De.registerValue(O.value)},[]),Le.useEffect(()=>{if(!m)return O.value!==et.current&&(De==null||De.cancelValue(et.current),De==null||De.registerValue(O.value),et.current=O.value),()=>De==null?void 0:De.cancelValue(O.value)},[O.value]);const St=M("checkbox",Se),[Et,Bt]=(0,V.ZP)(St),ht=Object.assign({},O);De&&!m&&(ht.onChange=function(){O.onChange&&O.onChange.apply(O,arguments),De.toggleOption&&De.toggleOption({label:I,value:O.value})},ht.name=De.name,ht.checked=De.value.includes(O.value));const Rt=J()(`${St}-wrapper`,{[`${St}-rtl`]:we==="rtl",[`${St}-wrapper-checked`]:ht.checked,[`${St}-wrapper-disabled`]:Qe,[`${St}-wrapper-in-form-item`]:$e},Ee==null?void 0:Ee.className,Fe,G,Bt),It=J()({[`${St}-indeterminate`]:$},g.A,Bt),le=$?"mixed":void 0;return Et(Le.createElement(F.Z,{component:"Checkbox",disabled:Qe},Le.createElement("label",{className:Rt,style:Object.assign(Object.assign({},Ee==null?void 0:Ee.style),R),onMouseEnter:Z,onMouseLeave:B},Le.createElement(ye.Z,Object.assign({"aria-checked":le},ht,{prefixCls:St,className:It,disabled:Qe,ref:ge})),I!==void 0&&Le.createElement("span",null,I))))};var z=Le.forwardRef(w),te=y(19127),k=y(2738),P=function(q,ge){var Te={};for(var Se in q)Object.prototype.hasOwnProperty.call(q,Se)&&ge.indexOf(Se)<0&&(Te[Se]=q[Se]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Se=Object.getOwnPropertySymbols(q);Fe<Se.length;Fe++)ge.indexOf(Se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(q,Se[Fe])&&(Te[Se[Fe]]=q[Se[Fe]]);return Te};const H=(q,ge)=>{const{defaultValue:Te,children:Se,options:Fe=[],prefixCls:G,className:I,rootClassName:$,style:R,onChange:Z}=q,B=P(q,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:m,direction:_}=Le.useContext(oe.E_),[O,M]=Le.useState(B.value||Te||[]),[we,Ee]=Le.useState([]);Le.useEffect(()=>{"value"in B&&M(B.value||[])},[B.value]);const De=Le.useMemo(()=>Fe.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[Fe]),$e=ve=>{Ee(N=>N.filter(ce=>ce!==ve))},Je=ve=>{Ee(N=>[].concat((0,te.Z)(N),[ve]))},Qe=ve=>{const N=O.indexOf(ve.value),ce=(0,te.Z)(O);N===-1?ce.push(ve.value):ce.splice(N,1),"value"in B||M(ce),Z==null||Z(ce.filter(Ae=>we.includes(Ae)).sort((Ae,L)=>{const ee=De.findIndex(_e=>_e.value===Ae),ue=De.findIndex(_e=>_e.value===L);return ee-ue}))},et=m("checkbox",G),St=`${et}-group`,[Et,Bt]=(0,V.ZP)(et),ht=(0,k.Z)(B,["value","disabled"]),Rt=Fe.length?De.map(ve=>Le.createElement(z,{prefixCls:et,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:B.disabled,value:ve.value,checked:O.includes(ve.value),onChange:ve.onChange,className:`${St}-item`,style:ve.style,title:ve.title},ve.label)):Se,It={toggleOption:Qe,value:O,disabled:B.disabled,name:B.name,registerValue:Je,cancelValue:$e},le=J()(St,{[`${St}-rtl`]:_==="rtl"},I,$,Bt);return Et(Le.createElement("div",Object.assign({className:le,style:R},ht,{ref:ge}),Le.createElement(o.Provider,{value:It},Rt)))},ae=Le.forwardRef(H);var E=Le.memo(ae);const W=z;W.Group=E,W.__ANT_CHECKBOX=!0;var ne=W},98447:function(Ut,qe,y){"use strict";y.d(qe,{C2:function(){return oe}});var A=y(17313),J=y(37613),ye=y(83116);const Le=X=>{const{checkboxCls:fe}=X,he=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,A.Wf)(X)),{display:"inline-flex",flexWrap:"wrap",columnGap:X.marginXS,[`> ${X.antCls}-row`]:{flex:1}}),[he]:Object.assign(Object.assign({},(0,A.Wf)(X)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${he}`]:{marginInlineStart:0},[`&${he}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,A.Wf)(X)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:X.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,A.oN)(X))},[`${fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:X.checkboxSize,height:X.checkboxSize,direction:"ltr",backgroundColor:X.colorBgContainer,border:`${X.lineWidth}px ${X.lineType} ${X.colorBorder}`,borderRadius:X.borderRadiusSM,borderCollapse:"separate",transition:`all ${X.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:X.checkboxSize/14*5,height:X.checkboxSize/14*8,border:`${X.lineWidthBold}px solid ${X.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${X.motionDurationFast} ${X.motionEaseInBack}, opacity ${X.motionDurationFast}`}},"& + span":{paddingInlineStart:X.paddingXS,paddingInlineEnd:X.paddingXS}})},{[`
${he}:not(${he}-disabled),
${fe}:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{borderColor:X.colorPrimary}},[`${he}:not(${he}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:X.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:X.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:X.colorPrimary,borderColor:X.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${X.motionDurationMid} ${X.motionEaseOutBack} ${X.motionDurationFast}`}}},[`
${he}-checked:not(${he}-disabled),
${fe}-checked:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:X.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:X.colorBgContainer,borderColor:X.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:X.fontSizeLG/2,height:X.fontSizeLG/2,backgroundColor:X.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${he}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:X.colorBgContainerDisabled,borderColor:X.colorBorder,"&:after":{borderColor:X.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:X.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:X.colorTextDisabled}}}]};function oe(X,fe){const he=(0,J.TS)(fe,{checkboxCls:`.${X}`,checkboxSize:fe.controlInteractiveSize});return[Le(he)]}qe.ZP=(0,ye.Z)("Checkbox",(X,fe)=>{let{prefixCls:he}=fe;return[oe(he,X)]})},91857:function(Ut,qe,y){"use strict";var A=y(59301),J=y(38819),ye=y(92310),Le=y.n(ye),oe=y(31561),X=y(70425),fe=y(18929),he=y(2738),o=y(79676),V=y(53487),F=y(92343),g=y(36355),c=y(20834),w=y(40875),b=y(88088),z=y(47211);const te=null,k=E=>{const{menu:W,arrow:ne,prefixCls:q,children:ge,trigger:Te,disabled:Se,dropdownRender:Fe,getPopupContainer:G,overlayClassName:I,rootClassName:$,open:R,onOpenChange:Z,visible:B,onVisibleChange:m,mouseEnterDelay:_=.15,mouseLeaveDelay:O=.1,autoAdjustOverflow:M=!0,placement:we="",overlay:Ee,transitionName:De}=E,{getPopupContainer:$e,getPrefixCls:Je,direction:Qe}=A.useContext(g.E_),et=A.useMemo(()=>{const Pe=Je();return De!==void 0?De:we.includes("top")?`${Pe}-slide-down`:`${Pe}-slide-up`},[Je,we,De]),St=A.useMemo(()=>we?we.includes("Center")?we.slice(0,we.indexOf("Center")):we:Qe==="rtl"?"bottomRight":"bottomLeft",[we,Qe]),Et=Je("dropdown",q),[Bt,ht]=(0,z.Z)(Et),[,Rt]=(0,b.Z)(),It=A.Children.only(ge),le=(0,F.Tm)(It,{className:Le()(`${Et}-trigger`,{[`${Et}-rtl`]:Qe==="rtl"},It.props.className),disabled:Se}),ve=Se?[]:Te;let N;ve&&ve.includes("contextMenu")&&(N=!0);const[ce,Ae]=(0,fe.Z)(!1,{value:R!=null?R:B}),L=(0,X.useEvent)(Pe=>{Z==null||Z(Pe),m==null||m(Pe),Ae(Pe)}),ee=Le()(I,$,ht,{[`${Et}-rtl`]:Qe==="rtl"}),ue=(0,o.Z)({arrowPointAtCenter:typeof ne=="object"&&ne.pointAtCenter,autoAdjustOverflow:M,offset:Rt.marginXXS,arrowWidth:ne?Rt.sizePopupArrow:0,borderRadius:Rt.borderRadius}),_e=A.useCallback(()=>{Ae(!1)},[]),ke=()=>{let Pe;return W!=null&&W.items?Pe=A.createElement(c.default,Object.assign({},W)):typeof Ee=="function"?Pe=Ee():Pe=Ee,Fe&&(Pe=Fe(Pe)),Pe=A.Children.only(typeof Pe=="string"?A.createElement("span",null,Pe):Pe),A.createElement(w.J,{prefixCls:`${Et}-menu`,expandIcon:A.createElement("span",{className:`${Et}-menu-submenu-arrow`},A.createElement(J.Z,{className:`${Et}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:_e,validator:We=>{let{mode:rt}=We}},Pe)};return Bt(A.createElement(oe.Z,Object.assign({alignPoint:N},(0,he.Z)(E,["rootClassName"]),{mouseEnterDelay:_,mouseLeaveDelay:O,visible:ce,builtinPlacements:ue,arrow:!!ne,overlayClassName:ee,prefixCls:Et,getPopupContainer:G||$e,transitionName:et,trigger:ve,overlay:ke,placement:St,onVisibleChange:L}),le))};function P(E){return Object.assign(Object.assign({},E),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const H=(0,V.Z)(k,"dropdown",E=>E,P),ae=E=>A.createElement(H,Object.assign({},E),A.createElement("span",null));k._InternalPanelDoNotUseOrYouWillBeFired=ae,qe.Z=k},38854:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return b}});var A=y(91857),J=y(92310),ye=y.n(J),Le=y(59301),oe=y(18785),X=y(3113),fe=y(36355),he=y(81327),o=y(33234),V=y(47211),F=function(z,te){var k={};for(var P in z)Object.prototype.hasOwnProperty.call(z,P)&&te.indexOf(P)<0&&(k[P]=z[P]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,P=Object.getOwnPropertySymbols(z);H<P.length;H++)te.indexOf(P[H])<0&&Object.prototype.propertyIsEnumerable.call(z,P[H])&&(k[P[H]]=z[P[H]]);return k};const g=z=>{const{getPopupContainer:te,getPrefixCls:k,direction:P}=Le.useContext(fe.E_),{prefixCls:H,type:ae="default",danger:E,disabled:W,loading:ne,onClick:q,htmlType:ge,children:Te,className:Se,menu:Fe,arrow:G,autoFocus:I,overlay:$,trigger:R,align:Z,open:B,onOpenChange:m,placement:_,getPopupContainer:O,href:M,icon:we=Le.createElement(oe.Z,null),title:Ee,buttonsRender:De=ke=>ke,mouseEnterDelay:$e,mouseLeaveDelay:Je,overlayClassName:Qe,overlayStyle:et,destroyPopupOnHide:St,dropdownRender:Et}=z,Bt=F(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"]),ht=k("dropdown",H),Rt=`${ht}-button`,[It,le]=(0,V.Z)(ht),ve={menu:Fe,arrow:G,autoFocus:I,align:Z,disabled:W,trigger:W?[]:R,onOpenChange:m,getPopupContainer:O||te,mouseEnterDelay:$e,mouseLeaveDelay:Je,overlayClassName:Qe,overlayStyle:et,destroyPopupOnHide:St,dropdownRender:Et},{compactSize:N,compactItemClassnames:ce}=(0,o.ri)(ht,P),Ae=ye()(Rt,ce,Se,le);"overlay"in z&&(ve.overlay=$),"open"in z&&(ve.open=B),"placement"in z?ve.placement=_:ve.placement=P==="rtl"?"bottomLeft":"bottomRight";const L=Le.createElement(X.ZP,{type:ae,danger:E,disabled:W,loading:ne,onClick:q,htmlType:ge,href:M,title:Ee},Te),ee=Le.createElement(X.ZP,{type:ae,danger:E,icon:we}),[ue,_e]=De([L,ee]);return It(Le.createElement(he.Z.Compact,Object.assign({className:Ae,size:N,block:!0},Bt),ue,Le.createElement(A.Z,Object.assign({},ve),_e)))};g.__ANT_BUTTON=!0;var c=g;const w=A.Z;w.Button=c;var b=w},47211:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return F}});var A=y(17313),J=y(13826),ye=y(92899),Le=y(29878),oe=y(19447),X=y(83116),fe=y(37613),o=g=>{const{componentCls:c,menuCls:w,colorError:b,colorTextLightSolid:z}=g,te=`${w}-item`;return{[`${c}, ${c}-menu-submenu`]:{[`${w} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:b,"&:hover":{color:z,backgroundColor:b}}}}}};const V=g=>{const{componentCls:c,menuCls:w,zIndexPopup:b,dropdownArrowDistance:z,sizePopupArrow:te,antCls:k,iconCls:P,motionDurationMid:H,dropdownPaddingVertical:ae,fontSize:E,dropdownEdgeChildPadding:W,colorTextDisabled:ne,fontSizeIcon:q,controlPaddingHorizontal:ge,colorBgElevated:Te}=g;return[{[c]:Object.assign(Object.assign({},(0,A.Wf)(g)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b,display:"block","&::before":{position:"absolute",insetBlock:-z+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${k}-btn`]:{[`& > ${P}-down, & > ${k}-btn-icon > ${P}-down`]:{fontSize:q}},[`${c}-wrap`]:{position:"relative",[`${k}-btn > ${P}-down`]:{fontSize:q},[`${P}-down::before`]:{transition:`transform ${H}`}},[`${c}-wrap-open`]:{[`${P}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${k}-slide-down-enter${k}-slide-down-enter-active${c}-placement-bottomLeft,
&${k}-slide-down-appear${k}-slide-down-appear-active${c}-placement-bottomLeft,
&${k}-slide-down-enter${k}-slide-down-enter-active${c}-placement-bottom,
&${k}-slide-down-appear${k}-slide-down-appear-active${c}-placement-bottom,
&${k}-slide-down-enter${k}-slide-down-enter-active${c}-placement-bottomRight,
&${k}-slide-down-appear${k}-slide-down-appear-active${c}-placement-bottomRight`]:{animationName:J.fJ},[`&${k}-slide-up-enter${k}-slide-up-enter-active${c}-placement-topLeft,
&${k}-slide-up-appear${k}-slide-up-appear-active${c}-placement-topLeft,
&${k}-slide-up-enter${k}-slide-up-enter-active${c}-placement-top,
&${k}-slide-up-appear${k}-slide-up-appear-active${c}-placement-top,
&${k}-slide-up-enter${k}-slide-up-enter-active${c}-placement-topRight,
&${k}-slide-up-appear${k}-slide-up-appear-active${c}-placement-topRight`]:{animationName:J.Qt},[`&${k}-slide-down-leave${k}-slide-down-leave-active${c}-placement-bottomLeft,
&${k}-slide-down-leave${k}-slide-down-leave-active${c}-placement-bottom,
&${k}-slide-down-leave${k}-slide-down-leave-active${c}-placement-bottomRight`]:{animationName:J.Uw},[`&${k}-slide-up-leave${k}-slide-up-leave-active${c}-placement-topLeft,
&${k}-slide-up-leave${k}-slide-up-leave-active${c}-placement-top,
&${k}-slide-up-leave${k}-slide-up-leave-active${c}-placement-topRight`]:{animationName:J.ly}})},(0,oe.ZP)(g,{colorBg:Te,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${c} ${w}`]:{position:"relative",margin:0},[`${w}-submenu-popup`]:{position:"absolute",zIndex:b,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${c}, ${c}-menu-submenu`]:{[w]:Object.assign(Object.assign({padding:W,listStyleType:"none",backgroundColor:Te,backgroundClip:"padding-box",borderRadius:g.borderRadiusLG,outline:"none",boxShadow:g.boxShadowSecondary},(0,A.Qy)(g)),{[`${w}-item-group-title`]:{padding:`${ae}px ${ge}px`,color:g.colorTextDescription,transition:`all ${H}`},[`${w}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${w}-item-icon`]:{minWidth:E,marginInlineEnd:g.marginXS,fontSize:g.fontSizeSM},[`${w}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${H}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${w}-item, ${w}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ae}px ${ge}px`,color:g.colorText,fontWeight:"normal",fontSize:E,lineHeight:g.lineHeight,cursor:"pointer",transition:`all ${H}`,borderRadius:g.borderRadiusSM,"&:hover, &-active":{backgroundColor:g.controlItemBgHover}},(0,A.Qy)(g)),{"&-selected":{color:g.colorPrimary,backgroundColor:g.controlItemBgActive,"&:hover, &-active":{backgroundColor:g.controlItemBgActiveHover}},"&-disabled":{color:ne,cursor:"not-allowed","&:hover":{color:ne,backgroundColor:Te,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${g.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:g.colorSplit},[`${c}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:g.paddingXS,[`${c}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:g.colorTextDescription,fontSize:q,fontStyle:"normal"}}}),[`${w}-item-group-list`]:{margin:`0 ${g.marginXS}px`,padding:0,listStyle:"none"},[`${w}-submenu-title`]:{paddingInlineEnd:ge+g.fontSizeSM},[`${w}-submenu-vertical`]:{position:"relative"},[`${w}-submenu${w}-submenu-disabled ${c}-menu-submenu-title`]:{[`&, ${c}-menu-submenu-arrow-icon`]:{color:ne,backgroundColor:Te,cursor:"not-allowed"}},[`${w}-submenu-selected ${c}-menu-submenu-title`]:{color:g.colorPrimary}})}},[(0,J.oN)(g,"slide-up"),(0,J.oN)(g,"slide-down"),(0,ye.Fm)(g,"move-up"),(0,ye.Fm)(g,"move-down"),(0,Le._y)(g,"zoom-big")]]};var F=(0,X.Z)("Dropdown",(g,c)=>{let{rootPrefixCls:w}=c;const{marginXXS:b,sizePopupArrow:z,controlHeight:te,fontSize:k,lineHeight:P,paddingXXS:H,componentCls:ae,borderRadiusLG:E}=g,W=(te-k*P)/2,{dropdownArrowOffset:ne}=(0,oe.fS)({contentRadius:E}),q=(0,fe.TS)(g,{menuCls:`${ae}-menu`,rootPrefixCls:w,dropdownArrowDistance:z/2+b,dropdownArrowOffset:ne,dropdownPaddingVertical:W,dropdownEdgeChildPadding:H});return[V(q),o(q)]},g=>({zIndexPopup:g.zIndexPopupBase+50}))},9432:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return P},n:function(){return te}});var A=y(19248),J=y(92310),ye=y.n(J),Le=y(93681),oe=y(8654),X=y(59301),fe=y(19080),he=y(36355),o=y(1684),V=y(19716),F=y(32441),g=y(33234),c=y(59412),w=y(9937);function b(H){return!!(H.prefix||H.suffix||H.allowClear)}var z=function(H,ae){var E={};for(var W in H)Object.prototype.hasOwnProperty.call(H,W)&&ae.indexOf(W)<0&&(E[W]=H[W]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,W=Object.getOwnPropertySymbols(H);ne<W.length;ne++)ae.indexOf(W[ne])<0&&Object.prototype.propertyIsEnumerable.call(H,W[ne])&&(E[W[ne]]=H[W[ne]]);return E};function te(H,ae){if(!H)return;H.focus(ae);const{cursor:E}=ae||{};if(E){const W=H.value.length;switch(E){case"start":H.setSelectionRange(0,0);break;case"end":H.setSelectionRange(W,W);break;default:H.setSelectionRange(0,W);break}}}var P=(0,X.forwardRef)((H,ae)=>{var E;const{prefixCls:W,bordered:ne=!0,status:q,size:ge,disabled:Te,onBlur:Se,onFocus:Fe,suffix:G,allowClear:I,addonAfter:$,addonBefore:R,className:Z,style:B,styles:m,rootClassName:_,onChange:O,classNames:M}=H,we=z(H,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ee,direction:De,input:$e}=X.useContext(he.E_),Je=Ee("input",W),Qe=(0,X.useRef)(null),[et,St]=(0,w.ZP)(Je),{compactSize:Et,compactItemClassnames:Bt}=(0,g.ri)(Je,De),ht=(0,V.Z)(rt=>{var Ze;return(Ze=ge!=null?ge:Et)!==null&&Ze!==void 0?Ze:rt}),Rt=X.useContext(o.Z),It=Te!=null?Te:Rt,{status:le,hasFeedback:ve,feedbackIcon:N}=(0,X.useContext)(F.aM),ce=(0,fe.F)(le,q),Ae=b(H)||!!ve,L=(0,X.useRef)(Ae);(0,X.useEffect)(()=>{var rt;Ae&&L.current,L.current=Ae},[Ae]);const ee=(0,c.Z)(Qe,!0),ue=rt=>{ee(),Se==null||Se(rt)},_e=rt=>{ee(),Fe==null||Fe(rt)},ke=rt=>{ee(),O==null||O(rt)},Pe=(ve||G)&&X.createElement(X.Fragment,null,G,ve&&N);let We;return typeof I=="object"&&(I!=null&&I.clearIcon)?We=I:I&&(We={clearIcon:X.createElement(A.Z,null)}),et(X.createElement(Le.default,Object.assign({ref:(0,oe.sQ)(ae,Qe),prefixCls:Je,autoComplete:$e==null?void 0:$e.autoComplete},we,{disabled:It,onBlur:ue,onFocus:_e,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),B),styles:Object.assign(Object.assign({},$e==null?void 0:$e.styles),m),suffix:Pe,allowClear:We,className:ye()(Z,_,Bt,$e==null?void 0:$e.className),onChange:ke,addonAfter:$&&X.createElement(g.BR,null,X.createElement(F.Ux,{override:!0,status:!0},$)),addonBefore:R&&X.createElement(g.BR,null,X.createElement(F.Ux,{override:!0,status:!0},R)),classNames:Object.assign(Object.assign(Object.assign({},M),$e==null?void 0:$e.classNames),{input:ye()({[`${Je}-sm`]:ht==="small",[`${Je}-lg`]:ht==="large",[`${Je}-rtl`]:De==="rtl",[`${Je}-borderless`]:!ne},!Ae&&(0,fe.Z)(Je,ce),M==null?void 0:M.input,(E=$e==null?void 0:$e.classNames)===null||E===void 0?void 0:E.input,St)}),classes:{affixWrapper:ye()({[`${Je}-affix-wrapper-sm`]:ht==="small",[`${Je}-affix-wrapper-lg`]:ht==="large",[`${Je}-affix-wrapper-rtl`]:De==="rtl",[`${Je}-affix-wrapper-borderless`]:!ne},(0,fe.Z)(`${Je}-affix-wrapper`,ce,ve),St),wrapper:ye()({[`${Je}-group-rtl`]:De==="rtl"},St),group:ye()({[`${Je}-group-wrapper-sm`]:ht==="small",[`${Je}-group-wrapper-lg`]:ht==="large",[`${Je}-group-wrapper-rtl`]:De==="rtl",[`${Je}-group-wrapper-disabled`]:It},(0,fe.Z)(`${Je}-group-wrapper`,ce,ve),St)}})))})},1643:function(Ut,qe,y){"use strict";var A=y(19248),J=y(92310),ye=y.n(J),Le=y(9296),oe=y(59301),X=y(19080),fe=y(36355),he=y(1684),o=y(19716),V=y(32441),F=y(9432),g=y(9937),c=function(b,z){var te={};for(var k in b)Object.prototype.hasOwnProperty.call(b,k)&&z.indexOf(k)<0&&(te[k]=b[k]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,k=Object.getOwnPropertySymbols(b);P<k.length;P++)z.indexOf(k[P])<0&&Object.prototype.propertyIsEnumerable.call(b,k[P])&&(te[k[P]]=b[k[P]]);return te};const w=(0,oe.forwardRef)((b,z)=>{const{prefixCls:te,bordered:k=!0,size:P,disabled:H,status:ae,allowClear:E,showCount:W,classNames:ne,rootClassName:q,className:ge}=b,Te=c(b,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Se,direction:Fe}=oe.useContext(fe.E_),G=(0,o.Z)(P),I=oe.useContext(he.Z),$=H!=null?H:I,{status:R,hasFeedback:Z,feedbackIcon:B}=oe.useContext(V.aM),m=(0,X.F)(R,ae),_=oe.useRef(null);oe.useImperativeHandle(z,()=>{var De;return{resizableTextArea:(De=_.current)===null||De===void 0?void 0:De.resizableTextArea,focus:$e=>{var Je,Qe;(0,F.n)((Qe=(Je=_.current)===null||Je===void 0?void 0:Je.resizableTextArea)===null||Qe===void 0?void 0:Qe.textArea,$e)},blur:()=>{var $e;return($e=_.current)===null||$e===void 0?void 0:$e.blur()}}});const O=Se("input",te);let M;typeof E=="object"&&(E!=null&&E.clearIcon)?M=E:E&&(M={clearIcon:oe.createElement(A.Z,null)});const[we,Ee]=(0,g.ZP)(O);return we(oe.createElement(Le.default,Object.assign({},Te,{disabled:$,allowClear:M,className:ye()(ge,q),classes:{affixWrapper:ye()(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:Fe==="rtl",[`${O}-affix-wrapper-borderless`]:!k,[`${O}-affix-wrapper-sm`]:G==="small",[`${O}-affix-wrapper-lg`]:G==="large",[`${O}-textarea-show-count`]:W},(0,X.Z)(`${O}-affix-wrapper`,m),Ee)},classNames:Object.assign(Object.assign({},ne),{textarea:ye()({[`${O}-borderless`]:!k,[`${O}-sm`]:G==="small",[`${O}-lg`]:G==="large"},(0,X.Z)(O,m),Ee,ne==null?void 0:ne.textarea)}),prefixCls:O,suffix:Z&&oe.createElement("span",{className:`${O}-textarea-suffix`},B),showCount:W,ref:_})))});qe.Z=w},59412:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return J}});var A=y(59301);function J(ye,Le){const oe=(0,A.useRef)([]),X=()=>{oe.current.push(setTimeout(()=>{var fe,he,o,V;!((fe=ye.current)===null||fe===void 0)&&fe.input&&((he=ye.current)===null||he===void 0?void 0:he.input.getAttribute("type"))==="password"&&(!((o=ye.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((V=ye.current)===null||V===void 0||V.input.removeAttribute("value"))}))};return(0,A.useEffect)(()=>(Le&&X(),()=>oe.current.forEach(fe=>{fe&&clearTimeout(fe)})),[]),X}},92832:function(Ut,qe,y){"use strict";y.d(qe,{default:function(){return G}});var A=y(92310),J=y.n(A),ye=y(59301),Le=y(36355),oe=y(32441),X=y(9937),he=I=>{const{getPrefixCls:$,direction:R}=(0,ye.useContext)(Le.E_),{prefixCls:Z,className:B}=I,m=$("input-group",Z),_=$("input"),[O,M]=(0,X.ZP)(_),we=J()(m,{[`${m}-lg`]:I.size==="large",[`${m}-sm`]:I.size==="small",[`${m}-compact`]:I.compact,[`${m}-rtl`]:R==="rtl"},M,B),Ee=(0,ye.useContext)(oe.aM),De=(0,ye.useMemo)(()=>Object.assign(Object.assign({},Ee),{isFormItemInput:!1}),[Ee]);return O(ye.createElement("span",{className:we,style:I.style,onMouseEnter:I.onMouseEnter,onMouseLeave:I.onMouseLeave,onFocus:I.onFocus,onBlur:I.onBlur},ye.createElement(oe.aM.Provider,{value:De},I.children)))},o=y(9432),V=y(73331),F=y(15277),g=y(2738),c=y(8654),w=y(59412),b=function(I,$){var R={};for(var Z in I)Object.prototype.hasOwnProperty.call(I,Z)&&$.indexOf(Z)<0&&(R[Z]=I[Z]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,Z=Object.getOwnPropertySymbols(I);B<Z.length;B++)$.indexOf(Z[B])<0&&Object.prototype.propertyIsEnumerable.call(I,Z[B])&&(R[Z[B]]=I[Z[B]]);return R};const z=I=>I?ye.createElement(F.Z,null):ye.createElement(V.Z,null),te={click:"onClick",hover:"onMouseOver"};var P=ye.forwardRef((I,$)=>{const{visibilityToggle:R=!0}=I,Z=typeof R=="object"&&R.visible!==void 0,[B,m]=(0,ye.useState)(()=>Z?R.visible:!1),_=(0,ye.useRef)(null);ye.useEffect(()=>{Z&&m(R.visible)},[Z,R]);const O=(0,w.Z)(_),M=()=>{const{disabled:It}=I;It||(B&&O(),m(le=>{var ve;const N=!le;return typeof R=="object"&&((ve=R.onVisibleChange)===null||ve===void 0||ve.call(R,N)),N}))},we=It=>{const{action:le="click",iconRender:ve=z}=I,N=te[le]||"",ce=ve(B),Ae={[N]:M,className:`${It}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault()},onMouseUp:L=>{L.preventDefault()}};return ye.cloneElement(ye.isValidElement(ce)?ce:ye.createElement("span",null,ce),Ae)},{className:Ee,prefixCls:De,inputPrefixCls:$e,size:Je}=I,Qe=b(I,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:et}=ye.useContext(Le.E_),St=et("input",$e),Et=et("input-password",De),Bt=R&&we(Et),ht=J()(Et,Ee,{[`${Et}-${Je}`]:!!Je}),Rt=Object.assign(Object.assign({},(0,g.Z)(Qe,["suffix","iconRender","visibilityToggle"])),{type:B?"text":"password",className:ht,prefixCls:St,suffix:Bt});return Je&&(Rt.size=Je),ye.createElement(o.Z,Object.assign({ref:(0,c.sQ)($,_)},Rt))}),H=y(47472),ae=y(92343),E=y(3113),W=y(19716),ne=y(33234),q=function(I,$){var R={};for(var Z in I)Object.prototype.hasOwnProperty.call(I,Z)&&$.indexOf(Z)<0&&(R[Z]=I[Z]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,Z=Object.getOwnPropertySymbols(I);B<Z.length;B++)$.indexOf(Z[B])<0&&Object.prototype.propertyIsEnumerable.call(I,Z[B])&&(R[Z[B]]=I[Z[B]]);return R},Te=ye.forwardRef((I,$)=>{const{prefixCls:R,inputPrefixCls:Z,className:B,size:m,suffix:_,enterButton:O=!1,addonAfter:M,loading:we,disabled:Ee,onSearch:De,onChange:$e,onCompositionStart:Je,onCompositionEnd:Qe}=I,et=q(I,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:Et}=ye.useContext(Le.E_),Bt=ye.useRef(!1),ht=St("input-search",R),Rt=St("input",Z),{compactSize:It}=(0,ne.ri)(ht,Et),le=(0,W.Z)(Ge=>{var mt;return(mt=m!=null?m:It)!==null&&mt!==void 0?mt:Ge}),ve=ye.useRef(null),N=Ge=>{Ge&&Ge.target&&Ge.type==="click"&&De&&De(Ge.target.value,Ge,{source:"clear"}),$e&&$e(Ge)},ce=Ge=>{var mt;document.activeElement===((mt=ve.current)===null||mt===void 0?void 0:mt.input)&&Ge.preventDefault()},Ae=Ge=>{var mt,At;De&&De((At=(mt=ve.current)===null||mt===void 0?void 0:mt.input)===null||At===void 0?void 0:At.value,Ge,{source:"input"})},L=Ge=>{Bt.current||we||Ae(Ge)},ee=typeof O=="boolean"?ye.createElement(H.Z,null):null,ue=`${ht}-button`;let _e;const ke=O||{},Pe=ke.type&&ke.type.__ANT_BUTTON===!0;Pe||ke.type==="button"?_e=(0,ae.Tm)(ke,Object.assign({onMouseDown:ce,onClick:Ge=>{var mt,At;(At=(mt=ke==null?void 0:ke.props)===null||mt===void 0?void 0:mt.onClick)===null||At===void 0||At.call(mt,Ge),Ae(Ge)},key:"enterButton"},Pe?{className:ue,size:le}:{})):_e=ye.createElement(E.ZP,{className:ue,type:O?"primary":void 0,size:le,disabled:Ee,key:"enterButton",onMouseDown:ce,onClick:Ae,loading:we,icon:ee},O),M&&(_e=[_e,(0,ae.Tm)(M,{key:"addonAfter"})]);const We=J()(ht,{[`${ht}-rtl`]:Et==="rtl",[`${ht}-${le}`]:!!le,[`${ht}-with-button`]:!!O},B),rt=Ge=>{Bt.current=!0,Je==null||Je(Ge)},Ze=Ge=>{Bt.current=!1,Qe==null||Qe(Ge)};return ye.createElement(o.Z,Object.assign({ref:(0,c.sQ)(ve,$),onPressEnter:L},et,{size:le,onCompositionStart:rt,onCompositionEnd:Ze,prefixCls:Rt,addonAfter:_e,suffix:_,onChange:N,className:We,disabled:Ee}))}),Se=y(1643);const Fe=o.Z;Fe.Group=he,Fe.Search=Te,Fe.TextArea=Se.Z,Fe.Password=P;var G=Fe},9937:function(Ut,qe,y){"use strict";y.d(qe,{M1:function(){return fe},TM:function(){return ae},Xy:function(){return he},bi:function(){return F},e5:function(){return H},ik:function(){return g},nz:function(){return oe},pU:function(){return X},s7:function(){return c},x0:function(){return V}});var A=y(17313),J=y(74207),ye=y(37613),Le=y(83116);const oe=E=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:E,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),X=E=>({borderColor:E.hoverBorderColor}),fe=E=>({borderColor:E.activeBorderColor,boxShadow:E.activeShadow,outline:0}),he=E=>({color:E.colorTextDisabled,backgroundColor:E.colorBgContainerDisabled,borderColor:E.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},X((0,ye.TS)(E,{hoverBorderColor:E.colorBorder})))}),o=E=>{const{paddingBlockLG:W,fontSizeLG:ne,lineHeightLG:q,borderRadiusLG:ge,paddingInlineLG:Te}=E;return{padding:`${W}px ${Te}px`,fontSize:ne,lineHeight:q,borderRadius:ge}},V=E=>({padding:`${E.paddingBlockSM}px ${E.paddingInlineSM}px`,borderRadius:E.borderRadiusSM}),F=(E,W)=>{const{componentCls:ne,colorError:q,colorWarning:ge,errorActiveShadow:Te,warningActiveShadow:Se,colorErrorBorderHover:Fe,colorWarningBorderHover:G}=E;return{[`&-status-error:not(${W}-disabled):not(${W}-borderless)${W}`]:{borderColor:q,"&:hover":{borderColor:Fe},"&:focus, &-focused":Object.assign({},fe((0,ye.TS)(E,{activeBorderColor:q,activeShadow:Te}))),[`${ne}-prefix, ${ne}-suffix`]:{color:q}},[`&-status-warning:not(${W}-disabled):not(${W}-borderless)${W}`]:{borderColor:ge,"&:hover":{borderColor:G},"&:focus, &-focused":Object.assign({},fe((0,ye.TS)(E,{activeBorderColor:ge,activeShadow:Se}))),[`${ne}-prefix, ${ne}-suffix`]:{color:ge}}}},g=E=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${E.paddingBlock}px ${E.paddingInline}px`,color:E.colorText,fontSize:E.fontSize,lineHeight:E.lineHeight,backgroundColor:E.colorBgContainer,backgroundImage:"none",borderWidth:E.lineWidth,borderStyle:E.lineType,borderColor:E.colorBorder,borderRadius:E.borderRadius,transition:`all ${E.motionDurationMid}`},oe(E.colorTextPlaceholder)),{"&:hover":Object.assign({},X(E)),"&:focus, &-focused":Object.assign({},fe(E)),"&-disabled, &[disabled]":Object.assign({},he(E)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:E.controlHeight,lineHeight:E.lineHeight,verticalAlign:"bottom",transition:`all ${E.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(E)),"&-sm":Object.assign({},V(E)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),c=E=>{const{componentCls:W,antCls:ne}=E;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:E.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${W}, &-lg > ${W}-group-addon`]:Object.assign({},o(E)),[`&-sm ${W}, &-sm > ${W}-group-addon`]:Object.assign({},V(E)),[`&-lg ${ne}-select-single ${ne}-select-selector`]:{height:E.controlHeightLG},[`&-sm ${ne}-select-single ${ne}-select-selector`]:{height:E.controlHeightSM},[`> ${W}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${W}-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 ${E.paddingInline}px`,color:E.colorText,fontWeight:"normal",fontSize:E.fontSize,textAlign:"center",backgroundColor:E.colorFillAlter,border:`${E.lineWidth}px ${E.lineType} ${E.colorBorder}`,borderRadius:E.borderRadius,transition:`all ${E.motionDurationSlow}`,lineHeight:1,[`${ne}-select`]:{margin:`-${E.paddingBlock+1}px -${E.paddingInline}px`,[`&${ne}-select-single:not(${ne}-select-customize-input)`]:{[`${ne}-select-selector`]:{backgroundColor:"inherit",border:`${E.lineWidth}px ${E.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ne}-select-selector`]:{color:E.colorPrimary}}},[`${ne}-cascader-picker`]:{margin:`-9px -${E.paddingInline}px`,backgroundColor:"transparent",[`${ne}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${W}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${W}-search-with-button &`]:{zIndex:0}}},[`> ${W}:first-child, ${W}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ne}-select ${ne}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${W}-affix-wrapper`]:{[`&:not(:first-child) ${W}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${W}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${W}:last-child, ${W}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ne}-select ${ne}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${W}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${W}-search &`]:{borderStartStartRadius:E.borderRadius,borderEndStartRadius:E.borderRadius}},[`&:not(:first-child), ${W}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${W}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,A.dF)()),{[`${W}-group-addon, ${W}-group-wrap, > ${W}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:E.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${W}-affix-wrapper,
& > ${W}-number-affix-wrapper,
& > ${ne}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-E.lineWidth,borderInlineEndWidth:E.lineWidth},[`${W}`]:{float:"none"},[`& > ${ne}-select > ${ne}-select-selector,
& > ${ne}-select-auto-complete ${W},
& > ${ne}-cascader-picker ${W},
& > ${W}-group-wrapper ${W}`]:{borderInlineEndWidth:E.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ne}-select-focused`]:{zIndex:1},[`& > ${ne}-select > ${ne}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${ne}-select:first-child > ${ne}-select-selector,
& > ${ne}-select-auto-complete:first-child ${W},
& > ${ne}-cascader-picker:first-child ${W}`]:{borderStartStartRadius:E.borderRadius,borderEndStartRadius:E.borderRadius},[`& > *:last-child,
& > ${ne}-select:last-child > ${ne}-select-selector,
& > ${ne}-cascader-picker:last-child ${W},
& > ${ne}-cascader-picker-focused:last-child ${W}`]:{borderInlineEndWidth:E.lineWidth,borderStartEndRadius:E.borderRadius,borderEndEndRadius:E.borderRadius},[`& > ${ne}-select-auto-complete ${W}`]:{verticalAlign:"top"},[`${W}-group-wrapper + ${W}-group-wrapper`]:{marginInlineStart:-E.lineWidth,[`${W}-affix-wrapper`]:{borderRadius:0}},[`${W}-group-wrapper:not(:last-child)`]:{[`&${W}-search > ${W}-group`]:{[`& > ${W}-group-addon > ${W}-search-button`]:{borderRadius:0},[`& > ${W}`]:{borderStartStartRadius:E.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:E.borderRadius}}}})}},w=E=>{const{componentCls:W,controlHeightSM:ne,lineWidth:q}=E,Te=(ne-q*2-16)/2;return{[W]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(E)),g(E)),F(E,W)),{'&[type="color"]':{height:E.controlHeight,[`&${W}-lg`]:{height:E.controlHeightLG},[`&${W}-sm`]:{height:ne,paddingTop:Te,paddingBottom:Te}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},b=E=>{const{componentCls:W}=E;return{[`${W}-clear-icon`]:{margin:0,color:E.colorTextQuaternary,fontSize:E.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${E.motionDurationSlow}`,"&:hover":{color:E.colorTextTertiary},"&:active":{color:E.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${E.inputAffixPadding}px`}}}},z=E=>{const{componentCls:W,inputAffixPadding:ne,colorTextDescription:q,motionDurationSlow:ge,colorIcon:Te,colorIconHover:Se,iconCls:Fe}=E;return{[`${W}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g(E)),{display:"inline-flex",[`&:not(${W}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},X(E)),{zIndex:1,[`${W}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${W}[disabled]`]:{background:"transparent"}},[`> input${W}`]:{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"'},[`${W}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:E.paddingXS}},"&-show-count-suffix":{color:q},"&-show-count-has-suffix":{marginInlineEnd:E.paddingXXS},"&-prefix":{marginInlineEnd:ne},"&-suffix":{marginInlineStart:ne}}}),b(E)),{[`${Fe}${W}-password-icon`]:{color:Te,cursor:"pointer",transition:`all ${ge}`,"&:hover":{color:Se}}}),F(E,`${W}-affix-wrapper`))}},te=E=>{const{componentCls:W,colorError:ne,colorWarning:q,borderRadiusLG:ge,borderRadiusSM:Te}=E;return{[`${W}-group`]:Object.assign(Object.assign(Object.assign({},(0,A.Wf)(E)),c(E)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${W}-group-addon`]:{borderRadius:ge,fontSize:E.fontSizeLG}},"&-sm":{[`${W}-group-addon`]:{borderRadius:Te}},"&-status-error":{[`${W}-group-addon`]:{color:ne,borderColor:ne}},"&-status-warning":{[`${W}-group-addon`]:{color:q,borderColor:q}},"&-disabled":{[`${W}-group-addon`]:Object.assign({},he(E))},[`&:not(${W}-compact-first-item):not(${W}-compact-last-item)${W}-compact-item`]:{[`${W}, ${W}-group-addon`]:{borderRadius:0}},[`&:not(${W}-compact-last-item)${W}-compact-first-item`]:{[`${W}, ${W}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${W}-compact-first-item)${W}-compact-last-item`]:{[`${W}, ${W}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},k=E=>{const{componentCls:W,antCls:ne}=E,q=`${W}-search`;return{[q]:{[`${W}`]:{"&:hover, &:focus":{borderColor:E.colorPrimaryHover,[`+ ${W}-group-addon ${q}-button:not(${ne}-btn-primary)`]:{borderInlineStartColor:E.colorPrimaryHover}}},[`${W}-affix-wrapper`]:{borderRadius:0},[`${W}-lg`]:{lineHeight:E.lineHeightLG-2e-4},[`> ${W}-group`]:{[`> ${W}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${q}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:E.borderRadius,borderEndEndRadius:E.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${q}-button:not(${ne}-btn-primary)`]:{color:E.colorTextDescription,"&:hover":{color:E.colorPrimaryHover},"&:active":{color:E.colorPrimaryActive},[`&${ne}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${q}-button`]:{height:E.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${q}-button`]:{height:E.controlHeightLG},[`&-small ${q}-button`]:{height:E.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${W}-compact-item`]:{[`&:not(${W}-compact-last-item)`]:{[`${W}-group-addon`]:{[`${W}-search-button`]:{marginInlineEnd:-E.lineWidth,borderRadius:0}}},[`&:not(${W}-compact-first-item)`]:{[`${W},${W}-affix-wrapper`]:{borderRadius:0}},[`> ${W}-group-addon ${W}-search-button,
> ${W},
${W}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${W}-affix-wrapper-focused`]:{zIndex:2}}}}},P=E=>{const{componentCls:W,paddingLG:ne}=E,q=`${W}-textarea`;return{[q]:{position:"relative","&-show-count":{[`> ${W}`]:{height:"100%"},[`${W}-data-count`]:{position:"absolute",bottom:-E.fontSize*E.lineHeight,insetInlineEnd:0,color:E.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${W}`]:{paddingInlineEnd:ne}},[`&-affix-wrapper${q}-has-feedback`]:{[`${W}`]:{paddingInlineEnd:ne}},[`&-affix-wrapper${W}-affix-wrapper`]:{padding:0,[`> textarea${W}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${W}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${W}-clear-icon`]:{position:"absolute",insetInlineEnd:E.paddingXS,insetBlockStart:E.paddingXS},[`${q}-suffix`]:{position:"absolute",top:0,insetInlineEnd:E.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function H(E){return(0,ye.TS)(E,{inputAffixPadding:E.paddingXXS})}const ae=E=>{const{controlHeight:W,fontSize:ne,lineHeight:q,lineWidth:ge,controlHeightSM:Te,controlHeightLG:Se,fontSizeLG:Fe,lineHeightLG:G,paddingSM:I,controlPaddingHorizontalSM:$,controlPaddingHorizontal:R,colorFillAlter:Z,colorPrimaryHover:B,controlOutlineWidth:m,controlOutline:_,colorErrorOutline:O,colorWarningOutline:M}=E;return{paddingBlock:Math.max(Math.round((W-ne*q)/2*10)/10-ge,3),paddingBlockSM:Math.max(Math.round((Te-ne*q)/2*10)/10-ge,0),paddingBlockLG:Math.ceil((Se-Fe*G)/2*10)/10-ge,paddingInline:I-ge,paddingInlineSM:$-ge,paddingInlineLG:R-ge,addonBg:Z,activeBorderColor:B,hoverBorderColor:B,activeShadow:`0 0 0 ${m}px ${_}`,errorActiveShadow:`0 0 0 ${m}px ${O}`,warningActiveShadow:`0 0 0 ${m}px ${M}`}};qe.ZP=(0,Le.Z)("Input",E=>{const W=(0,ye.TS)(E,H(E));return[w(W),P(W),z(W),te(W),k(W),(0,J.c)(W)]},ae)},45818:function(Ut,qe,y){"use strict";y.d(qe,{D:function(){return H},Z:function(){return W}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(q,ge){return J.createElement(oe.Z,(0,A.Z)({},q,{ref:ge,icon:Le}))},fe=J.forwardRef(X),he=fe,o=y(33853),V=y(38819),F=y(92310),g=y.n(F),c=y(2738),b=ne=>!isNaN(parseFloat(ne))&&isFinite(ne),z=y(36355),te=y(84966),k=function(ne,q){var ge={};for(var Te in ne)Object.prototype.hasOwnProperty.call(ne,Te)&&q.indexOf(Te)<0&&(ge[Te]=ne[Te]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Te=Object.getOwnPropertySymbols(ne);Se<Te.length;Se++)q.indexOf(Te[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,Te[Se])&&(ge[Te[Se]]=ne[Te[Se]]);return ge};const P={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},H=J.createContext({}),ae=(()=>{let ne=0;return function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ne+=1,`${q}${ne}`}})();var W=J.forwardRef((ne,q)=>{const{prefixCls:ge,className:Te,trigger:Se,children:Fe,defaultCollapsed:G=!1,theme:I="dark",style:$={},collapsible:R=!1,reverseArrow:Z=!1,width:B=200,collapsedWidth:m=80,zeroWidthTriggerStyle:_,breakpoint:O,onCollapse:M,onBreakpoint:we}=ne,Ee=k(ne,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:De}=(0,J.useContext)(te.Gs),[$e,Je]=(0,J.useState)("collapsed"in ne?ne.collapsed:G),[Qe,et]=(0,J.useState)(!1);(0,J.useEffect)(()=>{"collapsed"in ne&&Je(ne.collapsed)},[ne.collapsed]);const St=(le,ve)=>{"collapsed"in ne||Je(le),M==null||M(le,ve)},Et=(0,J.useRef)();Et.current=le=>{et(le.matches),we==null||we(le.matches),$e!==le.matches&&St(le.matches,"responsive")},(0,J.useEffect)(()=>{function le(N){return Et.current(N)}let ve;if(typeof window!="undefined"){const{matchMedia:N}=window;if(N&&O&&O in P){ve=N(`(max-width: ${P[O]})`);try{ve.addEventListener("change",le)}catch(ce){ve.addListener(le)}le(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",le)}catch(N){ve==null||ve.removeListener(le)}}},[O]),(0,J.useEffect)(()=>{const le=ae("ant-sider-");return De.addSider(le),()=>De.removeSider(le)},[]);const Bt=()=>{St(!$e,"clickTrigger")},{getPrefixCls:ht}=(0,J.useContext)(z.E_),Rt=()=>{const le=ht("layout-sider",ge),ve=(0,c.Z)(Ee,["collapsed"]),N=$e?m:B,ce=b(N)?`${N}px`:String(N),Ae=parseFloat(String(m||0))===0?J.createElement("span",{onClick:Bt,className:g()(`${le}-zero-width-trigger`,`${le}-zero-width-trigger-${Z?"right":"left"}`),style:_},Se||J.createElement(he,null)):null,ue={expanded:Z?J.createElement(V.Z,null):J.createElement(o.Z,null),collapsed:Z?J.createElement(o.Z,null):J.createElement(V.Z,null)}[$e?"collapsed":"expanded"],_e=Se!==null?Ae||J.createElement("div",{className:`${le}-trigger`,onClick:Bt,style:{width:ce}},Se||ue):null,ke=Object.assign(Object.assign({},$),{flex:`0 0 ${ce}`,maxWidth:ce,minWidth:ce,width:ce}),Pe=g()(le,`${le}-${I}`,{[`${le}-collapsed`]:!!$e,[`${le}-has-trigger`]:R&&Se!==null&&!Ae,[`${le}-below`]:!!Qe,[`${le}-zero-width`]:parseFloat(ce)===0},Te);return J.createElement("aside",Object.assign({className:Pe},ve,{style:ke,ref:q}),J.createElement("div",{className:`${le}-children`},Fe),R||Qe&&Ae?_e:null)},It=J.useMemo(()=>({siderCollapsed:$e}),[$e]);return J.createElement(H.Provider,{value:It},Rt())})},84966:function(Ut,qe,y){"use strict";y.d(qe,{VY:function(){return H},$_:function(){return P},h4:function(){return k},Gs:function(){return c},ZP:function(){return ae}});var A=y(19127),J=y(92310),ye=y.n(J),Le=y(2738),oe=y(59301),X=y(36355),fe=y(83116),o=E=>{const{componentCls:W,bodyBg:ne,lightSiderBg:q,lightTriggerBg:ge,lightTriggerColor:Te}=E;return{[`${W}-sider-light`]:{background:q,[`${W}-sider-trigger`]:{color:Te,background:ge},[`${W}-sider-zero-width-trigger`]:{color:Te,background:ge,border:`1px solid ${ne}`,borderInlineStart:0}}}};const V=E=>{const{antCls:W,componentCls:ne,colorText:q,triggerColor:ge,footerBg:Te,triggerBg:Se,headerHeight:Fe,headerPadding:G,headerColor:I,footerPadding:$,triggerHeight:R,zeroTriggerHeight:Z,zeroTriggerWidth:B,motionDurationMid:m,motionDurationSlow:_,fontSize:O,borderRadius:M,bodyBg:we,headerBg:Ee,siderBg:De}=E;return{[ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:we,"&, *":{boxSizing:"border-box"},[`&${ne}-has-sider`]:{flexDirection:"row",[`> ${ne}, > ${ne}-content`]:{width:0}},[`${ne}-header, &${ne}-footer`]:{flex:"0 0 auto"},[`${ne}-sider`]:{position:"relative",minWidth:0,background:De,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${W}-menu${W}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:R},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:R,color:ge,lineHeight:`${R}px`,textAlign:"center",background:Se,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Fe,insetInlineEnd:-B,zIndex:1,width:B,height:Z,color:ge,fontSize:E.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:De,borderStartStartRadius:0,borderStartEndRadius:M,borderEndEndRadius:M,borderEndStartRadius:0,cursor:"pointer",transition:`background ${_} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${_}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-B,borderStartStartRadius:M,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:M}}}}},o(E)),{"&-rtl":{direction:"rtl"}}),[`${ne}-header`]:{height:Fe,padding:G,color:I,lineHeight:`${Fe}px`,background:Ee,[`${W}-menu`]:{lineHeight:"inherit"}},[`${ne}-footer`]:{padding:$,color:q,fontSize:O,background:Te},[`${ne}-content`]:{flex:"auto",minHeight:0}}};var F=(0,fe.Z)("Layout",E=>[V(E)],E=>{const{colorBgLayout:W,controlHeight:ne,controlHeightLG:q,colorText:ge,controlHeightSM:Te,marginXXS:Se,colorTextLightSolid:Fe,colorBgContainer:G}=E,I=q*1.25;return{colorBgHeader:"#001529",colorBgBody:W,colorBgTrigger:"#002140",bodyBg:W,headerBg:"#001529",headerHeight:ne*2,headerPadding:`0 ${I}px`,headerColor:ge,footerPadding:`${Te}px ${I}px`,footerBg:W,siderBg:"#001529",triggerHeight:q+Se*2,triggerBg:"#002140",triggerColor:Fe,zeroTriggerWidth:q,zeroTriggerHeight:q,lightSiderBg:G,lightTriggerBg:G,lightTriggerColor:ge}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),g=function(E,W){var ne={};for(var q in E)Object.prototype.hasOwnProperty.call(E,q)&&W.indexOf(q)<0&&(ne[q]=E[q]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,q=Object.getOwnPropertySymbols(E);ge<q.length;ge++)W.indexOf(q[ge])<0&&Object.prototype.propertyIsEnumerable.call(E,q[ge])&&(ne[q[ge]]=E[q[ge]]);return ne};const c=oe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function w(E){let{suffixCls:W,tagName:ne,displayName:q}=E;return ge=>oe.forwardRef((Se,Fe)=>oe.createElement(ge,Object.assign({ref:Fe,suffixCls:W,tagName:ne},Se)))}const b=oe.forwardRef((E,W)=>{const{prefixCls:ne,suffixCls:q,className:ge,tagName:Te}=E,Se=g(E,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Fe}=oe.useContext(X.E_),G=Fe("layout",ne),[I,$]=F(G),R=q?`${G}-${q}`:G;return I(oe.createElement(Te,Object.assign({className:ye()(ne||R,ge,$),ref:W},Se)))}),z=oe.forwardRef((E,W)=>{const{direction:ne}=oe.useContext(X.E_),[q,ge]=oe.useState([]),{prefixCls:Te,className:Se,rootClassName:Fe,children:G,hasSider:I,tagName:$,style:R}=E,Z=g(E,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),B=(0,Le.Z)(Z,["suffixCls"]),{getPrefixCls:m,layout:_}=oe.useContext(X.E_),O=m("layout",Te),[M,we]=F(O),Ee=ye()(O,{[`${O}-has-sider`]:typeof I=="boolean"?I:q.length>0,[`${O}-rtl`]:ne==="rtl"},_==null?void 0:_.className,Se,Fe,we),De=oe.useMemo(()=>({siderHook:{addSider:$e=>{ge(Je=>[].concat((0,A.Z)(Je),[$e]))},removeSider:$e=>{ge(Je=>Je.filter(Qe=>Qe!==$e))}}}),[]);return M(oe.createElement(c.Provider,{value:De},oe.createElement($,Object.assign({ref:W,className:Ee,style:Object.assign(Object.assign({},_==null?void 0:_.style),R)},B),G)))}),te=w({tagName:"div",displayName:"Layout"})(z),k=w({suffixCls:"header",tagName:"header",displayName:"Header"})(b),P=w({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(b),H=w({suffixCls:"content",tagName:"main",displayName:"Content"})(b);var ae=te},40875:function(Ut,qe,y){"use strict";y.d(qe,{J:function(){return X}});var A=y(59301),J=y(33234),ye=y(70425),Le=function(fe,he){var o={};for(var V in fe)Object.prototype.hasOwnProperty.call(fe,V)&&he.indexOf(V)<0&&(o[V]=fe[V]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,V=Object.getOwnPropertySymbols(fe);F<V.length;F++)he.indexOf(V[F])<0&&Object.prototype.propertyIsEnumerable.call(fe,V[F])&&(o[V[F]]=fe[V[F]]);return o};const oe=A.createContext(null),X=A.forwardRef((fe,he)=>{const{children:o}=fe,V=Le(fe,["children"]),F=A.useContext(oe),g=A.useMemo(()=>Object.assign(Object.assign({},F),V),[F,V.prefixCls,V.mode,V.selectable]);return A.createElement(oe.Provider,{value:g},A.createElement(J.BR,null,(0,ye.supportNodeRef)(o)?A.cloneElement(o,{ref:he}):o))});qe.Z=oe},20834:function(Ut,qe,y){"use strict";y.d(qe,{default:function(){return It}});var A=y(15285),J=y(59301),ye=y(45818),Le=y(92310),oe=y.n(Le),X=y(36355),fe=function(le,ve){var N={};for(var ce in le)Object.prototype.hasOwnProperty.call(le,ce)&&ve.indexOf(ce)<0&&(N[ce]=le[ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(le);Ae<ce.length;Ae++)ve.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(le,ce[Ae])&&(N[ce[Ae]]=le[ce[Ae]]);return N},o=le=>{const{prefixCls:ve,className:N,dashed:ce}=le,Ae=fe(le,["prefixCls","className","dashed"]),{getPrefixCls:L}=J.useContext(X.E_),ee=L("menu",ve),ue=oe()({[`${ee}-item-divider-dashed`]:!!ce},N);return J.createElement(A.iz,Object.assign({className:ue},Ae))},V=y(11592),F=y(2738),g=y(6848),c=y(92343),b=(0,J.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=le=>{var ve;const{className:N,children:ce,icon:Ae,title:L,danger:ee}=le,{prefixCls:ue,firstLevel:_e,direction:ke,disableMenuItemTitleTooltip:Pe,inlineCollapsed:We}=J.useContext(b),rt=Lt=>{const Ht=J.createElement("span",{className:`${ue}-title-content`},ce);return(!Ae||(0,c.l$)(ce)&&ce.type==="span")&&ce&&Lt&&_e&&typeof ce=="string"?J.createElement("div",{className:`${ue}-inline-collapsed-noicon`},ce.charAt(0)):Ht},{siderCollapsed:Ze}=J.useContext(ye.D);let Ge=L;typeof L=="undefined"?Ge=_e?ce:"":L===!1&&(Ge="");const mt={title:Ge};!Ze&&!We&&(mt.title=null,mt.open=!1);const At=(0,V.Z)(ce).length;let _t=J.createElement(A.ck,Object.assign({},(0,F.Z)(le,["title","icon","danger"]),{className:oe()({[`${ue}-item-danger`]:ee,[`${ue}-item-only-child`]:(Ae?At+1:At)===1},N),title:typeof L=="string"?L:void 0}),(0,c.Tm)(Ae,{className:oe()((0,c.l$)(Ae)?(ve=Ae.props)===null||ve===void 0?void 0:ve.className:"",`${ue}-item-icon`)}),rt(We));return Pe||(_t=J.createElement(g.Z,Object.assign({},mt,{placement:ke==="rtl"?"left":"right",overlayClassName:`${ue}-inline-collapsed-tooltip`}),_t)),_t},P=le=>{var ve;const{popupClassName:N,icon:ce,title:Ae,theme:L}=le,ee=J.useContext(b),{prefixCls:ue,inlineCollapsed:_e,theme:ke}=ee,Pe=(0,A.Xl)();let We;if(!ce)We=_e&&!Pe.length&&Ae&&typeof Ae=="string"?J.createElement("div",{className:`${ue}-inline-collapsed-noicon`},Ae.charAt(0)):J.createElement("span",{className:`${ue}-title-content`},Ae);else{const Ze=(0,c.l$)(Ae)&&Ae.type==="span";We=J.createElement(J.Fragment,null,(0,c.Tm)(ce,{className:oe()((0,c.l$)(ce)?(ve=ce.props)===null||ve===void 0?void 0:ve.className:"",`${ue}-item-icon`)}),Ze?Ae:J.createElement("span",{className:`${ue}-title-content`},Ae))}const rt=J.useMemo(()=>Object.assign(Object.assign({},ee),{firstLevel:!1}),[ee]);return J.createElement(b.Provider,{value:rt},J.createElement(A.Wd,Object.assign({},(0,F.Z)(le,["icon"]),{title:We,popupClassName:oe()(ue,N,`${ue}-${L||ke}`)})))},H=y(18785),ae=y(70425),E=y(62892),W=y(40875),ne=function(le,ve){var N={};for(var ce in le)Object.prototype.hasOwnProperty.call(le,ce)&&ve.indexOf(ce)<0&&(N[ce]=le[ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(le);Ae<ce.length;Ae++)ve.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(le,ce[Ae])&&(N[ce[Ae]]=le[ce[Ae]]);return N};function q(le){return(le||[]).map((ve,N)=>{if(ve&&typeof ve=="object"){const ce=ve,{label:Ae,children:L,key:ee,type:ue}=ce,_e=ne(ce,["label","children","key","type"]),ke=ee!=null?ee:`tmp-${N}`;return L||ue==="group"?ue==="group"?J.createElement(A.BW,Object.assign({key:ke},_e,{title:Ae}),q(L)):J.createElement(P,Object.assign({key:ke},_e,{title:Ae}),q(L)):ue==="divider"?J.createElement(o,Object.assign({key:ke},_e)):J.createElement(te,Object.assign({key:ke},_e),Ae)}return null}).filter(ve=>ve)}function ge(le){return J.useMemo(()=>le&&q(le),[le])}var Te=y(64993),Se=y(17313),Fe=y(8378),G=y(13826),I=y(29878),$=y(83116),R=y(37613),B=le=>{const{componentCls:ve,motionDurationSlow:N,horizontalLineHeight:ce,colorSplit:Ae,lineWidth:L,lineType:ee,itemPaddingInline:ue}=le;return{[`${ve}-horizontal`]:{lineHeight:ce,border:0,borderBottom:`${L}px ${ee} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ue},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${N}`,`background ${N}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},_=le=>{let{componentCls:ve,menuArrowOffset:N}=le;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${N})`},"&::after":{transform:`rotate(45deg) translateY(${N})`}}}}};const O=le=>Object.assign({},(0,Se.oN)(le));var we=(le,ve)=>{const{componentCls:N,itemColor:ce,itemSelectedColor:Ae,groupTitleColor:L,itemBg:ee,subMenuItemBg:ue,itemSelectedBg:_e,activeBarHeight:ke,activeBarWidth:Pe,activeBarBorderWidth:We,motionDurationSlow:rt,motionEaseInOut:Ze,motionEaseOut:Ge,itemPaddingInline:mt,motionDurationMid:At,itemHoverColor:_t,lineType:Lt,colorSplit:Ht,itemDisabledColor:Pt,dangerItemColor:Yt,dangerItemHoverColor:$t,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:ot,itemHoverBg:Q,itemActiveBg:Re,menuSubMenuBg:pr,horizontalItemSelectedColor:Be,horizontalItemSelectedBg:He,horizontalItemBorderRadius:Ve,horizontalItemHoverBg:re,popupBg:me}=le;return{[`${N}-${ve}, ${N}-${ve} > ${N}`]:{color:ce,background:ee,[`&${N}-root:focus-visible`]:Object.assign({},O(le)),[`${N}-item-group-title`]:{color:L},[`${N}-submenu-selected`]:{[`> ${N}-submenu-title`]:{color:Ae}},[`${N}-item-disabled, ${N}-submenu-disabled`]:{color:`${Pt} !important`},[`${N}-item:not(${N}-item-selected):not(${N}-submenu-selected)`]:{[`&:hover, > ${N}-submenu-title:hover`]:{color:_t}},[`&:not(${N}-horizontal)`]:{[`${N}-item:not(${N}-item-selected)`]:{"&:hover":{backgroundColor:Q},"&:active":{backgroundColor:Re}},[`${N}-submenu-title`]:{"&:hover":{backgroundColor:Q},"&:active":{backgroundColor:Re}}},[`${N}-item-danger`]:{color:Yt,[`&${N}-item:hover`]:{[`&:not(${N}-item-selected):not(${N}-submenu-selected)`]:{color:$t}},[`&${N}-item:active`]:{background:C}},[`${N}-item a`]:{"&, &:hover":{color:"inherit"}},[`${N}-item-selected`]:{color:Ae,[`&${N}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${N}-item-selected`]:{backgroundColor:_e,[`&${N}-item-danger`]:{backgroundColor:ot}},[`${N}-item, ${N}-submenu-title`]:{[`&:not(${N}-item-disabled):focus-visible`]:Object.assign({},O(le))},[`&${N}-submenu > ${N}`]:{backgroundColor:pr},[`&${N}-popup > ${N}`]:{backgroundColor:me},[`&${N}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${N}-item, > ${N}-submenu`]:{top:We,marginTop:-We,marginBottom:0,borderRadius:Ve,"&::after":{position:"absolute",insetInline:mt,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${rt} ${Ze}`,content:'""'},"&:hover, &-active, &-open":{background:re,"&::after":{borderBottomWidth:ke,borderBottomColor:Be}},"&-selected":{color:Be,backgroundColor:He,"&:hover":{backgroundColor:He},"&::after":{borderBottomWidth:ke,borderBottomColor:Be}}}}),[`&${N}-root`]:{[`&${N}-inline, &${N}-vertical`]:{borderInlineEnd:`${We}px ${Lt} ${Ht}`}},[`&${N}-inline`]:{[`${N}-sub${N}-inline`]:{background:ue},[`${N}-item, ${N}-submenu-title`]:We&&Pe?{width:`calc(100% + ${We}px)`}:{},[`${N}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Pe}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${At} ${Ge}`,`opacity ${At} ${Ge}`].join(","),content:'""'},[`&${N}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${N}-selected, ${N}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${At} ${Ze}`,`opacity ${At} ${Ze}`].join(",")}}}}}};const Ee=le=>{const{componentCls:ve,itemHeight:N,itemMarginInline:ce,padding:Ae,menuArrowSize:L,marginXS:ee,itemMarginBlock:ue}=le,_e=Ae+L+ee;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:N,lineHeight:`${N}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:ce,marginBlock:ue,width:`calc(100% - ${ce*2}px)`},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:N,lineHeight:`${N}px`},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:_e}}};var $e=le=>{const{componentCls:ve,iconCls:N,itemHeight:ce,colorTextLightSolid:Ae,dropdownWidth:L,controlHeightLG:ee,motionDurationMid:ue,motionEaseOut:_e,paddingXL:ke,itemMarginInline:Pe,fontSizeLG:We,motionDurationSlow:rt,paddingXS:Ze,boxShadowSecondary:Ge,collapsedWidth:mt,collapsedIconSize:At}=le,_t={height:ce,lineHeight:`${ce}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ee(le))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ee(le)),{boxShadow:Ge})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:L,maxHeight:`calc(100vh - ${ee*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${rt}`,`background ${rt}`,`padding ${ue} ${_e}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:_t,[`& ${ve}-item-group-title`]:{paddingInlineStart:ke}},[`${ve}-item`]:_t}},{[`${ve}-inline-collapsed`]:{width:mt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:We,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${We/2}px - ${Pe}px)`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${N}`]:{margin:0,fontSize:At,lineHeight:`${ce}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${N}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${N}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Se.vS),{paddingInline:Ze})}}]};const Je=le=>{const{componentCls:ve,motionDurationSlow:N,motionDurationMid:ce,motionEaseInOut:Ae,motionEaseOut:L,iconCls:ee,iconSize:ue,iconMarginInlineEnd:_e}=le;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${N}`,`background ${N}`,`padding ${N} ${Ae}`].join(","),[`${ve}-item-icon, ${ee}`]:{minWidth:ue,fontSize:ue,transition:[`font-size ${ce} ${L}`,`margin ${N} ${Ae}`,`color ${N}`].join(","),"+ span":{marginInlineStart:_e,opacity:1,transition:[`opacity ${N} ${Ae}`,`margin ${N}`,`color ${N}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Se.Ro)()),[`&${ve}-item-only-child`]:{[`> ${ee}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Qe=le=>{const{componentCls:ve,motionDurationSlow:N,motionEaseInOut:ce,borderRadius:Ae,menuArrowSize:L,menuArrowOffset:ee}=le;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:L,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${N} ${ce}, opacity ${N}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:L*.6,height:L*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${N} ${ce}`,`transform ${N} ${ce}`,`top ${N} ${ce}`,`color ${N} ${ce}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ee})`},"&::after":{transform:`rotate(-45deg) translateY(${ee})`}}}}},et=le=>{const{antCls:ve,componentCls:N,fontSize:ce,motionDurationSlow:Ae,motionDurationMid:L,motionEaseInOut:ee,paddingXS:ue,padding:_e,colorSplit:ke,lineWidth:Pe,zIndexPopup:We,borderRadiusLG:rt,subMenuItemBorderRadius:Ze,menuArrowSize:Ge,menuArrowOffset:mt,lineType:At,menuPanelMaskInset:_t,groupTitleLineHeight:Lt,groupTitleFontSize:Ht}=le;return[{"":{[`${N}`]:Object.assign(Object.assign({},(0,Se.dF)()),{"&-hidden":{display:"none"}})},[`${N}-submenu-hidden`]:{display:"none"}},{[N]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(le)),(0,Se.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ce,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${N}-item`]:{flex:"none"}},[`${N}-item, ${N}-submenu, ${N}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${N}-item-group-title`]:{padding:`${ue}px ${_e}px`,fontSize:Ht,lineHeight:Lt,transition:`all ${Ae}`},[`&-horizontal ${N}-submenu`]:{transition:[`border-color ${Ae} ${ee}`,`background ${Ae} ${ee}`].join(",")},[`${N}-submenu, ${N}-submenu-inline`]:{transition:[`border-color ${Ae} ${ee}`,`background ${Ae} ${ee}`,`padding ${L} ${ee}`].join(",")},[`${N}-submenu ${N}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${ee}`,`padding ${Ae} ${ee}`].join(",")},[`${N}-title-content`]:{transition:`color ${Ae}`},[`${N}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${N}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:At,borderWidth:0,borderTopWidth:Pe,marginBlock:Pe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(le)),{[`${N}-item-group`]:{[`${N}-item-group-list`]:{margin:0,padding:0,[`${N}-item, ${N}-submenu-title`]:{paddingInline:`${ce*2}px ${_e}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:We,borderRadius:rt,boxShadow:"none",transformOrigin:"0 0",[`&${N}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${_t}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:_t},"\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:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS},[`> ${N}`]:Object.assign(Object.assign(Object.assign({borderRadius:rt},Je(le)),Qe(le)),{[`${N}-item, ${N}-submenu > ${N}-submenu-title`]:{borderRadius:Ze},[`${N}-submenu-title::after`]:{transition:`transform ${Ae} ${ee}`}})}}),Qe(le)),{[`&-inline-collapsed ${N}-submenu-arrow,
&-inline ${N}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${mt})`},"&::after":{transform:`rotate(45deg) translateX(-${mt})`}},[`${N}-submenu-open${N}-submenu-inline > ${N}-submenu-title > ${N}-submenu-arrow`]:{transform:`translateY(-${Ge*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${mt})`},"&::before":{transform:`rotate(45deg) translateX(${mt})`}}})},{[`${ve}-layout-header`]:{[N]:{lineHeight:"inherit"}}}]};var St=(le,ve)=>(0,$.Z)("Menu",ce=>{if(ve===!1)return[];const{colorBgElevated:Ae,colorPrimary:L,colorTextLightSolid:ee,controlHeightLG:ue,fontSize:_e,darkItemColor:ke,darkDangerItemColor:Pe,darkItemBg:We,darkSubMenuItemBg:rt,darkItemSelectedColor:Ze,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:mt,darkItemHoverBg:At,darkGroupTitleColor:_t,darkItemHoverColor:Lt,darkItemDisabledColor:Ht,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:Yt,darkDangerItemActiveBg:$t}=ce,S=_e/7*5,C=(0,R.TS)(ce,{menuArrowSize:S,menuHorizontalHeight:ue*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),ot=(0,R.TS)(C,{itemColor:ke,itemHoverColor:Lt,groupTitleColor:_t,itemSelectedColor:Ze,itemBg:We,popupBg:We,subMenuItemBg:rt,itemActiveBg:"transparent",itemSelectedBg:Ge,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:At,itemDisabledColor:Ht,dangerItemColor:Pe,dangerItemHoverColor:Pt,dangerItemSelectedColor:Yt,dangerItemActiveBg:$t,dangerItemSelectedBg:mt,menuSubMenuBg:rt,horizontalItemSelectedColor:ee,horizontalItemSelectedBg:L});return[et(C),B(C),$e(C),we(C,"light"),we(ot,"dark"),_(C),(0,Fe.Z)(C),(0,G.oN)(C,"slide-up"),(0,G.oN)(C,"slide-down"),(0,I._y)(C,"zoom-big")]},ce=>{const{colorPrimary:Ae,colorError:L,colorTextDisabled:ee,colorErrorBg:ue,colorText:_e,colorTextDescription:ke,colorBgContainer:Pe,colorFillAlter:We,colorFillContent:rt,lineWidth:Ze,lineWidthBold:Ge,controlItemBgActive:mt,colorBgTextHover:At,controlHeightLG:_t,lineHeight:Lt,colorBgElevated:Ht,marginXXS:Pt,padding:Yt,fontSize:$t,controlHeightSM:S,fontSizeLG:C,colorTextLightSolid:ot,colorErrorHover:Q}=ce,Re=new Te.C(ot).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ce.zIndexPopupBase+50,radiusItem:ce.borderRadiusLG,itemBorderRadius:ce.borderRadiusLG,radiusSubMenuItem:ce.borderRadiusSM,subMenuItemBorderRadius:ce.borderRadiusSM,colorItemText:_e,itemColor:_e,colorItemTextHover:_e,itemHoverColor:_e,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:Pe,itemBg:Pe,colorItemBgHover:At,itemHoverBg:At,colorItemBgActive:rt,itemActiveBg:mt,colorSubItemBg:We,subMenuItemBg:We,colorItemBgSelected:mt,itemSelectedBg:mt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ge,activeBarHeight:Ge,colorActiveBarBorderSize:Ze,activeBarBorderWidth:Ze,colorItemTextDisabled:ee,itemDisabledColor:ee,colorDangerItemText:L,dangerItemColor:L,colorDangerItemTextHover:L,dangerItemHoverColor:L,colorDangerItemTextSelected:L,dangerItemSelectedColor:L,colorDangerItemBgActive:ue,dangerItemActiveBg:ue,colorDangerItemBgSelected:ue,dangerItemSelectedBg:ue,itemMarginInline:ce.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_t,groupTitleLineHeight:Lt,collapsedWidth:_t*2,popupBg:Ht,itemMarginBlock:Pt,itemPaddingInline:Yt,horizontalLineHeight:`${_t*1.15}px`,iconSize:$t,iconMarginInlineEnd:S-$t,collapsedIconSize:C,groupTitleFontSize:$t,darkItemDisabledColor:new Te.C(ot).setAlpha(.25).toRgbString(),darkItemColor:Re,darkDangerItemColor:L,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ot,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:L,darkItemHoverBg:"transparent",darkGroupTitleColor:Re,darkItemHoverColor:ot,darkDangerItemHoverColor:Q,darkDangerItemSelectedColor:ot,darkDangerItemActiveBg:L}},{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"]]})(le),Et=function(le,ve){var N={};for(var ce in le)Object.prototype.hasOwnProperty.call(le,ce)&&ve.indexOf(ce)<0&&(N[ce]=le[ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(le);Ae<ce.length;Ae++)ve.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(le,ce[Ae])&&(N[ce[Ae]]=le[ce[Ae]]);return N},ht=(0,J.forwardRef)((le,ve)=>{var N,ce;const Ae=J.useContext(W.Z),L=Ae||{},{getPrefixCls:ee,getPopupContainer:ue,direction:_e,menu:ke}=J.useContext(X.E_),Pe=ee(),{prefixCls:We,className:rt,style:Ze,theme:Ge="light",expandIcon:mt,_internalDisableMenuItemTitleTooltip:At,inlineCollapsed:_t,siderCollapsed:Lt,items:Ht,children:Pt,rootClassName:Yt,mode:$t,selectable:S,onClick:C,overflowedIndicatorPopupClassName:ot}=le,Q=Et(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Re=(0,F.Z)(Q,["collapsedWidth"]),pr=ge(Ht)||Pt;(N=L.validator)===null||N===void 0||N.call(L,{mode:$t});const Be=(0,ae.useEvent)(function(){var ir;C==null||C.apply(void 0,arguments),(ir=L.onClick)===null||ir===void 0||ir.call(L)}),He=L.mode||$t,Ve=S!=null?S:L.selectable,re=J.useMemo(()=>Lt!==void 0?Lt:_t,[_t,Lt]),me={horizontal:{motionName:`${Pe}-slide-up`},inline:(0,E.Z)(Pe),other:{motionName:`${Pe}-zoom-big`}},Me=ee("menu",We||L.prefixCls),[Ue,Y]=St(Me,!Ae),Ft=oe()(`${Me}-${Ge}`,ke==null?void 0:ke.className,rt);let Oe;if(typeof mt=="function")Oe=mt;else if(mt===null||mt===!1)Oe=null;else if(L.expandIcon===null||L.expandIcon===!1)Oe=null;else{const ir=mt!=null?mt:L.expandIcon;Oe=(0,c.Tm)(ir,{className:oe()(`${Me}-submenu-expand-icon`,(0,c.l$)(ir)?(ce=ir.props)===null||ce===void 0?void 0:ce.className:"")})}const Wt=J.useMemo(()=>({prefixCls:Me,inlineCollapsed:re||!1,direction:_e,firstLevel:!0,theme:Ge,mode:He,disableMenuItemTitleTooltip:At}),[Me,re,_e,At,Ge]);return Ue(J.createElement(W.Z.Provider,{value:null},J.createElement(b.Provider,{value:Wt},J.createElement(A.ZP,Object.assign({getPopupContainer:ue,overflowedIndicator:J.createElement(H.Z,null),overflowedIndicatorPopupClassName:oe()(Me,`${Me}-${Ge}`,ot),mode:He,selectable:Ve,onClick:Be},Re,{inlineCollapsed:re,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Ze),className:Ft,prefixCls:Me,direction:_e,defaultMotions:me,expandIcon:Oe,ref:ve,rootClassName:oe()(Yt,Y)}),pr))))});const Rt=(0,J.forwardRef)((le,ve)=>{const N=(0,J.useRef)(null),ce=J.useContext(ye.D);return(0,J.useImperativeHandle)(ve,()=>({menu:N.current,focus:Ae=>{var L;(L=N.current)===null||L===void 0||L.focus(Ae)}})),J.createElement(ht,Object.assign({ref:N},le,ce))});Rt.Item=te,Rt.SubMenu=P,Rt.Divider=o,Rt.ItemGroup=A.BW;var It=Rt},5112:function(Ut,qe,y){"use strict";y.d(qe,{ZP:function(){return _}});var A=y(92310),J=y.n(A),ye=y(18929),Le=y(26112),oe=y(59301),X=y(36355),fe=y(19716);const he=oe.createContext(null),o=he.Provider;var V=he;const F=oe.createContext(null),g=F.Provider;var c=y(5630),w=y(8654),b=y(1684),z=y(32441),te=y(17313),k=y(83116),P=y(37613);const H=O=>{const{componentCls:M,antCls:we}=O,Ee=`${M}-group`;return{[Ee]:Object.assign(Object.assign({},(0,te.Wf)(O)),{display:"inline-block",fontSize:0,[`&${Ee}-rtl`]:{direction:"rtl"},[`${we}-badge ${we}-badge-count`]:{zIndex:1},[`> ${we}-badge:not(:first-child) > ${we}-button-wrapper`]:{borderInlineStart:"none"}})}},ae=O=>{const{componentCls:M,wrapperMarginInlineEnd:we,colorPrimary:Ee,radioSize:De,motionDurationSlow:$e,motionDurationMid:Je,motionEaseInOutCirc:Qe,colorBgContainer:et,colorBorder:St,lineWidth:Et,dotSize:Bt,colorBgContainerDisabled:ht,colorTextDisabled:Rt,paddingXS:It,dotColorDisabled:le,lineType:ve,radioDotDisabledSize:N,wireframe:ce,colorWhite:Ae}=O,L=`${M}-inner`;return{[`${M}-wrapper`]:Object.assign(Object.assign({},(0,te.Wf)(O)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:we,cursor:"pointer",[`&${M}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:O.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${M}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Et}px ${ve} ${Ee}`,borderRadius:"50%",visibility:"hidden",content:'""'},[M]:Object.assign(Object.assign({},(0,te.Wf)(O)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${M}-wrapper:hover &,
&:hover ${L}`]:{borderColor:Ee},[`${M}-input:focus-visible + ${L}`]:Object.assign({},(0,te.oN)(O)),[`${M}:hover::after, ${M}-wrapper:hover &::after`]:{visibility:"visible"},[`${M}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:De,height:De,marginBlockStart:De/-2,marginInlineStart:De/-2,backgroundColor:ce?Ee:Ae,borderBlockStart:0,borderInlineStart:0,borderRadius:De,transform:"scale(0)",opacity:0,transition:`all ${$e} ${Qe}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:De,height:De,backgroundColor:et,borderColor:St,borderStyle:"solid",borderWidth:Et,borderRadius:"50%",transition:`all ${Je}`},[`${M}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${M}-checked`]:{[L]:{borderColor:Ee,backgroundColor:ce?et:Ee,"&::after":{transform:`scale(${Bt/De})`,opacity:1,transition:`all ${$e} ${Qe}`}}},[`${M}-disabled`]:{cursor:"not-allowed",[L]:{backgroundColor:ht,borderColor:St,cursor:"not-allowed","&::after":{backgroundColor:le}},[`${M}-input`]:{cursor:"not-allowed"},[`${M}-disabled + span`]:{color:Rt,cursor:"not-allowed"},[`&${M}-checked`]:{[L]:{"&::after":{transform:`scale(${N/De})`}}}},[`span${M} + *`]:{paddingInlineStart:It,paddingInlineEnd:It}})}},E=O=>{const{buttonColor:M,controlHeight:we,componentCls:Ee,lineWidth:De,lineType:$e,colorBorder:Je,motionDurationSlow:Qe,motionDurationMid:et,buttonPaddingInline:St,fontSize:Et,buttonBg:Bt,fontSizeLG:ht,controlHeightLG:Rt,controlHeightSM:It,paddingXS:le,borderRadius:ve,borderRadiusSM:N,borderRadiusLG:ce,buttonCheckedBg:Ae,buttonSolidCheckedColor:L,colorTextDisabled:ee,colorBgContainerDisabled:ue,buttonCheckedBgDisabled:_e,buttonCheckedColorDisabled:ke,colorPrimary:Pe,colorPrimaryHover:We,colorPrimaryActive:rt,buttonSolidCheckedBg:Ze,buttonSolidCheckedHoverBg:Ge,buttonSolidCheckedActiveBg:mt}=O;return{[`${Ee}-button-wrapper`]:{position:"relative",display:"inline-block",height:we,margin:0,paddingInline:St,paddingBlock:0,color:M,fontSize:Et,lineHeight:`${we-De*2}px`,background:Bt,border:`${De}px ${$e} ${Je}`,borderBlockStartWidth:De+.02,borderInlineStartWidth:0,borderInlineEndWidth:De,cursor:"pointer",transition:[`color ${et}`,`background ${et}`,`box-shadow ${et}`].join(","),a:{color:M},[`> ${Ee}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-De,insetInlineStart:-De,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:De,paddingInline:0,backgroundColor:Je,transition:`background-color ${Qe}`,content:'""'}},"&:first-child":{borderInlineStart:`${De}px ${$e} ${Je}`,borderStartStartRadius:ve,borderEndStartRadius:ve},"&:last-child":{borderStartEndRadius:ve,borderEndEndRadius:ve},"&:first-child:last-child":{borderRadius:ve},[`${Ee}-group-large &`]:{height:Rt,fontSize:ht,lineHeight:`${Rt-De*2}px`,"&:first-child":{borderStartStartRadius:ce,borderEndStartRadius:ce},"&:last-child":{borderStartEndRadius:ce,borderEndEndRadius:ce}},[`${Ee}-group-small &`]:{height:It,paddingInline:le-De,paddingBlock:0,lineHeight:`${It-De*2}px`,"&:first-child":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover":{position:"relative",color:Pe},"&:has(:focus-visible)":Object.assign({},(0,te.oN)(O)),[`${Ee}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ee}-button-wrapper-disabled)`]:{zIndex:1,color:Pe,background:Ae,borderColor:Pe,"&::before":{backgroundColor:Pe},"&:first-child":{borderColor:Pe},"&:hover":{color:We,borderColor:We,"&::before":{backgroundColor:We}},"&:active":{color:rt,borderColor:rt,"&::before":{backgroundColor:rt}}},[`${Ee}-group-solid &-checked:not(${Ee}-button-wrapper-disabled)`]:{color:L,background:Ze,borderColor:Ze,"&:hover":{color:L,background:Ge,borderColor:Ge},"&:active":{color:L,background:mt,borderColor:mt}},"&-disabled":{color:ee,backgroundColor:ue,borderColor:Je,cursor:"not-allowed","&:first-child, &:hover":{color:ee,backgroundColor:ue,borderColor:Je}},[`&-disabled${Ee}-button-wrapper-checked`]:{color:ke,backgroundColor:_e,borderColor:Je,boxShadow:"none"}}}},W=O=>O-4*2;var ne=(0,k.Z)("Radio",O=>{const{controlOutline:M,controlOutlineWidth:we,radioSize:Ee}=O,De=`0 0 0 ${we}px ${M}`,$e=De,Je=W(Ee),Qe=(0,P.TS)(O,{radioDotDisabledSize:Je,radioFocusShadow:De,radioButtonFocusShadow:$e});return[H(Qe),ae(Qe),E(Qe)]},O=>{const{wireframe:M,padding:we,marginXS:Ee,lineWidth:De,fontSizeLG:$e,colorText:Je,colorBgContainer:Qe,colorTextDisabled:et,controlItemBgActiveDisabled:St,colorTextLightSolid:Et,colorPrimary:Bt,colorPrimaryHover:ht,colorPrimaryActive:Rt}=O,It=4,le=$e,ve=M?W(le):le-(It+De)*2;return{radioSize:le,dotSize:ve,dotColorDisabled:et,buttonSolidCheckedColor:Et,buttonSolidCheckedBg:Bt,buttonSolidCheckedHoverBg:ht,buttonSolidCheckedActiveBg:Rt,buttonBg:Qe,buttonCheckedBg:Qe,buttonColor:Je,buttonCheckedBgDisabled:St,buttonCheckedColorDisabled:et,buttonPaddingInline:we-De,wrapperMarginInlineEnd:Ee}}),q=y(14088),ge=y(4572),Te=function(O,M){var we={};for(var Ee in O)Object.prototype.hasOwnProperty.call(O,Ee)&&M.indexOf(Ee)<0&&(we[Ee]=O[Ee]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ee=Object.getOwnPropertySymbols(O);De<Ee.length;De++)M.indexOf(Ee[De])<0&&Object.prototype.propertyIsEnumerable.call(O,Ee[De])&&(we[Ee[De]]=O[Ee[De]]);return we};const Se=(O,M)=>{var we,Ee;const De=oe.useContext(V),$e=oe.useContext(F),{getPrefixCls:Je,direction:Qe,radio:et}=oe.useContext(X.E_),St=oe.useRef(null),Et=(0,w.sQ)(M,St),{isFormItemInput:Bt}=oe.useContext(z.aM),ht=rt=>{var Ze,Ge;(Ze=O.onChange)===null||Ze===void 0||Ze.call(O,rt),(Ge=De==null?void 0:De.onChange)===null||Ge===void 0||Ge.call(De,rt)},{prefixCls:Rt,className:It,rootClassName:le,children:ve,style:N}=O,ce=Te(O,["prefixCls","className","rootClassName","children","style"]),Ae=Je("radio",Rt),L=((De==null?void 0:De.optionType)||$e)==="button",ee=L?`${Ae}-button`:Ae,[ue,_e]=ne(Ae),ke=Object.assign({},ce),Pe=oe.useContext(b.Z);De&&(ke.name=De.name,ke.onChange=ht,ke.checked=O.value===De.value,ke.disabled=(we=ke.disabled)!==null&&we!==void 0?we:De.disabled),ke.disabled=(Ee=ke.disabled)!==null&&Ee!==void 0?Ee:Pe;const We=J()(`${ee}-wrapper`,{[`${ee}-wrapper-checked`]:ke.checked,[`${ee}-wrapper-disabled`]:ke.disabled,[`${ee}-wrapper-rtl`]:Qe==="rtl",[`${ee}-wrapper-in-form-item`]:Bt},et==null?void 0:et.className,It,le,_e);return ue(oe.createElement(q.Z,{component:"Radio",disabled:ke.disabled},oe.createElement("label",{className:We,style:Object.assign(Object.assign({},et==null?void 0:et.style),N),onMouseEnter:O.onMouseEnter,onMouseLeave:O.onMouseLeave},oe.createElement(c.Z,Object.assign({},ke,{className:J()(ke.className,!L&&ge.A),type:"radio",prefixCls:ee,ref:Et})),ve!==void 0?oe.createElement("span",null,ve):null)))};var G=oe.forwardRef(Se);const I=oe.forwardRef((O,M)=>{const{getPrefixCls:we,direction:Ee}=oe.useContext(X.E_),[De,$e]=(0,ye.Z)(O.defaultValue,{value:O.value}),Je=Ze=>{const Ge=De,mt=Ze.target.value;"value"in O||$e(mt);const{onChange:At}=O;At&&mt!==Ge&&At(Ze)},{prefixCls:Qe,className:et,rootClassName:St,options:Et,buttonStyle:Bt="outline",disabled:ht,children:Rt,size:It,style:le,id:ve,onMouseEnter:N,onMouseLeave:ce,onFocus:Ae,onBlur:L}=O,ee=we("radio",Qe),ue=`${ee}-group`,[_e,ke]=ne(ee);let Pe=Rt;Et&&Et.length>0&&(Pe=Et.map(Ze=>typeof Ze=="string"||typeof Ze=="number"?oe.createElement(G,{key:Ze.toString(),prefixCls:ee,disabled:ht,value:Ze,checked:De===Ze},Ze):oe.createElement(G,{key:`radio-group-value-options-${Ze.value}`,prefixCls:ee,disabled:Ze.disabled||ht,value:Ze.value,checked:De===Ze.value,title:Ze.title,style:Ze.style},Ze.label)));const We=(0,fe.Z)(It),rt=J()(ue,`${ue}-${Bt}`,{[`${ue}-${We}`]:We,[`${ue}-rtl`]:Ee==="rtl"},et,St,ke);return _e(oe.createElement("div",Object.assign({},(0,Le.Z)(O,{aria:!0,data:!0}),{className:rt,style:le,onMouseEnter:N,onMouseLeave:ce,onFocus:Ae,onBlur:L,id:ve,ref:M}),oe.createElement(o,{value:{onChange:Je,value:De,disabled:O.disabled,name:O.name,optionType:O.optionType}},Pe)))});var $=oe.memo(I),R=function(O,M){var we={};for(var Ee in O)Object.prototype.hasOwnProperty.call(O,Ee)&&M.indexOf(Ee)<0&&(we[Ee]=O[Ee]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ee=Object.getOwnPropertySymbols(O);De<Ee.length;De++)M.indexOf(Ee[De])<0&&Object.prototype.propertyIsEnumerable.call(O,Ee[De])&&(we[Ee[De]]=O[Ee[De]]);return we};const Z=(O,M)=>{const{getPrefixCls:we}=oe.useContext(X.E_),{prefixCls:Ee}=O,De=R(O,["prefixCls"]),$e=we("radio",Ee);return oe.createElement(g,{value:"button"},oe.createElement(G,Object.assign({prefixCls:$e},De,{type:"radio",ref:M})))};var B=oe.forwardRef(Z);const m=G;m.Button=B,m.Group=$,m.__ANT_RADIO=!0;var _=m},13570:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return O}});var A=y(96663),J=y(59301),ye={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"},Le=ye,oe=y(7657),X=function(we,Ee){return J.createElement(oe.Z,(0,A.Z)({},we,{ref:Ee,icon:Le}))},fe=J.forwardRef(X),he=fe,o=y(92310),V=y.n(o),F=y(90493),g=y(72071),c=y(6620),w=y(18929),b=y(10228),z=y(26112);function te(M,we){var Ee=M.disabled,De=M.prefixCls,$e=M.character,Je=M.characterRender,Qe=M.index,et=M.count,St=M.value,Et=M.allowHalf,Bt=M.focused,ht=M.onHover,Rt=M.onClick,It=function(ue){ht(ue,Qe)},le=function(ue){Rt(ue,Qe)},ve=function(ue){ue.keyCode===b.Z.ENTER&&Rt(ue,Qe)},N=Qe+1,ce=new Set([De]);St===0&&Qe===0&&Bt?ce.add("".concat(De,"-focused")):Et&&St+.5>=N&&St<N?(ce.add("".concat(De,"-half")),ce.add("".concat(De,"-active")),Bt&&ce.add("".concat(De,"-focused"))):(N<=St?ce.add("".concat(De,"-full")):ce.add("".concat(De,"-zero")),N===St&&Bt&&ce.add("".concat(De,"-focused")));var Ae=typeof $e=="function"?$e(M):$e,L=J.createElement("li",{className:V()(Array.from(ce)),ref:we},J.createElement("div",{onClick:Ee?null:le,onKeyDown:Ee?null:ve,onMouseMove:Ee?null:It,role:"radio","aria-checked":St>Qe?"true":"false","aria-posinset":Qe+1,"aria-setsize":et,tabIndex:Ee?-1:0},J.createElement("div",{className:"".concat(De,"-first")},Ae),J.createElement("div",{className:"".concat(De,"-second")},Ae)));return Je&&(L=Je(L,M)),L}var k=J.forwardRef(te);function P(){var M=J.useRef({});function we(De){return M.current[De]}function Ee(De){return function($e){M.current[De]=$e}}return[we,Ee]}function H(M){var we=M.pageXOffset,Ee="scrollLeft";if(typeof we!="number"){var De=M.document;we=De.documentElement[Ee],typeof we!="number"&&(we=De.body[Ee])}return we}function ae(M){var we,Ee,De=M.ownerDocument,$e=De.body,Je=De&&De.documentElement,Qe=M.getBoundingClientRect();return we=Qe.left,Ee=Qe.top,we-=Je.clientLeft||$e.clientLeft||0,Ee-=Je.clientTop||$e.clientTop||0,{left:we,top:Ee}}function E(M){var we=ae(M),Ee=M.ownerDocument,De=Ee.defaultView||Ee.parentWindow;return we.left+=H(De),we.left}var W=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ne(M,we){var Ee,De=M.prefixCls,$e=De===void 0?"rc-rate":De,Je=M.className,Qe=M.defaultValue,et=M.value,St=M.count,Et=St===void 0?5:St,Bt=M.allowHalf,ht=Bt===void 0?!1:Bt,Rt=M.allowClear,It=Rt===void 0?!0:Rt,le=M.character,ve=le===void 0?"\u2605":le,N=M.characterRender,ce=M.disabled,Ae=M.direction,L=Ae===void 0?"ltr":Ae,ee=M.tabIndex,ue=ee===void 0?0:ee,_e=M.autoFocus,ke=M.onHoverChange,Pe=M.onChange,We=M.onFocus,rt=M.onBlur,Ze=M.onKeyDown,Ge=M.onMouseLeave,mt=(0,c.Z)(M,W),At=P(),_t=(0,g.Z)(At,2),Lt=_t[0],Ht=_t[1],Pt=J.useRef(null),Yt=function(){if(!ce){var Ke;(Ke=Pt.current)===null||Ke===void 0||Ke.focus()}};J.useImperativeHandle(we,function(){return{focus:Yt,blur:function(){if(!ce){var Ke;(Ke=Pt.current)===null||Ke===void 0||Ke.blur()}}}});var $t=(0,w.Z)(Qe||0,{value:et}),S=(0,g.Z)($t,2),C=S[0],ot=S[1],Q=(0,w.Z)(null),Re=(0,g.Z)(Q,2),pr=Re[0],Be=Re[1],He=function(Ke,st){var ft=L==="rtl",wt=Ke+1;if(ht){var Xt=Lt(Ke),ar=E(Xt),jt=Xt.clientWidth;(ft&&st-ar>jt/2||!ft&&st-ar<jt/2)&&(wt-=.5)}return wt},Ve=function(Ke){ot(Ke),Pe==null||Pe(Ke)},re=J.useState(!1),me=(0,g.Z)(re,2),Me=me[0],Ue=me[1],Y=function(){Ue(!0),We==null||We()},Ft=function(){Ue(!1),rt==null||rt()},Oe=J.useState(null),Wt=(0,g.Z)(Oe,2),ir=Wt[0],bt=Wt[1],kt=function(Ke,st){var ft=He(st,Ke.pageX);ft!==pr&&(bt(ft),Be(null)),ke==null||ke(ft)},lt=function(Ke){ce||(bt(null),Be(null),ke==null||ke(void 0)),Ke&&(Ge==null||Ge(Ke))},pt=function(Ke,st){var ft=He(st,Ke.pageX),wt=!1;It&&(wt=ft===C),lt(),Ve(wt?0:ft),Be(wt?ft:null)},tr=function(Ke){var st=Ke.keyCode,ft=L==="rtl",wt=C;st===b.Z.RIGHT&&wt<Et&&!ft?(ht?wt+=.5:wt+=1,Ve(wt),Ke.preventDefault()):st===b.Z.LEFT&&wt>0&&!ft||st===b.Z.RIGHT&&wt>0&&ft?(ht?wt-=.5:wt-=1,Ve(wt),Ke.preventDefault()):st===b.Z.LEFT&&wt<Et&&ft&&(ht?wt+=.5:wt+=1,Ve(wt),Ke.preventDefault()),Ze==null||Ze(Ke)};J.useEffect(function(){_e&&!ce&&Yt()},[]);var pe=new Array(Et).fill(0).map(function(it,Ke){return J.createElement(k,{ref:Ht(Ke),index:Ke,count:Et,disabled:ce,prefixCls:"".concat($e,"-star"),allowHalf:ht,value:ir===null?C:ir,onClick:pt,onHover:kt,key:it||Ke,character:ve,characterRender:N,focused:Me})}),Ce=V()($e,Je,(Ee={},(0,F.Z)(Ee,"".concat($e,"-disabled"),ce),(0,F.Z)(Ee,"".concat($e,"-rtl"),L==="rtl"),Ee));return J.createElement("ul",(0,A.Z)({className:Ce,onMouseLeave:lt,tabIndex:ce?-1:ue,onFocus:ce?null:Y,onBlur:ce?null:Ft,onKeyDown:ce?null:tr,ref:Pt,role:"radiogroup"},(0,z.Z)(mt,{aria:!0,data:!0,attr:!0})),pe)}var q=J.forwardRef(ne),ge=q,Te=y(36355),Se=y(6848),Fe=y(17313),G=y(83116),I=y(37613);const $=M=>{const{componentCls:we}=M;return{[`${we}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:M.marginXS},"> div":{transition:`all ${M.motionDurationMid}, outline 0s`,"&:hover":{transform:M.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${M.lineWidth}px dashed ${M.starColor}`,transform:M.starHoverScale}},"&-first, &-second":{color:M.starBg,transition:`all ${M.motionDurationMid}`,userSelect:"none",[M.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${we}-star-first, &-half ${we}-star-second`]:{opacity:1},[`&-half ${we}-star-first, &-full ${we}-star-second`]:{color:"inherit"}}}},R=M=>({[`&-rtl${M.componentCls}`]:{direction:"rtl"}}),Z=M=>{const{componentCls:we}=M;return{[we]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(M)),{display:"inline-block",margin:0,padding:0,color:M.starColor,fontSize:M.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${we} ${we}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$(M)),{[`+ ${we}-text`]:{display:"inline-block",marginInlineStart:M.marginXS,fontSize:M.fontSize}}),R(M))}};var B=(0,G.Z)("Rate",M=>{const we=(0,I.TS)(M,{});return[Z(we)]},M=>({starColor:M.yellow6,starSize:M.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:M.colorFillContent})),m=function(M,we){var Ee={};for(var De in M)Object.prototype.hasOwnProperty.call(M,De)&&we.indexOf(De)<0&&(Ee[De]=M[De]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,De=Object.getOwnPropertySymbols(M);$e<De.length;$e++)we.indexOf(De[$e])<0&&Object.prototype.propertyIsEnumerable.call(M,De[$e])&&(Ee[De[$e]]=M[De[$e]]);return Ee},O=J.forwardRef((M,we)=>{const{prefixCls:Ee,className:De,rootClassName:$e,style:Je,tooltips:Qe,character:et=J.createElement(he,null)}=M,St=m(M,["prefixCls","className","rootClassName","style","tooltips","character"]),Et=(ce,Ae)=>{let{index:L}=Ae;return Qe?J.createElement(Se.Z,{title:Qe[L]},ce):ce},{getPrefixCls:Bt,direction:ht,rate:Rt}=J.useContext(Te.E_),It=Bt("rate",Ee),[le,ve]=B(It),N=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),Je);return le(J.createElement(ge,Object.assign({ref:we,character:et,characterRender:Et},St,{className:V()(De,$e,ve,Rt==null?void 0:Rt.className),style:N,prefixCls:It,direction:ht})))})},61621:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return ve}});var A=y(92310),J=y.n(A),ye=y(59301),Le=y(36355),oe=y(2738),fe=N=>{const{prefixCls:ce,className:Ae,style:L,size:ee,shape:ue}=N,_e=J()({[`${ce}-lg`]:ee==="large",[`${ce}-sm`]:ee==="small"}),ke=J()({[`${ce}-circle`]:ue==="circle",[`${ce}-square`]:ue==="square",[`${ce}-round`]:ue==="round"}),Pe=ye.useMemo(()=>typeof ee=="number"?{width:ee,height:ee,lineHeight:`${ee}px`}:{},[ee]);return ye.createElement("span",{className:J()(ce,_e,ke,Ae),style:Object.assign(Object.assign({},Pe),L)})},he=y(93083),o=y(83116),V=y(37613);const F=new he.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g=N=>({height:N,lineHeight:`${N}px`}),c=N=>Object.assign({width:N},g(N)),w=N=>({background:N.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:F,animationDuration:N.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),b=N=>Object.assign({width:N*5,minWidth:N*5},g(N)),z=N=>{const{skeletonAvatarCls:ce,gradientFromColor:Ae,controlHeight:L,controlHeightLG:ee,controlHeightSM:ue}=N;return{[`${ce}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ae},c(L)),[`${ce}${ce}-circle`]:{borderRadius:"50%"},[`${ce}${ce}-lg`]:Object.assign({},c(ee)),[`${ce}${ce}-sm`]:Object.assign({},c(ue))}},te=N=>{const{controlHeight:ce,borderRadiusSM:Ae,skeletonInputCls:L,controlHeightLG:ee,controlHeightSM:ue,gradientFromColor:_e}=N;return{[`${L}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_e,borderRadius:Ae},b(ce)),[`${L}-lg`]:Object.assign({},b(ee)),[`${L}-sm`]:Object.assign({},b(ue))}},k=N=>Object.assign({width:N},g(N)),P=N=>{const{skeletonImageCls:ce,imageSizeBase:Ae,gradientFromColor:L,borderRadiusSM:ee}=N;return{[`${ce}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:L,borderRadius:ee},k(Ae*2)),{[`${ce}-path`]:{fill:"#bfbfbf"},[`${ce}-svg`]:Object.assign(Object.assign({},k(Ae)),{maxWidth:Ae*4,maxHeight:Ae*4}),[`${ce}-svg${ce}-svg-circle`]:{borderRadius:"50%"}}),[`${ce}${ce}-circle`]:{borderRadius:"50%"}}},H=(N,ce,Ae)=>{const{skeletonButtonCls:L}=N;return{[`${Ae}${L}-circle`]:{width:ce,minWidth:ce,borderRadius:"50%"},[`${Ae}${L}-round`]:{borderRadius:ce}}},ae=N=>Object.assign({width:N*2,minWidth:N*2},g(N)),E=N=>{const{borderRadiusSM:ce,skeletonButtonCls:Ae,controlHeight:L,controlHeightLG:ee,controlHeightSM:ue,gradientFromColor:_e}=N;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_e,borderRadius:ce,width:L*2,minWidth:L*2},ae(L))},H(N,L,Ae)),{[`${Ae}-lg`]:Object.assign({},ae(ee))}),H(N,ee,`${Ae}-lg`)),{[`${Ae}-sm`]:Object.assign({},ae(ue))}),H(N,ue,`${Ae}-sm`))},W=N=>{const{componentCls:ce,skeletonAvatarCls:Ae,skeletonTitleCls:L,skeletonParagraphCls:ee,skeletonButtonCls:ue,skeletonInputCls:_e,skeletonImageCls:ke,controlHeight:Pe,controlHeightLG:We,controlHeightSM:rt,gradientFromColor:Ze,padding:Ge,marginSM:mt,borderRadius:At,titleHeight:_t,blockRadius:Lt,paragraphLiHeight:Ht,controlHeightXS:Pt,paragraphMarginTop:Yt}=N;return{[`${ce}`]:{display:"table",width:"100%",[`${ce}-header`]:{display:"table-cell",paddingInlineEnd:Ge,verticalAlign:"top",[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze},c(Pe)),[`${Ae}-circle`]:{borderRadius:"50%"},[`${Ae}-lg`]:Object.assign({},c(We)),[`${Ae}-sm`]:Object.assign({},c(rt))},[`${ce}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${L}`]:{width:"100%",height:_t,background:Ze,borderRadius:Lt,[`+ ${ee}`]:{marginBlockStart:rt}},[`${ee}`]:{padding:0,"> li":{width:"100%",height:Ht,listStyle:"none",background:Ze,borderRadius:Lt,"+ li":{marginBlockStart:Pt}}},[`${ee}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ce}-content`]:{[`${L}, ${ee} > li`]:{borderRadius:At}}},[`${ce}-with-avatar ${ce}-content`]:{[`${L}`]:{marginBlockStart:mt,[`+ ${ee}`]:{marginBlockStart:Yt}}},[`${ce}${ce}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},E(N)),z(N)),te(N)),P(N)),[`${ce}${ce}-block`]:{width:"100%",[`${ue}`]:{width:"100%"},[`${_e}`]:{width:"100%"}},[`${ce}${ce}-active`]:{[`
${L},
${ee} > li,
${Ae},
${ue},
${_e},
${ke}
`]:Object.assign({},w(N))}}};var ne=(0,o.Z)("Skeleton",N=>{const{componentCls:ce}=N,Ae=(0,V.TS)(N,{skeletonAvatarCls:`${ce}-avatar`,skeletonTitleCls:`${ce}-title`,skeletonParagraphCls:`${ce}-paragraph`,skeletonButtonCls:`${ce}-button`,skeletonInputCls:`${ce}-input`,skeletonImageCls:`${ce}-image`,imageSizeBase:N.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${N.gradientFromColor} 25%, ${N.gradientToColor} 37%, ${N.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[W(Ae)]},N=>{const{colorFillContent:ce,colorFill:Ae}=N,L=ce,ee=Ae;return{color:L,colorGradientEnd:ee,gradientFromColor:L,gradientToColor:ee,titleHeight:N.controlHeight/2,blockRadius:N.borderRadiusSM,paragraphMarginTop:N.marginLG+N.marginXXS,paragraphLiHeight:N.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ge=N=>{const{prefixCls:ce,className:Ae,rootClassName:L,active:ee,shape:ue="circle",size:_e="default"}=N,{getPrefixCls:ke}=ye.useContext(Le.E_),Pe=ke("skeleton",ce),[We,rt]=ne(Pe),Ze=(0,oe.Z)(N,["prefixCls","className"]),Ge=J()(Pe,`${Pe}-element`,{[`${Pe}-active`]:ee},Ae,L,rt);return We(ye.createElement("div",{className:Ge},ye.createElement(fe,Object.assign({prefixCls:`${Pe}-avatar`,shape:ue,size:_e},Ze))))},Se=N=>{const{prefixCls:ce,className:Ae,rootClassName:L,active:ee,block:ue=!1,size:_e="default"}=N,{getPrefixCls:ke}=ye.useContext(Le.E_),Pe=ke("skeleton",ce),[We,rt]=ne(Pe),Ze=(0,oe.Z)(N,["prefixCls"]),Ge=J()(Pe,`${Pe}-element`,{[`${Pe}-active`]:ee,[`${Pe}-block`]:ue},Ae,L,rt);return We(ye.createElement("div",{className:Ge},ye.createElement(fe,Object.assign({prefixCls:`${Pe}-button`,size:_e},Ze))))};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 I=N=>{const{prefixCls:ce,className:Ae,rootClassName:L,style:ee,active:ue}=N,{getPrefixCls:_e}=ye.useContext(Le.E_),ke=_e("skeleton",ce),[Pe,We]=ne(ke),rt=J()(ke,`${ke}-element`,{[`${ke}-active`]:ue},Ae,L,We);return Pe(ye.createElement("div",{className:rt},ye.createElement("div",{className:J()(`${ke}-image`,Ae),style:ee},ye.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},ye.createElement("path",{d:Fe,className:`${ke}-image-path`})))))},R=N=>{const{prefixCls:ce,className:Ae,rootClassName:L,active:ee,block:ue,size:_e="default"}=N,{getPrefixCls:ke}=ye.useContext(Le.E_),Pe=ke("skeleton",ce),[We,rt]=ne(Pe),Ze=(0,oe.Z)(N,["prefixCls"]),Ge=J()(Pe,`${Pe}-element`,{[`${Pe}-active`]:ee,[`${Pe}-block`]:ue},Ae,L,rt);return We(ye.createElement("div",{className:Ge},ye.createElement(fe,Object.assign({prefixCls:`${Pe}-input`,size:_e},Ze))))},Z=y(96663),B={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"},m=B,_=y(7657),O=function(ce,Ae){return ye.createElement(_.Z,(0,Z.Z)({},ce,{ref:Ae,icon:m}))},M=ye.forwardRef(O),we=M,De=N=>{const{prefixCls:ce,className:Ae,rootClassName:L,style:ee,active:ue,children:_e}=N,{getPrefixCls:ke}=ye.useContext(Le.E_),Pe=ke("skeleton",ce),[We,rt]=ne(Pe),Ze=J()(Pe,`${Pe}-element`,{[`${Pe}-active`]:ue},rt,Ae,L),Ge=_e!=null?_e:ye.createElement(we,null);return We(ye.createElement("div",{className:Ze},ye.createElement("div",{className:J()(`${Pe}-image`,Ae),style:ee},Ge)))},$e=y(19127),Qe=N=>{const ce=ke=>{const{width:Pe,rows:We=2}=N;if(Array.isArray(Pe))return Pe[ke];if(We-1===ke)return Pe},{prefixCls:Ae,className:L,style:ee,rows:ue}=N,_e=(0,$e.Z)(Array(ue)).map((ke,Pe)=>ye.createElement("li",{key:Pe,style:{width:ce(Pe)}}));return ye.createElement("ul",{className:J()(Ae,L),style:ee},_e)},St=N=>{let{prefixCls:ce,className:Ae,width:L,style:ee}=N;return ye.createElement("h3",{className:J()(ce,Ae),style:Object.assign({width:L},ee)})};function Et(N){return N&&typeof N=="object"?N:{}}function Bt(N,ce){return N&&!ce?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ht(N,ce){return!N&&ce?{width:"38%"}:N&&ce?{width:"50%"}:{}}function Rt(N,ce){const Ae={};return(!N||!ce)&&(Ae.width="61%"),!N&&ce?Ae.rows=3:Ae.rows=2,Ae}const It=N=>{const{prefixCls:ce,loading:Ae,className:L,rootClassName:ee,style:ue,children:_e,avatar:ke=!1,title:Pe=!0,paragraph:We=!0,active:rt,round:Ze}=N,{getPrefixCls:Ge,direction:mt,skeleton:At}=ye.useContext(Le.E_),_t=Ge("skeleton",ce),[Lt,Ht]=ne(_t);if(Ae||!("loading"in N)){const Pt=!!ke,Yt=!!Pe,$t=!!We;let S;if(Pt){const Q=Object.assign(Object.assign({prefixCls:`${_t}-avatar`},Bt(Yt,$t)),Et(ke));S=ye.createElement("div",{className:`${_t}-header`},ye.createElement(fe,Object.assign({},Q)))}let C;if(Yt||$t){let Q;if(Yt){const pr=Object.assign(Object.assign({prefixCls:`${_t}-title`},ht(Pt,$t)),Et(Pe));Q=ye.createElement(St,Object.assign({},pr))}let Re;if($t){const pr=Object.assign(Object.assign({prefixCls:`${_t}-paragraph`},Rt(Pt,Yt)),Et(We));Re=ye.createElement(Qe,Object.assign({},pr))}C=ye.createElement("div",{className:`${_t}-content`},Q,Re)}const ot=J()(_t,{[`${_t}-with-avatar`]:Pt,[`${_t}-active`]:rt,[`${_t}-rtl`]:mt==="rtl",[`${_t}-round`]:Ze},At==null?void 0:At.className,L,ee,Ht);return Lt(ye.createElement("div",{className:ot,style:Object.assign(Object.assign({},At==null?void 0:At.style),ue)},S,C))}return typeof _e!="undefined"?_e:null};It.Button=Se,It.Avatar=ge,It.Input=R,It.Image=I,It.Node=De;var le=It,ve=le},81327:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return te}});var A=y(59301),J=y(92310),ye=y.n(J),Le=y(11592),oe=y(36355),X=y(33234);const fe=A.createContext({latestIndex:0}),he=fe.Provider;var V=k=>{let{className:P,index:H,children:ae,split:E,style:W}=k;const{latestIndex:ne}=A.useContext(fe);return ae==null?null:A.createElement(A.Fragment,null,A.createElement("div",{className:P,style:W},ae),H<ne&&E&&A.createElement("span",{className:`${P}-split`},E))},F=y(2856);function g(k){return["small","middle","large"].includes(k)}function c(k){return k?typeof k=="number"&&!Number.isNaN(k):!1}var w=function(k,P){var H={};for(var ae in k)Object.prototype.hasOwnProperty.call(k,ae)&&P.indexOf(ae)<0&&(H[ae]=k[ae]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,ae=Object.getOwnPropertySymbols(k);E<ae.length;E++)P.indexOf(ae[E])<0&&Object.prototype.propertyIsEnumerable.call(k,ae[E])&&(H[ae[E]]=k[ae[E]]);return H};const z=A.forwardRef((k,P)=>{var H,ae;const{getPrefixCls:E,space:W,direction:ne}=A.useContext(oe.E_),{size:q=(W==null?void 0:W.size)||"small",align:ge,className:Te,rootClassName:Se,children:Fe,direction:G="horizontal",prefixCls:I,split:$,style:R,wrap:Z=!1,classNames:B,styles:m}=k,_=w(k,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,M]=Array.isArray(q)?q:[q,q],we=g(M),Ee=g(O),De=c(M),$e=c(O),Je=(0,Le.Z)(Fe,{keepEmpty:!0}),Qe=ge===void 0&&G==="horizontal"?"center":ge,et=E("space",I),[St,Et]=(0,F.Z)(et),Bt=ye()(et,W==null?void 0:W.className,Et,`${et}-${G}`,{[`${et}-rtl`]:ne==="rtl",[`${et}-align-${Qe}`]:Qe,[`${et}-gap-row-${M}`]:we,[`${et}-gap-col-${O}`]:Ee},Te,Se),ht=ye()(`${et}-item`,(H=B==null?void 0:B.item)!==null&&H!==void 0?H:(ae=W==null?void 0:W.classNames)===null||ae===void 0?void 0:ae.item);let Rt=0;const It=Je.map((N,ce)=>{var Ae,L;N!=null&&(Rt=ce);const ee=N&&N.key||`${ht}-${ce}`;return A.createElement(V,{className:ht,key:ee,index:ce,split:$,style:(Ae=m==null?void 0:m.item)!==null&&Ae!==void 0?Ae:(L=W==null?void 0:W.styles)===null||L===void 0?void 0:L.item},N)}),le=A.useMemo(()=>({latestIndex:Rt}),[Rt]);if(Je.length===0)return null;const ve={};return Z&&(ve.flexWrap="wrap"),!Ee&&$e&&(ve.columnGap=O),!we&&De&&(ve.rowGap=M),St(A.createElement("div",Object.assign({ref:P,className:Bt,style:Object.assign(Object.assign(Object.assign({},ve),W==null?void 0:W.style),R)},_),A.createElement(he,{value:le},It)))});z.Compact=X.ZP;var te=z},31797:function(Ut,qe,y){"use strict";y.d(qe,{default:function(){return ne}});var A=y(59301),J=y(56762),ye=y(92343),Le=y(92310),oe=y.n(Le),X=y(36355),fe=y(61621),o=q=>{const{value:ge,formatter:Te,precision:Se,decimalSeparator:Fe,groupSeparator:G="",prefixCls:I}=q;let $;if(typeof Te=="function")$=Te(ge);else{const R=String(ge),Z=R.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Z||R==="-")$=R;else{const B=Z[1];let m=Z[2]||"0",_=Z[4]||"";m=m.replace(/\B(?=(\d{3})+(?!\d))/g,G),typeof Se=="number"&&(_=_.padEnd(Se,"0").slice(0,Se>0?Se:0)),_&&(_=`${Fe}${_}`),$=[A.createElement("span",{key:"int",className:`${I}-content-value-int`},B,m),_&&A.createElement("span",{key:"decimal",className:`${I}-content-value-decimal`},_)]}}return A.createElement("span",{className:`${I}-content-value`},$)},V=y(17313),F=y(83116),g=y(37613);const c=q=>{const{componentCls:ge,marginXXS:Te,padding:Se,colorTextDescription:Fe,titleFontSize:G,colorTextHeading:I,contentFontSize:$,fontFamily:R}=q;return{[`${ge}`]:Object.assign(Object.assign({},(0,V.Wf)(q)),{[`${ge}-title`]:{marginBottom:Te,color:Fe,fontSize:G},[`${ge}-skeleton`]:{paddingTop:Se},[`${ge}-content`]:{color:I,fontSize:$,fontFamily:R,[`${ge}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ge}-content-prefix, ${ge}-content-suffix`]:{display:"inline-block"},[`${ge}-content-prefix`]:{marginInlineEnd:Te},[`${ge}-content-suffix`]:{marginInlineStart:Te}}})}};var w=(0,F.Z)("Statistic",q=>{const ge=(0,g.TS)(q,{});return[c(ge)]},q=>{const{fontSizeHeading3:ge,fontSize:Te}=q;return{titleFontSize:Te,contentFontSize:ge}}),z=q=>{const{prefixCls:ge,className:Te,rootClassName:Se,style:Fe,valueStyle:G,value:I=0,title:$,valueRender:R,prefix:Z,suffix:B,loading:m=!1,onMouseEnter:_,onMouseLeave:O,decimalSeparator:M=".",groupSeparator:we=","}=q,{getPrefixCls:Ee,direction:De,statistic:$e}=A.useContext(X.E_),Je=Ee("statistic",ge),[Qe,et]=w(Je),St=A.createElement(o,Object.assign({decimalSeparator:M,groupSeparator:we,prefixCls:Je},q,{value:I})),Et=oe()(Je,{[`${Je}-rtl`]:De==="rtl"},$e==null?void 0:$e.className,Te,Se,et);return Qe(A.createElement("div",{className:Et,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),Fe),onMouseEnter:_,onMouseLeave:O},$&&A.createElement("div",{className:`${Je}-title`},$),A.createElement(fe.Z,{paragraph:!1,loading:m,className:`${Je}-skeleton`},A.createElement("div",{style:G,className:`${Je}-content`},Z&&A.createElement("span",{className:`${Je}-content-prefix`},Z),R?R(St):St,B&&A.createElement("span",{className:`${Je}-content-suffix`},B)))))};const te=[["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 k(q,ge){let Te=q;const Se=/\[[^\]]*]/g,Fe=(ge.match(Se)||[]).map(R=>R.slice(1,-1)),G=ge.replace(Se,"[]"),I=te.reduce((R,Z)=>{let[B,m]=Z;if(R.includes(B)){const _=Math.floor(Te/m);return Te-=_*m,R.replace(new RegExp(`${B}+`,"g"),O=>{const M=O.length;return _.toString().padStart(M,"0")})}return R},G);let $=0;return I.replace(Se,()=>{const R=Fe[$];return $+=1,R})}function P(q,ge){const{format:Te=""}=ge,Se=new Date(q).getTime(),Fe=Date.now(),G=Math.max(Se-Fe,0);return k(G,Te)}const H=1e3/30;function ae(q){return new Date(q).getTime()}const E=q=>{const{value:ge,format:Te="HH:mm:ss",onChange:Se,onFinish:Fe}=q,G=(0,J.Z)(),I=A.useRef(null),$=()=>{Fe==null||Fe(),I.current&&(clearInterval(I.current),I.current=null)},R=()=>{const m=ae(ge);m>=Date.now()&&(I.current=setInterval(()=>{G(),Se==null||Se(m-Date.now()),m<Date.now()&&$()},H))};A.useEffect(()=>(R(),()=>{I.current&&(clearInterval(I.current),I.current=null)}),[ge]);const Z=(m,_)=>P(m,Object.assign(Object.assign({},_),{format:Te})),B=m=>(0,ye.Tm)(m,{title:void 0});return A.createElement(z,Object.assign({},q,{valueRender:B,formatter:Z}))};var W=A.memo(E);z.Countdown=W;var ne=z},8378:function(Ut,qe){"use strict";const y=A=>({[A.componentCls]:{[`${A.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${A.motionDurationMid} ${A.motionEaseInOut},
opacity ${A.motionDurationMid} ${A.motionEaseInOut} !important`}},[`${A.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${A.motionDurationMid} ${A.motionEaseInOut},
opacity ${A.motionDurationMid} ${A.motionEaseInOut} !important`}}});qe.Z=y},92899:function(Ut,qe,y){"use strict";y.d(qe,{Fm:function(){return g}});var A=y(93083),J=y(95406);const ye=new A.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Le=new A.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),oe=new A.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new A.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fe=new A.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),he=new A.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 A.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new A.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),F={"move-up":{inKeyframes:o,outKeyframes:V},"move-down":{inKeyframes:ye,outKeyframes:Le},"move-left":{inKeyframes:oe,outKeyframes:X},"move-right":{inKeyframes:fe,outKeyframes:he}},g=(c,w)=>{const{antCls:b}=c,z=`${b}-${w}`,{inKeyframes:te,outKeyframes:k}=F[w];return[(0,J.R)(z,te,k,c.motionDurationMid),{[`
${z}-enter,
${z}-appear
`]:{opacity:0,animationTimingFunction:c.motionEaseOutCirc},[`${z}-leave`]:{animationTimingFunction:c.motionEaseInOutCirc}}]}},13826:function(Ut,qe,y){"use strict";y.d(qe,{Qt:function(){return oe},Uw:function(){return Le},fJ:function(){return ye},ly:function(){return X},oN:function(){return g}});var A=y(93083),J=y(95406);const ye=new A.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Le=new A.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),oe=new A.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),X=new A.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fe=new A.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),he=new A.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new A.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),V=new A.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),F={"slide-up":{inKeyframes:ye,outKeyframes:Le},"slide-down":{inKeyframes:oe,outKeyframes:X},"slide-left":{inKeyframes:fe,outKeyframes:he},"slide-right":{inKeyframes:o,outKeyframes:V}},g=(c,w)=>{const{antCls:b}=c,z=`${b}-${w}`,{inKeyframes:te,outKeyframes:k}=F[w];return[(0,J.R)(z,te,k,c.motionDurationMid),{[`
${z}-enter,
${z}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:c.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${z}-leave`]:{animationTimingFunction:c.motionEaseInQuint}}]}},19447:function(Ut,qe,y){"use strict";y.d(qe,{ZP:function(){return oe},fS:function(){return ye},qN:function(){return J}});var A=y(47585);const J=8;function ye(X){const fe=J,{contentRadius:he,limitVerticalRadius:o}=X,V=he>12?he+2:12;return{dropdownArrowOffset:V,dropdownArrowOffsetVertical:o?fe:V}}function Le(X,fe){return X?fe:{}}function oe(X,fe){const{componentCls:he,sizePopupArrow:o,borderRadiusXS:V,borderRadiusOuter:F,boxShadowPopoverArrow:g}=X,{colorBg:c,contentRadius:w=X.borderRadiusLG,limitVerticalRadius:b,arrowDistance:z=0,arrowPlacement:te={left:!0,right:!0,top:!0,bottom:!0}}=fe,{dropdownArrowOffsetVertical:k,dropdownArrowOffset:P}=ye({contentRadius:w,limitVerticalRadius:b});return{[he]:Object.assign(Object.assign(Object.assign(Object.assign({[`${he}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,A.r)(o,V,F,c,g)),{"&:before":{background:c}})]},Le(!!te.top,{[[`&-placement-top ${he}-arrow`,`&-placement-topLeft ${he}-arrow`,`&-placement-topRight ${he}-arrow`].join(",")]:{bottom:z,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${he}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${he}-arrow`]:{left:{_skip_check_:!0,value:P}},[`&-placement-topRight ${he}-arrow`]:{right:{_skip_check_:!0,value:P}}})),Le(!!te.bottom,{[[`&-placement-bottom ${he}-arrow`,`&-placement-bottomLeft ${he}-arrow`,`&-placement-bottomRight ${he}-arrow`].join(",")]:{top:z,transform:"translateY(-100%)"},[`&-placement-bottom ${he}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${he}-arrow`]:{left:{_skip_check_:!0,value:P}},[`&-placement-bottomRight ${he}-arrow`]:{right:{_skip_check_:!0,value:P}}})),Le(!!te.left,{[[`&-placement-left ${he}-arrow`,`&-placement-leftTop ${he}-arrow`,`&-placement-leftBottom ${he}-arrow`].join(",")]:{right:{_skip_check_:!0,value:z},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${he}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${he}-arrow`]:{top:k},[`&-placement-leftBottom ${he}-arrow`]:{bottom:k}})),Le(!!te.right,{[[`&-placement-right ${he}-arrow`,`&-placement-rightTop ${he}-arrow`,`&-placement-rightBottom ${he}-arrow`].join(",")]:{left:{_skip_check_:!0,value:z},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${he}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${he}-arrow`]:{top:k},[`&-placement-rightBottom ${he}-arrow`]:{bottom:k}}))}}},47585:function(Ut,qe,y){"use strict";y.d(qe,{r:function(){return A}});const A=(J,ye,Le,oe,X)=>{const fe=J/2,he=0,o=fe,V=Le*1/Math.sqrt(2),F=fe-Le*(1-1/Math.sqrt(2)),g=fe-ye*(1/Math.sqrt(2)),c=Le*(Math.sqrt(2)-1)+ye*(1/Math.sqrt(2)),w=2*fe-g,b=c,z=2*fe-V,te=F,k=2*fe-he,P=o,H=fe*Math.sqrt(2)+Le*(Math.sqrt(2)-2),ae=Le*(Math.sqrt(2)-1);return{pointerEvents:"none",width:J,height:J,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:J,height:J/2,background:oe,clipPath:{_multi_value_:!0,value:[`polygon(${ae}px 100%, 50% ${ae}px, ${2*fe-ae}px 100%, ${ae}px 100%)`,`path('M ${he} ${o} A ${Le} ${Le} 0 0 0 ${V} ${F} L ${g} ${c} A ${ye} ${ye} 0 0 1 ${w} ${b} L ${z} ${te} A ${Le} ${Le} 0 0 0 ${k} ${P} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:H,height:H,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ye}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:X,zIndex:0,background:"transparent"}}}},99313:function(Ut,qe,y){"use strict";y.d(qe,{default:function(){return tr}});var A=y(99267),J=y(18785),ye=y(62772),Le=y(92310),oe=y.n(Le),X=y(96663),fe=y(90493),he=y(44127),o=y(72071),V=y(20135),F=y(6620),g=y(59301),c=y(49658),w=y(18929),b=y(77900),z=(0,g.createContext)(null),te=g.forwardRef(function(pe,Ce){var it=pe.prefixCls,Ke=pe.className,st=pe.style,ft=pe.id,wt=pe.active,Xt=pe.tabKey,ar=pe.children;return g.createElement("div",{id:ft&&"".concat(ft,"-panel-").concat(Xt),role:"tabpanel",tabIndex:wt?0:-1,"aria-labelledby":ft&&"".concat(ft,"-tab-").concat(Xt),"aria-hidden":!wt,style:st,className:oe()(it,wt&&"".concat(it,"-active"),Ke),ref:Ce},ar)}),k=te,P=["key","forceRender","style","className"];function H(pe){var Ce=pe.id,it=pe.activeKey,Ke=pe.animated,st=pe.tabPosition,ft=pe.destroyInactiveTabPane,wt=g.useContext(z),Xt=wt.prefixCls,ar=wt.tabs,jt=Ke.tabPane,gr="".concat(Xt,"-tabpane");return g.createElement("div",{className:oe()("".concat(Xt,"-content-holder"))},g.createElement("div",{className:oe()("".concat(Xt,"-content"),"".concat(Xt,"-content-").concat(st),(0,fe.Z)({},"".concat(Xt,"-content-animated"),jt))},ar.map(function(sr){var Gt=sr.key,Ot=sr.forceRender,ur=sr.style,Dr=sr.className,yr=(0,F.Z)(sr,P),Lr=Gt===it;return g.createElement(b.default,(0,X.Z)({key:Gt,visible:Lr,forceRender:Ot,removeOnLeave:!!ft,leavedClassName:"".concat(gr,"-hidden")},Ke.tabPaneMotion),function(en,Ar){var nr=en.style,tt=en.className;return g.createElement(k,(0,X.Z)({},yr,{prefixCls:gr,id:Ce,tabKey:Gt,animated:jt,active:Lr,style:(0,he.Z)((0,he.Z)({},ur),nr),className:oe()(Dr,tt),ref:Ar}))})})))}var ae=y(19127),E=y(29301),W=y(6089),ne=y(8654),q={width:0,height:0,left:0,top:0};function ge(pe,Ce,it){return(0,g.useMemo)(function(){for(var Ke,st=new Map,ft=Ce.get((Ke=pe[0])===null||Ke===void 0?void 0:Ke.key)||q,wt=ft.left+ft.width,Xt=0;Xt<pe.length;Xt+=1){var ar=pe[Xt].key,jt=Ce.get(ar);if(!jt){var gr;jt=Ce.get((gr=pe[Xt-1])===null||gr===void 0?void 0:gr.key)||q}var sr=st.get(ar)||(0,he.Z)({},jt);sr.right=wt-sr.left-sr.width,st.set(ar,sr)}return st},[pe.map(function(Ke){return Ke.key}).join("_"),Ce,it])}function Te(pe,Ce){var it=g.useRef(pe),Ke=g.useState({}),st=(0,o.Z)(Ke,2),ft=st[1];function wt(Xt){var ar=typeof Xt=="function"?Xt(it.current):Xt;ar!==it.current&&Ce(ar,it.current),it.current=ar,ft({})}return[it.current,wt]}var Se=.1,Fe=.01,G=20,I=Math.pow(.995,G);function $(pe,Ce){var it=(0,g.useState)(),Ke=(0,o.Z)(it,2),st=Ke[0],ft=Ke[1],wt=(0,g.useState)(0),Xt=(0,o.Z)(wt,2),ar=Xt[0],jt=Xt[1],gr=(0,g.useState)(0),sr=(0,o.Z)(gr,2),Gt=sr[0],Ot=sr[1],ur=(0,g.useState)(),Dr=(0,o.Z)(ur,2),yr=Dr[0],Lr=Dr[1],en=(0,g.useRef)();function Ar(at){var Ct=at.touches[0],xt=Ct.screenX,zt=Ct.screenY;ft({x:xt,y:zt}),window.clearInterval(en.current)}function nr(at){if(st){at.preventDefault();var Ct=at.touches[0],xt=Ct.screenX,zt=Ct.screenY;ft({x:xt,y:zt});var rr=xt-st.x,qt=zt-st.y;Ce(rr,qt);var br=Date.now();jt(br),Ot(br-ar),Lr({x:rr,y:qt})}}function tt(){if(st&&(ft(null),Lr(null),yr)){var at=yr.x/Gt,Ct=yr.y/Gt,xt=Math.abs(at),zt=Math.abs(Ct);if(Math.max(xt,zt)<Se)return;var rr=at,qt=Ct;en.current=window.setInterval(function(){if(Math.abs(rr)<Fe&&Math.abs(qt)<Fe){window.clearInterval(en.current);return}rr*=I,qt*=I,Ce(rr*G,qt*G)},G)}}var Ye=(0,g.useRef)();function gt(at){var Ct=at.deltaX,xt=at.deltaY,zt=0,rr=Math.abs(Ct),qt=Math.abs(xt);rr===qt?zt=Ye.current==="x"?Ct:xt:rr>qt?(zt=Ct,Ye.current="x"):(zt=xt,Ye.current="y"),Ce(-zt,-zt)&&at.preventDefault()}var Tt=(0,g.useRef)(null);Tt.current={onTouchStart:Ar,onTouchMove:nr,onTouchEnd:tt,onWheel:gt},g.useEffect(function(){function at(rr){Tt.current.onTouchStart(rr)}function Ct(rr){Tt.current.onTouchMove(rr)}function xt(rr){Tt.current.onTouchEnd(rr)}function zt(rr){Tt.current.onWheel(rr)}return document.addEventListener("touchmove",Ct,{passive:!1}),document.addEventListener("touchend",xt,{passive:!1}),pe.current.addEventListener("touchstart",at,{passive:!1}),pe.current.addEventListener("wheel",zt),function(){document.removeEventListener("touchmove",Ct),document.removeEventListener("touchend",xt)}},[])}var R=y(34280);function Z(pe){var Ce=(0,g.useState)(0),it=(0,o.Z)(Ce,2),Ke=it[0],st=it[1],ft=(0,g.useRef)(0),wt=(0,g.useRef)();return wt.current=pe,(0,R.o)(function(){var Xt;(Xt=wt.current)===null||Xt===void 0||Xt.call(wt)},[Ke]),function(){ft.current===Ke&&(ft.current+=1,st(ft.current))}}function B(pe){var Ce=(0,g.useRef)([]),it=(0,g.useState)({}),Ke=(0,o.Z)(it,2),st=Ke[1],ft=(0,g.useRef)(typeof pe=="function"?pe():pe),wt=Z(function(){var ar=ft.current;Ce.current.forEach(function(jt){ar=jt(ar)}),Ce.current=[],ft.current=ar,st({})});function Xt(ar){Ce.current.push(ar),wt()}return[ft.current,Xt]}var m={width:0,height:0,left:0,top:0,right:0};function _(pe,Ce,it,Ke,st,ft,wt){var Xt=wt.tabs,ar=wt.tabPosition,jt=wt.rtl,gr,sr,Gt;return["top","bottom"].includes(ar)?(gr="width",sr=jt?"right":"left",Gt=Math.abs(it)):(gr="height",sr="top",Gt=-it),(0,g.useMemo)(function(){if(!Xt.length)return[0,0];for(var Ot=Xt.length,ur=Ot,Dr=0;Dr<Ot;Dr+=1){var yr=pe.get(Xt[Dr].key)||m;if(yr[sr]+yr[gr]>Gt+Ce){ur=Dr-1;break}}for(var Lr=0,en=Ot-1;en>=0;en-=1){var Ar=pe.get(Xt[en].key)||m;if(Ar[sr]<Gt){Lr=en+1;break}}return Lr>=ur?[0,0]:[Lr,ur]},[pe,Ce,Ke,st,ft,Gt,ar,Xt.map(function(Ot){return Ot.key}).join("_"),jt])}function O(pe){var Ce;return pe instanceof Map?(Ce={},pe.forEach(function(it,Ke){Ce[Ke]=it})):Ce=pe,JSON.stringify(Ce)}var M="TABS_DQ";function we(pe){return String(pe).replace(/"/g,M)}function Ee(pe,Ce,it,Ke){return!(!it||Ke||pe===!1||pe===void 0&&(Ce===!1||Ce===null))}function De(pe,Ce){var it=pe.prefixCls,Ke=pe.editable,st=pe.locale,ft=pe.style;return!Ke||Ke.showAdd===!1?null:g.createElement("button",{ref:Ce,type:"button",className:"".concat(it,"-nav-add"),style:ft,"aria-label":(st==null?void 0:st.addAriaLabel)||"Add tab",onClick:function(Xt){Ke.onEdit("add",{event:Xt})}},Ke.addIcon||"+")}var $e=g.forwardRef(De),Je=g.forwardRef(function(pe,Ce){var it=pe.position,Ke=pe.prefixCls,st=pe.extra;if(!st)return null;var ft,wt={};return(0,V.Z)(st)==="object"&&!g.isValidElement(st)?wt=st:wt.right=st,it==="right"&&(ft=wt.right),it==="left"&&(ft=wt.left),ft?g.createElement("div",{className:"".concat(Ke,"-extra-content"),ref:Ce},ft):null}),Qe=Je,et=y(31561),St=y(15285),Et=y(10228);function Bt(pe,Ce){var it=pe.prefixCls,Ke=pe.id,st=pe.tabs,ft=pe.locale,wt=pe.mobile,Xt=pe.moreIcon,ar=Xt===void 0?"More":Xt,jt=pe.moreTransitionName,gr=pe.style,sr=pe.className,Gt=pe.editable,Ot=pe.tabBarGutter,ur=pe.rtl,Dr=pe.removeAriaLabel,yr=pe.onTabClick,Lr=pe.getPopupContainer,en=pe.popupClassName,Ar=(0,g.useState)(!1),nr=(0,o.Z)(Ar,2),tt=nr[0],Ye=nr[1],gt=(0,g.useState)(null),Tt=(0,o.Z)(gt,2),at=Tt[0],Ct=Tt[1],xt="".concat(Ke,"-more-popup"),zt="".concat(it,"-dropdown"),rr=at!==null?"".concat(xt,"-").concat(at):null,qt=ft==null?void 0:ft.dropdownAriaLabel;function br(Cr,Rr){Cr.preventDefault(),Cr.stopPropagation(),Gt.onEdit("remove",{key:Rr,event:Cr})}var Mr=g.createElement(St.ZP,{onClick:function(Rr){var Br=Rr.key,Pr=Rr.domEvent;yr(Br,Pr),Ye(!1)},prefixCls:"".concat(zt,"-menu"),id:xt,tabIndex:-1,role:"listbox","aria-activedescendant":rr,selectedKeys:[at],"aria-label":qt!==void 0?qt:"expanded dropdown"},st.map(function(Cr){var Rr=Cr.closable,Br=Cr.disabled,Pr=Cr.closeIcon,kr=Cr.key,zr=Cr.label,sn=Ee(Rr,Pr,Gt,Br);return g.createElement(St.sN,{key:kr,id:"".concat(xt,"-").concat(kr),role:"option","aria-controls":Ke&&"".concat(Ke,"-panel-").concat(kr),disabled:Br},g.createElement("span",null,zr),sn&&g.createElement("button",{type:"button","aria-label":Dr||"remove",tabIndex:0,className:"".concat(zt,"-menu-item-remove"),onClick:function(Tr){Tr.stopPropagation(),br(Tr,kr)}},Pr||Gt.removeIcon||"\xD7"))}));function Fr(Cr){for(var Rr=st.filter(function(sn){return!sn.disabled}),Br=Rr.findIndex(function(sn){return sn.key===at})||0,Pr=Rr.length,kr=0;kr<Pr;kr+=1){Br=(Br+Cr+Pr)%Pr;var zr=Rr[Br];if(!zr.disabled){Ct(zr.key);return}}}function vr(Cr){var Rr=Cr.which;if(!tt){[Et.Z.DOWN,Et.Z.SPACE,Et.Z.ENTER].includes(Rr)&&(Ye(!0),Cr.preventDefault());return}switch(Rr){case Et.Z.UP:Fr(-1),Cr.preventDefault();break;case Et.Z.DOWN:Fr(1),Cr.preventDefault();break;case Et.Z.ESC:Ye(!1);break;case Et.Z.SPACE:case Et.Z.ENTER:at!==null&&yr(at,Cr);break}}(0,g.useEffect)(function(){var Cr=document.getElementById(rr);Cr&&Cr.scrollIntoView&&Cr.scrollIntoView(!1)},[at]),(0,g.useEffect)(function(){tt||Ct(null)},[tt]);var dr=(0,fe.Z)({},ur?"marginRight":"marginLeft",Ot);st.length||(dr.visibility="hidden",dr.order=1);var Yr=oe()((0,fe.Z)({},"".concat(zt,"-rtl"),ur)),Nr=wt?null:g.createElement(et.Z,{prefixCls:zt,overlay:Mr,trigger:["hover"],visible:st.length?tt:!1,transitionName:jt,onVisibleChange:Ye,overlayClassName:oe()(Yr,en),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Lr},g.createElement("button",{type:"button",className:"".concat(it,"-nav-more"),style:dr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":xt,id:"".concat(Ke,"-more"),"aria-expanded":tt,onKeyDown:vr},ar));return g.createElement("div",{className:oe()("".concat(it,"-nav-operations"),sr),style:gr,ref:Ce},Nr,g.createElement($e,{prefixCls:it,locale:ft,editable:Gt}))}var ht=g.memo(g.forwardRef(Bt),function(pe,Ce){return Ce.tabMoving});function Rt(pe){var Ce,it=pe.prefixCls,Ke=pe.id,st=pe.active,ft=pe.tab,wt=ft.key,Xt=ft.label,ar=ft.disabled,jt=ft.closeIcon,gr=pe.closable,sr=pe.renderWrapper,Gt=pe.removeAriaLabel,Ot=pe.editable,ur=pe.onClick,Dr=pe.onFocus,yr=pe.style,Lr="".concat(it,"-tab"),en=Ee(gr,jt,Ot,ar);function Ar(Ye){ar||ur(Ye)}function nr(Ye){Ye.preventDefault(),Ye.stopPropagation(),Ot.onEdit("remove",{key:wt,event:Ye})}var tt=g.createElement("div",{key:wt,"data-node-key":we(wt),className:oe()(Lr,(Ce={},(0,fe.Z)(Ce,"".concat(Lr,"-with-remove"),en),(0,fe.Z)(Ce,"".concat(Lr,"-active"),st),(0,fe.Z)(Ce,"".concat(Lr,"-disabled"),ar),Ce)),style:yr,onClick:Ar},g.createElement("div",{role:"tab","aria-selected":st,id:Ke&&"".concat(Ke,"-tab-").concat(wt),className:"".concat(Lr,"-btn"),"aria-controls":Ke&&"".concat(Ke,"-panel-").concat(wt),"aria-disabled":ar,tabIndex:ar?null:0,onClick:function(gt){gt.stopPropagation(),Ar(gt)},onKeyDown:function(gt){[Et.Z.SPACE,Et.Z.ENTER].includes(gt.which)&&(gt.preventDefault(),Ar(gt))},onFocus:Dr},Xt),en&&g.createElement("button",{type:"button","aria-label":Gt||"remove",tabIndex:0,className:"".concat(Lr,"-remove"),onClick:function(gt){gt.stopPropagation(),nr(gt)}},jt||Ot.removeIcon||"\xD7"));return sr?sr(tt):tt}var It=Rt,le=y(16089),ve=function(Ce){var it=Ce.activeTabOffset,Ke=Ce.horizontal,st=Ce.rtl,ft=Ce.indicatorSize,wt=(0,g.useState)(),Xt=(0,o.Z)(wt,2),ar=Xt[0],jt=Xt[1],gr=(0,g.useRef)(),sr=function(ur){return typeof ft=="function"?ft(ur):typeof ft=="number"?ft:ur};function Gt(){le.Z.cancel(gr.current)}return(0,g.useEffect)(function(){var Ot={};return it&&(Ke?(st?(Ot.right=it.right+it.width/2,Ot.transform="translateX(50%)"):(Ot.left=it.left+it.width/2,Ot.transform="translateX(-50%)"),Ot.width=sr(it.width)):(Ot.top=it.top+it.height/2,Ot.transform="translateY(-50%)",Ot.height=sr(it.height))),Gt(),gr.current=(0,le.Z)(function(){jt(Ot)}),Gt},[it,Ke,st,ft]),{style:ar}},N=ve,ce=function(Ce){var it=Ce.current||{},Ke=it.offsetWidth,st=Ke===void 0?0:Ke,ft=it.offsetHeight,wt=ft===void 0?0:ft;return[st,wt]},Ae=function(Ce,it){return Ce[it?0:1]};function L(pe,Ce){var it,Ke=g.useContext(z),st=Ke.prefixCls,ft=Ke.tabs,wt=pe.className,Xt=pe.style,ar=pe.id,jt=pe.animated,gr=pe.activeKey,sr=pe.rtl,Gt=pe.extra,Ot=pe.editable,ur=pe.locale,Dr=pe.tabPosition,yr=pe.tabBarGutter,Lr=pe.children,en=pe.onTabClick,Ar=pe.onTabScroll,nr=pe.indicatorSize,tt=(0,g.useRef)(),Ye=(0,g.useRef)(),gt=(0,g.useRef)(),Tt=(0,g.useRef)(),at=(0,g.useRef)(),Ct=(0,g.useRef)(),xt=(0,g.useRef)(),zt=Dr==="top"||Dr==="bottom",rr=Te(0,function(gn,Hr){zt&&Ar&&Ar({direction:gn>Hr?"left":"right"})}),qt=(0,o.Z)(rr,2),br=qt[0],Mr=qt[1],Fr=Te(0,function(gn,Hr){!zt&&Ar&&Ar({direction:gn>Hr?"top":"bottom"})}),vr=(0,o.Z)(Fr,2),dr=vr[0],Yr=vr[1],Nr=(0,g.useState)([0,0]),Cr=(0,o.Z)(Nr,2),Rr=Cr[0],Br=Cr[1],Pr=(0,g.useState)([0,0]),kr=(0,o.Z)(Pr,2),zr=kr[0],sn=kr[1],Qr=(0,g.useState)([0,0]),Tr=(0,o.Z)(Qr,2),Xe=Tr[0],xr=Tr[1],$r=(0,g.useState)([0,0]),dn=(0,o.Z)($r,2),kn=dn[0],jr=dn[1],hn=B(new Map),Or=(0,o.Z)(hn,2),yn=Or[0],Rn=Or[1],rn=ge(ft,yn,zr[0]),Cn=Ae(Rr,zt),ni=Ae(zr,zt),Un=Ae(Xe,zt),ei=Ae(kn,zt),cr=Cn<ni+Un,tn=cr?Cn-ei:Cn-Un,an="".concat(st,"-nav-operations-hidden"),mn=0,Zn=0;zt&&sr?(mn=0,Zn=Math.max(0,ni-tn)):(mn=Math.min(0,tn-ni),Zn=0);function Vn(gn){return gn<mn?mn:gn>Zn?Zn:gn}var vn=(0,g.useRef)(),Nn=(0,g.useState)(),un=(0,o.Z)(Nn,2),Yn=un[0],Gn=un[1];function si(){Gn(Date.now())}function jn(){window.clearTimeout(vn.current)}$(Tt,function(gn,Hr){function Pn(Mn,ai){Mn(function(fr){var mr=Vn(fr+ai);return mr})}return cr?(zt?Pn(Mr,gn):Pn(Yr,Hr),jn(),si(),!0):!1}),(0,g.useEffect)(function(){return jn(),Yn&&(vn.current=window.setTimeout(function(){Gn(0)},100)),jn},[Yn]);var ii=_(rn,tn,zt?br:dr,ni,Un,ei,(0,he.Z)((0,he.Z)({},pe),{},{tabs:ft})),Gr=(0,o.Z)(ii,2),di=Gr[0],wi=Gr[1],yi=(0,W.Z)(function(){var gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gr,Hr=rn.get(gn)||{width:0,height:0,left:0,right:0,top:0};if(zt){var Pn=br;sr?Hr.right<br?Pn=Hr.right:Hr.right+Hr.width>br+tn&&(Pn=Hr.right+Hr.width-tn):Hr.left<-br?Pn=-Hr.left:Hr.left+Hr.width>-br+tn&&(Pn=-(Hr.left+Hr.width-tn)),Yr(0),Mr(Vn(Pn))}else{var Mn=dr;Hr.top<-dr?Mn=-Hr.top:Hr.top+Hr.height>-dr+tn&&(Mn=-(Hr.top+Hr.height-tn)),Mr(0),Yr(Vn(Mn))}}),pn={};Dr==="top"||Dr==="bottom"?pn[sr?"marginRight":"marginLeft"]=yr:pn.marginTop=yr;var fi=ft.map(function(gn,Hr){var Pn=gn.key;return g.createElement(It,{id:ar,prefixCls:st,key:Pn,tab:gn,style:Hr===0?void 0:pn,closable:gn.closable,editable:Ot,active:Pn===gr,renderWrapper:Lr,removeAriaLabel:ur==null?void 0:ur.removeAriaLabel,onClick:function(ai){en(Pn,ai)},onFocus:function(){yi(Pn),si(),Tt.current&&(sr||(Tt.current.scrollLeft=0),Tt.current.scrollTop=0)}})}),xi=function(){return Rn(function(){var Hr=new Map;return ft.forEach(function(Pn){var Mn,ai=Pn.key,fr=(Mn=at.current)===null||Mn===void 0?void 0:Mn.querySelector('[data-node-key="'.concat(we(ai),'"]'));fr&&Hr.set(ai,{width:fr.offsetWidth,height:fr.offsetHeight,left:fr.offsetLeft,top:fr.offsetTop})}),Hr})};(0,g.useEffect)(function(){xi()},[ft.map(function(gn){return gn.key}).join("_")]);var Jt=Z(function(){var gn=ce(tt),Hr=ce(Ye),Pn=ce(gt);Br([gn[0]-Hr[0]-Pn[0],gn[1]-Hr[1]-Pn[1]]);var Mn=ce(xt);xr(Mn);var ai=ce(Ct);jr(ai);var fr=ce(at);sn([fr[0]-Mn[0],fr[1]-Mn[1]]),xi()}),Xn=ft.slice(0,di),mi=ft.slice(wi+1),li=[].concat((0,ae.Z)(Xn),(0,ae.Z)(mi)),On=rn.get(gr),xn=N({activeTabOffset:On,horizontal:zt,rtl:sr,indicatorSize:nr}),Jr=xn.style;(0,g.useEffect)(function(){yi()},[gr,mn,Zn,O(On),O(rn),zt]),(0,g.useEffect)(function(){Jt()},[sr]);var En=!!li.length,Fn="".concat(st,"-nav-wrap"),Qn,In,Kn,Ri;return zt?sr?(In=br>0,Qn=br!==Zn):(Qn=br<0,In=br!==mn):(Kn=dr<0,Ri=dr!==mn),g.createElement(E.Z,{onResize:Jt},g.createElement("div",{ref:(0,ne.x1)(Ce,tt),role:"tablist",className:oe()("".concat(st,"-nav"),wt),style:Xt,onKeyDown:function(){si()}},g.createElement(Qe,{ref:Ye,position:"left",extra:Gt,prefixCls:st}),g.createElement(E.Z,{onResize:Jt},g.createElement("div",{className:oe()(Fn,(it={},(0,fe.Z)(it,"".concat(Fn,"-ping-left"),Qn),(0,fe.Z)(it,"".concat(Fn,"-ping-right"),In),(0,fe.Z)(it,"".concat(Fn,"-ping-top"),Kn),(0,fe.Z)(it,"".concat(Fn,"-ping-bottom"),Ri),it)),ref:Tt},g.createElement(E.Z,{onResize:Jt},g.createElement("div",{ref:at,className:"".concat(st,"-nav-list"),style:{transform:"translate(".concat(br,"px, ").concat(dr,"px)"),transition:Yn?"none":void 0}},fi,g.createElement($e,{ref:xt,prefixCls:st,locale:ur,editable:Ot,style:(0,he.Z)((0,he.Z)({},fi.length===0?void 0:pn),{},{visibility:En?"hidden":null})}),g.createElement("div",{className:oe()("".concat(st,"-ink-bar"),(0,fe.Z)({},"".concat(st,"-ink-bar-animated"),jt.inkBar)),style:Jr}))))),g.createElement(ht,(0,X.Z)({},pe,{removeAriaLabel:ur==null?void 0:ur.removeAriaLabel,ref:Ct,prefixCls:st,tabs:li,className:!En&&an,tabMoving:!!Yn})),g.createElement(Qe,{ref:gt,position:"right",extra:Gt,prefixCls:st})))}var ee=g.forwardRef(L),ue=["renderTabBar"],_e=["label","key"];function ke(pe){var Ce=pe.renderTabBar,it=(0,F.Z)(pe,ue),Ke=g.useContext(z),st=Ke.tabs;if(Ce){var ft=(0,he.Z)((0,he.Z)({},it),{},{panes:st.map(function(wt){var Xt=wt.label,ar=wt.key,jt=(0,F.Z)(wt,_e);return g.createElement(k,(0,X.Z)({tab:Xt,key:ar,tabKey:ar},jt))})});return Ce(ft,ee)}return g.createElement(ee,it)}var Pe=y(48736);function We(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ce;return pe===!1?Ce={inkBar:!1,tabPane:!1}:pe===!0?Ce={inkBar:!0,tabPane:!1}:Ce=(0,he.Z)({inkBar:!0},(0,V.Z)(pe)==="object"?pe:{}),Ce.tabPaneMotion&&Ce.tabPane===void 0&&(Ce.tabPane=!0),!Ce.tabPaneMotion&&Ce.tabPane&&(Ce.tabPane=!1),Ce}var rt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Ze=0;function Ge(pe,Ce){var it,Ke=pe.id,st=pe.prefixCls,ft=st===void 0?"rc-tabs":st,wt=pe.className,Xt=pe.items,ar=pe.direction,jt=pe.activeKey,gr=pe.defaultActiveKey,sr=pe.editable,Gt=pe.animated,Ot=pe.tabPosition,ur=Ot===void 0?"top":Ot,Dr=pe.tabBarGutter,yr=pe.tabBarStyle,Lr=pe.tabBarExtraContent,en=pe.locale,Ar=pe.moreIcon,nr=pe.moreTransitionName,tt=pe.destroyInactiveTabPane,Ye=pe.renderTabBar,gt=pe.onChange,Tt=pe.onTabClick,at=pe.onTabScroll,Ct=pe.getPopupContainer,xt=pe.popupClassName,zt=pe.indicatorSize,rr=(0,F.Z)(pe,rt),qt=g.useMemo(function(){return(Xt||[]).filter(function(jr){return jr&&(0,V.Z)(jr)==="object"&&"key"in jr})},[Xt]),br=ar==="rtl",Mr=We(Gt),Fr=(0,g.useState)(!1),vr=(0,o.Z)(Fr,2),dr=vr[0],Yr=vr[1];(0,g.useEffect)(function(){Yr((0,c.Z)())},[]);var Nr=(0,w.Z)(function(){var jr;return(jr=qt[0])===null||jr===void 0?void 0:jr.key},{value:jt,defaultValue:gr}),Cr=(0,o.Z)(Nr,2),Rr=Cr[0],Br=Cr[1],Pr=(0,g.useState)(function(){return qt.findIndex(function(jr){return jr.key===Rr})}),kr=(0,o.Z)(Pr,2),zr=kr[0],sn=kr[1];(0,g.useEffect)(function(){var jr=qt.findIndex(function(Or){return Or.key===Rr});if(jr===-1){var hn;jr=Math.max(0,Math.min(zr,qt.length-1)),Br((hn=qt[jr])===null||hn===void 0?void 0:hn.key)}sn(jr)},[qt.map(function(jr){return jr.key}).join("_"),Rr,zr]);var Qr=(0,w.Z)(null,{value:Ke}),Tr=(0,o.Z)(Qr,2),Xe=Tr[0],xr=Tr[1];(0,g.useEffect)(function(){Ke||(xr("rc-tabs-".concat(Ze)),Ze+=1)},[]);function $r(jr,hn){Tt==null||Tt(jr,hn);var Or=jr!==Rr;Br(jr),Or&&(gt==null||gt(jr))}var dn={id:Xe,activeKey:Rr,animated:Mr,tabPosition:ur,rtl:br,mobile:dr},kn=(0,he.Z)((0,he.Z)({},dn),{},{editable:sr,locale:en,moreIcon:Ar,moreTransitionName:nr,tabBarGutter:Dr,onTabClick:$r,onTabScroll:at,extra:Lr,style:yr,panes:null,getPopupContainer:Ct,popupClassName:xt,indicatorSize:zt});return g.createElement(z.Provider,{value:{tabs:qt,prefixCls:ft}},g.createElement("div",(0,X.Z)({ref:Ce,id:Ke,className:oe()(ft,"".concat(ft,"-").concat(ur),(it={},(0,fe.Z)(it,"".concat(ft,"-mobile"),dr),(0,fe.Z)(it,"".concat(ft,"-editable"),sr),(0,fe.Z)(it,"".concat(ft,"-rtl"),br),it),wt)},rr),g.createElement(ke,(0,X.Z)({},kn,{renderTabBar:Ye})),g.createElement(H,(0,X.Z)({destroyInactiveTabPane:tt},dn,{animated:Mr}))))}var mt=g.forwardRef(Ge),At=mt,_t=At,Lt=y(36355),Ht=y(19716),Yt=()=>null,$t=y(62892);const S={motionAppear:!1,motionEnter:!0,motionLeave:!0};function C(pe){let Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},it;return Ce===!1?it={inkBar:!1,tabPane:!1}:Ce===!0?it={inkBar:!0,tabPane:!0}:it=Object.assign({inkBar:!0},typeof Ce=="object"?Ce:{}),it.tabPane&&(it.tabPaneMotion=Object.assign(Object.assign({},S),{motionName:(0,$t.m)(pe,"switch")})),it}var ot=y(11592),Q=function(pe,Ce){var it={};for(var Ke in pe)Object.prototype.hasOwnProperty.call(pe,Ke)&&Ce.indexOf(Ke)<0&&(it[Ke]=pe[Ke]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ke=Object.getOwnPropertySymbols(pe);st<Ke.length;st++)Ce.indexOf(Ke[st])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ke[st])&&(it[Ke[st]]=pe[Ke[st]]);return it};function Re(pe){return pe.filter(Ce=>Ce)}function pr(pe,Ce){if(pe)return pe;const it=(0,ot.Z)(Ce).map(Ke=>{if(g.isValidElement(Ke)){const{key:st,props:ft}=Ke,wt=ft||{},{tab:Xt}=wt,ar=Q(wt,["tab"]);return Object.assign(Object.assign({key:String(st)},ar),{label:Xt})}return null});return Re(it)}var Be=y(17313),He=y(83116),Ve=y(37613),re=y(13826),Me=pe=>{const{componentCls:Ce,motionDurationSlow:it}=pe;return[{[Ce]:{[`${Ce}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${it}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${it}`}}}}},[(0,re.oN)(pe,"slide-up"),(0,re.oN)(pe,"slide-down")]]};const Ue=pe=>{const{componentCls:Ce,tabsCardPadding:it,cardBg:Ke,cardGutter:st,colorBorderSecondary:ft,itemSelectedColor:wt}=pe;return{[`${Ce}-card`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab`]:{margin:0,padding:it,background:Ke,border:`${pe.lineWidth}px ${pe.lineType} ${ft}`,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOut}`},[`${Ce}-tab-active`]:{color:wt,background:pe.colorBgContainer},[`${Ce}-ink-bar`]:{visibility:"hidden"}},[`&${Ce}-top, &${Ce}-bottom`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab + ${Ce}-tab`]:{marginLeft:{_skip_check_:!0,value:`${st}px`}}}},[`&${Ce}-top`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab`]:{borderRadius:`${pe.borderRadiusLG}px ${pe.borderRadiusLG}px 0 0`},[`${Ce}-tab-active`]:{borderBottomColor:pe.colorBgContainer}}},[`&${Ce}-bottom`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab`]:{borderRadius:`0 0 ${pe.borderRadiusLG}px ${pe.borderRadiusLG}px`},[`${Ce}-tab-active`]:{borderTopColor:pe.colorBgContainer}}},[`&${Ce}-left, &${Ce}-right`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab + ${Ce}-tab`]:{marginTop:`${st}px`}}},[`&${Ce}-left`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab`]:{borderRadius:{_skip_check_:!0,value:`${pe.borderRadiusLG}px 0 0 ${pe.borderRadiusLG}px`}},[`${Ce}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:pe.colorBgContainer}}}},[`&${Ce}-right`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${pe.borderRadiusLG}px ${pe.borderRadiusLG}px 0`}},[`${Ce}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:pe.colorBgContainer}}}}}}},Y=pe=>{const{componentCls:Ce,itemHoverColor:it,dropdownEdgeChildVerticalPadding:Ke}=pe;return{[`${Ce}-dropdown`]:Object.assign(Object.assign({},(0,Be.Wf)(pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:pe.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ce}-dropdown-menu`]:{maxHeight:pe.tabsDropdownHeight,margin:0,padding:`${Ke}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:pe.colorBgContainer,backgroundClip:"padding-box",borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Be.vS),{display:"flex",alignItems:"center",minWidth:pe.tabsDropdownWidth,margin:0,padding:`${pe.paddingXXS}px ${pe.paddingSM}px`,color:pe.colorText,fontWeight:"normal",fontSize:pe.fontSize,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:pe.marginSM},color:pe.colorTextDescription,fontSize:pe.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:it}},"&:hover":{background:pe.controlItemBgHover},"&-disabled":{"&, &:hover":{color:pe.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ft=pe=>{const{componentCls:Ce,margin:it,colorBorderSecondary:Ke,horizontalMargin:st,verticalItemPadding:ft,verticalItemMargin:wt}=pe;return{[`${Ce}-top, ${Ce}-bottom`]:{flexDirection:"column",[`> ${Ce}-nav, > div > ${Ce}-nav`]:{margin:st,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${pe.lineWidth}px ${pe.lineType} ${Ke}`,content:"''"},[`${Ce}-ink-bar`]:{height:pe.lineWidthBold,"&-animated":{transition:`width ${pe.motionDurationSlow}, left ${pe.motionDurationSlow},
right ${pe.motionDurationSlow}`}},[`${Ce}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:pe.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:pe.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:pe.boxShadowTabsOverflowRight},[`&${Ce}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ce}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ce}-top`]:{[`> ${Ce}-nav,
> div > ${Ce}-nav`]:{"&::before":{bottom:0},[`${Ce}-ink-bar`]:{bottom:0}}},[`${Ce}-bottom`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{order:1,marginTop:`${it}px`,marginBottom:0,"&::before":{top:0},[`${Ce}-ink-bar`]:{top:0}},[`> ${Ce}-content-holder, > div > ${Ce}-content-holder`]:{order:0}},[`${Ce}-left, ${Ce}-right`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{flexDirection:"column",minWidth:pe.controlHeight*1.25,[`${Ce}-tab`]:{padding:ft,textAlign:"center"},[`${Ce}-tab + ${Ce}-tab`]:{margin:wt},[`${Ce}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:pe.controlHeight},"&::before":{top:0,boxShadow:pe.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:pe.boxShadowTabsOverflowBottom},[`&${Ce}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ce}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ce}-ink-bar`]:{width:pe.lineWidthBold,"&-animated":{transition:`height ${pe.motionDurationSlow}, top ${pe.motionDurationSlow}`}},[`${Ce}-nav-list, ${Ce}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ce}-left`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ce}-content-holder, > div > ${Ce}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${pe.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`},[`> ${Ce}-content > ${Ce}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:pe.paddingLG}}}},[`${Ce}-right`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{order:1,[`${Ce}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ce}-content-holder, > div > ${Ce}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-pe.lineWidth},borderRight:{_skip_check_:!0,value:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`},[`> ${Ce}-content > ${Ce}-tabpane`]:{paddingRight:{_skip_check_:!0,value:pe.paddingLG}}}}}},Oe=pe=>{const{componentCls:Ce,cardPaddingSM:it,cardPaddingLG:Ke,horizontalItemPaddingSM:st,horizontalItemPaddingLG:ft}=pe;return{[Ce]:{"&-small":{[`> ${Ce}-nav`]:{[`${Ce}-tab`]:{padding:st,fontSize:pe.titleFontSizeSM}}},"&-large":{[`> ${Ce}-nav`]:{[`${Ce}-tab`]:{padding:ft,fontSize:pe.titleFontSizeLG}}}},[`${Ce}-card`]:{[`&${Ce}-small`]:{[`> ${Ce}-nav`]:{[`${Ce}-tab`]:{padding:it}},[`&${Ce}-bottom`]:{[`> ${Ce}-nav ${Ce}-tab`]:{borderRadius:`0 0 ${pe.borderRadius}px ${pe.borderRadius}px`}},[`&${Ce}-top`]:{[`> ${Ce}-nav ${Ce}-tab`]:{borderRadius:`${pe.borderRadius}px ${pe.borderRadius}px 0 0`}},[`&${Ce}-right`]:{[`> ${Ce}-nav ${Ce}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${pe.borderRadius}px ${pe.borderRadius}px 0`}}},[`&${Ce}-left`]:{[`> ${Ce}-nav ${Ce}-tab`]:{borderRadius:{_skip_check_:!0,value:`${pe.borderRadius}px 0 0 ${pe.borderRadius}px`}}}},[`&${Ce}-large`]:{[`> ${Ce}-nav`]:{[`${Ce}-tab`]:{padding:Ke}}}}}},Wt=pe=>{const{componentCls:Ce,itemActiveColor:it,itemHoverColor:Ke,iconCls:st,tabsHorizontalItemMargin:ft,horizontalItemPadding:wt,itemSelectedColor:Xt,itemColor:ar}=pe,jt=`${Ce}-tab`;return{[jt]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:wt,fontSize:pe.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:ar,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:it}},(0,Be.Qy)(pe)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-pe.marginXXS},marginLeft:{_skip_check_:!0,value:pe.marginXS},color:pe.colorTextDescription,fontSize:pe.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,"&:hover":{color:pe.colorTextHeading}},"&:hover":{color:Ke},[`&${jt}-active ${jt}-btn`]:{color:Xt,textShadow:pe.tabsActiveTextShadow},[`&${jt}-disabled`]:{color:pe.colorTextDisabled,cursor:"not-allowed"},[`&${jt}-disabled ${jt}-btn, &${jt}-disabled ${Ce}-remove`]:{"&:focus, &:active":{color:pe.colorTextDisabled}},[`& ${jt}-remove ${st}`]:{margin:0},[st]:{marginRight:{_skip_check_:!0,value:pe.marginSM}}},[`${jt} + ${jt}`]:{margin:{_skip_check_:!0,value:ft}}}},ir=pe=>{const{componentCls:Ce,tabsHorizontalItemMarginRTL:it,iconCls:Ke,cardGutter:st}=pe;return{[`${Ce}-rtl`]:{direction:"rtl",[`${Ce}-nav`]:{[`${Ce}-tab`]:{margin:{_skip_check_:!0,value:it},[`${Ce}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ke]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${pe.marginSM}px`}},[`${Ce}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${pe.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${pe.marginXXS}px`},[Ke]:{margin:0}}}},[`&${Ce}-left`]:{[`> ${Ce}-nav`]:{order:1},[`> ${Ce}-content-holder`]:{order:0}},[`&${Ce}-right`]:{[`> ${Ce}-nav`]:{order:0},[`> ${Ce}-content-holder`]:{order:1}},[`&${Ce}-card${Ce}-top, &${Ce}-card${Ce}-bottom`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-tab + ${Ce}-tab`]:{marginRight:{_skip_check_:!0,value:st},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ce}-dropdown-rtl`]:{direction:"rtl"},[`${Ce}-menu-item`]:{[`${Ce}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},bt=pe=>{const{componentCls:Ce,tabsCardPadding:it,cardHeight:Ke,cardGutter:st,itemHoverColor:ft,itemActiveColor:wt,colorBorderSecondary:Xt}=pe;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(pe)),{display:"flex",[`> ${Ce}-nav, > div > ${Ce}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ce}-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 ${pe.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ce}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${pe.motionDurationSlow}`},[`${Ce}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ce}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ce}-nav-more`]:{position:"relative",padding:it,background:"transparent",border:0,color:pe.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:pe.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ce}-nav-add`]:Object.assign({minWidth:Ke,marginLeft:{_skip_check_:!0,value:st},padding:`0 ${pe.paddingXS}px`,background:"transparent",border:`${pe.lineWidth}px ${pe.lineType} ${Xt}`,borderRadius:`${pe.borderRadiusLG}px ${pe.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:pe.colorText,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOut}`,"&:hover":{color:ft},"&:active, &:focus:not(:focus-visible)":{color:wt}},(0,Be.Qy)(pe))},[`${Ce}-extra-content`]:{flex:"none"},[`${Ce}-ink-bar`]:{position:"absolute",background:pe.inkBarColor,pointerEvents:"none"}}),Wt(pe)),{[`${Ce}-content`]:{position:"relative",width:"100%"},[`${Ce}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ce}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ce}-centered`]:{[`> ${Ce}-nav, > div > ${Ce}-nav`]:{[`${Ce}-nav-wrap`]:{[`&:not([class*='${Ce}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var kt=(0,He.Z)("Tabs",pe=>{const Ce=(0,Ve.TS)(pe,{tabsCardPadding:pe.cardPadding||`${(pe.cardHeight-Math.round(pe.fontSize*pe.lineHeight))/2-pe.lineWidth}px ${pe.padding}px`,dropdownEdgeChildVerticalPadding:pe.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${pe.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${pe.horizontalItemGutter}px`});return[Oe(Ce),ir(Ce),Ft(Ce),Y(Ce),Ue(Ce),bt(Ce),Me(Ce)]},pe=>{const Ce=pe.controlHeightLG;return{zIndexPopup:pe.zIndexPopupBase+50,cardBg:pe.colorFillAlter,cardHeight:Ce,cardPadding:"",cardPaddingSM:`${pe.paddingXXS*1.5}px ${pe.padding}px`,cardPaddingLG:`${pe.paddingXS}px ${pe.padding}px ${pe.paddingXXS*1.5}px`,titleFontSize:pe.fontSize,titleFontSizeLG:pe.fontSizeLG,titleFontSizeSM:pe.fontSize,inkBarColor:pe.colorPrimary,horizontalMargin:`0 0 ${pe.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${pe.paddingSM}px 0`,horizontalItemPaddingSM:`${pe.paddingXS}px 0`,horizontalItemPaddingLG:`${pe.padding}px 0`,verticalItemPadding:`${pe.paddingXS}px ${pe.paddingLG}px`,verticalItemMargin:`${pe.margin}px 0 0 0`,itemColor:pe.colorText,itemSelectedColor:pe.colorPrimary,itemHoverColor:pe.colorPrimaryHover,itemActiveColor:pe.colorPrimaryActive,cardGutter:pe.marginXXS/2}}),lt=function(pe,Ce){var it={};for(var Ke in pe)Object.prototype.hasOwnProperty.call(pe,Ke)&&Ce.indexOf(Ke)<0&&(it[Ke]=pe[Ke]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ke=Object.getOwnPropertySymbols(pe);st<Ke.length;st++)Ce.indexOf(Ke[st])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ke[st])&&(it[Ke[st]]=pe[Ke[st]]);return it};const pt=pe=>{const{type:Ce,className:it,rootClassName:Ke,size:st,onEdit:ft,hideAdd:wt,centered:Xt,addIcon:ar,popupClassName:jt,children:gr,items:sr,animated:Gt,style:Ot,indicatorSize:ur}=pe,Dr=lt(pe,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:yr,moreIcon:Lr=g.createElement(J.Z,null)}=Dr,{direction:en,tabs:Ar,getPrefixCls:nr,getPopupContainer:tt}=g.useContext(Lt.E_),Ye=nr("tabs",yr),[gt,Tt]=kt(Ye);let at;Ce==="editable-card"&&(at={onEdit:(br,Mr)=>{let{key:Fr,event:vr}=Mr;ft==null||ft(br==="add"?vr:Fr,br)},removeIcon:g.createElement(A.Z,null),addIcon:ar||g.createElement(ye.Z,null),showAdd:wt!==!0});const Ct=nr(),xt=pr(sr,gr),zt=C(Ye,Gt),rr=(0,Ht.Z)(st),qt=Object.assign(Object.assign({},Ar==null?void 0:Ar.style),Ot);return gt(g.createElement(_t,Object.assign({direction:en,getPopupContainer:tt,moreTransitionName:`${Ct}-slide-up`},Dr,{items:xt,className:oe()({[`${Ye}-${rr}`]:rr,[`${Ye}-card`]:["card","editable-card"].includes(Ce),[`${Ye}-editable-card`]:Ce==="editable-card",[`${Ye}-centered`]:Xt},Ar==null?void 0:Ar.className,it,Ke,Tt),popupClassName:oe()(jt,Tt),style:qt,editable:at,moreIcon:Lr,prefixCls:Ye,animated:zt,indicatorSize:ur!=null?ur:Ar==null?void 0:Ar.indicatorSize})))};pt.TabPane=Yt;var tr=pt},33166:function(Ut,qe,y){"use strict";y.d(qe,{i:function(){return A}});const A=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return J}});var A=y(33166);function J(ye,Le){return A.i.reduce((oe,X)=>{const fe=ye[`${X}1`],he=ye[`${X}3`],o=ye[`${X}6`],V=ye[`${X}7`];return Object.assign(Object.assign({},oe),Le(X,{lightColor:fe,lightBorderColor:he,darkColor:o,textColor:V}))},{})}},6848:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return Se}});var A=y(59301),J=y(92310),ye=y.n(J),Le=y(55477),oe=y(18929),X=y(62892),fe=y(79676),he=y(92343),o=y(36355),V=y(33234),F=y(88088),g=y(17313),c=y(29878),w=y(19447),b=y(45157),z=y(37613),te=y(83116);const k=Fe=>{const{componentCls:G,tooltipMaxWidth:I,tooltipColor:$,tooltipBg:R,tooltipBorderRadius:Z,zIndexPopup:B,controlHeight:m,boxShadowSecondary:_,paddingSM:O,paddingXS:M,tooltipRadiusOuter:we}=Fe;return[{[G]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,g.Wf)(Fe)),{position:"absolute",zIndex:B,display:"block",width:"max-content",maxWidth:I,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":R,[`${G}-inner`]:{minWidth:m,minHeight:m,padding:`${O/2}px ${M}px`,color:$,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:R,borderRadius:Z,boxShadow:_,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${G}-inner`]:{borderRadius:Math.min(Z,w.qN)}},[`${G}-content`]:{position:"relative"}}),(0,b.Z)(Fe,(Ee,De)=>{let{darkColor:$e}=De;return{[`&${G}-${Ee}`]:{[`${G}-inner`]:{backgroundColor:$e},[`${G}-arrow`]:{"--antd-arrow-background-color":$e}}}})),{"&-rtl":{direction:"rtl"}})},(0,w.ZP)((0,z.TS)(Fe,{borderRadiusOuter:we}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Z,limitVerticalRadius:!0}),{[`${G}-pure`]:{position:"relative",maxWidth:"none",margin:Fe.sizePopupArrow}}]};var P=(Fe,G)=>(0,te.Z)("Tooltip",$=>{if(G===!1)return[];const{borderRadius:R,colorTextLightSolid:Z,colorBgDefault:B,borderRadiusOuter:m}=$,_=(0,z.TS)($,{tooltipMaxWidth:250,tooltipColor:Z,tooltipBorderRadius:R,tooltipBg:B,tooltipRadiusOuter:m>4?4:m});return[k(_),(0,c._y)($,"zoom-big-fast")]},$=>{let{zIndexPopupBase:R,colorBgSpotlight:Z}=$;return{zIndexPopup:R+70,colorBgDefault:Z}},{resetStyle:!1})(Fe),H=y(36785);function ae(Fe,G){const I=(0,H.o2)(G),$=ye()({[`${Fe}-${G}`]:G&&I}),R={},Z={};return G&&!I&&(R.background=G,Z["--antd-arrow-background-color"]=G),{className:$,overlayStyle:R,arrowStyle:Z}}var W=Fe=>{const{prefixCls:G,className:I,placement:$="top",title:R,color:Z,overlayInnerStyle:B}=Fe,{getPrefixCls:m}=A.useContext(o.E_),_=m("tooltip",G),[O,M]=P(_,!0),we=ae(_,Z),Ee=we.arrowStyle,De=Object.assign(Object.assign({},B),we.overlayStyle),$e=ye()(M,_,`${_}-pure`,`${_}-placement-${$}`,I,we.className);return O(A.createElement("div",{className:$e,style:Ee},A.createElement("div",{className:`${_}-arrow`}),A.createElement(Le.G,Object.assign({},Fe,{className:M,prefixCls:_,overlayInnerStyle:De}),R)))},ne=function(Fe,G){var I={};for(var $ in Fe)Object.prototype.hasOwnProperty.call(Fe,$)&&G.indexOf($)<0&&(I[$]=Fe[$]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,$=Object.getOwnPropertySymbols(Fe);R<$.length;R++)G.indexOf($[R])<0&&Object.prototype.propertyIsEnumerable.call(Fe,$[R])&&(I[$[R]]=Fe[$[R]]);return I};const q=(Fe,G)=>{const I={},$=Object.assign({},Fe);return G.forEach(R=>{Fe&&R in Fe&&(I[R]=Fe[R],delete $[R])}),{picked:I,omitted:$}};function ge(Fe,G){const I=Fe.type;if((I.__ANT_BUTTON===!0||Fe.type==="button")&&Fe.props.disabled||I.__ANT_SWITCH===!0&&(Fe.props.disabled||Fe.props.loading)||I.__ANT_RADIO===!0&&Fe.props.disabled){const{picked:$,omitted:R}=q(Fe.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Z=Object.assign(Object.assign({display:"inline-block"},$),{cursor:"not-allowed",width:Fe.props.block?"100%":void 0}),B=Object.assign(Object.assign({},R),{pointerEvents:"none"}),m=(0,he.Tm)(Fe,{style:B,className:null});return A.createElement("span",{style:Z,className:ye()(Fe.props.className,`${G}-disabled-compatible-wrapper`)},m)}return Fe}const Te=A.forwardRef((Fe,G)=>{var I,$;const{prefixCls:R,openClassName:Z,getTooltipContainer:B,overlayClassName:m,color:_,overlayInnerStyle:O,children:M,afterOpenChange:we,afterVisibleChange:Ee,destroyTooltipOnHide:De,arrow:$e=!0,title:Je,overlay:Qe,builtinPlacements:et,arrowPointAtCenter:St=!1,autoAdjustOverflow:Et=!0}=Fe,Bt=!!$e,[,ht]=(0,F.Z)(),{getPopupContainer:Rt,getPrefixCls:It,direction:le}=A.useContext(o.E_),ve=A.useRef(null),N=()=>{var He;(He=ve.current)===null||He===void 0||He.forceAlign()};A.useImperativeHandle(G,()=>({forceAlign:N,forcePopupAlign:()=>{N()}}));const[ce,Ae]=(0,oe.Z)(!1,{value:(I=Fe.open)!==null&&I!==void 0?I:Fe.visible,defaultValue:($=Fe.defaultOpen)!==null&&$!==void 0?$:Fe.defaultVisible}),L=!Je&&!Qe&&Je!==0,ee=He=>{var Ve,re;Ae(L?!1:He),L||((Ve=Fe.onOpenChange)===null||Ve===void 0||Ve.call(Fe,He),(re=Fe.onVisibleChange)===null||re===void 0||re.call(Fe,He))},ue=A.useMemo(()=>{var He,Ve;let re=St;return typeof $e=="object"&&(re=(Ve=(He=$e.pointAtCenter)!==null&&He!==void 0?He:$e.arrowPointAtCenter)!==null&&Ve!==void 0?Ve:St),et||(0,fe.Z)({arrowPointAtCenter:re,autoAdjustOverflow:Et,arrowWidth:Bt?ht.sizePopupArrow:0,borderRadius:ht.borderRadius,offset:ht.marginXXS,visibleFirst:!0})},[St,$e,et,ht]),_e=A.useMemo(()=>Je===0?Je:Qe||Je||"",[Qe,Je]),ke=A.createElement(V.BR,null,typeof _e=="function"?_e():_e),{getPopupContainer:Pe,placement:We="top",mouseEnterDelay:rt=.1,mouseLeaveDelay:Ze=.1,overlayStyle:Ge,rootClassName:mt}=Fe,At=ne(Fe,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),_t=It("tooltip",R),Lt=It(),Ht=Fe["data-popover-inject"];let Pt=ce;!("open"in Fe)&&!("visible"in Fe)&&L&&(Pt=!1);const Yt=ge((0,he.l$)(M)&&!(0,he.M2)(M)?M:A.createElement("span",null,M),_t),$t=Yt.props,S=!$t.className||typeof $t.className=="string"?ye()($t.className,Z||`${_t}-open`):$t.className,[C,ot]=P(_t,!Ht),Q=ae(_t,_),Re=Q.arrowStyle,pr=Object.assign(Object.assign({},O),Q.overlayStyle),Be=ye()(m,{[`${_t}-rtl`]:le==="rtl"},Q.className,mt,ot);return C(A.createElement(Le.Z,Object.assign({},At,{showArrow:Bt,placement:We,mouseEnterDelay:rt,mouseLeaveDelay:Ze,prefixCls:_t,overlayClassName:Be,overlayStyle:Object.assign(Object.assign({},Re),Ge),getTooltipContainer:Pe||B||Rt,ref:ve,builtinPlacements:ue,overlay:ke,visible:Pt,onVisibleChange:ee,afterVisibleChange:we!=null?we:Ee,overlayInnerStyle:pr,arrowContent:A.createElement("span",{className:`${_t}-arrow-content`}),motion:{motionName:(0,X.m)(Lt,"zoom-big-fast",Fe.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!De}),Pt?(0,he.Tm)(Yt,{className:S}):Yt))});Te._InternalPanelDoNotUseOrYouWillBeFired=W;var Se=Te},64018:function(){var Ut,qe,y,A=!1,J,ye;window.PR_SHOULD_USE_CONTINUATION=!0;var Le,oe;(function(){var X=window,fe=["break,continue,do,else,for,if,return,while"],he=[fe,"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=[he,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],V=[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"],F=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[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"],c="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",w=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],b="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=[fe,"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"],te=[fe,"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"],k=[fe,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],P=[V,g,F,w,b,z,te,k],H=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ae="str",E="kwd",W="com",ne="typ",q="lit",ge="pun",Te="pln",Se="tag",Fe="dec",G="src",I="atn",$="atv",R="nocode",Z="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(le){for(var ve=0,N=!1,ce=!1,Ae=0,L=le.length;Ae<L;++Ae){var ee=le[Ae];if(ee.ignoreCase)ce=!0;else if(/[a-z]/i.test(ee.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){N=!0,ce=!1;break}}var ue={b:8,t:9,n:10,v:11,f:12,r:13};function _e(Ze){var Ge=Ze.charCodeAt(0);if(Ge!==92)return Ge;var mt=Ze.charAt(1);return Ge=ue[mt],Ge||("0"<=mt&&mt<="7"?parseInt(Ze.substring(1),8):mt==="u"||mt==="x"?parseInt(Ze.substring(2),16):Ze.charCodeAt(1))}function ke(Ze){if(Ze<32)return(Ze<16?"\\x0":"\\x")+Ze.toString(16);var Ge=String.fromCharCode(Ze);return Ge==="\\"||Ge==="-"||Ge==="]"||Ge==="^"?"\\"+Ge:Ge}function Pe(Ze){var Ge=Ze.substring(1,Ze.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")),mt=[],At=Ge[0]==="^",_t=["["];At&&_t.push("^");for(var Lt=At?1:0,Ht=Ge.length;Lt<Ht;++Lt){var Pt=Ge[Lt];if(/\\[bdsw]/i.test(Pt))_t.push(Pt);else{var Yt=_e(Pt),$t;Lt+2<Ht&&Ge[Lt+1]==="-"?($t=_e(Ge[Lt+2]),Lt+=2):$t=Yt,mt.push([Yt,$t]),$t<65||Yt>122||($t<65||Yt>90||mt.push([Math.max(65,Yt)|32,Math.min($t,90)|32]),$t<97||Yt>122||mt.push([Math.max(97,Yt)&-33,Math.min($t,122)&-33]))}}mt.sort(function(Q,Re){return Q[0]-Re[0]||Re[1]-Q[1]});for(var S=[],C=[],Lt=0;Lt<mt.length;++Lt){var ot=mt[Lt];ot[0]<=C[1]+1?C[1]=Math.max(C[1],ot[1]):S.push(C=ot)}for(var Lt=0;Lt<S.length;++Lt){var ot=S[Lt];_t.push(ke(ot[0])),ot[1]>ot[0]&&(ot[1]+1>ot[0]&&_t.push("-"),_t.push(ke(ot[1])))}return _t.push("]"),_t.join("")}function We(Ze){for(var Ge=Ze.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")),mt=Ge.length,At=[],_t=0,Lt=0;_t<mt;++_t){var Ht=Ge[_t];if(Ht==="(")++Lt;else if(Ht.charAt(0)==="\\"){var Pt=+Ht.substring(1);Pt&&(Pt<=Lt?At[Pt]=-1:Ge[_t]=ke(Pt))}}for(var _t=1;_t<At.length;++_t)At[_t]===-1&&(At[_t]=++ve);for(var _t=0,Lt=0;_t<mt;++_t){var Ht=Ge[_t];if(Ht==="(")++Lt,At[Lt]||(Ge[_t]="(?:");else if(Ht.charAt(0)==="\\"){var Pt=+Ht.substring(1);Pt&&Pt<=Lt&&(Ge[_t]="\\"+At[Pt])}}for(var _t=0;_t<mt;++_t)Ge[_t]==="^"&&Ge[_t+1]!=="^"&&(Ge[_t]="");if(Ze.ignoreCase&&N)for(var _t=0;_t<mt;++_t){var Ht=Ge[_t],Yt=Ht.charAt(0);Ht.length>=2&&Yt==="["?Ge[_t]=Pe(Ht):Yt!=="\\"&&(Ge[_t]=Ht.replace(/[a-zA-Z]/g,function(C){var ot=C.charCodeAt(0);return"["+String.fromCharCode(ot&-33,ot|32)+"]"}))}return Ge.join("")}for(var rt=[],Ae=0,L=le.length;Ae<L;++Ae){var ee=le[Ae];if(ee.global||ee.multiline)throw new Error(""+ee);rt.push("(?:"+We(ee)+")")}return new RegExp(rt.join("|"),ce?"gi":"g")}function m(le,ve){var N=/(?:^|\s)nocode(?:\s|$)/,ce=[],Ae=0,L=[],ee=0;function ue(_e){var ke=_e.nodeType;if(ke==1){if(N.test(_e.className))return;for(var Pe=_e.firstChild;Pe;Pe=Pe.nextSibling)ue(Pe);var We=_e.nodeName.toLowerCase();(We==="br"||We==="li")&&(ce[ee]=`
`,L[ee<<1]=Ae++,L[ee++<<1|1]=_e)}else if(ke==3||ke==4){var rt=_e.nodeValue;rt.length&&(ve?rt=rt.replace(/\r\n?/g,`
`):rt=rt.replace(/[ \t\r\n]+/g," "),ce[ee]=rt,L[ee<<1]=Ae,Ae+=rt.length,L[ee++<<1|1]=_e)}}return ue(le),{sourceCode:ce.join("").replace(/\n$/,""),spans:L}}function _(le,ve,N,ce,Ae){if(N){var L={sourceNode:le,pre:1,langExtension:null,numberLines:null,sourceCode:N,spans:null,basePos:ve,decorations:null};ce(L),Ae.push.apply(Ae,L.decorations)}}var O=/\S/;function M(le){for(var ve=void 0,N=le.firstChild;N;N=N.nextSibling){var ce=N.nodeType;ve=ce===1?ve?le:N:ce===3&&O.test(N.nodeValue)?le:ve}return ve===le?void 0:ve}function we(le,ve){var N={},ce;(function(){for(var ee=le.concat(ve),ue=[],_e={},ke=0,Pe=ee.length;ke<Pe;++ke){var We=ee[ke],rt=We[3];if(rt)for(var Ze=rt.length;--Ze>=0;)N[rt.charAt(Ze)]=We;var Ge=We[1],mt=""+Ge;_e.hasOwnProperty(mt)||(ue.push(Ge),_e[mt]=null)}ue.push(/[\0-\uffff]/),ce=B(ue)})();var Ae=ve.length,L=function(ee){for(var ue=ee.sourceCode,_e=ee.basePos,ke=ee.sourceNode,Pe=[_e,Te],We=0,rt=ue.match(ce)||[],Ze={},Ge=0,mt=rt.length;Ge<mt;++Ge){var At=rt[Ge],_t=Ze[At],Lt=void 0,Ht;if(typeof _t=="string")Ht=!1;else{var Pt=N[At.charAt(0)];if(Pt)Lt=At.match(Pt[1]),_t=Pt[0];else{for(var Yt=0;Yt<Ae;++Yt)if(Pt=ve[Yt],Lt=At.match(Pt[1]),Lt){_t=Pt[0];break}Lt||(_t=Te)}Ht=_t.length>=5&&_t.substring(0,5)==="lang-",Ht&&!(Lt&&typeof Lt[1]=="string")&&(Ht=!1,_t=G),Ht||(Ze[At]=_t)}var $t=We;if(We+=At.length,!Ht)Pe.push(_e+$t,_t);else{var S=Lt[1],C=At.indexOf(S),ot=C+S.length;Lt[2]&&(ot=At.length-Lt[2].length,C=ot-S.length);var Q=_t.substring(5);_(ke,_e+$t,At.substring(0,C),L,Pe),_(ke,_e+$t+C,S,St(Q,S),Pe),_(ke,_e+$t+ot,At.substring(ot),L,Pe)}}ee.decorations=Pe};return L}function Ee(le){var ve=[],N=[];le.tripleQuotedStrings?ve.push([ae,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):le.multiLineStrings?ve.push([ae,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ve.push([ae,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),le.verbatimStrings&&N.push([ae,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ce=le.hashComments;ce&&(le.cStyleComments?(ce>1?ve.push([W,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ve.push([W,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),N.push([ae,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ve.push([W,/^#[^\r\n]*/,null,"#"])),le.cStyleComments&&(N.push([W,/^\/\/[^\r\n]*/,null]),N.push([W,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ae=le.regexLiterals;if(Ae){var L=Ae>1?"":`
\r`,ee=L?".":"[\\S\\s]",ue="/(?=[^/*"+L+"])(?:[^/\\x5B\\x5C"+L+"]|\\x5C"+ee+"|\\x5B(?:[^\\x5C\\x5D"+L+"]|\\x5C"+ee+")*(?:\\x5D|$))+/";N.push(["lang-regex",RegExp("^"+Z+"("+ue+")")])}var _e=le.types;_e&&N.push([ne,_e]);var ke=(""+le.keywords).replace(/^ | $/g,"");ke.length&&N.push([E,new RegExp("^(?:"+ke.replace(/[\s,]+/g,"|")+")\\b"),null]),ve.push([Te,/^\s+/,null,` \r
\xA0`]);var Pe="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(Pe+="(?!s*/)"),N.push([q,/^@[a-z_$][a-z_$@0-9]*/i,null],[ne,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Te,/^[a-z_$][a-z_$@0-9]*/i,null],[q,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Te,/^\\[\s\S]?/,null],[ge,new RegExp(Pe),null]),we(ve,N)}var De=Ee({keywords:P,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function $e(le,ve,N){for(var ce=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,L=le.ownerDocument,ee=L.createElement("li");le.firstChild;)ee.appendChild(le.firstChild);var ue=[ee];function _e(Ge){var mt=Ge.nodeType;if(mt==1&&!ce.test(Ge.className))if(Ge.nodeName==="br")ke(Ge),Ge.parentNode&&Ge.parentNode.removeChild(Ge);else for(var At=Ge.firstChild;At;At=At.nextSibling)_e(At);else if((mt==3||mt==4)&&N){var _t=Ge.nodeValue,Lt=_t.match(Ae);if(Lt){var Ht=_t.substring(0,Lt.index);Ge.nodeValue=Ht;var Pt=_t.substring(Lt.index+Lt[0].length);if(Pt){var Yt=Ge.parentNode;Yt.insertBefore(L.createTextNode(Pt),Ge.nextSibling)}ke(Ge),Ht||Ge.parentNode.removeChild(Ge)}}}function ke(Ge){for(;!Ge.nextSibling;)if(Ge=Ge.parentNode,!Ge)return;function mt(Lt,Ht){var Pt=Ht?Lt.cloneNode(!1):Lt,Yt=Lt.parentNode;if(Yt){var $t=mt(Yt,1),S=Lt.nextSibling;$t.appendChild(Pt);for(var C=S;C;C=S)S=C.nextSibling,$t.appendChild(C)}return Pt}for(var At=mt(Ge.nextSibling,0),_t;(_t=At.parentNode)&&_t.nodeType===1;)At=_t;ue.push(At)}for(var Pe=0;Pe<ue.length;++Pe)_e(ue[Pe]);ve===(ve|0)&&ue[0].setAttribute("value",ve);var We=L.createElement("ol");We.className="linenums";for(var rt=Math.max(0,ve-1|0)||0,Pe=0,Ze=ue.length;Pe<Ze;++Pe)ee=ue[Pe],ee.className="L"+(Pe+rt)%10,ee.firstChild||ee.appendChild(L.createTextNode("\xA0")),We.appendChild(ee);le.appendChild(We)}function Je(le){var ve=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ve=ve&&+ve[1]<=8;var N=/\n/g,ce=le.sourceCode,Ae=ce.length,L=0,ee=le.spans,ue=ee.length,_e=0,ke=le.decorations,Pe=ke.length,We=0;ke[Pe]=Ae;var rt,Ze;for(Ze=rt=0;Ze<Pe;)ke[Ze]!==ke[Ze+2]?(ke[rt++]=ke[Ze++],ke[rt++]=ke[Ze++]):Ze+=2;for(Pe=rt,Ze=rt=0;Ze<Pe;){for(var Ge=ke[Ze],mt=ke[Ze+1],At=Ze+2;At+2<=Pe&&ke[At+1]===mt;)At+=2;ke[rt++]=Ge,ke[rt++]=mt,Ze=At}Pe=ke.length=rt;var _t=le.sourceNode,Lt="";_t&&(Lt=_t.style.display,_t.style.display="none");try{for(var Ht=null;_e<ue;){var Pt=ee[_e],Yt=ee[_e+2]||Ae,$t=ke[We+2]||Ae,At=Math.min(Yt,$t),S=ee[_e+1],C;if(S.nodeType!==1&&(C=ce.substring(L,At))){ve&&(C=C.replace(N,"\r")),S.nodeValue=C;var ot=S.ownerDocument,Q=ot.createElement("span");Q.className=ke[We+1];var Re=S.parentNode;Re.replaceChild(Q,S),Q.appendChild(S),L<Yt&&(ee[_e+1]=S=ot.createTextNode(ce.substring(At,Yt)),Re.insertBefore(S,Q.nextSibling))}L=At,L>=Yt&&(_e+=2),L>=$t&&(We+=2)}}finally{_t&&(_t.style.display=Lt)}}var Qe={};function et(le,ve){for(var N=ve.length;--N>=0;){var ce=ve[N];Qe.hasOwnProperty(ce)?X.console&&console.warn("cannot override language handler %s",ce):Qe[ce]=le}}function St(le,ve){return le&&Qe.hasOwnProperty(le)||(le=/^\s*</.test(ve)?"default-markup":"default-code"),Qe[le]}et(De,["default-code"]),et(we([],[[Te,/^[^<?]+/],[Fe,/^<!\w[^>]*(?:>|$)/],[W,/^<\!--[\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"]),et(we([[Te,/^[\s]+/,null,` \r
`],[$,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Se,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!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"]),et(we([],[[$,/^[\s\S]+/]]),["uq.val"]),et(Ee({keywords:V,hashComments:!0,cStyleComments:!0,types:H}),["c","cc","cpp","cxx","cyc","m"]),et(Ee({keywords:"null,true,false"}),["json"]),et(Ee({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:H}),["cs"]),et(Ee({keywords:F,cStyleComments:!0}),["java"]),et(Ee({keywords:k,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),et(Ee({keywords:z,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),et(Ee({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),et(Ee({keywords:te,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),et(Ee({keywords:w,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),et(Ee({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),et(we([],[[ae,/^[\s\S]+/]]),["regex"]);function Et(le){var ve=le.langExtension;try{var N=m(le.sourceNode,le.pre),ce=N.sourceCode;le.sourceCode=ce,le.spans=N.spans,le.basePos=0,St(ve,ce)(le),Je(le)}catch(Ae){X.console&&console.log(Ae&&Ae.stack||Ae)}}function Bt(le,ve,N){var ce=N||!1,Ae=ve||null,L=document.createElement("div");L.innerHTML="<pre>"+le+"</pre>",L=L.firstChild,ce&&$e(L,ce,!0);var ee={langExtension:Ae,numberLines:ce,sourceNode:L,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Et(ee),L.innerHTML}function ht(le,ve){var N=ve||document.body,ce=N.ownerDocument||document;function Ae(Pt){return N.getElementsByTagName(Pt)}for(var L=[Ae("pre"),Ae("code"),Ae("xmp")],ee=[],ue=0;ue<L.length;++ue)for(var _e=0,ke=L[ue].length;_e<ke;++_e)ee.push(L[ue][_e]);L=null;var Pe=Date;Pe.now||(Pe={now:function(){return+new Date}});var We=0,rt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ze=/\bprettyprint\b/,Ge=/\bprettyprinted\b/,mt=/pre|xmp/i,At=/^code$/i,_t=/^(?:pre|code|xmp)$/i,Lt={};function Ht(){for(var Pt=X.PR_SHOULD_USE_CONTINUATION?Pe.now()+250:1/0;We<ee.length&&Pe.now()<Pt;We++){for(var Yt=ee[We],$t=Lt,S=Yt;S=S.previousSibling;){var C=S.nodeType,ot=(C===7||C===8)&&S.nodeValue;if(ot?!/^\??prettify\b/.test(ot):C!==3||/\S/.test(S.nodeValue))break;if(ot){$t={},ot.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Oe,Wt,ir){$t[Wt]=ir});break}}var Q=Yt.className;if(($t!==Lt||Ze.test(Q))&&!Ge.test(Q)){for(var Re=!1,pr=Yt.parentNode;pr;pr=pr.parentNode){var Be=pr.tagName;if(_t.test(Be)&&pr.className&&Ze.test(pr.className)){Re=!0;break}}if(!Re){Yt.className+=" prettyprinted";var He=$t.lang;if(!He){He=Q.match(rt);var Ve;!He&&(Ve=M(Yt))&&At.test(Ve.tagName)&&(He=Ve.className.match(rt)),He&&(He=He[1])}var re;if(mt.test(Yt.tagName))re=1;else{var me=Yt.currentStyle,Me=ce.defaultView,Ue=me?me.whiteSpace:Me&&Me.getComputedStyle?Me.getComputedStyle(Yt,null).getPropertyValue("white-space"):0;re=Ue&&Ue.substring(0,3)==="pre"}var Y=$t.linenums;(Y=Y==="true"||+Y)||(Y=Q.match(/\blinenums\b(?::(\d+))?/),Y=Y?Y[1]&&Y[1].length?+Y[1]:!0:!1),Y&&$e(Yt,Y,re);var Ft={langExtension:He,sourceNode:Yt,numberLines:Y,pre:re,sourceCode:null,basePos:null,spans:null,decorations:null};Et(Ft)}}}We<ee.length?X.setTimeout(Ht,250):typeof le=="function"&&le()}Ht()}var Rt=X.PR={createSimpleLexer:we,registerLangHandler:et,sourceDecorator:Ee,PR_ATTRIB_NAME:I,PR_ATTRIB_VALUE:$,PR_COMMENT:W,PR_DECLARATION:Fe,PR_KEYWORD:E,PR_LITERAL:q,PR_NOCODE:R,PR_PLAIN:Te,PR_PUNCTUATION:ge,PR_SOURCE:G,PR_STRING:ae,PR_TAG:Se,PR_TYPE:ne,prettyPrintOne:A?X.prettyPrintOne=Bt:Le=Bt,prettyPrint:oe=A?X.prettyPrint=ht:oe=ht},It=X.define;typeof It=="function"&&It.amd&&It("google-code-prettify",[],function(){return Rt})})()},25769:function(Ut,qe,y){"use strict";var A=y(98040),J={"text/plain":"Text","text/html":"Url",default:"Text"},ye="Copy to clipboard: #{key}, Enter";function Le(X){var fe=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return X.replace(/#{\s*key\s*}/g,fe)}function oe(X,fe){var he,o,V,F,g,c,w=!1;fe||(fe={}),he=fe.debug||!1;try{V=A(),F=document.createRange(),g=document.getSelection(),c=document.createElement("span"),c.textContent=X,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(z){if(z.stopPropagation(),fe.format)if(z.preventDefault(),typeof z.clipboardData=="undefined"){he&&console.warn("unable to use e.clipboardData"),he&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var te=J[fe.format]||J.default;window.clipboardData.setData(te,X)}else z.clipboardData.clearData(),z.clipboardData.setData(fe.format,X);fe.onCopy&&(z.preventDefault(),fe.onCopy(z.clipboardData))}),document.body.appendChild(c),F.selectNodeContents(c),g.addRange(F);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");w=!0}catch(z){he&&console.error("unable to copy using execCommand: ",z),he&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(fe.format||"text",X),fe.onCopy&&fe.onCopy(window.clipboardData),w=!0}catch(te){he&&console.error("unable to copy using clipboardData: ",te),he&&console.error("falling back to prompt"),o=Le("message"in fe?fe.message:ye),window.prompt(o,X)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(F):g.removeAllRanges()),c&&document.body.removeChild(c),V()}return w}Ut.exports=oe},53184:function(Ut,qe,y){"use strict";var A,J;function ye(Le,oe,X){var fe=function(he,o){return Le.js_beautify(he,o)};return fe.js=Le.js_beautify,fe.css=oe.css_beautify,fe.html=X.html_beautify,fe.js_beautify=Le.js_beautify,fe.css_beautify=oe.css_beautify,fe.html_beautify=X.html_beautify,fe}A=[y(58553),y(87804),y(40998)],J=function(Le,oe,X){return ye(Le,oe,X)}.apply(qe,A),J!==void 0&&(Ut.exports=J)},87804:function(Ut,qe){var y,A;(function(){var J;(function(){"use strict";var Le=[,,function(he){function o(g){this.__parent=g,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 g=new o(this.__parent);return g.set_indent(this.__indent_count,this.__alignment_count),g},o.prototype.item=function(g){return g<0?this.__items[this.__items.length+g]:this.__items[g]},o.prototype.has_match=function(g){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(g))return!0;return!1},o.prototype.set_indent=function(g,c){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=c||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 g=this.__parent.current_line;return g.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),g.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),g.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,g.__items[0]===" "&&(g.__items.splice(0,1),g.__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(g){this.__items.push(g);var c=g.lastIndexOf(`
`);c!==-1?this.__character_count=g.length-c:this.__character_count+=g.length},o.prototype.pop=function(){var g=null;return this.is_empty()||(g=this.__items.pop(),this.__character_count-=g.length),g},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 g="";return this.is_empty()?this.__parent.indent_empty_lines&&(g=this.__parent.get_indent_string(this.__indent_count)):(g=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),g+=this.__items.join("")),g};function V(g,c){this.__cache=[""],this.__indent_size=g.indent_size,this.__indent_string=g.indent_char,g.indent_with_tabs||(this.__indent_string=new Array(g.indent_size+1).join(g.indent_char)),c=c||"",g.indent_level>0&&(c=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}V.prototype.get_indent_size=function(g,c){var w=this.__base_string_length;return c=c||0,g<0&&(w=0),w+=g*this.__indent_size,w+=c,w},V.prototype.get_indent_string=function(g,c){var w=this.__base_string;return c=c||0,g<0&&(g=0,w=""),c+=g*this.__indent_size,this.__ensure_cache(c),w+=this.__cache[c],w},V.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},V.prototype.__add_column=function(){var g=this.__cache.length,c=0,w="";this.__indent_size&&g>=this.__indent_size&&(c=Math.floor(g/this.__indent_size),g-=c*this.__indent_size,w=new Array(c+1).join(this.__indent_string)),g&&(w+=new Array(g+1).join(" ")),this.__cache.push(w)};function F(g,c){this.__indent_cache=new V(g,c),this.raw=!1,this._end_with_newline=g.end_with_newline,this.indent_size=g.indent_size,this.wrap_line_length=g.wrap_line_length,this.indent_empty_lines=g.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()}F.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},F.prototype.get_line_number=function(){return this.__lines.length},F.prototype.get_indent_string=function(g,c){return this.__indent_cache.get_indent_string(g,c)},F.prototype.get_indent_size=function(g,c){return this.__indent_cache.get_indent_size(g,c)},F.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},F.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},F.prototype.get_code=function(g){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var w=this.__lines.join(`
`);return g!==`
`&&(w=w.replace(/[\n]/g,g)),w},F.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},F.prototype.set_indent=function(g,c){return g=g||0,c=c||0,this.next_line.set_indent(g,c),this.__lines.length>1?(this.current_line.set_indent(g,c),!0):(this.current_line.set_indent(),!1)},F.prototype.add_raw_token=function(g){for(var c=0;c<g.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(g.whitespace_before),this.current_line.push(g.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},F.prototype.add_token=function(g){this.__add_space_before_token(),this.current_line.push(g),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},F.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(" "))},F.prototype.remove_indent=function(g){for(var c=this.__lines.length;g<c;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},F.prototype.trim=function(g){for(g=g===void 0?!1:g,this.current_line.trim();g&&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},F.prototype.just_added_newline=function(){return this.current_line.is_empty()},F.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},F.prototype.ensure_empty_line_above=function(g,c){for(var w=this.__lines.length-2;w>=0;){var b=this.__lines[w];if(b.is_empty())break;if(b.item(0).indexOf(g)!==0&&b.item(-1)!==c){this.__lines.splice(w+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}w--}},he.exports.Output=F},,,,function(he){function o(g,c){this.raw_options=V(g,c),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(g,c){var w=this.raw_options[g],b=c||[];return typeof w=="object"?w!==null&&typeof w.concat=="function"&&(b=w.concat()):typeof w=="string"&&(b=w.split(/[^a-zA-Z0-9_\/\-]+/)),b},o.prototype._get_boolean=function(g,c){var w=this.raw_options[g],b=w===void 0?!!c:!!w;return b},o.prototype._get_characters=function(g,c){var w=this.raw_options[g],b=c||"";return typeof w=="string"&&(b=w.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},o.prototype._get_number=function(g,c){var w=this.raw_options[g];c=parseInt(c,10),isNaN(c)&&(c=0);var b=parseInt(w,10);return isNaN(b)&&(b=c),b},o.prototype._get_selection=function(g,c,w){var b=this._get_selection_list(g,c,w);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[g]+"'");return b[0]},o.prototype._get_selection_list=function(g,c,w){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(w=w||[c[0]],!this._is_valid_selection(w,c))throw new Error("Invalid Default Value!");var b=this._get_array(g,w);if(!this._is_valid_selection(b,c))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[g]+"'");return b},o.prototype._is_valid_selection=function(g,c){return g.length&&c.length&&!g.some(function(w){return c.indexOf(w)===-1})};function V(g,c){var w={};g=F(g);var b;for(b in g)b!==c&&(w[b]=g[b]);if(c&&g[c])for(b in g[c])w[b]=g[c][b];return w}function F(g){var c={},w;for(w in g){var b=w.replace(/-/g,"_");c[b]=g[w]}return c}he.exports.Options=o,he.exports.normalizeOpts=F,he.exports.mergeOpts=V},,function(he){var o=RegExp.prototype.hasOwnProperty("sticky");function V(F){this.__input=F||"",this.__input_length=this.__input.length,this.__position=0}V.prototype.restart=function(){this.__position=0},V.prototype.back=function(){this.__position>0&&(this.__position-=1)},V.prototype.hasNext=function(){return this.__position<this.__input_length},V.prototype.next=function(){var F=null;return this.hasNext()&&(F=this.__input.charAt(this.__position),this.__position+=1),F},V.prototype.peek=function(F){var g=null;return F=F||0,F+=this.__position,F>=0&&F<this.__input_length&&(g=this.__input.charAt(F)),g},V.prototype.__match=function(F,g){F.lastIndex=g;var c=F.exec(this.__input);return c&&!(o&&F.sticky)&&c.index!==g&&(c=null),c},V.prototype.test=function(F,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(F,g):!1},V.prototype.testChar=function(F,g){var c=this.peek(g);return F.lastIndex=0,c!==null&&F.test(c)},V.prototype.match=function(F){var g=this.__match(F,this.__position);return g?this.__position+=g[0].length:g=null,g},V.prototype.read=function(F,g,c){var w="",b;return F&&(b=this.match(F),b&&(w+=b[0])),g&&(b||!F)&&(w+=this.readUntil(g,c)),w},V.prototype.readUntil=function(F,g){var c="",w=this.__position;F.lastIndex=this.__position;var b=F.exec(this.__input);return b?(w=b.index,g&&(w+=b[0].length)):w=this.__input_length,c=this.__input.substring(this.__position,w),this.__position=w,c},V.prototype.readUntilAfter=function(F){return this.readUntil(F,!0)},V.prototype.get_regexp=function(F,g){var c=null,w="g";return g&&o&&(w="y"),typeof F=="string"&&F!==""?c=new RegExp(F,w):F&&(c=new RegExp(F.source,w)),c},V.prototype.get_literal_regexp=function(F){return RegExp(F.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},V.prototype.peekUntilAfter=function(F){var g=this.__position,c=this.readUntilAfter(F);return this.__position=g,c},V.prototype.lookBack=function(F){var g=this.__position-1;return g>=F.length&&this.__input.substring(g-F.length,g).toLowerCase()===F},he.exports.InputScanner=V},,,,,function(he){function o(V,F){V=typeof V=="string"?V:V.source,F=typeof F=="string"?F:F.source,this.__directives_block_pattern=new RegExp(V+/ beautify( \w+[:]\w+)+ /.source+F,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(V+/\sbeautify\signore:end\s/.source+F,"g")}o.prototype.get_directives=function(V){if(!V.match(this.__directives_block_pattern))return null;var F={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(V);g;)F[g[1]]=g[2],g=this.__directive_pattern.exec(V);return F},o.prototype.readIgnored=function(V){return V.readUntilAfter(this.__directives_end_ignore_pattern)},he.exports.Directives=o},,function(he,o,V){var F=V(16).Beautifier,g=V(17).Options;function c(w,b){var z=new F(w,b);return z.beautify()}he.exports=c,he.exports.defaultOptions=function(){return new g}},function(he,o,V){var F=V(17).Options,g=V(2).Output,c=V(8).InputScanner,w=V(13).Directives,b=new w(/\/\*/,/\*\//),z=/\r\n|[\r\n]/,te=/\r\n|[\r\n]/g,k=/\s/,P=/(?:\s|\n)+/g,H=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ae=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function E(W,ne){this._source_text=W||"",this._options=new F(ne),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"]}E.prototype.eatString=function(W){var ne="";for(this._ch=this._input.next();this._ch;){if(ne+=this._ch,this._ch==="\\")ne+=this._input.next();else if(W.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return ne},E.prototype.eatWhitespace=function(W){for(var ne=k.test(this._input.peek()),q=0;k.test(this._input.peek());)this._ch=this._input.next(),W&&this._ch===`
`&&(q===0||q<this._options.max_preserve_newlines)&&(q++,this._output.add_new_line(!0));return ne},E.prototype.foundNestedPseudoClass=function(){for(var W=0,ne=1,q=this._input.peek(ne);q;){if(q==="{")return!0;if(q==="(")W+=1;else if(q===")"){if(W===0)return!1;W-=1}else if(q===";"||q==="}")return!1;ne++,q=this._input.peek(ne)}return!1},E.prototype.print_string=function(W){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(W)},E.prototype.preserveSingleSpace=function(W){W&&(this._output.space_before_token=!0)},E.prototype.indent=function(){this._indentLevel++},E.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var W=this._source_text,ne=this._options.eol;ne==="auto"&&(ne=`
`,W&&z.test(W||"")&&(ne=W.match(z)[0])),W=W.replace(te,`
`);var q=W.match(/^[\t ]*/)[0];this._output=new g(this._options,q),this._input=new c(W),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ge=0,Te=!1,Se=!1,Fe=!1,G=!1,I=!1,$=this._ch,R=!1,Z,B,m;Z=this._input.read(P),B=Z!=="",m=$,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),$=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var _=this._input.read(H),O=b.get_directives(_);O&&O.ignore==="start"&&(_+=b.readIgnored(this._input)),this.print_string(_),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(ae)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(B),this.print_string(this._ch);var M=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);M.match(/[ :]$/)&&(M=this.eatString(": ").replace(/\s+$/,""),this.print_string(M),this._output.space_before_token=!0),ge===0&&M.indexOf(":")!==-1&&(Se=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(B),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var we=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);we.match(/[ :]$/)&&(we=this.eatString(": ").replace(/\s+$/,""),this.print_string(we),this._output.space_before_token=!0),ge===0&&we.indexOf(":")!==-1?(Se=!0,this.indent()):we in this.NESTED_AT_RULE?(this._nestedLevel+=1,we in this.CONDITIONAL_GROUP_RULE&&(Fe=!0)):ge===0&&!Se&&(G=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(B),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Se&&(Se=!1,this.outdent()),G=!1,Fe?(Fe=!1,Te=this._indentLevel>=this._nestedLevel):Te=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Te&&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)):(m==="("?this._output.space_before_token=!1:m!==","&&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(),m==="{"&&this._output.trim(!0),Se&&(this.outdent(),Se=!1),this.print_string(this._ch),Te=!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 Ee=0;Ee<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ee++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ee])){R=!0;break}(Te||Fe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!G&&ge===0?(this.print_string(":"),Se||(Se=!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 De=m==='"'||m==="'";this.preserveSingleSpace(De||B),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")R=!1,ge===0?(Se&&(this.outdent(),Se=!1),G=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),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 $e=!1;this._input.lookBack("with")&&($e=!0),this.preserveSingleSpace(B||$e),this.print_string(this._ch),Se&&m==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),I=!0):(this.eatWhitespace(),ge++,this.indent())}else if(this._ch===")")ge&&(ge--,this.outdent()),I&&this._input.peek()===";"&&this._options.selector_separator_newline&&(I=!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&&(!Se||I)&&ge===0&&!G?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Se&&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&&k.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(B),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),k.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 Je=m==='"'||m==="'";this.preserveSingleSpace(Je||B),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&R&&this._output.add_new_line()}var Qe=this._output.get_code(ne);return Qe},he.exports.Beautifier=E},function(he,o,V){var F=V(6).Options;function g(c){F.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var w=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||w;var b=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var z=0;z<b.length;z++)b[z]!=="expand"?this.brace_style="collapse":this.brace_style=b[z]}g.prototype=new F,he.exports.Options=g}],oe={};function X(he){var o=oe[he];if(o!==void 0)return o.exports;var V=oe[he]={exports:{}};return Le[he](V,V.exports,X),V.exports}var fe=X(15);J=fe})();var ye=J;y=[],A=function(){return{css_beautify:ye}}.apply(qe,y),A!==void 0&&(Ut.exports=A)})()},40998:function(Ut,qe,y){var A,J;(function(){var ye;(function(){"use strict";var fe=[,,function(F){function g(b){this.__parent=b,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=[]}g.prototype.clone_empty=function(){var b=new g(this.__parent);return b.set_indent(this.__indent_count,this.__alignment_count),b},g.prototype.item=function(b){return b<0?this.__items[this.__items.length+b]:this.__items[b]},g.prototype.has_match=function(b){for(var z=this.__items.length-1;z>=0;z--)if(this.__items[z].match(b))return!0;return!1},g.prototype.set_indent=function(b,z){this.is_empty()&&(this.__indent_count=b||0,this.__alignment_count=z||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},g.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)},g.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},g.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var b=this.__parent.current_line;return b.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),b.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),b.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,b.__items[0]===" "&&(b.__items.splice(0,1),b.__character_count-=1),!0}return!1},g.prototype.is_empty=function(){return this.__items.length===0},g.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},g.prototype.push=function(b){this.__items.push(b);var z=b.lastIndexOf(`
`);z!==-1?this.__character_count=b.length-z:this.__character_count+=b.length},g.prototype.pop=function(){var b=null;return this.is_empty()||(b=this.__items.pop(),this.__character_count-=b.length),b},g.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},g.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},g.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},g.prototype.toString=function(){var b="";return this.is_empty()?this.__parent.indent_empty_lines&&(b=this.__parent.get_indent_string(this.__indent_count)):(b=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),b+=this.__items.join("")),b};function c(b,z){this.__cache=[""],this.__indent_size=b.indent_size,this.__indent_string=b.indent_char,b.indent_with_tabs||(this.__indent_string=new Array(b.indent_size+1).join(b.indent_char)),z=z||"",b.indent_level>0&&(z=new Array(b.indent_level+1).join(this.__indent_string)),this.__base_string=z,this.__base_string_length=z.length}c.prototype.get_indent_size=function(b,z){var te=this.__base_string_length;return z=z||0,b<0&&(te=0),te+=b*this.__indent_size,te+=z,te},c.prototype.get_indent_string=function(b,z){var te=this.__base_string;return z=z||0,b<0&&(b=0,te=""),z+=b*this.__indent_size,this.__ensure_cache(z),te+=this.__cache[z],te},c.prototype.__ensure_cache=function(b){for(;b>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var b=this.__cache.length,z=0,te="";this.__indent_size&&b>=this.__indent_size&&(z=Math.floor(b/this.__indent_size),b-=z*this.__indent_size,te=new Array(z+1).join(this.__indent_string)),b&&(te+=new Array(b+1).join(" ")),this.__cache.push(te)};function w(b,z){this.__indent_cache=new c(b,z),this.raw=!1,this._end_with_newline=b.end_with_newline,this.indent_size=b.indent_size,this.wrap_line_length=b.wrap_line_length,this.indent_empty_lines=b.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new g(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}w.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},w.prototype.get_line_number=function(){return this.__lines.length},w.prototype.get_indent_string=function(b,z){return this.__indent_cache.get_indent_string(b,z)},w.prototype.get_indent_size=function(b,z){return this.__indent_cache.get_indent_size(b,z)},w.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},w.prototype.add_new_line=function(b){return this.is_empty()||!b&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},w.prototype.get_code=function(b){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 te=this.__lines.join(`
`);return b!==`
`&&(te=te.replace(/[\n]/g,b)),te},w.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},w.prototype.set_indent=function(b,z){return b=b||0,z=z||0,this.next_line.set_indent(b,z),this.__lines.length>1?(this.current_line.set_indent(b,z),!0):(this.current_line.set_indent(),!1)},w.prototype.add_raw_token=function(b){for(var z=0;z<b.newlines;z++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(b.whitespace_before),this.current_line.push(b.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},w.prototype.add_token=function(b){this.__add_space_before_token(),this.current_line.push(b),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},w.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(" "))},w.prototype.remove_indent=function(b){for(var z=this.__lines.length;b<z;)this.__lines[b]._remove_indent(),b++;this.current_line._remove_wrap_indent()},w.prototype.trim=function(b){for(b=b===void 0?!1:b,this.current_line.trim();b&&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},w.prototype.just_added_newline=function(){return this.current_line.is_empty()},w.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},w.prototype.ensure_empty_line_above=function(b,z){for(var te=this.__lines.length-2;te>=0;){var k=this.__lines[te];if(k.is_empty())break;if(k.item(0).indexOf(b)!==0&&k.item(-1)!==z){this.__lines.splice(te+1,0,new g(this)),this.previous_line=this.__lines[this.__lines.length-2];break}te--}},F.exports.Output=w},function(F){function g(c,w,b,z){this.type=c,this.text=w,this.comments_before=null,this.newlines=b||0,this.whitespace_before=z||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}F.exports.Token=g},,,function(F){function g(b,z){this.raw_options=c(b,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"])}g.prototype._get_array=function(b,z){var te=this.raw_options[b],k=z||[];return typeof te=="object"?te!==null&&typeof te.concat=="function"&&(k=te.concat()):typeof te=="string"&&(k=te.split(/[^a-zA-Z0-9_\/\-]+/)),k},g.prototype._get_boolean=function(b,z){var te=this.raw_options[b],k=te===void 0?!!z:!!te;return k},g.prototype._get_characters=function(b,z){var te=this.raw_options[b],k=z||"";return typeof te=="string"&&(k=te.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),k},g.prototype._get_number=function(b,z){var te=this.raw_options[b];z=parseInt(z,10),isNaN(z)&&(z=0);var k=parseInt(te,10);return isNaN(k)&&(k=z),k},g.prototype._get_selection=function(b,z,te){var k=this._get_selection_list(b,z,te);if(k.length!==1)throw new Error("Invalid Option Value: The option '"+b+`' can only be one of the following values:
`+z+`
You passed in: '`+this.raw_options[b]+"'");return k[0]},g.prototype._get_selection_list=function(b,z,te){if(!z||z.length===0)throw new Error("Selection list cannot be empty.");if(te=te||[z[0]],!this._is_valid_selection(te,z))throw new Error("Invalid Default Value!");var k=this._get_array(b,te);if(!this._is_valid_selection(k,z))throw new Error("Invalid Option Value: The option '"+b+`' can contain only the following values:
`+z+`
You passed in: '`+this.raw_options[b]+"'");return k},g.prototype._is_valid_selection=function(b,z){return b.length&&z.length&&!b.some(function(te){return z.indexOf(te)===-1})};function c(b,z){var te={};b=w(b);var k;for(k in b)k!==z&&(te[k]=b[k]);if(z&&b[z])for(k in b[z])te[k]=b[z][k];return te}function w(b){var z={},te;for(te in b){var k=te.replace(/-/g,"_");z[k]=b[te]}return z}F.exports.Options=g,F.exports.normalizeOpts=w,F.exports.mergeOpts=c},,function(F){var g=RegExp.prototype.hasOwnProperty("sticky");function c(w){this.__input=w||"",this.__input_length=this.__input.length,this.__position=0}c.prototype.restart=function(){this.__position=0},c.prototype.back=function(){this.__position>0&&(this.__position-=1)},c.prototype.hasNext=function(){return this.__position<this.__input_length},c.prototype.next=function(){var w=null;return this.hasNext()&&(w=this.__input.charAt(this.__position),this.__position+=1),w},c.prototype.peek=function(w){var b=null;return w=w||0,w+=this.__position,w>=0&&w<this.__input_length&&(b=this.__input.charAt(w)),b},c.prototype.__match=function(w,b){w.lastIndex=b;var z=w.exec(this.__input);return z&&!(g&&w.sticky)&&z.index!==b&&(z=null),z},c.prototype.test=function(w,b){return b=b||0,b+=this.__position,b>=0&&b<this.__input_length?!!this.__match(w,b):!1},c.prototype.testChar=function(w,b){var z=this.peek(b);return w.lastIndex=0,z!==null&&w.test(z)},c.prototype.match=function(w){var b=this.__match(w,this.__position);return b?this.__position+=b[0].length:b=null,b},c.prototype.read=function(w,b,z){var te="",k;return w&&(k=this.match(w),k&&(te+=k[0])),b&&(k||!w)&&(te+=this.readUntil(b,z)),te},c.prototype.readUntil=function(w,b){var z="",te=this.__position;w.lastIndex=this.__position;var k=w.exec(this.__input);return k?(te=k.index,b&&(te+=k[0].length)):te=this.__input_length,z=this.__input.substring(this.__position,te),this.__position=te,z},c.prototype.readUntilAfter=function(w){return this.readUntil(w,!0)},c.prototype.get_regexp=function(w,b){var z=null,te="g";return b&&g&&(te="y"),typeof w=="string"&&w!==""?z=new RegExp(w,te):w&&(z=new RegExp(w.source,te)),z},c.prototype.get_literal_regexp=function(w){return RegExp(w.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(w){var b=this.__position,z=this.readUntilAfter(w);return this.__position=b,z},c.prototype.lookBack=function(w){var b=this.__position-1;return b>=w.length&&this.__input.substring(b-w.length,b).toLowerCase()===w},F.exports.InputScanner=c},function(F,g,c){var w=c(8).InputScanner,b=c(3).Token,z=c(10).TokenStream,te=c(11).WhitespacePattern,k={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},P=function(H,ae){this._input=new w(H),this._options=ae||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new te(this._input)};P.prototype.tokenize=function(){this._input.restart(),this.__tokens=new z,this._reset();for(var H,ae=new b(k.START,""),E=null,W=[],ne=new z;ae.type!==k.EOF;){for(H=this._get_next_token(ae,E);this._is_comment(H);)ne.add(H),H=this._get_next_token(ae,E);ne.isEmpty()||(H.comments_before=ne,ne=new z),H.parent=E,this._is_opening(H)?(W.push(E),E=H):E&&this._is_closing(H,E)&&(H.opened=E,E.closed=H,E=W.pop(),H.parent=E),H.previous=ae,ae.next=H,this.__tokens.add(H),ae=H}return this.__tokens},P.prototype._is_first_token=function(){return this.__tokens.isEmpty()},P.prototype._reset=function(){},P.prototype._get_next_token=function(H,ae){this._readWhitespace();var E=this._input.read(/.+/g);return E?this._create_token(k.RAW,E):this._create_token(k.EOF,"")},P.prototype._is_comment=function(H){return!1},P.prototype._is_opening=function(H){return!1},P.prototype._is_closing=function(H,ae){return!1},P.prototype._create_token=function(H,ae){var E=new b(H,ae,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},P.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},F.exports.Tokenizer=P,F.exports.TOKEN=k},function(F){function g(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}g.prototype.restart=function(){this.__position=0},g.prototype.isEmpty=function(){return this.__tokens_length===0},g.prototype.hasNext=function(){return this.__position<this.__tokens_length},g.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},g.prototype.peek=function(c){var w=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(w=this.__tokens[c]),w},g.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},F.exports.TokenStream=g},function(F,g,c){var w=c(12).Pattern;function b(z,te){w.call(this,z,te),te?this._line_regexp=this._input.get_regexp(te._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}b.prototype=new w,b.prototype.__set_whitespace_patterns=function(z,te){z+="\\t ",te+="\\n\\r",this._match_pattern=this._input.get_regexp("["+z+te+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+te+"]")},b.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 te=this.__split(this._newline_regexp,z);this.newline_count=te.length-1,this.whitespace_before_token=te[this.newline_count]}return z},b.prototype.matching=function(z,te){var k=this._create();return k.__set_whitespace_patterns(z,te),k._update(),k},b.prototype._create=function(){return new b(this._input,this)},b.prototype.__split=function(z,te){z.lastIndex=0;for(var k=0,P=[],H=z.exec(te);H;)P.push(te.substring(k,H.index)),k=H.index+H[0].length,H=z.exec(te);return k<te.length?P.push(te.substring(k,te.length)):P.push(""),P},F.exports.WhitespacePattern=b},function(F){function g(c,w){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,w&&(this._starting_pattern=this._input.get_regexp(w._starting_pattern,!0),this._match_pattern=this._input.get_regexp(w._match_pattern,!0),this._until_pattern=this._input.get_regexp(w._until_pattern),this._until_after=w._until_after)}g.prototype.read=function(){var c=this._input.read(this._starting_pattern);return(!this._starting_pattern||c)&&(c+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),c},g.prototype.read_match=function(){return this._input.match(this._match_pattern)},g.prototype.until_after=function(c){var w=this._create();return w._until_after=!0,w._until_pattern=this._input.get_regexp(c),w._update(),w},g.prototype.until=function(c){var w=this._create();return w._until_after=!1,w._until_pattern=this._input.get_regexp(c),w._update(),w},g.prototype.starting_with=function(c){var w=this._create();return w._starting_pattern=this._input.get_regexp(c,!0),w._update(),w},g.prototype.matching=function(c){var w=this._create();return w._match_pattern=this._input.get_regexp(c,!0),w._update(),w},g.prototype._create=function(){return new g(this._input,this)},g.prototype._update=function(){},F.exports.Pattern=g},function(F){function g(c,w){c=typeof c=="string"?c:c.source,w=typeof w=="string"?w:w.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+w,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+w,"g")}g.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var w={};this.__directive_pattern.lastIndex=0;for(var b=this.__directive_pattern.exec(c);b;)w[b[1]]=b[2],b=this.__directive_pattern.exec(c);return w},g.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},F.exports.Directives=g},function(F,g,c){var w=c(12).Pattern,b={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function z(te,k){w.call(this,te,k),this.__template_pattern=null,this._disabled=Object.assign({},b),this._excluded=Object.assign({},b),k&&(this.__template_pattern=this._input.get_regexp(k.__template_pattern),this._excluded=Object.assign(this._excluded,k._excluded),this._disabled=Object.assign(this._disabled,k._disabled));var P=new w(te);this.__patterns={handlebars_comment:P.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:P.starting_with(/{{{/).until_after(/}}}/),handlebars:P.starting_with(/{{/).until_after(/}}/),php:P.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:P.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:P.starting_with(/{%/).until_after(/%}/),django_value:P.starting_with(/{{/).until_after(/}}/),django_comment:P.starting_with(/{#/).until_after(/#}/),smarty:P.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:P.starting_with(/{\*/).until_after(/\*}/),smarty_literal:P.starting_with(/{literal}/).until_after(/{\/literal}/)}}z.prototype=new w,z.prototype._create=function(){return new z(this._input,this)},z.prototype._update=function(){this.__set_templated_pattern()},z.prototype.disable=function(te){var k=this._create();return k._disabled[te]=!0,k._update(),k},z.prototype.read_options=function(te){var k=this._create();for(var P in b)k._disabled[P]=te.templating.indexOf(P)===-1;return k._update(),k},z.prototype.exclude=function(te){var k=this._create();return k._excluded[te]=!0,k._update(),k},z.prototype.read=function(){var te="";this._match_pattern?te=this._input.read(this._starting_pattern):te=this._input.read(this._starting_pattern,this.__template_pattern);for(var k=this._read_template();k;)this._match_pattern?k+=this._input.read(this._match_pattern):k+=this._input.readUntil(this.__template_pattern),te+=k,k=this._read_template();return this._until_after&&(te+=this._input.readUntilAfter(this._until_pattern)),te},z.prototype.__set_templated_pattern=function(){var te=[];this._disabled.php||te.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||te.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||te.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(te.push(this.__patterns.django._starting_pattern.source),te.push(this.__patterns.django_value._starting_pattern.source),te.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||te.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&te.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+te.join("|")+")")},z.prototype._read_template=function(){var te="",k=this._input.peek();if(k==="<"){var P=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&P==="?"&&(te=te||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&P==="%"&&(te=te||this.__patterns.erb.read())}else k==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(te=te||this.__patterns.handlebars_comment.read(),te=te||this.__patterns.handlebars_unescaped.read(),te=te||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(te=te||this.__patterns.django_value.read()),this._excluded.django||(te=te||this.__patterns.django_comment.read(),te=te||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(te=te||this.__patterns.smarty_comment.read(),te=te||this.__patterns.smarty_literal.read(),te=te||this.__patterns.smarty.read()));return te},F.exports.TemplatablePattern=z},,,,function(F,g,c){var w=c(19).Beautifier,b=c(20).Options;function z(te,k,P,H){var ae=new w(te,k,P,H);return ae.beautify()}F.exports=z,F.exports.defaultOptions=function(){return new b}},function(F,g,c){var w=c(20).Options,b=c(2).Output,z=c(21).Tokenizer,te=c(21).TOKEN,k=/\r\n|[\r\n]/,P=/\r\n|[\r\n]/g,H=function(G,I){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=G.max_preserve_newlines,this.preserve_newlines=G.preserve_newlines,this._output=new b(G,I)};H.prototype.current_line_has_match=function(G){return this._output.current_line.has_match(G)},H.prototype.set_space_before_token=function(G,I){this._output.space_before_token=G,this._output.non_breaking_space=I},H.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},H.prototype.add_raw_token=function(G){this._output.add_raw_token(G)},H.prototype.print_preserved_newlines=function(G){var I=0;G.type!==te.TEXT&&G.previous.type!==te.TEXT&&(I=G.newlines?1:0),this.preserve_newlines&&(I=G.newlines<this.max_preserve_newlines+1?G.newlines:this.max_preserve_newlines+1);for(var $=0;$<I;$++)this.print_newline($>0);return I!==0},H.prototype.traverse_whitespace=function(G){return G.whitespace_before||G.newlines?(this.print_preserved_newlines(G)||(this._output.space_before_token=!0),!0):!1},H.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},H.prototype.print_newline=function(G){this._output.add_new_line(G)},H.prototype.print_token=function(G){G.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(G.text))},H.prototype.indent=function(){this.indent_level++},H.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},H.prototype.get_full_indent=function(G){return G=this.indent_level+(G||0),G<1?"":this._output.get_indent_string(G)};var ae=function(G){for(var I=null,$=G.next;$.type!==te.EOF&&G.closed!==$;){if($.type===te.ATTRIBUTE&&$.text==="type"){$.next&&$.next.type===te.EQUALS&&$.next.next&&$.next.next.type===te.VALUE&&(I=$.next.next.text);break}$=$.next}return I},E=function(G,I){var $=null,R=null;return I.closed?(G==="script"?$="text/javascript":G==="style"&&($="text/css"),$=ae(I)||$,$.search("text/css")>-1?R="css":$.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?R="javascript":$.search(/(text|application|dojo)\/(x-)?(html)/)>-1?R="html":$.search(/test\/null/)>-1&&(R="null"),R):null};function W(G,I){return I.indexOf(G)!==-1}function ne(G,I,$){this.parent=G||null,this.tag=I?I.tag_name:"",this.indent_level=$||0,this.parser_token=I||null}function q(G){this._printer=G,this._current_frame=null}q.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},q.prototype.record_tag=function(G){var I=new ne(this._current_frame,G,this._printer.indent_level);this._current_frame=I},q.prototype._try_pop_frame=function(G){var I=null;return G&&(I=G.parser_token,this._printer.indent_level=G.indent_level,this._current_frame=G.parent),I},q.prototype._get_frame=function(G,I){for(var $=this._current_frame;$&&G.indexOf($.tag)===-1;){if(I&&I.indexOf($.tag)!==-1){$=null;break}$=$.parent}return $},q.prototype.try_pop=function(G,I){var $=this._get_frame([G],I);return this._try_pop_frame($)},q.prototype.indent_to_tag=function(G){var I=this._get_frame(G);I&&(this._printer.indent_level=I.indent_level)};function ge(G,I,$,R){this._source_text=G||"",I=I||{},this._js_beautify=$,this._css_beautify=R,this._tag_stack=null;var Z=new w(I,"html");this._options=Z,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 G=this._source_text,I=this._options.eol;this._options.eol==="auto"&&(I=`
`,G&&k.test(G)&&(I=G.match(k)[0])),G=G.replace(P,`
`);var $=G.match(/^[\t ]*/)[0],R={text:"",type:""},Z=new Te(this._options),B=new H(this._options,$),m=new z(G,this._options).tokenize();this._tag_stack=new q(B);for(var _=null,O=m.next();O.type!==te.EOF;)O.type===te.TAG_OPEN||O.type===te.COMMENT?(_=this._handle_tag_open(B,O,Z,R,m),Z=_):O.type===te.ATTRIBUTE||O.type===te.EQUALS||O.type===te.VALUE||O.type===te.TEXT&&!Z.tag_complete?_=this._handle_inside_tag(B,O,Z,R):O.type===te.TAG_CLOSE?_=this._handle_tag_close(B,O,Z):O.type===te.TEXT?_=this._handle_text(B,O,Z):O.type===te.CONTROL_FLOW_OPEN?_=this._handle_control_flow_open(B,O):O.type===te.CONTROL_FLOW_CLOSE?_=this._handle_control_flow_close(B,O):B.add_raw_token(O),R=_,O=m.next();var M=B._output.get_code(I);return M},ge.prototype._handle_control_flow_open=function(G,I){var $={text:I.text,type:I.type};return G.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),I.newlines?G.print_preserved_newlines(I):G.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),G.print_token(I),G.indent(),$},ge.prototype._handle_control_flow_close=function(G,I){var $={text:I.text,type:I.type};return G.deindent(),I.newlines?G.print_preserved_newlines(I):G.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),G.print_token(I),$},ge.prototype._handle_tag_close=function(G,I,$){var R={text:I.text,type:I.type};return G.alignment_size=0,$.tag_complete=!0,G.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),$.is_unformatted?G.add_raw_token(I):($.tag_start_char==="<"&&(G.set_space_before_token(I.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&$.has_wrapped_attrs&&G.print_newline(!1)),G.print_token(I)),$.indent_content&&!($.is_unformatted||$.is_content_unformatted)&&(G.indent(),$.indent_content=!1),!$.is_inline_element&&!($.is_unformatted||$.is_content_unformatted)&&G.set_wrap_point(),R},ge.prototype._handle_inside_tag=function(G,I,$,R){var Z=$.has_wrapped_attrs,B={text:I.text,type:I.type};return G.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),$.is_unformatted?G.add_raw_token(I):$.tag_start_char==="{"&&I.type===te.TEXT?G.print_preserved_newlines(I)?(I.newlines=0,G.add_raw_token(I)):G.print_token(I):(I.type===te.ATTRIBUTE?G.set_space_before_token(!0):(I.type===te.EQUALS||I.type===te.VALUE&&I.previous.type===te.EQUALS)&&G.set_space_before_token(!1),I.type===te.ATTRIBUTE&&$.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(G.traverse_whitespace(I),Z=Z||I.newlines!==0),this._is_wrap_attributes_force&&$.attr_count>=this._options.wrap_attributes_min_attrs&&(R.type!==te.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(G.print_newline(!1),Z=!0)),G.print_token(I),Z=Z||G.previous_token_wrapped(),$.has_wrapped_attrs=Z),B},ge.prototype._handle_text=function(G,I,$){var R={text:I.text,type:"TK_CONTENT"};return $.custom_beautifier_name?this._print_custom_beatifier_text(G,I,$):$.is_unformatted||$.is_content_unformatted?G.add_raw_token(I):(G.traverse_whitespace(I),G.print_token(I)),R},ge.prototype._print_custom_beatifier_text=function(G,I,$){var R=this;if(I.text!==""){var Z=I.text,B,m=1,_="",O="";$.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?B=this._js_beautify:$.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?B=this._css_beautify:$.custom_beautifier_name==="html"&&(B=function(Je,Qe){var et=new ge(Je,Qe,R._js_beautify,R._css_beautify);return et.beautify()}),this._options.indent_scripts==="keep"?m=0:this._options.indent_scripts==="separate"&&(m=-G.indent_level);var M=G.get_full_indent(m);if(Z=Z.replace(/\n[ \t]*$/,""),$.custom_beautifier_name!=="html"&&Z[0]==="<"&&Z.match(/^(<!--|<!\[CDATA\[)/)){var we=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(Z);if(!we){G.add_raw_token(I);return}_=M+we[1]+`
`,Z=we[4],we[5]&&(O=M+we[5]),Z=Z.replace(/\n[ \t]*$/,""),(we[2]||we[3].indexOf(`
`)!==-1)&&(we=we[3].match(/[ \t]+$/),we&&(I.whitespace_before=we[0]))}if(Z)if(B){var Ee=function(){this.eol=`
`};Ee.prototype=this._options.raw_options;var De=new Ee;Z=B(M+Z,De)}else{var $e=I.whitespace_before;$e&&(Z=Z.replace(new RegExp(`
(`+$e+")?","g"),`
`)),Z=M+Z.replace(/\n/g,`
`+M)}_&&(Z?Z=_+Z+`
`+O:Z=_+O),G.print_newline(!1),Z&&(I.text=Z,I.whitespace_before="",I.newlines=0,G.add_raw_token(I),G.print_newline(!0))}},ge.prototype._handle_tag_open=function(G,I,$,R,Z){var B=this._get_tag_open_token(I);if(($.is_unformatted||$.is_content_unformatted)&&!$.is_empty_element&&I.type===te.TAG_OPEN&&!B.is_start_tag?(G.add_raw_token(I),B.start_tag_token=this._tag_stack.try_pop(B.tag_name)):(G.traverse_whitespace(I),this._set_tag_position(G,I,B,$,R),B.is_inline_element||G.set_wrap_point(),G.print_token(I)),B.is_start_tag&&this._is_wrap_attributes_force){var m=0,_;do _=Z.peek(m),_.type===te.ATTRIBUTE&&(B.attr_count+=1),m+=1;while(_.type!==te.EOF&&_.type!==te.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(B.alignment_size=I.text.length+1),!B.tag_complete&&!B.is_unformatted&&(G.alignment_size=B.alignment_size),B};var Te=function(G,I,$){if(this.parent=I||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="",!$)this.tag_complete=!0;else{var R;this.tag_start_char=$.text[0],this.text=$.text,this.tag_start_char==="<"?(R=$.text.match(/^<([^\s>]*)/),this.tag_check=R?R[1]:""):(R=$.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=R?R[1]:"",($.text.startsWith("{{#>")||$.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&$.next!==null?this.tag_check=$.next.text.split(" ")[0]:this.tag_check=$.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),$.type===te.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||$.closed&&$.closed.text==="/>";var Z=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(Z=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!G.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(Z)))}};ge.prototype._get_tag_open_token=function(G){var I=new Te(this._options,this._tag_stack.get_parser_token(),G);return I.alignment_size=this._options.wrap_attributes_indent_size,I.is_end_tag=I.is_end_tag||W(I.tag_check,this._options.void_elements),I.is_empty_element=I.tag_complete||I.is_start_tag&&I.is_end_tag,I.is_unformatted=!I.tag_complete&&W(I.tag_check,this._options.unformatted),I.is_content_unformatted=!I.is_empty_element&&W(I.tag_check,this._options.content_unformatted),I.is_inline_element=W(I.tag_name,this._options.inline)||this._options.inline_custom_elements&&I.tag_name.includes("-")||I.tag_start_char==="{",I},ge.prototype._set_tag_position=function(G,I,$,R,Z){if($.is_empty_element||($.is_end_tag?$.start_tag_token=this._tag_stack.try_pop($.tag_name):(this._do_optional_end_element($)&&($.is_inline_element||G.print_newline(!1)),this._tag_stack.record_tag($),($.tag_name==="script"||$.tag_name==="style")&&!($.is_unformatted||$.is_content_unformatted)&&($.custom_beautifier_name=E($.tag_check,I)))),W($.tag_check,this._options.extra_liners)&&(G.print_newline(!1),G._output.just_added_blankline()||G.print_newline(!0)),$.is_empty_element){if($.tag_start_char==="{"&&$.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),$.indent_content=!0;var B=G.current_line_has_match(/{{#if/);B||G.print_newline(!1)}$.tag_name==="!--"&&Z.type===te.TAG_CLOSE&&R.is_end_tag&&$.text.indexOf(`
`)===-1||($.is_inline_element||$.is_unformatted||G.print_newline(!1),this._calcluate_parent_multiline(G,$))}else if($.is_end_tag){var m=!1;m=$.start_tag_token&&$.start_tag_token.multiline_content,m=m||!$.is_inline_element&&!(R.is_inline_element||R.is_unformatted)&&!(Z.type===te.TAG_CLOSE&&$.start_tag_token===R)&&Z.type!=="TK_CONTENT",($.is_content_unformatted||$.is_unformatted)&&(m=!1),m&&G.print_newline(!1)}else $.indent_content=!$.custom_beautifier_name,$.tag_start_char==="<"&&($.tag_name==="html"?$.indent_content=this._options.indent_inner_html:$.tag_name==="head"?$.indent_content=this._options.indent_head_inner_html:$.tag_name==="body"&&($.indent_content=this._options.indent_body_inner_html)),!($.is_inline_element||$.is_unformatted)&&(Z.type!=="TK_CONTENT"||$.is_content_unformatted)&&G.print_newline(!1),this._calcluate_parent_multiline(G,$)},ge.prototype._calcluate_parent_multiline=function(G,I){I.parent&&G._output.just_added_newline()&&!((I.is_inline_element||I.is_unformatted)&&I.parent.is_inline_element)&&(I.parent.multiline_content=!0)};var Se=["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(G){var I=null;if(!(G.is_empty_element||!G.is_start_tag||!G.parent)){if(G.tag_name==="body")I=I||this._tag_stack.try_pop("head");else if(G.tag_name==="li")I=I||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(G.tag_name==="dd"||G.tag_name==="dt")I=I||this._tag_stack.try_pop("dt",["dl"]),I=I||this._tag_stack.try_pop("dd",["dl"]);else if(G.parent.tag_name==="p"&&Se.indexOf(G.tag_name)!==-1){var $=G.parent.parent;(!$||Fe.indexOf($.tag_name)===-1)&&(I=I||this._tag_stack.try_pop("p"))}else G.tag_name==="rp"||G.tag_name==="rt"?(I=I||this._tag_stack.try_pop("rt",["ruby","rtc"]),I=I||this._tag_stack.try_pop("rp",["ruby","rtc"])):G.tag_name==="optgroup"?I=I||this._tag_stack.try_pop("optgroup",["select"]):G.tag_name==="option"?I=I||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):G.tag_name==="colgroup"?I=I||this._tag_stack.try_pop("caption",["table"]):G.tag_name==="thead"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"])):G.tag_name==="tbody"||G.tag_name==="tfoot"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("thead",["table"]),I=I||this._tag_stack.try_pop("tbody",["table"])):G.tag_name==="tr"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(G.tag_name==="th"||G.tag_name==="td")&&(I=I||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),I=I||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return G.parent=this._tag_stack.get_parser_token(),I}},F.exports.Beautifier=ge},function(F,g,c){var w=c(6).Options;function b(z){w.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"])}b.prototype=new w,F.exports.Options=b},function(F,g,c){var w=c(9).Tokenizer,b=c(9).TOKEN,z=c(13).Directives,te=c(14).TemplatablePattern,k=c(12).Pattern,P={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:b.START,RAW:b.RAW,EOF:b.EOF},H=new z(/<\!--/,/-->/),ae=function(E,W){w.call(this,E,W),this._current_tag_name="";var ne=new te(this._input).read_options(this._options),q=new k(this._input);if(this.__patterns={word:ne.until(/[\n\r\t <]/),word_control_flow_close_excluded:ne.until(/[\n\r\t <}]/),single_quote:ne.until_after(/'/),double_quote:ne.until_after(/"/),attribute:ne.until(/[\n\r\t =>]|\/>/),element_name:ne.until(/[\n\r\t >\/]/),angular_control_flow_start:q.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:q.starting_with(/{{!--/).until_after(/--}}/),handlebars:q.starting_with(/{{/).until_after(/}}/),handlebars_open:q.until(/[\n\r\t }]/),handlebars_raw_close:q.until(/}}/),comment:q.starting_with(/<!--/).until_after(/-->/),cdata:q.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:q.starting_with(/<!\[/).until_after(/]>/),processing:q.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=q.matching(ge).until_after(ge)}};ae.prototype=new w,ae.prototype._is_comment=function(E){return!1},ae.prototype._is_opening=function(E){return E.type===P.TAG_OPEN||E.type===P.CONTROL_FLOW_OPEN},ae.prototype._is_closing=function(E,W){return E.type===P.TAG_CLOSE&&W&&((E.text===">"||E.text==="/>")&&W.text[0]==="<"||E.text==="}}"&&W.text[0]==="{"&&W.text[1]==="{")||E.type===P.CONTROL_FLOW_CLOSE&&E.text==="}"&&W.text.endsWith("{")},ae.prototype._reset=function(){this._current_tag_name=""},ae.prototype._get_next_token=function(E,W){var ne=null;this._readWhitespace();var q=this._input.peek();return q===null?this._create_token(P.EOF,""):(ne=ne||this._read_open_handlebars(q,W),ne=ne||this._read_attribute(q,E,W),ne=ne||this._read_close(q,W),ne=ne||this._read_script_and_style(q,E),ne=ne||this._read_control_flows(q,W),ne=ne||this._read_raw_content(q,E,W),ne=ne||this._read_content_word(q,W),ne=ne||this._read_comment_or_cdata(q),ne=ne||this._read_processing(q),ne=ne||this._read_open(q,W),ne=ne||this._create_token(P.UNKNOWN,this._input.next()),ne)},ae.prototype._read_comment_or_cdata=function(E){var W=null,ne=null,q=null;if(E==="<"){var ge=this._input.peek(1);ge==="!"&&(ne=this.__patterns.comment.read(),ne?(q=H.get_directives(ne),q&&q.ignore==="start"&&(ne+=H.readIgnored(this._input))):ne=this.__patterns.cdata.read()),ne&&(W=this._create_token(P.COMMENT,ne),W.directives=q)}return W},ae.prototype._read_processing=function(E){var W=null,ne=null,q=null;if(E==="<"){var ge=this._input.peek(1);(ge==="!"||ge==="?")&&(ne=this.__patterns.conditional_comment.read(),ne=ne||this.__patterns.processing.read()),ne&&(W=this._create_token(P.COMMENT,ne),W.directives=q)}return W},ae.prototype._read_open=function(E,W){var ne=null,q=null;return(!W||W.type===P.CONTROL_FLOW_OPEN)&&E==="<"&&(ne=this._input.next(),this._input.peek()==="/"&&(ne+=this._input.next()),ne+=this.__patterns.element_name.read(),q=this._create_token(P.TAG_OPEN,ne)),q},ae.prototype._read_open_handlebars=function(E,W){var ne=null,q=null;return(!W||W.type===P.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&E==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(ne=this.__patterns.handlebars_comment.read(),ne=ne||this.__patterns.handlebars.read(),q=this._create_token(P.COMMENT,ne)):(ne=this.__patterns.handlebars_open.read(),q=this._create_token(P.TAG_OPEN,ne))),q},ae.prototype._read_control_flows=function(E,W){var ne="",q=null;if(!this._options.templating.includes("angular"))return q;if(E==="@"){if(ne=this.__patterns.angular_control_flow_start.read(),ne==="")return q;for(var ge=ne.endsWith("(")?1:0,Te=0;!(ne.endsWith("{")&&ge===Te);){var Se=this._input.next();if(Se===null)break;Se==="("?ge++:Se===")"&&Te++,ne+=Se}q=this._create_token(P.CONTROL_FLOW_OPEN,ne)}else E==="}"&&W&&W.type===P.CONTROL_FLOW_OPEN&&(ne=this._input.next(),q=this._create_token(P.CONTROL_FLOW_CLOSE,ne));return q},ae.prototype._read_close=function(E,W){var ne=null,q=null;return W&&W.type===P.TAG_OPEN&&(W.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(ne=this._input.next(),E==="/"&&(ne+=this._input.next()),q=this._create_token(P.TAG_CLOSE,ne)):W.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),q=this._create_token(P.TAG_CLOSE,"}}"))),q},ae.prototype._read_attribute=function(E,W,ne){var q=null,ge="";if(ne&&ne.text[0]==="<")if(E==="=")q=this._create_token(P.EQUALS,this._input.next());else if(E==='"'||E==="'"){var Te=this._input.next();E==='"'?Te+=this.__patterns.double_quote.read():Te+=this.__patterns.single_quote.read(),q=this._create_token(P.VALUE,Te)}else ge=this.__patterns.attribute.read(),ge&&(W.type===P.EQUALS?q=this._create_token(P.VALUE,ge):q=this._create_token(P.ATTRIBUTE,ge));return q},ae.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},ae.prototype._read_raw_content=function(E,W,ne){var q="";if(ne&&ne.text[0]==="{")q=this.__patterns.handlebars_raw_close.read();else if(W.type===P.TAG_CLOSE&&W.opened.text[0]==="<"&&W.text[0]!=="/"){var ge=W.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ge)&&(q=this._input.readUntil(new RegExp("</"+ge+"[\\n\\r\\t ]*?>","ig")))}return q?this._create_token(P.TEXT,q):null},ae.prototype._read_script_and_style=function(E,W){if(W.type===P.TAG_CLOSE&&W.opened.text[0]==="<"&&W.text[0]!=="/"){var ne=W.opened.text.substr(1).toLowerCase();if(ne==="script"||ne==="style"){var q=this._read_comment_or_cdata(E);if(q)return q.type=P.TEXT,q;var ge=this._input.readUntil(new RegExp("</"+ne+"[\\n\\r\\t ]*?>","ig"));if(ge)return this._create_token(P.TEXT,ge)}}return null},ae.prototype._read_content_word=function(E,W){var ne="";return this._options.unformatted_content_delimiter&&E===this._options.unformatted_content_delimiter[0]&&(ne=this.__patterns.unformatted_content_delimiter.read()),ne||(ne=W&&W.type===P.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),ne?this._create_token(P.TEXT,ne):null},F.exports.Tokenizer=ae,F.exports.TOKEN=P}],he={};function o(F){var g=he[F];if(g!==void 0)return g.exports;var c=he[F]={exports:{}};return fe[F](c,c.exports,o),c.exports}var V=o(18);ye=V})();var Le=ye;if(1)A=[y,y(58553),y(87804)],J=function(fe){var he=y(58553),o=y(87804);return{html_beautify:function(V,F){return Le(V,F,he.js_beautify,o.css_beautify)}}}.apply(qe,A),J!==void 0&&(Ut.exports=J);else var oe,X})()},58553:function(Ut,qe){var y,A;(function(){var J;(function(){"use strict";var Le=[function(he,o,V){var F=V(1).Beautifier,g=V(5).Options;function c(w,b){var z=new F(w,b);return z.beautify()}he.exports=c,he.exports.defaultOptions=function(){return new g}},function(he,o,V){var F=V(2).Output,g=V(3).Token,c=V(4),w=V(5).Options,b=V(7).Tokenizer,z=V(7).line_starters,te=V(7).positionable_operators,k=V(7).TOKEN;function P(_,O){return O.indexOf(_)!==-1}function H(_){return _.replace(/^\s+/g,"")}function ae(_){for(var O={},M=0;M<_.length;M++)O[_[M].replace(/-/g,"_")]=_[M];return O}function E(_,O){return _&&_.type===k.RESERVED&&_.text===O}function W(_,O){return _&&_.type===k.RESERVED&&P(_.text,O)}var ne=["case","return","do","if","throw","else","await","break","continue","async"],q=["before-newline","after-newline","preserve-newline"],ge=ae(q),Te=[ge.before_newline,ge.preserve_newline],Se={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Fe(_,O){O.multiline_frame||O.mode===Se.ForInitializer||O.mode===Se.Conditional||_.remove_indent(O.start_line_index)}function G(_){_=_.replace(c.allLineBreaks,`
`);for(var O=[],M=_.indexOf(`
`);M!==-1;)O.push(_.substring(0,M)),_=_.substring(M+1),M=_.indexOf(`
`);return _.length&&O.push(_),O}function I(_){return _===Se.ArrayLiteral}function $(_){return P(_,[Se.Expression,Se.ForInitializer,Se.Conditional])}function R(_,O){for(var M=0;M<_.length;M++){var we=_[M].trim();if(we.charAt(0)!==O)return!1}return!0}function Z(_,O){for(var M=0,we=_.length,Ee;M<we;M++)if(Ee=_[M],Ee&&Ee.indexOf(O)!==0)return!1;return!0}function B(_,O){O=O||{},this._source_text=_||"",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 w(O)}B.prototype.create_flags=function(_,O){var M=0;_&&(M=_.indentation_level,!this._output.just_added_newline()&&_.line_indent_level>M&&(M=_.line_indent_level));var we={mode:O,parent:_,last_token:_?_.last_token:new g(k.START_BLOCK,""),last_word:_?_.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:M,alignment:0,line_indent_level:_?_.line_indent_level:M,start_line_index:this._output.get_line_number(),ternary_depth:0};return we},B.prototype._reset=function(_){var O=_.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new F(this._options,O),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Se.BlockStatement);var M=new b(_,this._options);return this._tokens=M.tokenize(),_},B.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var _,O=this._reset(this._source_text),M=this._options.eol;this._options.eol==="auto"&&(M=`
`,O&&c.lineBreak.test(O||"")&&(M=O.match(c.lineBreak)[0]));for(var we=this._tokens.next();we;)this.handle_token(we),this._last_last_text=this._flags.last_token.text,this._flags.last_token=we,we=this._tokens.next();return _=this._output.get_code(M),_},B.prototype.handle_token=function(_,O){_.type===k.START_EXPR?this.handle_start_expr(_):_.type===k.END_EXPR?this.handle_end_expr(_):_.type===k.START_BLOCK?this.handle_start_block(_):_.type===k.END_BLOCK?this.handle_end_block(_):_.type===k.WORD?this.handle_word(_):_.type===k.RESERVED?this.handle_word(_):_.type===k.SEMICOLON?this.handle_semicolon(_):_.type===k.STRING?this.handle_string(_):_.type===k.EQUALS?this.handle_equals(_):_.type===k.OPERATOR?this.handle_operator(_):_.type===k.COMMA?this.handle_comma(_):_.type===k.BLOCK_COMMENT?this.handle_block_comment(_,O):_.type===k.COMMENT?this.handle_comment(_,O):_.type===k.DOT?this.handle_dot(_):_.type===k.EOF?this.handle_eof(_):_.type===k.UNKNOWN?this.handle_unknown(_,O):this.handle_unknown(_,O)},B.prototype.handle_whitespace_and_comments=function(_,O){var M=_.newlines,we=this._options.keep_array_indentation&&I(this._flags.mode);if(_.comments_before)for(var Ee=_.comments_before.next();Ee;)this.handle_whitespace_and_comments(Ee,O),this.handle_token(Ee,O),Ee=_.comments_before.next();if(we)for(var De=0;De<M;De+=1)this.print_newline(De>0,O);else if(this._options.max_preserve_newlines&&M>this._options.max_preserve_newlines&&(M=this._options.max_preserve_newlines),this._options.preserve_newlines&&M>1){this.print_newline(!1,O);for(var $e=1;$e<M;$e+=1)this.print_newline(!0,O)}};var m=["async","break","continue","return","throw","yield"];B.prototype.allow_wrap_or_preserved_newline=function(_,O){if(O=O===void 0?!1:O,!this._output.just_added_newline()){var M=this._options.preserve_newlines&&_.newlines||O,we=P(this._flags.last_token.text,te)||P(_.text,te);if(we){var Ee=P(this._flags.last_token.text,te)&&P(this._options.operator_position,Te)||P(_.text,te);M=M&&Ee}if(M)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(W(this._flags.last_token,m))return;this._output.set_wrap_point()}}},B.prototype.print_newline=function(_,O){if(!O&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==k.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var M=this._tokens.peek();this._flags.mode===Se.Statement&&!(this._flags.if_block&&E(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(_)&&(this._flags.multiline_frame=!0)},B.prototype.print_token_line_indentation=function(_){this._output.just_added_newline()&&(this._options.keep_array_indentation&&_.newlines&&(_.text==="["||I(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(_.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))},B.prototype.print_token=function(_){if(this._output.raw){this._output.add_raw_token(_);return}if(this._options.comma_first&&_.previous&&_.previous.type===k.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var O=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(O),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(_),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(_),this._output.non_breaking_space=!0,this._output.add_token(_.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},B.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},B.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))},B.prototype.set_mode=function(_){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,_),this._flags=this.create_flags(this._previous_flags,_),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},B.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Se.Statement&&Fe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},B.prototype.start_of_object_property=function(){return this._flags.parent.mode===Se.ObjectLiteral&&this._flags.mode===Se.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||W(this._flags.last_token,["get","set"]))},B.prototype.start_of_statement=function(_){var O=!1;return O=O||W(this._flags.last_token,["var","let","const"])&&_.type===k.WORD,O=O||E(this._flags.last_token,"do"),O=O||!(this._flags.parent.mode===Se.ObjectLiteral&&this._flags.mode===Se.Statement)&&W(this._flags.last_token,m)&&!_.newlines,O=O||E(this._flags.last_token,"else")&&!(E(_,"if")&&!_.comments_before),O=O||this._flags.last_token.type===k.END_EXPR&&(this._previous_flags.mode===Se.ForInitializer||this._previous_flags.mode===Se.Conditional),O=O||this._flags.last_token.type===k.WORD&&this._flags.mode===Se.BlockStatement&&!this._flags.in_case&&!(_.text==="--"||_.text==="++")&&this._last_last_text!=="function"&&_.type!==k.WORD&&_.type!==k.RESERVED,O=O||this._flags.mode===Se.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||W(this._flags.last_token,["get","set"])),O?(this.set_mode(Se.Statement),this.indent(),this.handle_whitespace_and_comments(_,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(_,W(_,["do","for","if","while"])),!0):!1},B.prototype.handle_start_expr=function(_){this.start_of_statement(_)||this.handle_whitespace_and_comments(_);var O=Se.Expression;if(_.text==="["){if(this._flags.last_token.type===k.WORD||this._flags.last_token.text===")"){W(this._flags.last_token,z)&&(this._output.space_before_token=!0),this.print_token(_),this.set_mode(O),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}O=Se.ArrayLiteral,I(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()),P(this._flags.last_token.type,[k.START_EXPR,k.END_EXPR,k.WORD,k.OPERATOR,k.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===k.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,O=Se.ForInitializer):P(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,O=Se.Conditional):P(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&_.whitespace_before===""?this._output.space_before_token=!1:(P(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===k.EQUALS||this._flags.last_token.type===k.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(_);else if(this._flags.last_token.type===k.WORD){this._output.space_before_token=!1;var M=this._tokens.peek(-3);if(this._options.space_after_named_function&&M){var we=this._tokens.peek(-4);W(M,["async","function"])||M.text==="*"&&W(we,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Se.ObjectLiteral?(M.text==="{"||M.text===","||M.text==="*"&&(we.text==="{"||we.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(_);(this._flags.last_token.type===k.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(P(this._last_last_text,["function","yield"])||this._flags.mode===Se.ObjectLiteral&&P(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===k.START_BLOCK?this.print_newline():(this._flags.last_token.type===k.END_EXPR||this._flags.last_token.type===k.START_EXPR||this._flags.last_token.type===k.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===k.COMMA)&&this.allow_wrap_or_preserved_newline(_,_.newlines),this.print_token(_),this.set_mode(O),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},B.prototype.handle_end_expr=function(_){for(;this._flags.mode===Se.Statement;)this.restore_mode();this.handle_whitespace_and_comments(_),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(_,_.text==="]"&&I(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===k.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(_),this.restore_mode(),Fe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Se.Conditional&&(this._previous_flags.mode=Se.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},B.prototype.handle_start_block=function(_){this.handle_whitespace_and_comments(_);var O=this._tokens.peek(),M=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===k.END_EXPR?(this.set_mode(Se.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Se.BlockStatement):M&&(P(M.text,[":",","])&&P(O.type,[k.STRING,k.WORD,k.RESERVED])||P(O.text,["get","set","..."])&&P(M.type,[k.WORD,k.RESERVED]))?P(this._last_last_text,["class","interface"])&&!P(M.text,[":",","])?this.set_mode(Se.BlockStatement):this.set_mode(Se.ObjectLiteral):this._flags.last_token.type===k.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Se.BlockStatement):P(this._flags.last_token.type,[k.EQUALS,k.START_EXPR,k.COMMA,k.OPERATOR])||W(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Se.ObjectLiteral):this.set_mode(Se.BlockStatement),this._flags.last_token&&W(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var we=!O.comments_before&&O.text==="}",Ee=we&&this._flags.last_word==="function"&&this._flags.last_token.type===k.END_EXPR;if(this._options.brace_preserve_inline){var De=0,$e=null;this._flags.inline_frame=!0;do if(De+=1,$e=this._tokens.peek(De-1),$e.newlines){this._flags.inline_frame=!1;break}while($e.type!==k.EOF&&!($e.type===k.END_BLOCK&&$e.opened===_))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&_.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==k.OPERATOR&&(Ee||this._flags.last_token.type===k.EQUALS||W(this._flags.last_token,ne)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(I(this._previous_flags.mode)&&(this._flags.last_token.type===k.START_EXPR||this._flags.last_token.type===k.COMMA)&&((this._flags.last_token.type===k.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===k.COMMA||this._flags.last_token.type===k.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(_),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==k.OPERATOR&&this._flags.last_token.type!==k.START_EXPR&&(P(this._flags.last_token.type,[k.START_BLOCK,k.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(_),this.indent(),!we&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},B.prototype.handle_end_block=function(_){for(this.handle_whitespace_and_comments(_);this._flags.mode===Se.Statement;)this.restore_mode();var O=this._flags.last_token.type===k.START_BLOCK;this._flags.inline_frame&&!O?this._output.space_before_token=!0:this._options.brace_style==="expand"?O||this.print_newline():O||(I(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.prototype.handle_word=function(_){if(_.type===k.RESERVED){if(P(_.text,["set","get"])&&this._flags.mode!==Se.ObjectLiteral)_.type=k.WORD;else if(_.text==="import"&&P(this._tokens.peek().text,["(","."]))_.type=k.WORD;else if(P(_.text,["as","from"])&&!this._flags.import_block)_.type=k.WORD;else if(this._flags.mode===Se.ObjectLiteral){var O=this._tokens.peek();O.text===":"&&(_.type=k.WORD)}}if(this.start_of_statement(_)?W(this._flags.last_token,["var","let","const"])&&_.type===k.WORD&&(this._flags.declaration_statement=!0):_.newlines&&!$(this._flags.mode)&&(this._flags.last_token.type!==k.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==k.EQUALS&&(this._options.preserve_newlines||!W(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(_),this.print_newline()):this.handle_whitespace_and_comments(_),this._flags.do_block&&!this._flags.do_while)if(E(_,"while")){this._output.space_before_token=!0,this.print_token(_),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&&E(_,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Se.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&W(_,["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(_),this._flags.in_case=!0;return}if((this._flags.last_token.type===k.COMMA||this._flags.last_token.type===k.START_EXPR||this._flags.last_token.type===k.EQUALS||this._flags.last_token.type===k.OPERATOR)&&!this.start_of_object_property()&&!(P(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Se.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(_),E(_,"function")){(P(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(P(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===k.OPERATOR))&&!this._output.just_added_blankline()&&!_.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===k.RESERVED||this._flags.last_token.type===k.WORD?W(this._flags.last_token,["get","set","new","export"])||W(this._flags.last_token,m)?this._output.space_before_token=!0:E(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===k.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&($(this._flags.mode)||I(this._flags.mode))||this.print_newline(),this.print_token(_),this._flags.last_word=_.text;return}var M="NONE";if(this._flags.last_token.type===k.END_BLOCK?this._previous_flags.inline_frame?M="SPACE":W(_,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&_.newlines?M="NEWLINE":(M="SPACE",this._output.space_before_token=!0):M="NEWLINE":this._flags.last_token.type===k.SEMICOLON&&this._flags.mode===Se.BlockStatement?M="NEWLINE":this._flags.last_token.type===k.SEMICOLON&&$(this._flags.mode)?M="SPACE":this._flags.last_token.type===k.STRING?M="NEWLINE":this._flags.last_token.type===k.RESERVED||this._flags.last_token.type===k.WORD||this._flags.last_token.text==="*"&&(P(this._last_last_text,["function","yield"])||this._flags.mode===Se.ObjectLiteral&&P(this._last_last_text,["{",","]))?M="SPACE":this._flags.last_token.type===k.START_BLOCK?this._flags.inline_frame?M="SPACE":M="NEWLINE":this._flags.last_token.type===k.END_EXPR&&(this._output.space_before_token=!0,M="NEWLINE"),W(_,z)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?M="SPACE":M="NEWLINE"),W(_,["else","catch","finally"]))if((!(this._flags.last_token.type===k.END_BLOCK&&this._previous_flags.mode===Se.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&_.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var we=this._output.current_line;we.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else M==="NEWLINE"?W(this._flags.last_token,ne)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&W(_,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==k.END_EXPR?(this._flags.last_token.type!==k.START_EXPR||!W(_,["var","let","const"]))&&this._flags.last_token.text!==":"&&(E(_,"if")&&E(_.previous,"else")?this._output.space_before_token=!0:this.print_newline()):W(_,z)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&I(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():M==="SPACE"&&(this._output.space_before_token=!0);_.previous&&(_.previous.type===k.WORD||_.previous.type===k.RESERVED)&&(this._output.space_before_token=!0),this.print_token(_),this._flags.last_word=_.text,_.type===k.RESERVED&&(_.text==="do"?this._flags.do_block=!0:_.text==="if"?this._flags.if_block=!0:_.text==="import"?this._flags.import_block=!0:this._flags.import_block&&E(_,"from")&&(this._flags.import_block=!1))},B.prototype.handle_semicolon=function(_){this.start_of_statement(_)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(_);for(var O=this._tokens.peek();this._flags.mode===Se.Statement&&!(this._flags.if_block&&E(O,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(_)},B.prototype.handle_string=function(_){_.text.startsWith("`")&&_.newlines===0&&_.whitespace_before===""&&(_.previous.text===")"||this._flags.last_token.type===k.WORD)||(this.start_of_statement(_)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(_),this._flags.last_token.type===k.RESERVED||this._flags.last_token.type===k.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===k.COMMA||this._flags.last_token.type===k.START_EXPR||this._flags.last_token.type===k.EQUALS||this._flags.last_token.type===k.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(_):_.text.startsWith("`")&&this._flags.last_token.type===k.END_EXPR&&(_.previous.text==="]"||_.previous.text===")")&&_.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(_)},B.prototype.handle_equals=function(_){this.start_of_statement(_)||this.handle_whitespace_and_comments(_),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(_),this._output.space_before_token=!0},B.prototype.handle_comma=function(_){this.handle_whitespace_and_comments(_,!0),this.print_token(_),this._output.space_before_token=!0,this._flags.declaration_statement?($(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(_)):this._flags.mode===Se.ObjectLiteral||this._flags.mode===Se.Statement&&this._flags.parent.mode===Se.ObjectLiteral?(this._flags.mode===Se.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(_)},B.prototype.handle_operator=function(_){var O=_.text==="*"&&(W(this._flags.last_token,["function","yield"])||P(this._flags.last_token.type,[k.START_BLOCK,k.COMMA,k.END_BLOCK,k.SEMICOLON])),M=P(_.text,["-","+"])&&(P(this._flags.last_token.type,[k.START_BLOCK,k.START_EXPR,k.EQUALS,k.OPERATOR])||P(this._flags.last_token.text,z)||this._flags.last_token.text===",");if(!this.start_of_statement(_)){var we=!O;this.handle_whitespace_and_comments(_,we)}if(_.text==="*"&&this._flags.last_token.type===k.DOT){this.print_token(_);return}if(_.text==="::"){this.print_token(_);return}if(P(_.text,["-","+"])&&this.start_of_object_property()){this.print_token(_);return}if(this._flags.last_token.type===k.OPERATOR&&P(this._options.operator_position,Te)&&this.allow_wrap_or_preserved_newline(_),_.text===":"&&this._flags.in_case){this.print_token(_),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==k.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 Ee=!0,De=!0,$e=!1;if(_.text===":"?this._flags.ternary_depth===0?Ee=!1:(this._flags.ternary_depth-=1,$e=!0):_.text==="?"&&(this._flags.ternary_depth+=1),!M&&!O&&this._options.preserve_newlines&&P(_.text,te)){var Je=_.text===":",Qe=Je&&$e,et=Je&&!$e;switch(this._options.operator_position){case ge.before_newline:this._output.space_before_token=!et,this.print_token(_),(!Je||Qe)&&this.allow_wrap_or_preserved_newline(_),this._output.space_before_token=!0;return;case ge.after_newline:this._output.space_before_token=!0,!Je||Qe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(_):this._output.space_before_token=!1,this.print_token(_),this._output.space_before_token=!0;return;case ge.preserve_newline:et||this.allow_wrap_or_preserved_newline(_),Ee=!(this._output.just_added_newline()||et),this._output.space_before_token=Ee,this.print_token(_),this._output.space_before_token=!0;return}}if(O){this.allow_wrap_or_preserved_newline(_),Ee=!1;var St=this._tokens.peek();De=St&&P(St.type,[k.WORD,k.RESERVED])}else if(_.text==="...")this.allow_wrap_or_preserved_newline(_),Ee=this._flags.last_token.type===k.START_BLOCK,De=!1;else if(P(_.text,["--","++","!","~"])||M){if((this._flags.last_token.type===k.COMMA||this._flags.last_token.type===k.START_EXPR)&&this.allow_wrap_or_preserved_newline(_),Ee=!1,De=!1,_.newlines&&(_.text==="--"||_.text==="++"||_.text==="~")){var Et=W(this._flags.last_token,ne)&&_.newlines;Et&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Et,!0)}this._flags.last_token.text===";"&&$(this._flags.mode)&&(Ee=!0),this._flags.last_token.type===k.RESERVED?Ee=!0:this._flags.last_token.type===k.END_EXPR?Ee=!(this._flags.last_token.text==="]"&&(_.text==="--"||_.text==="++")):this._flags.last_token.type===k.OPERATOR&&(Ee=P(_.text,["--","-","++","+"])&&P(this._flags.last_token.text,["--","-","++","+"]),P(_.text,["+","-"])&&P(this._flags.last_token.text,["--","++"])&&(De=!0)),(this._flags.mode===Se.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Se.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ee,this.print_token(_),this._output.space_before_token=De},B.prototype.handle_block_comment=function(_,O){if(this._output.raw){this._output.add_raw_token(_),_.directives&&_.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(_.directives){this.print_newline(!1,O),this.print_token(_),_.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!c.newline.test(_.text)&&!_.newlines){this._output.space_before_token=!0,this.print_token(_),this._output.space_before_token=!0;return}else this.print_block_commment(_,O)},B.prototype.print_block_commment=function(_,O){var M=G(_.text),we,Ee=!1,De=!1,$e=_.whitespace_before,Je=$e.length;if(this.print_newline(!1,O),this.print_token_line_indentation(_),this._output.add_token(M[0]),this.print_newline(!1,O),M.length>1){for(M=M.slice(1),Ee=R(M,"*"),De=Z(M,$e),Ee&&(this._flags.alignment=1),we=0;we<M.length;we++)Ee?(this.print_token_line_indentation(_),this._output.add_token(H(M[we]))):De&&M[we]?(this.print_token_line_indentation(_),this._output.add_token(M[we].substring(Je))):(this._output.current_line.set_indent(-1),this._output.add_token(M[we])),this.print_newline(!1,O);this._flags.alignment=0}},B.prototype.handle_comment=function(_,O){_.newlines?this.print_newline(!1,O):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(_),this.print_newline(!1,O)},B.prototype.handle_dot=function(_){this.start_of_statement(_)||this.handle_whitespace_and_comments(_,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),W(this._flags.last_token,ne)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(_,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.prototype.handle_unknown=function(_,O){this.print_token(_),_.text[_.text.length-1]===`
`&&this.print_newline(!1,O)},B.prototype.handle_eof=function(_){for(;this._flags.mode===Se.Statement;)this.restore_mode();this.handle_whitespace_and_comments(_)},he.exports.Beautifier=B},function(he){function o(g){this.__parent=g,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 g=new o(this.__parent);return g.set_indent(this.__indent_count,this.__alignment_count),g},o.prototype.item=function(g){return g<0?this.__items[this.__items.length+g]:this.__items[g]},o.prototype.has_match=function(g){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(g))return!0;return!1},o.prototype.set_indent=function(g,c){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=c||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 g=this.__parent.current_line;return g.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),g.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),g.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,g.__items[0]===" "&&(g.__items.splice(0,1),g.__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(g){this.__items.push(g);var c=g.lastIndexOf(`
`);c!==-1?this.__character_count=g.length-c:this.__character_count+=g.length},o.prototype.pop=function(){var g=null;return this.is_empty()||(g=this.__items.pop(),this.__character_count-=g.length),g},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 g="";return this.is_empty()?this.__parent.indent_empty_lines&&(g=this.__parent.get_indent_string(this.__indent_count)):(g=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),g+=this.__items.join("")),g};function V(g,c){this.__cache=[""],this.__indent_size=g.indent_size,this.__indent_string=g.indent_char,g.indent_with_tabs||(this.__indent_string=new Array(g.indent_size+1).join(g.indent_char)),c=c||"",g.indent_level>0&&(c=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}V.prototype.get_indent_size=function(g,c){var w=this.__base_string_length;return c=c||0,g<0&&(w=0),w+=g*this.__indent_size,w+=c,w},V.prototype.get_indent_string=function(g,c){var w=this.__base_string;return c=c||0,g<0&&(g=0,w=""),c+=g*this.__indent_size,this.__ensure_cache(c),w+=this.__cache[c],w},V.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},V.prototype.__add_column=function(){var g=this.__cache.length,c=0,w="";this.__indent_size&&g>=this.__indent_size&&(c=Math.floor(g/this.__indent_size),g-=c*this.__indent_size,w=new Array(c+1).join(this.__indent_string)),g&&(w+=new Array(g+1).join(" ")),this.__cache.push(w)};function F(g,c){this.__indent_cache=new V(g,c),this.raw=!1,this._end_with_newline=g.end_with_newline,this.indent_size=g.indent_size,this.wrap_line_length=g.wrap_line_length,this.indent_empty_lines=g.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()}F.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},F.prototype.get_line_number=function(){return this.__lines.length},F.prototype.get_indent_string=function(g,c){return this.__indent_cache.get_indent_string(g,c)},F.prototype.get_indent_size=function(g,c){return this.__indent_cache.get_indent_size(g,c)},F.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},F.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},F.prototype.get_code=function(g){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var w=this.__lines.join(`
`);return g!==`
`&&(w=w.replace(/[\n]/g,g)),w},F.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},F.prototype.set_indent=function(g,c){return g=g||0,c=c||0,this.next_line.set_indent(g,c),this.__lines.length>1?(this.current_line.set_indent(g,c),!0):(this.current_line.set_indent(),!1)},F.prototype.add_raw_token=function(g){for(var c=0;c<g.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(g.whitespace_before),this.current_line.push(g.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},F.prototype.add_token=function(g){this.__add_space_before_token(),this.current_line.push(g),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},F.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(" "))},F.prototype.remove_indent=function(g){for(var c=this.__lines.length;g<c;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},F.prototype.trim=function(g){for(g=g===void 0?!1:g,this.current_line.trim();g&&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},F.prototype.just_added_newline=function(){return this.current_line.is_empty()},F.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},F.prototype.ensure_empty_line_above=function(g,c){for(var w=this.__lines.length-2;w>=0;){var b=this.__lines[w];if(b.is_empty())break;if(b.item(0).indexOf(g)!==0&&b.item(-1)!==c){this.__lines.splice(w+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}w--}},he.exports.Output=F},function(he){function o(V,F,g,c){this.type=V,this.text=F,this.comments_before=null,this.newlines=g||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}he.exports.Token=o},function(he,o){var V="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",F="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",g="\\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",c="\\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",w="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",b="(?:"+w+"|["+V+g+"])",z="(?:"+w+"|["+F+g+c+"])*";o.identifier=new RegExp(b+z,"g"),o.identifierStart=new RegExp(b),o.identifierMatch=new RegExp("(?:"+w+"|["+F+g+c+"])+");var te=/[\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(he,o,V){var F=V(6).Options,g=["before-newline","after-newline","preserve-newline"];function c(w){F.call(this,w,"js");var b=this.raw_options.brace_style||null;b==="expand-strict"?this.raw_options.brace_style="expand":b==="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 te=0;te<z.length;te++)z[te]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=z[te];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",g),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}c.prototype=new F,he.exports.Options=c},function(he){function o(g,c){this.raw_options=V(g,c),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(g,c){var w=this.raw_options[g],b=c||[];return typeof w=="object"?w!==null&&typeof w.concat=="function"&&(b=w.concat()):typeof w=="string"&&(b=w.split(/[^a-zA-Z0-9_\/\-]+/)),b},o.prototype._get_boolean=function(g,c){var w=this.raw_options[g],b=w===void 0?!!c:!!w;return b},o.prototype._get_characters=function(g,c){var w=this.raw_options[g],b=c||"";return typeof w=="string"&&(b=w.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},o.prototype._get_number=function(g,c){var w=this.raw_options[g];c=parseInt(c,10),isNaN(c)&&(c=0);var b=parseInt(w,10);return isNaN(b)&&(b=c),b},o.prototype._get_selection=function(g,c,w){var b=this._get_selection_list(g,c,w);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[g]+"'");return b[0]},o.prototype._get_selection_list=function(g,c,w){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(w=w||[c[0]],!this._is_valid_selection(w,c))throw new Error("Invalid Default Value!");var b=this._get_array(g,w);if(!this._is_valid_selection(b,c))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[g]+"'");return b},o.prototype._is_valid_selection=function(g,c){return g.length&&c.length&&!g.some(function(w){return c.indexOf(w)===-1})};function V(g,c){var w={};g=F(g);var b;for(b in g)b!==c&&(w[b]=g[b]);if(c&&g[c])for(b in g[c])w[b]=g[c][b];return w}function F(g){var c={},w;for(w in g){var b=w.replace(/-/g,"_");c[b]=g[w]}return c}he.exports.Options=o,he.exports.normalizeOpts=F,he.exports.mergeOpts=V},function(he,o,V){var F=V(8).InputScanner,g=V(9).Tokenizer,c=V(9).TOKEN,w=V(13).Directives,b=V(4),z=V(12).Pattern,te=V(14).TemplatablePattern;function k(R,Z){return Z.indexOf(R)!==-1}var P={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:c.START,RAW:c.RAW,EOF:c.EOF},H=new w(/\/\*/,/\*\//),ae=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,E=/[0-9]/,W=/[^\d\.]/,ne=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),q=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";q=q.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),q="\\?\\.(?!\\d) "+q,q=q.replace(/ /g,"|");var ge=new RegExp(q),Te="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Se=Te.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Fe=new RegExp("^(?:"+Se.join("|")+")$"),G,I=function(R,Z){g.call(this,R,Z),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var B=new z(this._input),m=new te(this._input).read_options(this._options);this.__patterns={template:m,identifier:m.starting_with(b.identifier).matching(b.identifierMatch),number:B.matching(ae),punct:B.matching(ge),comment:B.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:B.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:B.matching(/<!--/),html_comment_end:B.matching(/-->/),include:B.starting_with(/#include/).until_after(b.lineBreak),shebang:B.starting_with(/#!/).until_after(b.lineBreak),xml:B.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:m.until(/['\\\n\r\u2028\u2029]/),double_quote:m.until(/["\\\n\r\u2028\u2029]/),template_text:m.until(/[`\\$]/),template_expression:m.until(/[`}\\]/)}};I.prototype=new g,I.prototype._is_comment=function(R){return R.type===P.COMMENT||R.type===P.BLOCK_COMMENT||R.type===P.UNKNOWN},I.prototype._is_opening=function(R){return R.type===P.START_BLOCK||R.type===P.START_EXPR},I.prototype._is_closing=function(R,Z){return(R.type===P.END_BLOCK||R.type===P.END_EXPR)&&Z&&(R.text==="]"&&Z.text==="["||R.text===")"&&Z.text==="("||R.text==="}"&&Z.text==="{")},I.prototype._reset=function(){G=!1},I.prototype._get_next_token=function(R,Z){var B=null;this._readWhitespace();var m=this._input.peek();return m===null?this._create_token(P.EOF,""):(B=B||this._read_non_javascript(m),B=B||this._read_string(m),B=B||this._read_pair(m,this._input.peek(1)),B=B||this._read_word(R),B=B||this._read_singles(m),B=B||this._read_comment(m),B=B||this._read_regexp(m,R),B=B||this._read_xml(m,R),B=B||this._read_punctuation(),B=B||this._create_token(P.UNKNOWN,this._input.next()),B)},I.prototype._read_word=function(R){var Z;if(Z=this.__patterns.identifier.read(),Z!=="")return Z=Z.replace(b.allLineBreaks,`
`),!(R.type===P.DOT||R.type===P.RESERVED&&(R.text==="set"||R.text==="get"))&&Fe.test(Z)?(Z==="in"||Z==="of")&&(R.type===P.WORD||R.type===P.STRING)?this._create_token(P.OPERATOR,Z):this._create_token(P.RESERVED,Z):this._create_token(P.WORD,Z);if(Z=this.__patterns.number.read(),Z!=="")return this._create_token(P.WORD,Z)},I.prototype._read_singles=function(R){var Z=null;return R==="("||R==="["?Z=this._create_token(P.START_EXPR,R):R===")"||R==="]"?Z=this._create_token(P.END_EXPR,R):R==="{"?Z=this._create_token(P.START_BLOCK,R):R==="}"?Z=this._create_token(P.END_BLOCK,R):R===";"?Z=this._create_token(P.SEMICOLON,R):R==="."&&W.test(this._input.peek(1))?Z=this._create_token(P.DOT,R):R===","&&(Z=this._create_token(P.COMMA,R)),Z&&this._input.next(),Z},I.prototype._read_pair=function(R,Z){var B=null;return R==="#"&&Z==="{"&&(B=this._create_token(P.START_BLOCK,R+Z)),B&&(this._input.next(),this._input.next()),B},I.prototype._read_punctuation=function(){var R=this.__patterns.punct.read();if(R!=="")return R==="="?this._create_token(P.EQUALS,R):R==="?."?this._create_token(P.DOT,R):this._create_token(P.OPERATOR,R)},I.prototype._read_non_javascript=function(R){var Z="";if(R==="#"){if(this._is_first_token()&&(Z=this.__patterns.shebang.read(),Z))return this._create_token(P.UNKNOWN,Z.trim()+`
`);if(Z=this.__patterns.include.read(),Z)return this._create_token(P.UNKNOWN,Z.trim()+`
`);R=this._input.next();var B="#";if(this._input.hasNext()&&this._input.testChar(E)){do R=this._input.next(),B+=R;while(this._input.hasNext()&&R!=="#"&&R!=="=");return R==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(B+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(B+="{}",this._input.next(),this._input.next())),this._create_token(P.WORD,B)}this._input.back()}else if(R==="<"&&this._is_first_token()){if(Z=this.__patterns.html_comment_start.read(),Z){for(;this._input.hasNext()&&!this._input.testChar(b.newline);)Z+=this._input.next();return G=!0,this._create_token(P.COMMENT,Z)}}else if(G&&R==="-"&&(Z=this.__patterns.html_comment_end.read(),Z))return G=!1,this._create_token(P.COMMENT,Z);return null},I.prototype._read_comment=function(R){var Z=null;if(R==="/"){var B="";if(this._input.peek(1)==="*"){B=this.__patterns.block_comment.read();var m=H.get_directives(B);m&&m.ignore==="start"&&(B+=H.readIgnored(this._input)),B=B.replace(b.allLineBreaks,`
`),Z=this._create_token(P.BLOCK_COMMENT,B),Z.directives=m}else this._input.peek(1)==="/"&&(B=this.__patterns.comment.read(),Z=this._create_token(P.COMMENT,B))}return Z},I.prototype._read_string=function(R){if(R==="`"||R==="'"||R==='"'){var Z=this._input.next();return this.has_char_escapes=!1,R==="`"?Z+=this._read_string_recursive("`",!0,"${"):Z+=this._read_string_recursive(R),this.has_char_escapes&&this._options.unescape_strings&&(Z=$(Z)),this._input.peek()===R&&(Z+=this._input.next()),Z=Z.replace(b.allLineBreaks,`
`),this._create_token(P.STRING,Z)}return null},I.prototype._allow_regexp_or_xml=function(R){return R.type===P.RESERVED&&k(R.text,["return","case","throw","else","do","typeof","yield"])||R.type===P.END_EXPR&&R.text===")"&&R.opened.previous.type===P.RESERVED&&k(R.opened.previous.text,["if","while","for"])||k(R.type,[P.COMMENT,P.START_EXPR,P.START_BLOCK,P.START,P.END_BLOCK,P.OPERATOR,P.EQUALS,P.EOF,P.SEMICOLON,P.COMMA])},I.prototype._read_regexp=function(R,Z){if(R==="/"&&this._allow_regexp_or_xml(Z)){for(var B=this._input.next(),m=!1,_=!1;this._input.hasNext()&&(m||_||this._input.peek()!==R)&&!this._input.testChar(b.newline);)B+=this._input.peek(),m?m=!1:(m=this._input.peek()==="\\",this._input.peek()==="["?_=!0:this._input.peek()==="]"&&(_=!1)),this._input.next();return this._input.peek()===R&&(B+=this._input.next(),B+=this._input.read(b.identifier)),this._create_token(P.STRING,B)}return null},I.prototype._read_xml=function(R,Z){if(this._options.e4x&&R==="<"&&this._allow_regexp_or_xml(Z)){var B="",m=this.__patterns.xml.read_match();if(m){for(var _=m[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),O=_.indexOf("{")===0,M=0;m;){var we=!!m[1],Ee=m[2],De=!!m[m.length-1]||Ee.slice(0,8)==="![CDATA[";if(!De&&(Ee===_||O&&Ee.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(we?--M:++M),B+=m[0],M<=0)break;m=this.__patterns.xml.read_match()}return m||(B+=this._input.match(/[\s\S]*/g)[0]),B=B.replace(b.allLineBreaks,`
`),this._create_token(P.STRING,B)}}return null};function $(R){for(var Z="",B=0,m=new F(R),_=null;m.hasNext();)if(_=m.match(/([\s]|[^\\]|\\\\)+/g),_&&(Z+=_[0]),m.peek()==="\\"){if(m.next(),m.peek()==="x")_=m.match(/x([0-9A-Fa-f]{2})/g);else if(m.peek()==="u")_=m.match(/u([0-9A-Fa-f]{4})/g),_||(_=m.match(/u\{([0-9A-Fa-f]+)\}/g));else{Z+="\\",m.hasNext()&&(Z+=m.next());continue}if(!_||(B=parseInt(_[1],16),B>126&&B<=255&&_[0].indexOf("x")===0))return R;B>=0&&B<32||B>1114111?Z+="\\"+_[0]:B===34||B===39||B===92?Z+="\\"+String.fromCharCode(B):Z+=String.fromCharCode(B)}return Z}I.prototype._read_string_recursive=function(R,Z,B){var m,_;R==="'"?_=this.__patterns.single_quote:R==='"'?_=this.__patterns.double_quote:R==="`"?_=this.__patterns.template_text:R==="}"&&(_=this.__patterns.template_expression);for(var O=_.read(),M="";this._input.hasNext();){if(M=this._input.next(),M===R||!Z&&b.newline.test(M)){this._input.back();break}else M==="\\"&&this._input.hasNext()?(m=this._input.peek(),m==="x"||m==="u"?this.has_char_escapes=!0:m==="\r"&&this._input.peek(1)===`
`&&this._input.next(),M+=this._input.next()):B&&(B==="${"&&M==="$"&&this._input.peek()==="{"&&(M+=this._input.next()),B===M&&(R==="`"?M+=this._read_string_recursive("}",Z,"`"):M+=this._read_string_recursive("`",Z,"${"),this._input.hasNext()&&(M+=this._input.next())));M+=_.read(),O+=M}return O},he.exports.Tokenizer=I,he.exports.TOKEN=P,he.exports.positionable_operators=ne.slice(),he.exports.line_starters=Te.slice()},function(he){var o=RegExp.prototype.hasOwnProperty("sticky");function V(F){this.__input=F||"",this.__input_length=this.__input.length,this.__position=0}V.prototype.restart=function(){this.__position=0},V.prototype.back=function(){this.__position>0&&(this.__position-=1)},V.prototype.hasNext=function(){return this.__position<this.__input_length},V.prototype.next=function(){var F=null;return this.hasNext()&&(F=this.__input.charAt(this.__position),this.__position+=1),F},V.prototype.peek=function(F){var g=null;return F=F||0,F+=this.__position,F>=0&&F<this.__input_length&&(g=this.__input.charAt(F)),g},V.prototype.__match=function(F,g){F.lastIndex=g;var c=F.exec(this.__input);return c&&!(o&&F.sticky)&&c.index!==g&&(c=null),c},V.prototype.test=function(F,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(F,g):!1},V.prototype.testChar=function(F,g){var c=this.peek(g);return F.lastIndex=0,c!==null&&F.test(c)},V.prototype.match=function(F){var g=this.__match(F,this.__position);return g?this.__position+=g[0].length:g=null,g},V.prototype.read=function(F,g,c){var w="",b;return F&&(b=this.match(F),b&&(w+=b[0])),g&&(b||!F)&&(w+=this.readUntil(g,c)),w},V.prototype.readUntil=function(F,g){var c="",w=this.__position;F.lastIndex=this.__position;var b=F.exec(this.__input);return b?(w=b.index,g&&(w+=b[0].length)):w=this.__input_length,c=this.__input.substring(this.__position,w),this.__position=w,c},V.prototype.readUntilAfter=function(F){return this.readUntil(F,!0)},V.prototype.get_regexp=function(F,g){var c=null,w="g";return g&&o&&(w="y"),typeof F=="string"&&F!==""?c=new RegExp(F,w):F&&(c=new RegExp(F.source,w)),c},V.prototype.get_literal_regexp=function(F){return RegExp(F.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},V.prototype.peekUntilAfter=function(F){var g=this.__position,c=this.readUntilAfter(F);return this.__position=g,c},V.prototype.lookBack=function(F){var g=this.__position-1;return g>=F.length&&this.__input.substring(g-F.length,g).toLowerCase()===F},he.exports.InputScanner=V},function(he,o,V){var F=V(8).InputScanner,g=V(3).Token,c=V(10).TokenStream,w=V(11).WhitespacePattern,b={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},z=function(te,k){this._input=new F(te),this._options=k||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new w(this._input)};z.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var te,k=new g(b.START,""),P=null,H=[],ae=new c;k.type!==b.EOF;){for(te=this._get_next_token(k,P);this._is_comment(te);)ae.add(te),te=this._get_next_token(k,P);ae.isEmpty()||(te.comments_before=ae,ae=new c),te.parent=P,this._is_opening(te)?(H.push(P),P=te):P&&this._is_closing(te,P)&&(te.opened=P,P.closed=te,P=H.pop(),te.parent=P),te.previous=k,k.next=te,this.__tokens.add(te),k=te}return this.__tokens},z.prototype._is_first_token=function(){return this.__tokens.isEmpty()},z.prototype._reset=function(){},z.prototype._get_next_token=function(te,k){this._readWhitespace();var P=this._input.read(/.+/g);return P?this._create_token(b.RAW,P):this._create_token(b.EOF,"")},z.prototype._is_comment=function(te){return!1},z.prototype._is_opening=function(te){return!1},z.prototype._is_closing=function(te,k){return!1},z.prototype._create_token=function(te,k){var P=new g(te,k,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return P},z.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},he.exports.Tokenizer=z,he.exports.TOKEN=b},function(he){function o(V){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=V}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 V=null;return this.hasNext()&&(V=this.__tokens[this.__position],this.__position+=1),V},o.prototype.peek=function(V){var F=null;return V=V||0,V+=this.__position,V>=0&&V<this.__tokens_length&&(F=this.__tokens[V]),F},o.prototype.add=function(V){this.__parent_token&&(V.parent=this.__parent_token),this.__tokens.push(V),this.__tokens_length+=1},he.exports.TokenStream=o},function(he,o,V){var F=V(12).Pattern;function g(c,w){F.call(this,c,w),w?this._line_regexp=this._input.get_regexp(w._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}g.prototype=new F,g.prototype.__set_whitespace_patterns=function(c,w){c+="\\t ",w+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+w+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+w+"]")},g.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var w=this.__split(this._newline_regexp,c);this.newline_count=w.length-1,this.whitespace_before_token=w[this.newline_count]}return c},g.prototype.matching=function(c,w){var b=this._create();return b.__set_whitespace_patterns(c,w),b._update(),b},g.prototype._create=function(){return new g(this._input,this)},g.prototype.__split=function(c,w){c.lastIndex=0;for(var b=0,z=[],te=c.exec(w);te;)z.push(w.substring(b,te.index)),b=te.index+te[0].length,te=c.exec(w);return b<w.length?z.push(w.substring(b,w.length)):z.push(""),z},he.exports.WhitespacePattern=g},function(he){function o(V,F){this._input=V,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,F&&(this._starting_pattern=this._input.get_regexp(F._starting_pattern,!0),this._match_pattern=this._input.get_regexp(F._match_pattern,!0),this._until_pattern=this._input.get_regexp(F._until_pattern),this._until_after=F._until_after)}o.prototype.read=function(){var V=this._input.read(this._starting_pattern);return(!this._starting_pattern||V)&&(V+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),V},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(V){var F=this._create();return F._until_after=!0,F._until_pattern=this._input.get_regexp(V),F._update(),F},o.prototype.until=function(V){var F=this._create();return F._until_after=!1,F._until_pattern=this._input.get_regexp(V),F._update(),F},o.prototype.starting_with=function(V){var F=this._create();return F._starting_pattern=this._input.get_regexp(V,!0),F._update(),F},o.prototype.matching=function(V){var F=this._create();return F._match_pattern=this._input.get_regexp(V,!0),F._update(),F},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},he.exports.Pattern=o},function(he){function o(V,F){V=typeof V=="string"?V:V.source,F=typeof F=="string"?F:F.source,this.__directives_block_pattern=new RegExp(V+/ beautify( \w+[:]\w+)+ /.source+F,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(V+/\sbeautify\signore:end\s/.source+F,"g")}o.prototype.get_directives=function(V){if(!V.match(this.__directives_block_pattern))return null;var F={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(V);g;)F[g[1]]=g[2],g=this.__directive_pattern.exec(V);return F},o.prototype.readIgnored=function(V){return V.readUntilAfter(this.__directives_end_ignore_pattern)},he.exports.Directives=o},function(he,o,V){var F=V(12).Pattern,g={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function c(w,b){F.call(this,w,b),this.__template_pattern=null,this._disabled=Object.assign({},g),this._excluded=Object.assign({},g),b&&(this.__template_pattern=this._input.get_regexp(b.__template_pattern),this._excluded=Object.assign(this._excluded,b._excluded),this._disabled=Object.assign(this._disabled,b._disabled));var z=new F(w);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}/)}}c.prototype=new F,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(w){var b=this._create();return b._disabled[w]=!0,b._update(),b},c.prototype.read_options=function(w){var b=this._create();for(var z in g)b._disabled[z]=w.templating.indexOf(z)===-1;return b._update(),b},c.prototype.exclude=function(w){var b=this._create();return b._excluded[w]=!0,b._update(),b},c.prototype.read=function(){var w="";this._match_pattern?w=this._input.read(this._starting_pattern):w=this._input.read(this._starting_pattern,this.__template_pattern);for(var b=this._read_template();b;)this._match_pattern?b+=this._input.read(this._match_pattern):b+=this._input.readUntil(this.__template_pattern),w+=b,b=this._read_template();return this._until_after&&(w+=this._input.readUntilAfter(this._until_pattern)),w},c.prototype.__set_templated_pattern=function(){var w=[];this._disabled.php||w.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||w.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||w.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||w.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(w.push(this.__patterns.django._starting_pattern.source),w.push(this.__patterns.django_value._starting_pattern.source),w.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||w.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&w.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+w.join("|")+")")},c.prototype._read_template=function(){var w="",b=this._input.peek();if(b==="<"){var z=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&z==="?"&&(w=w||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&z==="%"&&(w=w||this.__patterns.erb.read())}else b==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(w=w||this.__patterns.handlebars_comment.read(),w=w||this.__patterns.handlebars_unescaped.read(),w=w||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(w=w||this.__patterns.django_value.read()),this._excluded.django||(w=w||this.__patterns.django_comment.read(),w=w||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(w=w||this.__patterns.smarty_comment.read(),w=w||this.__patterns.smarty_literal.read(),w=w||this.__patterns.smarty.read()));return w},he.exports.TemplatablePattern=c}],oe={};function X(he){var o=oe[he];if(o!==void 0)return o.exports;var V=oe[he]={exports:{}};return Le[he](V,V.exports,X),V.exports}var fe=X(0);J=fe})();var ye=J;y=[],A=function(){return{js_beautify:ye}}.apply(qe,y),A!==void 0&&(Ut.exports=A)})()},15342:function(Ut){(function(y,A){Ut.exports=A()})(typeof self!="undefined"?self:this,function(){return function(qe){var y={};function A(J){if(y[J])return y[J].exports;var ye=y[J]={i:J,l:!1,exports:{}};return qe[J].call(ye.exports,ye,ye.exports,A),ye.l=!0,ye.exports}return A.m=qe,A.c=y,A.d=function(J,ye,Le){A.o(J,ye)||Object.defineProperty(J,ye,{enumerable:!0,get:Le})},A.r=function(J){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(J,"__esModule",{value:!0})},A.t=function(J,ye){if(ye&1&&(J=A(J)),ye&8||ye&4&&typeof J=="object"&&J&&J.__esModule)return J;var Le=Object.create(null);if(A.r(Le),Object.defineProperty(Le,"default",{enumerable:!0,value:J}),ye&2&&typeof J!="string")for(var oe in J)A.d(Le,oe,function(X){return J[X]}.bind(null,oe));return Le},A.n=function(J){var ye=J&&J.__esModule?function(){return J.default}:function(){return J};return A.d(ye,"a",ye),ye},A.o=function(J,ye){return Object.prototype.hasOwnProperty.call(J,ye)},A.p="",A(A.s=1)}([function(qe,y,A){},function(qe,y,A){"use strict";A.r(y);var J=A(0),ye=function(){function j(l,d,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=h}return j.range=function(d,h){return h?!d||!d.loc||!h.loc||d.loc.lexer!==h.loc.lexer?null:new j(d.loc.lexer,d.loc.start,h.loc.end):d&&d.loc},j}(),Le=function(){function j(d,h){this.text=void 0,this.loc=void 0,this.text=d,this.loc=h}var l=j.prototype;return l.range=function(h,p){return new j(p,ye.range(this,h))},j}(),oe=function j(l,d){this.position=void 0;var h="KaTeX parse error: "+l,p,D=d&&d.loc;if(D&&D.start<=D.end){var U=D.lexer.input;p=D.start;var be=D.end;p===U.length?h+=" at end of input: ":h+=" at position "+(p+1)+": ";var Ie=U.slice(p,be).replace(/[^]/g,"$&\u0332"),ze;p>15?ze="\u2026"+U.slice(p-15,p):ze=U.slice(0,p);var nt;be+15<U.length?nt=U.slice(be,be+15)+"\u2026":nt=U.slice(be),h+=ze+Ie+nt}var dt=new Error(h);return dt.name="ParseError",dt.__proto__=j.prototype,dt.position=p,dt};oe.prototype.__proto__=Error.prototype;var X=oe,fe=function(l,d){return l.indexOf(d)!==-1},he=function(l,d){return l===void 0?d:l},o=/([A-Z])/g,V=function(l){return l.replace(o,"-$1").toLowerCase()},F={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},g=/[&><"']/g;function c(j){return String(j).replace(g,function(l){return F[l]})}var w=function j(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?j(l.body[0]):l:l.type==="font"?j(l.body):l},b=function(l){var d=w(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},z=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},te=function(l){var d=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(l);return d!=null?d[1]:"_relative"},k={contains:fe,deflt:he,escape:c,hyphenate:V,getBaseElem:w,isCharacterBox:b,protocolFromUrl:te},P=function(){function j(d){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,d=d||{},this.displayMode=k.deflt(d.displayMode,!1),this.output=k.deflt(d.output,"htmlAndMathml"),this.leqno=k.deflt(d.leqno,!1),this.fleqn=k.deflt(d.fleqn,!1),this.throwOnError=k.deflt(d.throwOnError,!0),this.errorColor=k.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,k.deflt(d.minRuleThickness,0)),this.colorIsTextColor=k.deflt(d.colorIsTextColor,!1),this.strict=k.deflt(d.strict,"warn"),this.trust=k.deflt(d.trust,!1),this.maxSize=Math.max(0,k.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,k.deflt(d.maxExpand,1e3))}var l=j.prototype;return l.reportNonstrict=function(h,p,D){var U=this.strict;if(typeof U=="function"&&(U=U(h,p,D)),!(!U||U==="ignore")){if(U===!0||U==="error")throw new X("LaTeX-incompatible input and strict mode is set to 'error': "+(p+" ["+h+"]"),D);U==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(p+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+U+"': "+p+" ["+h+"]"))}},l.useStrictBehavior=function(h,p,D){var U=this.strict;if(typeof U=="function")try{U=U(h,p,D)}catch(be){U="error"}return!U||U==="ignore"?!1:U===!0||U==="error"?!0:U==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(p+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+U+"': "+p+" ["+h+"]")),!1)},l.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=k.protocolFromUrl(h.url));var p=typeof this.trust=="function"?this.trust(h):this.trust;return!!p},j}(),H=function(){function j(d,h,p){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=h,this.cramped=p}var l=j.prototype;return l.sup=function(){return Fe[G[this.id]]},l.sub=function(){return Fe[I[this.id]]},l.fracNum=function(){return Fe[$[this.id]]},l.fracDen=function(){return Fe[R[this.id]]},l.cramp=function(){return Fe[Z[this.id]]},l.text=function(){return Fe[B[this.id]]},l.isTight=function(){return this.size>=2},j}(),ae=0,E=1,W=2,ne=3,q=4,ge=5,Te=6,Se=7,Fe=[new H(ae,0,!1),new H(E,0,!0),new H(W,1,!1),new H(ne,1,!0),new H(q,2,!1),new H(ge,2,!0),new H(Te,3,!1),new H(Se,3,!0)],G=[q,ge,q,ge,Te,Se,Te,Se],I=[ge,ge,ge,ge,Se,Se,Se,Se],$=[W,ne,q,ge,Te,Se,Te,Se],R=[ne,ne,ge,ge,Se,Se,Se,Se],Z=[E,E,ne,ne,ge,ge,Se,Se],B=[ae,E,W,ne,W,ne,W,ne],m={DISPLAY:Fe[ae],TEXT:Fe[W],SCRIPT:Fe[q],SCRIPTSCRIPT:Fe[Te]},_=[{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 O(j){for(var l=0;l<_.length;l++)for(var d=_[l],h=0;h<d.blocks.length;h++){var p=d.blocks[h];if(j>=p[0]&&j<=p[1])return d.name}return null}var M=[];_.forEach(function(j){return j.blocks.forEach(function(l){return M.push.apply(M,l)})});function we(j){for(var l=0;l<M.length;l+=2)if(j>=M[l]&&j<=M[l+1])return!0;return!1}var Ee=80,De=function(l,d){return"M95,"+(622+l+d)+`
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`+l/2.075+" -"+l+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+l)+`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+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},$e=function(l,d){return"M263,"+(601+l+d)+`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`+l/2.084+" -"+l+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+l)+`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+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},Je=function(l,d){return"M983 "+(10+l+d)+`
l`+l/3.13+" -"+l+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
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+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},Qe=function(l,d){return"M424,"+(2398+l+d)+`
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`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+l)+`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+l)+" "+d+`
h400000v`+(40+l)+"h-400000z"},et=function(l,d){return"M473,"+(2713+l+d)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`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+l)+" "+d+"h400000v"+(40+l)+"H1017.7z"},St=function(l,d,h){var p=h-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
H742v`+p+`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 `+d+"H400000v"+(40+l)+"H742z"},Et=function(l,d,h){d=1e3*d;var p="";switch(l){case"sqrtMain":p=De(d,Ee);break;case"sqrtSize1":p=$e(d,Ee);break;case"sqrtSize2":p=Je(d,Ee);break;case"sqrtSize3":p=Qe(d,Ee);break;case"sqrtSize4":p=et(d,Ee);break;case"sqrtTall":p=St(d,Ee,h)}return p},Bt={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`},ht=function(){function j(d){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=d,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=j.prototype;return l.hasClass=function(h){return k.contains(this.classes,h)},l.toNode=function(){for(var h=document.createDocumentFragment(),p=0;p<this.children.length;p++)h.appendChild(this.children[p].toNode());return h},l.toMarkup=function(){for(var h="",p=0;p<this.children.length;p++)h+=this.children[p].toMarkup();return h},l.toText=function(){var h=function(D){return D.toText()};return this.children.map(h).join("")},j}(),Rt=function(l){return l.filter(function(d){return d}).join(" ")},It=function(l,d,h){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},d){d.style.isTight()&&this.classes.push("mtight");var p=d.getColor();p&&(this.style.color=p)}},le=function(l){var d=document.createElement(l);d.className=Rt(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(d.style[h]=this.style[h]);for(var p in this.attributes)this.attributes.hasOwnProperty(p)&&d.setAttribute(p,this.attributes[p]);for(var D=0;D<this.children.length;D++)d.appendChild(this.children[D].toNode());return d},ve=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+k.escape(Rt(this.classes))+'"');var h="";for(var p in this.style)this.style.hasOwnProperty(p)&&(h+=k.hyphenate(p)+":"+this.style[p]+";");h&&(d+=' style="'+k.escape(h)+'"');for(var D in this.attributes)this.attributes.hasOwnProperty(D)&&(d+=" "+D+'="'+k.escape(this.attributes[D])+'"');d+=">";for(var U=0;U<this.children.length;U++)d+=this.children[U].toMarkup();return d+="</"+l+">",d},N=function(){function j(d,h,p,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,It.call(this,d,p,D),this.children=h||[]}var l=j.prototype;return l.setAttribute=function(h,p){this.attributes[h]=p},l.hasClass=function(h){return k.contains(this.classes,h)},l.toNode=function(){return le.call(this,"span")},l.toMarkup=function(){return ve.call(this,"span")},j}(),ce=function(){function j(d,h,p,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,It.call(this,h,D),this.children=p||[],this.setAttribute("href",d)}var l=j.prototype;return l.setAttribute=function(h,p){this.attributes[h]=p},l.hasClass=function(h){return k.contains(this.classes,h)},l.toNode=function(){return le.call(this,"a")},l.toMarkup=function(){return ve.call(this,"a")},j}(),Ae=function(){function j(d,h,p){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=h,this.src=d,this.classes=["mord"],this.style=p}var l=j.prototype;return l.hasClass=function(h){return k.contains(this.classes,h)},l.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var p in this.style)this.style.hasOwnProperty(p)&&(h.style[p]=this.style[p]);return h},l.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",p="";for(var D in this.style)this.style.hasOwnProperty(D)&&(p+=k.hyphenate(D)+":"+this.style[D]+";");return p&&(h+=' style="'+k.escape(p)+'"'),h+="'/>",h},j}(),L={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ee=function(){function j(d,h,p,D,U,be,Ie,ze){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=d,this.height=h||0,this.depth=p||0,this.italic=D||0,this.skew=U||0,this.width=be||0,this.classes=Ie||[],this.style=ze||{},this.maxFontSize=0;var nt=O(this.text.charCodeAt(0));nt&&this.classes.push(nt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=L[this.text])}var l=j.prototype;return l.hasClass=function(h){return k.contains(this.classes,h)},l.toNode=function(){var h=document.createTextNode(this.text),p=null;this.italic>0&&(p=document.createElement("span"),p.style.marginRight=this.italic+"em"),this.classes.length>0&&(p=p||document.createElement("span"),p.className=Rt(this.classes));for(var D in this.style)this.style.hasOwnProperty(D)&&(p=p||document.createElement("span"),p.style[D]=this.style[D]);return p?(p.appendChild(h),p):h},l.toMarkup=function(){var h=!1,p="<span";this.classes.length&&(h=!0,p+=' class="',p+=k.escape(Rt(this.classes)),p+='"');var D="";this.italic>0&&(D+="margin-right:"+this.italic+"em;");for(var U in this.style)this.style.hasOwnProperty(U)&&(D+=k.hyphenate(U)+":"+this.style[U]+";");D&&(h=!0,p+=' style="'+k.escape(D)+'"');var be=k.escape(this.text);return h?(p+=">",p+=be,p+="</span>",p):be},j}(),ue=function(){function j(d,h){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=h||{}}var l=j.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",p=document.createElementNS(h,"svg");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&p.setAttribute(D,this.attributes[D]);for(var U=0;U<this.children.length;U++)p.appendChild(this.children[U].toNode());return p},l.toMarkup=function(){var h="<svg";for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(h+=" "+p+"='"+this.attributes[p]+"'");h+=">";for(var D=0;D<this.children.length;D++)h+=this.children[D].toMarkup();return h+="</svg>",h},j}(),_e=function(){function j(d,h){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=h}var l=j.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",p=document.createElementNS(h,"path");return this.alternate?p.setAttribute("d",this.alternate):p.setAttribute("d",Bt[this.pathName]),p},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Bt[this.pathName]+"'/>"},j}(),ke=function(){function j(d){this.attributes=void 0,this.attributes=d||{}}var l=j.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",p=document.createElementNS(h,"line");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&p.setAttribute(D,this.attributes[D]);return p},l.toMarkup=function(){var h="<line";for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(h+=" "+p+"='"+this.attributes[p]+"'");return h+="/>",h},j}();function Pe(j){if(j instanceof ee)return j;throw new Error("Expected symbolNode but got "+String(j)+".")}function We(j){if(j instanceof N)return j;throw new Error("Expected span<HtmlDomNode> but got "+String(j)+".")}var rt={"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]}},Ze={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]},Ge={\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 mt(j,l){rt[j]=l}function At(j,l,d){if(!rt[l])throw new Error("Font metrics not found for font: "+l+".");var h=j.charCodeAt(0),p=rt[l][h];if(!p&&j[0]in Ge&&(h=Ge[j[0]].charCodeAt(0),p=rt[l][h]),!p&&d==="text"&&we(h)&&(p=rt[l][77]),p)return{depth:p[0],height:p[1],italic:p[2],skew:p[3],width:p[4]}}var _t={};function Lt(j){var l;if(j>=5?l=0:j>=3?l=1:l=2,!_t[l]){var d=_t[l]={cssEmPerMu:Ze.quad[l]/18};for(var h in Ze)Ze.hasOwnProperty(h)&&(d[h]=Ze[h][l])}return _t[l]}var Ht={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Pt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Yt={math:{},text:{}},$t=Yt;function S(j,l,d,h,p,D){Yt[j][p]={font:l,group:d,replace:h},D&&h&&(Yt[j][h]=Yt[j][p])}var C="math",ot="text",Q="main",Re="ams",pr="accent-token",Be="bin",He="close",Ve="inner",re="mathord",me="op-token",Me="open",Ue="punct",Y="rel",Ft="spacing",Oe="textord";S(C,Q,Y,"\u2261","\\equiv",!0),S(C,Q,Y,"\u227A","\\prec",!0),S(C,Q,Y,"\u227B","\\succ",!0),S(C,Q,Y,"\u223C","\\sim",!0),S(C,Q,Y,"\u22A5","\\perp"),S(C,Q,Y,"\u2AAF","\\preceq",!0),S(C,Q,Y,"\u2AB0","\\succeq",!0),S(C,Q,Y,"\u2243","\\simeq",!0),S(C,Q,Y,"\u2223","\\mid",!0),S(C,Q,Y,"\u226A","\\ll",!0),S(C,Q,Y,"\u226B","\\gg",!0),S(C,Q,Y,"\u224D","\\asymp",!0),S(C,Q,Y,"\u2225","\\parallel"),S(C,Q,Y,"\u22C8","\\bowtie",!0),S(C,Q,Y,"\u2323","\\smile",!0),S(C,Q,Y,"\u2291","\\sqsubseteq",!0),S(C,Q,Y,"\u2292","\\sqsupseteq",!0),S(C,Q,Y,"\u2250","\\doteq",!0),S(C,Q,Y,"\u2322","\\frown",!0),S(C,Q,Y,"\u220B","\\ni",!0),S(C,Q,Y,"\u221D","\\propto",!0),S(C,Q,Y,"\u22A2","\\vdash",!0),S(C,Q,Y,"\u22A3","\\dashv",!0),S(C,Q,Y,"\u220B","\\owns"),S(C,Q,Ue,".","\\ldotp"),S(C,Q,Ue,"\u22C5","\\cdotp"),S(C,Q,Oe,"#","\\#"),S(ot,Q,Oe,"#","\\#"),S(C,Q,Oe,"&","\\&"),S(ot,Q,Oe,"&","\\&"),S(C,Q,Oe,"\u2135","\\aleph",!0),S(C,Q,Oe,"\u2200","\\forall",!0),S(C,Q,Oe,"\u210F","\\hbar",!0),S(C,Q,Oe,"\u2203","\\exists",!0),S(C,Q,Oe,"\u2207","\\nabla",!0),S(C,Q,Oe,"\u266D","\\flat",!0),S(C,Q,Oe,"\u2113","\\ell",!0),S(C,Q,Oe,"\u266E","\\natural",!0),S(C,Q,Oe,"\u2663","\\clubsuit",!0),S(C,Q,Oe,"\u2118","\\wp",!0),S(C,Q,Oe,"\u266F","\\sharp",!0),S(C,Q,Oe,"\u2662","\\diamondsuit",!0),S(C,Q,Oe,"\u211C","\\Re",!0),S(C,Q,Oe,"\u2661","\\heartsuit",!0),S(C,Q,Oe,"\u2111","\\Im",!0),S(C,Q,Oe,"\u2660","\\spadesuit",!0),S(ot,Q,Oe,"\xA7","\\S",!0),S(ot,Q,Oe,"\xB6","\\P",!0),S(C,Q,Oe,"\u2020","\\dag"),S(ot,Q,Oe,"\u2020","\\dag"),S(ot,Q,Oe,"\u2020","\\textdagger"),S(C,Q,Oe,"\u2021","\\ddag"),S(ot,Q,Oe,"\u2021","\\ddag"),S(ot,Q,Oe,"\u2021","\\textdaggerdbl"),S(C,Q,He,"\u23B1","\\rmoustache",!0),S(C,Q,Me,"\u23B0","\\lmoustache",!0),S(C,Q,He,"\u27EF","\\rgroup",!0),S(C,Q,Me,"\u27EE","\\lgroup",!0),S(C,Q,Be,"\u2213","\\mp",!0),S(C,Q,Be,"\u2296","\\ominus",!0),S(C,Q,Be,"\u228E","\\uplus",!0),S(C,Q,Be,"\u2293","\\sqcap",!0),S(C,Q,Be,"\u2217","\\ast"),S(C,Q,Be,"\u2294","\\sqcup",!0),S(C,Q,Be,"\u25EF","\\bigcirc"),S(C,Q,Be,"\u2219","\\bullet"),S(C,Q,Be,"\u2021","\\ddagger"),S(C,Q,Be,"\u2240","\\wr",!0),S(C,Q,Be,"\u2A3F","\\amalg"),S(C,Q,Be,"&","\\And"),S(C,Q,Y,"\u27F5","\\longleftarrow",!0),S(C,Q,Y,"\u21D0","\\Leftarrow",!0),S(C,Q,Y,"\u27F8","\\Longleftarrow",!0),S(C,Q,Y,"\u27F6","\\longrightarrow",!0),S(C,Q,Y,"\u21D2","\\Rightarrow",!0),S(C,Q,Y,"\u27F9","\\Longrightarrow",!0),S(C,Q,Y,"\u2194","\\leftrightarrow",!0),S(C,Q,Y,"\u27F7","\\longleftrightarrow",!0),S(C,Q,Y,"\u21D4","\\Leftrightarrow",!0),S(C,Q,Y,"\u27FA","\\Longleftrightarrow",!0),S(C,Q,Y,"\u21A6","\\mapsto",!0),S(C,Q,Y,"\u27FC","\\longmapsto",!0),S(C,Q,Y,"\u2197","\\nearrow",!0),S(C,Q,Y,"\u21A9","\\hookleftarrow",!0),S(C,Q,Y,"\u21AA","\\hookrightarrow",!0),S(C,Q,Y,"\u2198","\\searrow",!0),S(C,Q,Y,"\u21BC","\\leftharpoonup",!0),S(C,Q,Y,"\u21C0","\\rightharpoonup",!0),S(C,Q,Y,"\u2199","\\swarrow",!0),S(C,Q,Y,"\u21BD","\\leftharpoondown",!0),S(C,Q,Y,"\u21C1","\\rightharpoondown",!0),S(C,Q,Y,"\u2196","\\nwarrow",!0),S(C,Q,Y,"\u21CC","\\rightleftharpoons",!0),S(C,Re,Y,"\u226E","\\nless",!0),S(C,Re,Y,"\uE010","\\@nleqslant"),S(C,Re,Y,"\uE011","\\@nleqq"),S(C,Re,Y,"\u2A87","\\lneq",!0),S(C,Re,Y,"\u2268","\\lneqq",!0),S(C,Re,Y,"\uE00C","\\@lvertneqq"),S(C,Re,Y,"\u22E6","\\lnsim",!0),S(C,Re,Y,"\u2A89","\\lnapprox",!0),S(C,Re,Y,"\u2280","\\nprec",!0),S(C,Re,Y,"\u22E0","\\npreceq",!0),S(C,Re,Y,"\u22E8","\\precnsim",!0),S(C,Re,Y,"\u2AB9","\\precnapprox",!0),S(C,Re,Y,"\u2241","\\nsim",!0),S(C,Re,Y,"\uE006","\\@nshortmid"),S(C,Re,Y,"\u2224","\\nmid",!0),S(C,Re,Y,"\u22AC","\\nvdash",!0),S(C,Re,Y,"\u22AD","\\nvDash",!0),S(C,Re,Y,"\u22EA","\\ntriangleleft"),S(C,Re,Y,"\u22EC","\\ntrianglelefteq",!0),S(C,Re,Y,"\u228A","\\subsetneq",!0),S(C,Re,Y,"\uE01A","\\@varsubsetneq"),S(C,Re,Y,"\u2ACB","\\subsetneqq",!0),S(C,Re,Y,"\uE017","\\@varsubsetneqq"),S(C,Re,Y,"\u226F","\\ngtr",!0),S(C,Re,Y,"\uE00F","\\@ngeqslant"),S(C,Re,Y,"\uE00E","\\@ngeqq"),S(C,Re,Y,"\u2A88","\\gneq",!0),S(C,Re,Y,"\u2269","\\gneqq",!0),S(C,Re,Y,"\uE00D","\\@gvertneqq"),S(C,Re,Y,"\u22E7","\\gnsim",!0),S(C,Re,Y,"\u2A8A","\\gnapprox",!0),S(C,Re,Y,"\u2281","\\nsucc",!0),S(C,Re,Y,"\u22E1","\\nsucceq",!0),S(C,Re,Y,"\u22E9","\\succnsim",!0),S(C,Re,Y,"\u2ABA","\\succnapprox",!0),S(C,Re,Y,"\u2246","\\ncong",!0),S(C,Re,Y,"\uE007","\\@nshortparallel"),S(C,Re,Y,"\u2226","\\nparallel",!0),S(C,Re,Y,"\u22AF","\\nVDash",!0),S(C,Re,Y,"\u22EB","\\ntriangleright"),S(C,Re,Y,"\u22ED","\\ntrianglerighteq",!0),S(C,Re,Y,"\uE018","\\@nsupseteqq"),S(C,Re,Y,"\u228B","\\supsetneq",!0),S(C,Re,Y,"\uE01B","\\@varsupsetneq"),S(C,Re,Y,"\u2ACC","\\supsetneqq",!0),S(C,Re,Y,"\uE019","\\@varsupsetneqq"),S(C,Re,Y,"\u22AE","\\nVdash",!0),S(C,Re,Y,"\u2AB5","\\precneqq",!0),S(C,Re,Y,"\u2AB6","\\succneqq",!0),S(C,Re,Y,"\uE016","\\@nsubseteqq"),S(C,Re,Be,"\u22B4","\\unlhd"),S(C,Re,Be,"\u22B5","\\unrhd"),S(C,Re,Y,"\u219A","\\nleftarrow",!0),S(C,Re,Y,"\u219B","\\nrightarrow",!0),S(C,Re,Y,"\u21CD","\\nLeftarrow",!0),S(C,Re,Y,"\u21CF","\\nRightarrow",!0),S(C,Re,Y,"\u21AE","\\nleftrightarrow",!0),S(C,Re,Y,"\u21CE","\\nLeftrightarrow",!0),S(C,Re,Y,"\u25B3","\\vartriangle"),S(C,Re,Oe,"\u210F","\\hslash"),S(C,Re,Oe,"\u25BD","\\triangledown"),S(C,Re,Oe,"\u25CA","\\lozenge"),S(C,Re,Oe,"\u24C8","\\circledS"),S(C,Re,Oe,"\xAE","\\circledR"),S(ot,Re,Oe,"\xAE","\\circledR"),S(C,Re,Oe,"\u2221","\\measuredangle",!0),S(C,Re,Oe,"\u2204","\\nexists"),S(C,Re,Oe,"\u2127","\\mho"),S(C,Re,Oe,"\u2132","\\Finv",!0),S(C,Re,Oe,"\u2141","\\Game",!0),S(C,Re,Oe,"\u2035","\\backprime"),S(C,Re,Oe,"\u25B2","\\blacktriangle"),S(C,Re,Oe,"\u25BC","\\blacktriangledown"),S(C,Re,Oe,"\u25A0","\\blacksquare"),S(C,Re,Oe,"\u29EB","\\blacklozenge"),S(C,Re,Oe,"\u2605","\\bigstar"),S(C,Re,Oe,"\u2222","\\sphericalangle",!0),S(C,Re,Oe,"\u2201","\\complement",!0),S(C,Re,Oe,"\xF0","\\eth",!0),S(C,Re,Oe,"\u2571","\\diagup"),S(C,Re,Oe,"\u2572","\\diagdown"),S(C,Re,Oe,"\u25A1","\\square"),S(C,Re,Oe,"\u25A1","\\Box"),S(C,Re,Oe,"\u25CA","\\Diamond"),S(C,Re,Oe,"\xA5","\\yen",!0),S(ot,Re,Oe,"\xA5","\\yen",!0),S(C,Re,Oe,"\u2713","\\checkmark",!0),S(ot,Re,Oe,"\u2713","\\checkmark"),S(C,Re,Oe,"\u2136","\\beth",!0),S(C,Re,Oe,"\u2138","\\daleth",!0),S(C,Re,Oe,"\u2137","\\gimel",!0),S(C,Re,Oe,"\u03DD","\\digamma",!0),S(C,Re,Oe,"\u03F0","\\varkappa"),S(C,Re,Me,"\u250C","\\ulcorner",!0),S(C,Re,He,"\u2510","\\urcorner",!0),S(C,Re,Me,"\u2514","\\llcorner",!0),S(C,Re,He,"\u2518","\\lrcorner",!0),S(C,Re,Y,"\u2266","\\leqq",!0),S(C,Re,Y,"\u2A7D","\\leqslant",!0),S(C,Re,Y,"\u2A95","\\eqslantless",!0),S(C,Re,Y,"\u2272","\\lesssim",!0),S(C,Re,Y,"\u2A85","\\lessapprox",!0),S(C,Re,Y,"\u224A","\\approxeq",!0),S(C,Re,Be,"\u22D6","\\lessdot"),S(C,Re,Y,"\u22D8","\\lll",!0),S(C,Re,Y,"\u2276","\\lessgtr",!0),S(C,Re,Y,"\u22DA","\\lesseqgtr",!0),S(C,Re,Y,"\u2A8B","\\lesseqqgtr",!0),S(C,Re,Y,"\u2251","\\doteqdot"),S(C,Re,Y,"\u2253","\\risingdotseq",!0),S(C,Re,Y,"\u2252","\\fallingdotseq",!0),S(C,Re,Y,"\u223D","\\backsim",!0),S(C,Re,Y,"\u22CD","\\backsimeq",!0),S(C,Re,Y,"\u2AC5","\\subseteqq",!0),S(C,Re,Y,"\u22D0","\\Subset",!0),S(C,Re,Y,"\u228F","\\sqsubset",!0),S(C,Re,Y,"\u227C","\\preccurlyeq",!0),S(C,Re,Y,"\u22DE","\\curlyeqprec",!0),S(C,Re,Y,"\u227E","\\precsim",!0),S(C,Re,Y,"\u2AB7","\\precapprox",!0),S(C,Re,Y,"\u22B2","\\vartriangleleft"),S(C,Re,Y,"\u22B4","\\trianglelefteq"),S(C,Re,Y,"\u22A8","\\vDash",!0),S(C,Re,Y,"\u22AA","\\Vvdash",!0),S(C,Re,Y,"\u2323","\\smallsmile"),S(C,Re,Y,"\u2322","\\smallfrown"),S(C,Re,Y,"\u224F","\\bumpeq",!0),S(C,Re,Y,"\u224E","\\Bumpeq",!0),S(C,Re,Y,"\u2267","\\geqq",!0),S(C,Re,Y,"\u2A7E","\\geqslant",!0),S(C,Re,Y,"\u2A96","\\eqslantgtr",!0),S(C,Re,Y,"\u2273","\\gtrsim",!0),S(C,Re,Y,"\u2A86","\\gtrapprox",!0),S(C,Re,Be,"\u22D7","\\gtrdot"),S(C,Re,Y,"\u22D9","\\ggg",!0),S(C,Re,Y,"\u2277","\\gtrless",!0),S(C,Re,Y,"\u22DB","\\gtreqless",!0),S(C,Re,Y,"\u2A8C","\\gtreqqless",!0),S(C,Re,Y,"\u2256","\\eqcirc",!0),S(C,Re,Y,"\u2257","\\circeq",!0),S(C,Re,Y,"\u225C","\\triangleq",!0),S(C,Re,Y,"\u223C","\\thicksim"),S(C,Re,Y,"\u2248","\\thickapprox"),S(C,Re,Y,"\u2AC6","\\supseteqq",!0),S(C,Re,Y,"\u22D1","\\Supset",!0),S(C,Re,Y,"\u2290","\\sqsupset",!0),S(C,Re,Y,"\u227D","\\succcurlyeq",!0),S(C,Re,Y,"\u22DF","\\curlyeqsucc",!0),S(C,Re,Y,"\u227F","\\succsim",!0),S(C,Re,Y,"\u2AB8","\\succapprox",!0),S(C,Re,Y,"\u22B3","\\vartriangleright"),S(C,Re,Y,"\u22B5","\\trianglerighteq"),S(C,Re,Y,"\u22A9","\\Vdash",!0),S(C,Re,Y,"\u2223","\\shortmid"),S(C,Re,Y,"\u2225","\\shortparallel"),S(C,Re,Y,"\u226C","\\between",!0),S(C,Re,Y,"\u22D4","\\pitchfork",!0),S(C,Re,Y,"\u221D","\\varpropto"),S(C,Re,Y,"\u25C0","\\blacktriangleleft"),S(C,Re,Y,"\u2234","\\therefore",!0),S(C,Re,Y,"\u220D","\\backepsilon"),S(C,Re,Y,"\u25B6","\\blacktriangleright"),S(C,Re,Y,"\u2235","\\because",!0),S(C,Re,Y,"\u22D8","\\llless"),S(C,Re,Y,"\u22D9","\\gggtr"),S(C,Re,Be,"\u22B2","\\lhd"),S(C,Re,Be,"\u22B3","\\rhd"),S(C,Re,Y,"\u2242","\\eqsim",!0),S(C,Q,Y,"\u22C8","\\Join"),S(C,Re,Y,"\u2251","\\Doteq",!0),S(C,Re,Be,"\u2214","\\dotplus",!0),S(C,Re,Be,"\u2216","\\smallsetminus"),S(C,Re,Be,"\u22D2","\\Cap",!0),S(C,Re,Be,"\u22D3","\\Cup",!0),S(C,Re,Be,"\u2A5E","\\doublebarwedge",!0),S(C,Re,Be,"\u229F","\\boxminus",!0),S(C,Re,Be,"\u229E","\\boxplus",!0),S(C,Re,Be,"\u22C7","\\divideontimes",!0),S(C,Re,Be,"\u22C9","\\ltimes",!0),S(C,Re,Be,"\u22CA","\\rtimes",!0),S(C,Re,Be,"\u22CB","\\leftthreetimes",!0),S(C,Re,Be,"\u22CC","\\rightthreetimes",!0),S(C,Re,Be,"\u22CF","\\curlywedge",!0),S(C,Re,Be,"\u22CE","\\curlyvee",!0),S(C,Re,Be,"\u229D","\\circleddash",!0),S(C,Re,Be,"\u229B","\\circledast",!0),S(C,Re,Be,"\u22C5","\\centerdot"),S(C,Re,Be,"\u22BA","\\intercal",!0),S(C,Re,Be,"\u22D2","\\doublecap"),S(C,Re,Be,"\u22D3","\\doublecup"),S(C,Re,Be,"\u22A0","\\boxtimes",!0),S(C,Re,Y,"\u21E2","\\dashrightarrow",!0),S(C,Re,Y,"\u21E0","\\dashleftarrow",!0),S(C,Re,Y,"\u21C7","\\leftleftarrows",!0),S(C,Re,Y,"\u21C6","\\leftrightarrows",!0),S(C,Re,Y,"\u21DA","\\Lleftarrow",!0),S(C,Re,Y,"\u219E","\\twoheadleftarrow",!0),S(C,Re,Y,"\u21A2","\\leftarrowtail",!0),S(C,Re,Y,"\u21AB","\\looparrowleft",!0),S(C,Re,Y,"\u21CB","\\leftrightharpoons",!0),S(C,Re,Y,"\u21B6","\\curvearrowleft",!0),S(C,Re,Y,"\u21BA","\\circlearrowleft",!0),S(C,Re,Y,"\u21B0","\\Lsh",!0),S(C,Re,Y,"\u21C8","\\upuparrows",!0),S(C,Re,Y,"\u21BF","\\upharpoonleft",!0),S(C,Re,Y,"\u21C3","\\downharpoonleft",!0),S(C,Re,Y,"\u22B8","\\multimap",!0),S(C,Re,Y,"\u21AD","\\leftrightsquigarrow",!0),S(C,Re,Y,"\u21C9","\\rightrightarrows",!0),S(C,Re,Y,"\u21C4","\\rightleftarrows",!0),S(C,Re,Y,"\u21A0","\\twoheadrightarrow",!0),S(C,Re,Y,"\u21A3","\\rightarrowtail",!0),S(C,Re,Y,"\u21AC","\\looparrowright",!0),S(C,Re,Y,"\u21B7","\\curvearrowright",!0),S(C,Re,Y,"\u21BB","\\circlearrowright",!0),S(C,Re,Y,"\u21B1","\\Rsh",!0),S(C,Re,Y,"\u21CA","\\downdownarrows",!0),S(C,Re,Y,"\u21BE","\\upharpoonright",!0),S(C,Re,Y,"\u21C2","\\downharpoonright",!0),S(C,Re,Y,"\u21DD","\\rightsquigarrow",!0),S(C,Re,Y,"\u21DD","\\leadsto"),S(C,Re,Y,"\u21DB","\\Rrightarrow",!0),S(C,Re,Y,"\u21BE","\\restriction"),S(C,Q,Oe,"\u2018","`"),S(C,Q,Oe,"$","\\$"),S(ot,Q,Oe,"$","\\$"),S(ot,Q,Oe,"$","\\textdollar"),S(C,Q,Oe,"%","\\%"),S(ot,Q,Oe,"%","\\%"),S(C,Q,Oe,"_","\\_"),S(ot,Q,Oe,"_","\\_"),S(ot,Q,Oe,"_","\\textunderscore"),S(C,Q,Oe,"\u2220","\\angle",!0),S(C,Q,Oe,"\u221E","\\infty",!0),S(C,Q,Oe,"\u2032","\\prime"),S(C,Q,Oe,"\u25B3","\\triangle"),S(C,Q,Oe,"\u0393","\\Gamma",!0),S(C,Q,Oe,"\u0394","\\Delta",!0),S(C,Q,Oe,"\u0398","\\Theta",!0),S(C,Q,Oe,"\u039B","\\Lambda",!0),S(C,Q,Oe,"\u039E","\\Xi",!0),S(C,Q,Oe,"\u03A0","\\Pi",!0),S(C,Q,Oe,"\u03A3","\\Sigma",!0),S(C,Q,Oe,"\u03A5","\\Upsilon",!0),S(C,Q,Oe,"\u03A6","\\Phi",!0),S(C,Q,Oe,"\u03A8","\\Psi",!0),S(C,Q,Oe,"\u03A9","\\Omega",!0),S(C,Q,Oe,"A","\u0391"),S(C,Q,Oe,"B","\u0392"),S(C,Q,Oe,"E","\u0395"),S(C,Q,Oe,"Z","\u0396"),S(C,Q,Oe,"H","\u0397"),S(C,Q,Oe,"I","\u0399"),S(C,Q,Oe,"K","\u039A"),S(C,Q,Oe,"M","\u039C"),S(C,Q,Oe,"N","\u039D"),S(C,Q,Oe,"O","\u039F"),S(C,Q,Oe,"P","\u03A1"),S(C,Q,Oe,"T","\u03A4"),S(C,Q,Oe,"X","\u03A7"),S(C,Q,Oe,"\xAC","\\neg",!0),S(C,Q,Oe,"\xAC","\\lnot"),S(C,Q,Oe,"\u22A4","\\top"),S(C,Q,Oe,"\u22A5","\\bot"),S(C,Q,Oe,"\u2205","\\emptyset"),S(C,Re,Oe,"\u2205","\\varnothing"),S(C,Q,re,"\u03B1","\\alpha",!0),S(C,Q,re,"\u03B2","\\beta",!0),S(C,Q,re,"\u03B3","\\gamma",!0),S(C,Q,re,"\u03B4","\\delta",!0),S(C,Q,re,"\u03F5","\\epsilon",!0),S(C,Q,re,"\u03B6","\\zeta",!0),S(C,Q,re,"\u03B7","\\eta",!0),S(C,Q,re,"\u03B8","\\theta",!0),S(C,Q,re,"\u03B9","\\iota",!0),S(C,Q,re,"\u03BA","\\kappa",!0),S(C,Q,re,"\u03BB","\\lambda",!0),S(C,Q,re,"\u03BC","\\mu",!0),S(C,Q,re,"\u03BD","\\nu",!0),S(C,Q,re,"\u03BE","\\xi",!0),S(C,Q,re,"\u03BF","\\omicron",!0),S(C,Q,re,"\u03C0","\\pi",!0),S(C,Q,re,"\u03C1","\\rho",!0),S(C,Q,re,"\u03C3","\\sigma",!0),S(C,Q,re,"\u03C4","\\tau",!0),S(C,Q,re,"\u03C5","\\upsilon",!0),S(C,Q,re,"\u03D5","\\phi",!0),S(C,Q,re,"\u03C7","\\chi",!0),S(C,Q,re,"\u03C8","\\psi",!0),S(C,Q,re,"\u03C9","\\omega",!0),S(C,Q,re,"\u03B5","\\varepsilon",!0),S(C,Q,re,"\u03D1","\\vartheta",!0),S(C,Q,re,"\u03D6","\\varpi",!0),S(C,Q,re,"\u03F1","\\varrho",!0),S(C,Q,re,"\u03C2","\\varsigma",!0),S(C,Q,re,"\u03C6","\\varphi",!0),S(C,Q,Be,"\u2217","*"),S(C,Q,Be,"+","+"),S(C,Q,Be,"\u2212","-"),S(C,Q,Be,"\u22C5","\\cdot",!0),S(C,Q,Be,"\u2218","\\circ"),S(C,Q,Be,"\xF7","\\div",!0),S(C,Q,Be,"\xB1","\\pm",!0),S(C,Q,Be,"\xD7","\\times",!0),S(C,Q,Be,"\u2229","\\cap",!0),S(C,Q,Be,"\u222A","\\cup",!0),S(C,Q,Be,"\u2216","\\setminus"),S(C,Q,Be,"\u2227","\\land"),S(C,Q,Be,"\u2228","\\lor"),S(C,Q,Be,"\u2227","\\wedge",!0),S(C,Q,Be,"\u2228","\\vee",!0),S(C,Q,Oe,"\u221A","\\surd"),S(C,Q,Me,"(","("),S(C,Q,Me,"[","["),S(C,Q,Me,"\u27E8","\\langle",!0),S(C,Q,Me,"\u2223","\\lvert"),S(C,Q,Me,"\u2225","\\lVert"),S(C,Q,He,")",")"),S(C,Q,He,"]","]"),S(C,Q,He,"?","?"),S(C,Q,He,"!","!"),S(C,Q,He,"\u27E9","\\rangle",!0),S(C,Q,He,"\u2223","\\rvert"),S(C,Q,He,"\u2225","\\rVert"),S(C,Q,Y,"=","="),S(C,Q,Y,"<","<"),S(C,Q,Y,">",">"),S(C,Q,Y,":",":"),S(C,Q,Y,"\u2248","\\approx",!0),S(C,Q,Y,"\u2245","\\cong",!0),S(C,Q,Y,"\u2265","\\ge"),S(C,Q,Y,"\u2265","\\geq",!0),S(C,Q,Y,"\u2190","\\gets"),S(C,Q,Y,">","\\gt"),S(C,Q,Y,"\u2208","\\in",!0),S(C,Q,Y,"\uE020","\\@not"),S(C,Q,Y,"\u2282","\\subset",!0),S(C,Q,Y,"\u2283","\\supset",!0),S(C,Q,Y,"\u2286","\\subseteq",!0),S(C,Q,Y,"\u2287","\\supseteq",!0),S(C,Re,Y,"\u2288","\\nsubseteq",!0),S(C,Re,Y,"\u2289","\\nsupseteq",!0),S(C,Q,Y,"\u22A8","\\models"),S(C,Q,Y,"\u2190","\\leftarrow",!0),S(C,Q,Y,"\u2264","\\le"),S(C,Q,Y,"\u2264","\\leq",!0),S(C,Q,Y,"<","\\lt"),S(C,Q,Y,"\u2192","\\rightarrow",!0),S(C,Q,Y,"\u2192","\\to"),S(C,Re,Y,"\u2271","\\ngeq",!0),S(C,Re,Y,"\u2270","\\nleq",!0),S(C,Q,Ft,"\xA0","\\ "),S(C,Q,Ft,"\xA0","~"),S(C,Q,Ft,"\xA0","\\space"),S(C,Q,Ft,"\xA0","\\nobreakspace"),S(ot,Q,Ft,"\xA0","\\ "),S(ot,Q,Ft,"\xA0","~"),S(ot,Q,Ft,"\xA0","\\space"),S(ot,Q,Ft,"\xA0","\\nobreakspace"),S(C,Q,Ft,null,"\\nobreak"),S(C,Q,Ft,null,"\\allowbreak"),S(C,Q,Ue,",",","),S(C,Q,Ue,";",";"),S(C,Re,Be,"\u22BC","\\barwedge",!0),S(C,Re,Be,"\u22BB","\\veebar",!0),S(C,Q,Be,"\u2299","\\odot",!0),S(C,Q,Be,"\u2295","\\oplus",!0),S(C,Q,Be,"\u2297","\\otimes",!0),S(C,Q,Oe,"\u2202","\\partial",!0),S(C,Q,Be,"\u2298","\\oslash",!0),S(C,Re,Be,"\u229A","\\circledcirc",!0),S(C,Re,Be,"\u22A1","\\boxdot",!0),S(C,Q,Be,"\u25B3","\\bigtriangleup"),S(C,Q,Be,"\u25BD","\\bigtriangledown"),S(C,Q,Be,"\u2020","\\dagger"),S(C,Q,Be,"\u22C4","\\diamond"),S(C,Q,Be,"\u22C6","\\star"),S(C,Q,Be,"\u25C3","\\triangleleft"),S(C,Q,Be,"\u25B9","\\triangleright"),S(C,Q,Me,"{","\\{"),S(ot,Q,Oe,"{","\\{"),S(ot,Q,Oe,"{","\\textbraceleft"),S(C,Q,He,"}","\\}"),S(ot,Q,Oe,"}","\\}"),S(ot,Q,Oe,"}","\\textbraceright"),S(C,Q,Me,"{","\\lbrace"),S(C,Q,He,"}","\\rbrace"),S(C,Q,Me,"[","\\lbrack"),S(ot,Q,Oe,"[","\\lbrack"),S(C,Q,He,"]","\\rbrack"),S(ot,Q,Oe,"]","\\rbrack"),S(C,Q,Me,"(","\\lparen"),S(C,Q,He,")","\\rparen"),S(ot,Q,Oe,"<","\\textless"),S(ot,Q,Oe,">","\\textgreater"),S(C,Q,Me,"\u230A","\\lfloor",!0),S(C,Q,He,"\u230B","\\rfloor",!0),S(C,Q,Me,"\u2308","\\lceil",!0),S(C,Q,He,"\u2309","\\rceil",!0),S(C,Q,Oe,"\\","\\backslash"),S(C,Q,Oe,"\u2223","|"),S(C,Q,Oe,"\u2223","\\vert"),S(ot,Q,Oe,"|","\\textbar"),S(C,Q,Oe,"\u2225","\\|"),S(C,Q,Oe,"\u2225","\\Vert"),S(ot,Q,Oe,"\u2225","\\textbardbl"),S(ot,Q,Oe,"~","\\textasciitilde"),S(ot,Q,Oe,"\\","\\textbackslash"),S(ot,Q,Oe,"^","\\textasciicircum"),S(C,Q,Y,"\u2191","\\uparrow",!0),S(C,Q,Y,"\u21D1","\\Uparrow",!0),S(C,Q,Y,"\u2193","\\downarrow",!0),S(C,Q,Y,"\u21D3","\\Downarrow",!0),S(C,Q,Y,"\u2195","\\updownarrow",!0),S(C,Q,Y,"\u21D5","\\Updownarrow",!0),S(C,Q,me,"\u2210","\\coprod"),S(C,Q,me,"\u22C1","\\bigvee"),S(C,Q,me,"\u22C0","\\bigwedge"),S(C,Q,me,"\u2A04","\\biguplus"),S(C,Q,me,"\u22C2","\\bigcap"),S(C,Q,me,"\u22C3","\\bigcup"),S(C,Q,me,"\u222B","\\int"),S(C,Q,me,"\u222B","\\intop"),S(C,Q,me,"\u222C","\\iint"),S(C,Q,me,"\u222D","\\iiint"),S(C,Q,me,"\u220F","\\prod"),S(C,Q,me,"\u2211","\\sum"),S(C,Q,me,"\u2A02","\\bigotimes"),S(C,Q,me,"\u2A01","\\bigoplus"),S(C,Q,me,"\u2A00","\\bigodot"),S(C,Q,me,"\u222E","\\oint"),S(C,Q,me,"\u222F","\\oiint"),S(C,Q,me,"\u2230","\\oiiint"),S(C,Q,me,"\u2A06","\\bigsqcup"),S(C,Q,me,"\u222B","\\smallint"),S(ot,Q,Ve,"\u2026","\\textellipsis"),S(C,Q,Ve,"\u2026","\\mathellipsis"),S(ot,Q,Ve,"\u2026","\\ldots",!0),S(C,Q,Ve,"\u2026","\\ldots",!0),S(C,Q,Ve,"\u22EF","\\@cdots",!0),S(C,Q,Ve,"\u22F1","\\ddots",!0),S(C,Q,Oe,"\u22EE","\\varvdots"),S(C,Q,pr,"\u02CA","\\acute"),S(C,Q,pr,"\u02CB","\\grave"),S(C,Q,pr,"\xA8","\\ddot"),S(C,Q,pr,"~","\\tilde"),S(C,Q,pr,"\u02C9","\\bar"),S(C,Q,pr,"\u02D8","\\breve"),S(C,Q,pr,"\u02C7","\\check"),S(C,Q,pr,"^","\\hat"),S(C,Q,pr,"\u20D7","\\vec"),S(C,Q,pr,"\u02D9","\\dot"),S(C,Q,pr,"\u02DA","\\mathring"),S(C,Q,re,"\u0131","\\imath",!0),S(C,Q,re,"\u0237","\\jmath",!0),S(ot,Q,Oe,"\u0131","\\i",!0),S(ot,Q,Oe,"\u0237","\\j",!0),S(ot,Q,Oe,"\xDF","\\ss",!0),S(ot,Q,Oe,"\xE6","\\ae",!0),S(ot,Q,Oe,"\xE6","\\ae",!0),S(ot,Q,Oe,"\u0153","\\oe",!0),S(ot,Q,Oe,"\xF8","\\o",!0),S(ot,Q,Oe,"\xC6","\\AE",!0),S(ot,Q,Oe,"\u0152","\\OE",!0),S(ot,Q,Oe,"\xD8","\\O",!0),S(ot,Q,pr,"\u02CA","\\'"),S(ot,Q,pr,"\u02CB","\\`"),S(ot,Q,pr,"\u02C6","\\^"),S(ot,Q,pr,"\u02DC","\\~"),S(ot,Q,pr,"\u02C9","\\="),S(ot,Q,pr,"\u02D8","\\u"),S(ot,Q,pr,"\u02D9","\\."),S(ot,Q,pr,"\u02DA","\\r"),S(ot,Q,pr,"\u02C7","\\v"),S(ot,Q,pr,"\xA8",'\\"'),S(ot,Q,pr,"\u02DD","\\H"),S(ot,Q,pr,"\u25EF","\\textcircled");var Wt={"--":!0,"---":!0,"``":!0,"''":!0};S(ot,Q,Oe,"\u2013","--"),S(ot,Q,Oe,"\u2013","\\textendash"),S(ot,Q,Oe,"\u2014","---"),S(ot,Q,Oe,"\u2014","\\textemdash"),S(ot,Q,Oe,"\u2018","`"),S(ot,Q,Oe,"\u2018","\\textquoteleft"),S(ot,Q,Oe,"\u2019","'"),S(ot,Q,Oe,"\u2019","\\textquoteright"),S(ot,Q,Oe,"\u201C","``"),S(ot,Q,Oe,"\u201C","\\textquotedblleft"),S(ot,Q,Oe,"\u201D","''"),S(ot,Q,Oe,"\u201D","\\textquotedblright"),S(C,Q,Oe,"\xB0","\\degree",!0),S(ot,Q,Oe,"\xB0","\\degree"),S(ot,Q,Oe,"\xB0","\\textdegree",!0),S(C,Q,re,"\xA3","\\pounds"),S(C,Q,re,"\xA3","\\mathsterling",!0),S(ot,Q,re,"\xA3","\\pounds"),S(ot,Q,re,"\xA3","\\textsterling",!0),S(C,Re,Oe,"\u2720","\\maltese"),S(ot,Re,Oe,"\u2720","\\maltese"),S(ot,Q,Ft,"\xA0","\\ "),S(ot,Q,Ft,"\xA0"," "),S(ot,Q,Ft,"\xA0","~");for(var ir='0123456789/@."',bt=0;bt<ir.length;bt++){var kt=ir.charAt(bt);S(C,Q,Oe,kt,kt)}for(var lt='0123456789!@*()-=+[]<>|";:?/.,',pt=0;pt<lt.length;pt++){var tr=lt.charAt(pt);S(ot,Q,Oe,tr,tr)}for(var pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ce=0;Ce<pe.length;Ce++){var it=pe.charAt(Ce);S(C,Q,re,it,it),S(ot,Q,Oe,it,it)}S(C,Re,Oe,"C","\u2102"),S(ot,Re,Oe,"C","\u2102"),S(C,Re,Oe,"H","\u210D"),S(ot,Re,Oe,"H","\u210D"),S(C,Re,Oe,"N","\u2115"),S(ot,Re,Oe,"N","\u2115"),S(C,Re,Oe,"P","\u2119"),S(ot,Re,Oe,"P","\u2119"),S(C,Re,Oe,"Q","\u211A"),S(ot,Re,Oe,"Q","\u211A"),S(C,Re,Oe,"R","\u211D"),S(ot,Re,Oe,"R","\u211D"),S(C,Re,Oe,"Z","\u2124"),S(ot,Re,Oe,"Z","\u2124"),S(C,Q,re,"h","\u210E"),S(ot,Q,re,"h","\u210E");for(var Ke="",st=0;st<pe.length;st++){var ft=pe.charAt(st);Ke=String.fromCharCode(55349,56320+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56372+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56424+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56580+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56736+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56788+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56840+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56944+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),st<26&&(Ke=String.fromCharCode(55349,56632+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke),Ke=String.fromCharCode(55349,56476+st),S(C,Q,re,ft,Ke),S(ot,Q,Oe,ft,Ke))}Ke="\u{1D55C}",S(C,Q,re,"k",Ke),S(ot,Q,Oe,"k",Ke);for(var wt=0;wt<10;wt++){var Xt=wt.toString();Ke=String.fromCharCode(55349,57294+wt),S(C,Q,re,Xt,Ke),S(ot,Q,Oe,Xt,Ke),Ke=String.fromCharCode(55349,57314+wt),S(C,Q,re,Xt,Ke),S(ot,Q,Oe,Xt,Ke),Ke=String.fromCharCode(55349,57324+wt),S(C,Q,re,Xt,Ke),S(ot,Q,Oe,Xt,Ke),Ke=String.fromCharCode(55349,57334+wt),S(C,Q,re,Xt,Ke),S(ot,Q,Oe,Xt,Ke)}for(var ar="\xC7\xD0\xDE\xE7\xFE",jt=0;jt<ar.length;jt++){var gr=ar.charAt(jt);S(C,Q,re,gr,gr),S(ot,Q,Oe,gr,gr)}S(ot,Q,Oe,"\xF0","\xF0"),S(ot,Q,Oe,"\u2013","\u2013"),S(ot,Q,Oe,"\u2014","\u2014"),S(ot,Q,Oe,"\u2018","\u2018"),S(ot,Q,Oe,"\u2019","\u2019"),S(ot,Q,Oe,"\u201C","\u201C"),S(ot,Q,Oe,"\u201D","\u201D");var sr=[["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"]],Gt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ot=function(l,d){var h=l.charCodeAt(0),p=l.charCodeAt(1),D=(h-55296)*1024+(p-56320)+65536,U=d==="math"?0:1;if(119808<=D&&D<120484){var be=Math.floor((D-119808)/26);return[sr[be][2],sr[be][U]]}else if(120782<=D&&D<=120831){var Ie=Math.floor((D-120782)/10);return[Gt[Ie][2],Gt[Ie][U]]}else{if(D===120485||D===120486)return[sr[0][2],sr[0][U]];if(120486<D&&D<120782)return["",""];throw new X("Unsupported character: "+l)}},ur=[[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]],Dr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],yr=function(l,d){return d.size<2?l:ur[l-1][d.size-1]},Lr=function(){function j(d){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=d.style,this.color=d.color,this.size=d.size||j.BASESIZE,this.textSize=d.textSize||this.size,this.phantom=!!d.phantom,this.font=d.font||"",this.fontFamily=d.fontFamily||"",this.fontWeight=d.fontWeight||"",this.fontShape=d.fontShape||"",this.sizeMultiplier=Dr[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=j.prototype;return l.extend=function(h){var p={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 h)h.hasOwnProperty(D)&&(p[D]=h[D]);return new j(p)},l.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:yr(this.textSize,h)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:Dr[h-1]})},l.havingBaseStyle=function(h){h=h||this.style.text();var p=yr(j.BASESIZE,h);return this.size===p&&this.textSize===j.BASESIZE&&this.style===h?this:this.extend({style:h,size:p})},l.havingBaseSizing=function(){var h;switch(this.style.id){case 4:case 5:h=3;break;case 6:case 7:h=1;break;default:h=6}return this.extend({style:this.style.text(),size:h})},l.withColor=function(h){return this.extend({color:h})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(h){return this.extend({font:h})},l.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},l.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},l.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},l.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==j.BASESIZE?["sizing","reset-size"+this.size,"size"+j.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Lt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},j}();Lr.BASESIZE=6;var en=Lr,Ar={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},nr={ex:!0,em:!0,mu:!0},tt=function(l){return typeof l!="string"&&(l=l.unit),l in Ar||l in nr||l==="ex"},Ye=function(l,d){var h;if(l.unit in Ar)h=Ar[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")h=d.fontMetrics().cssEmPerMu;else{var p;if(d.style.isTight()?p=d.havingStyle(d.style.text()):p=d,l.unit==="ex")h=p.fontMetrics().xHeight;else if(l.unit==="em")h=p.fontMetrics().quad;else throw new X("Invalid unit: '"+l.unit+"'");p!==d&&(h*=p.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*h,d.maxSize)},gt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Tt=function(l,d,h){return $t[h][l]&&$t[h][l].replace&&(l=$t[h][l].replace),{value:l,metrics:At(l,d,h)}},at=function(l,d,h,p,D){var U=Tt(l,d,h),be=U.metrics;l=U.value;var Ie;if(be){var ze=be.italic;(h==="text"||p&&p.font==="mathit")&&(ze=0),Ie=new ee(l,be.height,be.depth,ze,be.skew,be.width,D)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+h+"'")),Ie=new ee(l,0,0,0,0,0,D);if(p){Ie.maxFontSize=p.sizeMultiplier,p.style.isTight()&&Ie.classes.push("mtight");var nt=p.getColor();nt&&(Ie.style.color=nt)}return Ie},Ct=function(l,d,h,p){return p===void 0&&(p=[]),h.font==="boldsymbol"&&Tt(l,"Main-Bold",d).metrics?at(l,"Main-Bold",d,h,p.concat(["mathbf"])):l==="\\"||$t[d][l].font==="main"?at(l,"Main-Regular",d,h,p):at(l,"AMS-Regular",d,h,p.concat(["amsrm"]))},xt=function(l,d,h,p){return/[0-9]/.test(l.charAt(0))||k.contains(gt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},zt=function(l,d,h,p){return k.contains(gt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},rr=function(l,d,h,p){return Tt(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},qt=function(l,d,h){var p=l.mode,D=l.text,U=["mord"],be=p==="math"||p==="text"&&d.font,Ie=be?d.font:d.fontFamily;if(D.charCodeAt(0)===55349){var ze=Ot(D,p),nt=ze[0],dt=ze[1];return at(D,nt,p,d,U.concat(dt))}else if(Ie){var Dt,Zt;if(Ie==="boldsymbol"||Ie==="mathnormal"){var er=Ie==="boldsymbol"?rr(D,p,d,U):zt(D,p,d,U);Dt=er.fontName,Zt=[er.fontClass]}else k.contains(gt,D)?(Dt="Main-Italic",Zt=["mathit"]):be?(Dt=sn[Ie].fontName,Zt=[Ie]):(Dt=zr(Ie,d.fontWeight,d.fontShape),Zt=[Ie,d.fontWeight,d.fontShape]);if(Tt(D,Dt,p).metrics)return at(D,Dt,p,d,U.concat(Zt));if(Wt.hasOwnProperty(D)&&Dt.substr(0,10)==="Typewriter"){for(var hr=[],Sr=0;Sr<D.length;Sr++)hr.push(at(D[Sr],Dt,p,d,U.concat(Zt)));return Cr(hr)}}if(h==="mathord"){var Kr=xt(D,p,d,U);return at(D,Kr.fontName,p,d,U.concat([Kr.fontClass]))}else if(h==="textord"){var Zr=$t[p][D]&&$t[p][D].font;if(Zr==="ams"){var Wr=zr("amsrm",d.fontWeight,d.fontShape);return at(D,Wr,p,d,U.concat("amsrm",d.fontWeight,d.fontShape))}else if(Zr==="main"||!Zr){var Tn=zr("textrm",d.fontWeight,d.fontShape);return at(D,Tn,p,d,U.concat(d.fontWeight,d.fontShape))}else{var Dn=zr(Zr,d.fontWeight,d.fontShape);return at(D,Dn,p,d,U.concat(Dn,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},br=function(l,d){if(Rt(l.classes)!==Rt(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var h in l.style)if(l.style.hasOwnProperty(h)&&l.style[h]!==d.style[h])return!1;for(var p in d.style)if(d.style.hasOwnProperty(p)&&l.style[p]!==d.style[p])return!1;return!0},Mr=function(l){for(var d=0;d<l.length-1;d++){var h=l[d],p=l[d+1];h instanceof ee&&p instanceof ee&&br(h,p)&&(h.text+=p.text,h.height=Math.max(h.height,p.height),h.depth=Math.max(h.depth,p.depth),h.italic=p.italic,l.splice(d+1,1),d--)}return l},Fr=function(l){for(var d=0,h=0,p=0,D=0;D<l.children.length;D++){var U=l.children[D];U.height>d&&(d=U.height),U.depth>h&&(h=U.depth),U.maxFontSize>p&&(p=U.maxFontSize)}l.height=d,l.depth=h,l.maxFontSize=p},vr=function(l,d,h,p){var D=new N(l,d,h,p);return Fr(D),D},dr=function(l,d,h,p){return new N(l,d,h,p)},Yr=function(l,d,h){var p=vr([l],[],d);return p.height=Math.max(h||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),p.style.borderBottomWidth=p.height+"em",p.maxFontSize=1,p},Nr=function(l,d,h,p){var D=new ce(l,d,h,p);return Fr(D),D},Cr=function(l){var d=new ht(l);return Fr(d),d},Rr=function(l,d){return l instanceof ht?vr([],[l],d):l},Br=function(l){if(l.positionType==="individualShift"){for(var d=l.children,h=[d[0]],p=-d[0].shift-d[0].elem.depth,D=p,U=1;U<d.length;U++){var be=-d[U].shift-D-d[U].elem.depth,Ie=be-(d[U-1].elem.height+d[U-1].elem.depth);D=D+be,h.push({type:"kern",size:Ie}),h.push(d[U])}return{children:h,depth:p}}var ze;if(l.positionType==="top"){for(var nt=l.positionData,dt=0;dt<l.children.length;dt++){var Dt=l.children[dt];nt-=Dt.type==="kern"?Dt.size:Dt.elem.height+Dt.elem.depth}ze=nt}else if(l.positionType==="bottom")ze=-l.positionData;else{var Zt=l.children[0];if(Zt.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")ze=-Zt.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")ze=-Zt.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:ze}},Pr=function(l,d){for(var h=Br(l),p=h.children,D=h.depth,U=0,be=0;be<p.length;be++){var Ie=p[be];if(Ie.type==="elem"){var ze=Ie.elem;U=Math.max(U,ze.maxFontSize,ze.height)}}U+=2;var nt=vr(["pstrut"],[]);nt.style.height=U+"em";for(var dt=[],Dt=D,Zt=D,er=D,hr=0;hr<p.length;hr++){var Sr=p[hr];if(Sr.type==="kern")er+=Sr.size;else{var Kr=Sr.elem,Zr=Sr.wrapperClasses||[],Wr=Sr.wrapperStyle||{},Tn=vr(Zr,[nt,Kr],void 0,Wr);Tn.style.top=-U-er-Kr.depth+"em",Sr.marginLeft&&(Tn.style.marginLeft=Sr.marginLeft),Sr.marginRight&&(Tn.style.marginRight=Sr.marginRight),dt.push(Tn),er+=Kr.height+Kr.depth}Dt=Math.min(Dt,er),Zt=Math.max(Zt,er)}var Dn=vr(["vlist"],dt);Dn.style.height=Zt+"em";var $n;if(Dt<0){var Hn=vr([],[]),qn=vr(["vlist"],[Hn]);qn.style.height=-Dt+"em";var vi=vr(["vlist-s"],[new ee("\u200B")]);$n=[vr(["vlist-r"],[Dn,vi]),vr(["vlist-r"],[qn])]}else $n=[vr(["vlist-r"],[Dn])];var hi=vr(["vlist-t"],$n);return $n.length===2&&hi.classes.push("vlist-t2"),hi.height=Zt,hi.depth=-Dt,hi},kr=function(l,d){var h=vr(["mspace"],[],d),p=Ye(l,d);return h.style.marginRight=p+"em",h},zr=function(l,d,h){var p="";switch(l){case"amsrm":p="AMS";break;case"textrm":p="Main";break;case"textsf":p="SansSerif";break;case"texttt":p="Typewriter";break;default:p=l}var D;return d==="textbf"&&h==="textit"?D="BoldItalic":d==="textbf"?D="Bold":d==="textit"?D="Italic":D="Regular",p+"-"+D},sn={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"}},Qr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Tr=function(l,d){var h=Qr[l],p=h[0],D=h[1],U=h[2],be=new _e(p),Ie=new ue([be],{width:D+"em",height:U+"em",style:"width:"+D+"em",viewBox:"0 0 "+1e3*D+" "+1e3*U,preserveAspectRatio:"xMinYMin"}),ze=dr(["overlay"],[Ie],d);return ze.height=U,ze.style.height=U+"em",ze.style.width=D+"em",ze},Xe={fontMap:sn,makeSymbol:at,mathsym:Ct,makeSpan:vr,makeSvgSpan:dr,makeLineSpan:Yr,makeAnchor:Nr,makeFragment:Cr,wrapFragment:Rr,makeVList:Pr,makeOrd:qt,makeGlue:kr,staticSvg:Tr,svgData:Qr,tryCombineChars:Mr};function xr(j,l){var d=$r(j,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(j?"node of type "+j.type:String(j)));return d}function $r(j,l){return j&&j.type===l?j:null}function dn(j,l){var d=kn(j,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(j?j.type==="atom"?"atom of family "+j.family:"node of type "+j.type:String(j)));return d}function kn(j,l){return j&&j.type==="atom"&&j.family===l?j:null}function jr(j){var l=hn(j);if(!l)throw new Error("Expected node of symbol group type, but got "+(j?"node of type "+j.type:String(j)));return l}function hn(j){return j&&(j.type==="atom"||Pt.hasOwnProperty(j.type))?j:null}var Or={number:3,unit:"mu"},yn={number:4,unit:"mu"},Rn={number:5,unit:"mu"},rn={mord:{mop:Or,mbin:yn,mrel:Rn,minner:Or},mop:{mord:Or,mop:Or,mrel:Rn,minner:Or},mbin:{mord:yn,mop:yn,mopen:yn,minner:yn},mrel:{mord:Rn,mop:Rn,mopen:Rn,minner:Rn},mopen:{},mclose:{mop:Or,mbin:yn,mrel:Rn,minner:Or},mpunct:{mord:Or,mop:Or,mrel:Rn,mopen:Or,mclose:Or,mpunct:Or,minner:Or},minner:{mord:Or,mop:Or,mbin:yn,mrel:Rn,mopen:Or,mpunct:Or,minner:Or}},Cn={mord:{mop:Or},mop:{mord:Or,mop:Or},mbin:{},mrel:{},mopen:{},mclose:{mop:Or},mpunct:{},minner:{mop:Or}},ni={},Un={},ei={};function cr(j){for(var l=j.type,d=j.names,h=j.props,p=j.handler,D=j.htmlBuilder,U=j.mathmlBuilder,be={type:l,numArgs:h.numArgs,argTypes:h.argTypes,greediness:h.greediness===void 0?1:h.greediness,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,handler:p},Ie=0;Ie<d.length;++Ie)ni[d[Ie]]=be;l&&(D&&(Un[l]=D),U&&(ei[l]=U))}function tn(j){var l=j.type,d=j.htmlBuilder,h=j.mathmlBuilder;cr({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:h})}var an=function(l){var d=$r(l,"ordgroup");return d?d.body:[l]},mn=Xe.makeSpan,Zn=["leftmost","mbin","mopen","mrel","mop","mpunct"],Vn=["rightmost","mrel","mclose","mpunct"],vn={display:m.DISPLAY,text:m.TEXT,script:m.SCRIPT,scriptscript:m.SCRIPTSCRIPT},Nn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},un=function(l,d,h,p){p===void 0&&(p=[null,null]);for(var D=[],U=0;U<l.length;U++){var be=Gr(l[U],d);if(be instanceof ht){var Ie=be.children;D.push.apply(D,Ie)}else D.push(be)}if(!h)return D;var ze=d;if(l.length===1){var nt=$r(l[0],"sizing")||$r(l[0],"styling");nt&&(nt.type==="sizing"?ze=d.havingSize(nt.size):nt.type==="styling"&&(ze=d.havingStyle(vn[nt.style])))}var dt=mn([p[0]||"leftmost"],[],d),Dt=mn([p[1]||"rightmost"],[],d);return Yn(D,function(Zt,er){var hr=er.classes[0],Sr=Zt.classes[0];hr==="mbin"&&k.contains(Vn,Sr)?er.classes[0]="mord":Sr==="mbin"&&k.contains(Zn,hr)&&(Zt.classes[0]="mord")},{node:dt},Dt),Yn(D,function(Zt,er){var hr=jn(er),Sr=jn(Zt),Kr=hr&&Sr?Zt.hasClass("mtight")?Cn[hr][Sr]:rn[hr][Sr]:null;if(Kr)return Xe.makeGlue(Kr,ze)},{node:dt},Dt),D},Yn=function j(l,d,h,p){p&&l.push(p);for(var D=0;D<l.length;D++){var U=l[D],be=Gn(U);if(be){j(be.children,d,h);continue}if(U.classes[0]!=="mspace"){var Ie=d(U,h.node);Ie&&(h.insertAfter?h.insertAfter(Ie):(l.unshift(Ie),D++)),h.node=U,h.insertAfter=function(ze){return function(nt){l.splice(ze+1,0,nt),D++}}(D)}}p&&l.pop()},Gn=function(l){return l instanceof ht||l instanceof ce?l:null},si=function j(l,d){var h=Gn(l);if(h){var p=h.children;if(p.length){if(d==="right")return j(p[p.length-1],"right");if(d==="left")return j(p[0],"left")}}return l},jn=function(l,d){return l?(d&&(l=si(l,d)),Nn[l.classes[0]]||null):null},ii=function(l,d){var h=["nulldelimiter"].concat(l.baseSizingClasses());return mn(d.concat(h))},Gr=function(l,d,h){if(!l)return mn();if(Un[l.type]){var p=Un[l.type](l,d);if(h&&d.size!==h.size){p=mn(d.sizingClasses(h),[p],d);var D=d.sizeMultiplier/h.sizeMultiplier;p.height*=D,p.depth*=D}return p}else throw new X("Got group of unknown type: '"+l.type+"'")};function di(j,l){var d=mn(["base"],j,l),h=mn(["strut"]);return h.style.height=d.height+d.depth+"em",h.style.verticalAlign=-d.depth+"em",d.children.unshift(h),d}function wi(j,l){var d=null;j.length===1&&j[0].type==="tag"&&(d=j[0].tag,j=j[0].body);for(var h=un(j,l,!0),p=[],D=[],U=0;U<h.length;U++)if(D.push(h[U]),h[U].hasClass("mbin")||h[U].hasClass("mrel")||h[U].hasClass("allowbreak")){for(var be=!1;U<h.length-1&&h[U+1].hasClass("mspace")&&!h[U+1].hasClass("newline");)U++,D.push(h[U]),h[U].hasClass("nobreak")&&(be=!0);be||(p.push(di(D,l)),D=[])}else h[U].hasClass("newline")&&(D.pop(),D.length>0&&(p.push(di(D,l)),D=[]),p.push(h[U]));D.length>0&&p.push(di(D,l));var Ie;d&&(Ie=di(un(d,l,!0)),Ie.classes=["tag"],p.push(Ie));var ze=mn(["katex-html"],p);if(ze.setAttribute("aria-hidden","true"),Ie){var nt=Ie.children[0];nt.style.height=ze.height+ze.depth+"em",nt.style.verticalAlign=-ze.depth+"em"}return ze}function yi(j){return new ht(j)}var pn=function(){function j(d,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=h||[]}var l=j.prototype;return l.setAttribute=function(h,p){this.attributes[h]=p},l.getAttribute=function(h){return this.attributes[h]},l.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&h.setAttribute(p,this.attributes[p]);for(var D=0;D<this.children.length;D++)h.appendChild(this.children[D].toNode());return h},l.toMarkup=function(){var h="<"+this.type;for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(h+=" "+p+'="',h+=k.escape(this.attributes[p]),h+='"');h+=">";for(var D=0;D<this.children.length;D++)h+=this.children[D].toMarkup();return h+="</"+this.type+">",h},l.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},j}(),fi=function(){function j(d){this.text=void 0,this.text=d}var l=j.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return k.escape(this.toText())},l.toText=function(){return this.text},j}(),xi=function(){function j(d){this.width=void 0,this.character=void 0,this.width=d,d>=.05555&&d<=.05556?this.character="\u200A":d>=.1666&&d<=.1667?this.character="\u2009":d>=.2222&&d<=.2223?this.character="\u2005":d>=.2777&&d<=.2778?this.character="\u2005\u200A":d>=-.05556&&d<=-.05555?this.character="\u200A\u2063":d>=-.1667&&d<=-.1666?this.character="\u2009\u2063":d>=-.2223&&d<=-.2222?this.character="\u205F\u2063":d>=-.2778&&d<=-.2777?this.character="\u2005\u2063":this.character=null}var l=j.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var h=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return h.setAttribute("width",this.width+"em"),h},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},j}(),Jt={MathNode:pn,TextNode:fi,SpaceNode:xi,newDocumentFragment:yi},Xn=function(l,d,h){return $t[d][l]&&$t[d][l].replace&&l.charCodeAt(0)!==55349&&!(Wt.hasOwnProperty(l)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(l=$t[d][l].replace),new Jt.TextNode(l)},mi=function(l){return l.length===1?l[0]:new Jt.MathNode("mrow",l)},li=function(l,d){if(d.fontFamily==="texttt")return"monospace";if(d.fontFamily==="textsf")return d.fontShape==="textit"&&d.fontWeight==="textbf"?"sans-serif-bold-italic":d.fontShape==="textit"?"sans-serif-italic":d.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(d.fontShape==="textit"&&d.fontWeight==="textbf")return"bold-italic";if(d.fontShape==="textit")return"italic";if(d.fontWeight==="textbf")return"bold";var h=d.font;if(!h||h==="mathnormal")return null;var p=l.mode;if(h==="mathit")return"italic";if(h==="boldsymbol")return"bold-italic";if(h==="mathbf")return"bold";if(h==="mathbb")return"double-struck";if(h==="mathfrak")return"fraktur";if(h==="mathscr"||h==="mathcal")return"script";if(h==="mathsf")return"sans-serif";if(h==="mathtt")return"monospace";var D=l.text;if(k.contains(["\\imath","\\jmath"],D))return null;$t[p][D]&&$t[p][D].replace&&(D=$t[p][D].replace);var U=Xe.fontMap[h].fontName;return At(D,U,p)?Xe.fontMap[h].variant:null},On=function(l,d,h){if(l.length===1){var p=Jr(l[0],d);return h&&p instanceof pn&&p.type==="mo"&&(p.setAttribute("lspace","0em"),p.setAttribute("rspace","0em")),[p]}for(var D=[],U,be=0;be<l.length;be++){var Ie=Jr(l[be],d);if(Ie instanceof pn&&U instanceof pn){if(Ie.type==="mtext"&&U.type==="mtext"&&Ie.getAttribute("mathvariant")===U.getAttribute("mathvariant")){var ze;(ze=U.children).push.apply(ze,Ie.children);continue}else if(Ie.type==="mn"&&U.type==="mn"){var nt;(nt=U.children).push.apply(nt,Ie.children);continue}else if(Ie.type==="mi"&&Ie.children.length===1&&U.type==="mn"){var dt=Ie.children[0];if(dt instanceof fi&&dt.text==="."){var Dt;(Dt=U.children).push.apply(Dt,Ie.children);continue}}else if(U.type==="mi"&&U.children.length===1){var Zt=U.children[0];if(Zt instanceof fi&&Zt.text==="\u0338"&&(Ie.type==="mo"||Ie.type==="mi"||Ie.type==="mn")){var er=Ie.children[0];er instanceof fi&&er.text.length>0&&(er.text=er.text.slice(0,1)+"\u0338"+er.text.slice(1),D.pop())}}}D.push(Ie),U=Ie}return D},xn=function(l,d,h){return mi(On(l,d,h))},Jr=function(l,d){if(!l)return new Jt.MathNode("mrow");if(ei[l.type]){var h=ei[l.type](l,d);return h}else throw new X("Got group of unknown type: '"+l.type+"'")};function En(j,l,d,h){var p=On(j,d),D;p.length===1&&p[0]instanceof pn&&k.contains(["mrow","mtable"],p[0].type)?D=p[0]:D=new Jt.MathNode("mrow",p);var U=new Jt.MathNode("annotation",[new Jt.TextNode(l)]);U.setAttribute("encoding","application/x-tex");var be=new Jt.MathNode("semantics",[D,U]),Ie=new Jt.MathNode("math",[be]);Ie.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var ze=h?"katex":"katex-mathml";return Xe.makeSpan([ze],[Ie])}var Fn=function(l){return new en({style:l.displayMode?m.DISPLAY:m.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Qn=function(l,d){if(d.displayMode){var h=["katex-display"];d.leqno&&h.push("leqno"),d.fleqn&&h.push("fleqn"),l=Xe.makeSpan(h,[l])}return l},In=function(l,d,h){var p=Fn(h),D;if(h.output==="mathml")return En(l,d,p,!0);if(h.output==="html"){var U=wi(l,p);D=Xe.makeSpan(["katex"],[U])}else{var be=En(l,d,p,!1),Ie=wi(l,p);D=Xe.makeSpan(["katex"],[be,Ie])}return Qn(D,h)},Kn=function(l,d,h){var p=Fn(h),D=wi(l,p),U=Xe.makeSpan(["katex"],[D]);return Qn(U,h)},Ri=In,gn={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"},Hr=function(l){var d=new Jt.MathNode("mo",[new Jt.TextNode(gn[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},Pn={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]},Mn=function(l){return l.type==="ordgroup"?l.body.length:1},ai=function(l,d){function h(){var Ie=4e5,ze=l.label.substr(1);if(k.contains(["widehat","widecheck","widetilde","utilde"],ze)){var nt=l,dt=Mn(nt.base),Dt,Zt,er;if(dt>5)ze==="widehat"||ze==="widecheck"?(Dt=420,Ie=2364,er=.42,Zt=ze+"4"):(Dt=312,Ie=2340,er=.34,Zt="tilde4");else{var hr=[1,1,2,2,3,3][dt];ze==="widehat"||ze==="widecheck"?(Ie=[0,1062,2364,2364,2364][hr],Dt=[0,239,300,360,420][hr],er=[0,.24,.3,.3,.36,.42][hr],Zt=ze+hr):(Ie=[0,600,1033,2339,2340][hr],Dt=[0,260,286,306,312][hr],er=[0,.26,.286,.3,.306,.34][hr],Zt="tilde"+hr)}var Sr=new _e(Zt),Kr=new ue([Sr],{width:"100%",height:er+"em",viewBox:"0 0 "+Ie+" "+Dt,preserveAspectRatio:"none"});return{span:Xe.makeSvgSpan([],[Kr],d),minWidth:0,height:er}}else{var Zr=[],Wr=Pn[ze],Tn=Wr[0],Dn=Wr[1],$n=Wr[2],Hn=$n/1e3,qn=Tn.length,vi,hi;if(qn===1){var Sn=Wr[3];vi=["hide-tail"],hi=[Sn]}else if(qn===2)vi=["halfarrow-left","halfarrow-right"],hi=["xMinYMin","xMaxYMin"];else if(qn===3)vi=["brace-left","brace-center","brace-right"],hi=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+qn+" children.");for(var ki=0;ki<qn;ki++){var Hi=new _e(Tn[ki]),Mi=new ue([Hi],{width:"400em",height:Hn+"em",viewBox:"0 0 "+Ie+" "+$n,preserveAspectRatio:hi[ki]+" slice"}),_i=Xe.makeSvgSpan([vi[ki]],[Mi],d);if(qn===1)return{span:_i,minWidth:Dn,height:Hn};_i.style.height=Hn+"em",Zr.push(_i)}return{span:Xe.makeSpan(["stretchy"],Zr,d),minWidth:Dn,height:Hn}}}var p=h(),D=p.span,U=p.minWidth,be=p.height;return D.height=be,D.style.height=be+"em",U>0&&(D.style.minWidth=U+"em"),D},fr=function(l,d,h,p){var D,U=l.height+l.depth+2*h;if(/fbox|color/.test(d)){if(D=Xe.makeSpan(["stretchy",d],[],p),d==="fbox"){var be=p.color&&p.getColor();be&&(D.style.borderColor=be)}}else{var Ie=[];/^[bx]cancel$/.test(d)&&Ie.push(new ke({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Ie.push(new ke({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var ze=new ue(Ie,{width:"100%",height:U+"em"});D=Xe.makeSvgSpan([],[ze],p)}return D.height=U,D.style.height=U+"em",D},mr={encloseSpan:fr,mathMLnode:Hr,svgSpan:ai},nn=function(l,d){var h,p,D=$r(l,"supsub"),U;D?(p=xr(D.base,"accent"),h=p.base,D.base=h,U=We(Gr(D,d)),D.base=p):(p=xr(l,"accent"),h=p.base);var be=Gr(h,d.havingCrampedStyle()),Ie=p.isShifty&&k.isCharacterBox(h),ze=0;if(Ie){var nt=k.getBaseElem(h),dt=Gr(nt,d.havingCrampedStyle());ze=Pe(dt).skew}var Dt=Math.min(be.height,d.fontMetrics().xHeight),Zt;if(p.isStretchy)Zt=mr.svgSpan(p,d),Zt=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"elem",elem:Zt,wrapperClasses:["svg-align"],wrapperStyle:ze>0?{width:"calc(100% - "+2*ze+"em)",marginLeft:2*ze+"em"}:void 0}]},d);else{var er,hr;p.label==="\\vec"?(er=Xe.staticSvg("vec",d),hr=Xe.svgData.vec[1]):(er=Xe.makeOrd({mode:p.mode,text:p.label},d,"textord"),er=Pe(er),er.italic=0,hr=er.width),Zt=Xe.makeSpan(["accent-body"],[er]);var Sr=p.label==="\\textcircled";Sr&&(Zt.classes.push("accent-full"),Dt=be.height);var Kr=ze;Sr||(Kr-=hr/2),Zt.style.left=Kr+"em",p.label==="\\textcircled"&&(Zt.style.top=".2em"),Zt=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:-Dt},{type:"elem",elem:Zt}]},d)}var Zr=Xe.makeSpan(["mord","accent"],[Zt],d);return U?(U.children[0]=Zr,U.height=Math.max(Zr.height,U.height),U.classes[0]="mord",U):Zr},zn=function(l,d){var h=l.isStretchy?mr.mathMLnode(l.label):new Jt.MathNode("mo",[Xn(l.label,l.mode)]),p=new Jt.MathNode("mover",[Jr(l.base,d),h]);return p.setAttribute("accent","true"),p},ln=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(j){return"\\"+j}).join("|"));cr({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(l,d){var h=d[0],p=!ln.test(l.funcName),D=!p||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:p,isShifty:D,base:h}},htmlBuilder:nn,mathmlBuilder:zn}),cr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:nn,mathmlBuilder:zn}),cr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0];return{type:"accentUnder",mode:h.mode,label:p,base:D}},htmlBuilder:function(l,d){var h=Gr(l.base,d),p=mr.svgSpan(l,d),D=l.label==="\\utilde"?.12:0,U=Xe.makeVList({positionType:"bottom",positionData:p.height+D,children:[{type:"elem",elem:p,wrapperClasses:["svg-align"]},{type:"kern",size:D},{type:"elem",elem:h}]},d);return Xe.makeSpan(["mord","accentunder"],[U],d)},mathmlBuilder:function(l,d){var h=mr.mathMLnode(l.label),p=new Jt.MathNode("munder",[Jr(l.base,d),h]);return p.setAttribute("accentunder","true"),p}});var pi=function(l){var d=new Jt.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};cr({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(l,d,h){var p=l.parser,D=l.funcName;return{type:"xArrow",mode:p.mode,label:D,body:d[0],below:h[0]}},htmlBuilder:function(l,d){var h=d.style,p=d.havingStyle(h.sup()),D=Xe.wrapFragment(Gr(l.body,p,d),d);D.classes.push("x-arrow-pad");var U;l.below&&(p=d.havingStyle(h.sub()),U=Xe.wrapFragment(Gr(l.below,p,d),d),U.classes.push("x-arrow-pad"));var be=mr.svgSpan(l,d),Ie=-d.fontMetrics().axisHeight+.5*be.height,ze=-d.fontMetrics().axisHeight-.5*be.height-.111;(D.depth>.25||l.label==="\\xleftequilibrium")&&(ze-=D.depth);var nt;if(U){var dt=-d.fontMetrics().axisHeight+U.height+.5*be.height+.111;nt=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:ze},{type:"elem",elem:be,shift:Ie},{type:"elem",elem:U,shift:dt}]},d)}else nt=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:ze},{type:"elem",elem:be,shift:Ie}]},d);return nt.children[0].children[0].children[1].classes.push("svg-align"),Xe.makeSpan(["mrel","x-arrow"],[nt],d)},mathmlBuilder:function(l,d){var h=mr.mathMLnode(l.label),p;if(l.body){var D=pi(Jr(l.body,d));if(l.below){var U=pi(Jr(l.below,d));p=new Jt.MathNode("munderover",[h,U,D])}else p=new Jt.MathNode("mover",[h,D])}else if(l.below){var be=pi(Jr(l.below,d));p=new Jt.MathNode("munder",[h,be])}else p=pi(),p=new Jt.MathNode("mover",[h,p]);return p}}),cr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var h=l.parser,p=xr(d[0],"ordgroup"),D=p.body,U="",be=0;be<D.length;be++){var Ie=xr(D[be],"textord");U+=Ie.text}var ze=parseInt(U);if(isNaN(ze))throw new X("\\@char has non-numeric argument "+U);return{type:"textord",mode:h.mode,text:String.fromCharCode(ze)}}});var Ki=function(l,d){var h=un(l.body,d.withColor(l.color),!1);return Xe.makeFragment(h)},zi=function(l,d){var h=On(l.body,d.withColor(l.color)),p=new Jt.MathNode("mstyle",h);return p.setAttribute("mathcolor",l.color),p};cr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var h=l.parser,p=xr(d[0],"color-token").color,D=d[1];return{type:"color",mode:h.mode,color:p,body:an(D)}},htmlBuilder:Ki,mathmlBuilder:zi}),cr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var h=l.parser,p=l.breakOnTokenText,D=xr(d[0],"color-token").color;h.gullet.macros.set("\\current@color",D);var U=h.parseExpression(!0,p);return{type:"color",mode:h.mode,color:D,body:U}},htmlBuilder:Ki,mathmlBuilder:zi}),cr({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,h){var p=l.parser,D=l.funcName,U=h[0],be=D==="\\cr",Ie=!1;return be||(p.settings.displayMode&&p.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Ie=!1:Ie=!0),{type:"cr",mode:p.mode,newLine:Ie,newRow:be,size:U&&xr(U,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new X("\\cr valid only within a tabular/array environment");var h=Xe.makeSpan(["mspace"],[],d);return l.newLine&&(h.classes.push("newline"),l.size&&(h.style.marginTop=Ye(l.size,d)+"em")),h},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mspace");return l.newLine&&(h.setAttribute("linebreak","newline"),l.size&&h.setAttribute("height",Ye(l.size,d)+"em")),h}});var Ti=function(l,d,h){var p=$t.math[l]&&$t.math[l].replace,D=At(p||l,d,h);if(!D)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return D},vs=function(l,d,h,p){var D=h.havingBaseStyle(d),U=Xe.makeSpan(p.concat(D.sizingClasses(h)),[l],h),be=D.sizeMultiplier/h.sizeMultiplier;return U.height*=be,U.depth*=be,U.maxFontSize=D.sizeMultiplier,U},Ds=function(l,d,h){var p=d.havingBaseStyle(h),D=(1-d.sizeMultiplier/p.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=D+"em",l.height-=D,l.depth+=D},Rs=function(l,d,h,p,D,U){var be=Xe.makeSymbol(l,"Main-Regular",D,p),Ie=vs(be,d,p,U);return h&&Ds(Ie,p,d),Ie},ns=function(l,d,h,p){return Xe.makeSymbol(l,"Size"+d+"-Regular",h,p)},Is=function(l,d,h,p,D,U){var be=ns(l,d,D,p),Ie=vs(Xe.makeSpan(["delimsizing","size"+d],[be],p),m.TEXT,p,U);return h&&Ds(Ie,p,m.TEXT),Ie},Ii=function(l,d,h){var p;d==="Size1-Regular"?p="delim-size1":p="delim-size4";var D=Xe.makeSpan(["delimsizinginner",p],[Xe.makeSpan([],[Xe.makeSymbol(l,d,h)])]);return{type:"elem",elem:D}},ti={type:"kern",size:-.005},_s=function(l,d,h,p,D,U){var be,Ie,ze,nt;be=ze=nt=l,Ie=null;var dt="Size1-Regular";l==="\\uparrow"?ze=nt="\u23D0":l==="\\Uparrow"?ze=nt="\u2016":l==="\\downarrow"?be=ze="\u23D0":l==="\\Downarrow"?be=ze="\u2016":l==="\\updownarrow"?(be="\\uparrow",ze="\u23D0",nt="\\downarrow"):l==="\\Updownarrow"?(be="\\Uparrow",ze="\u2016",nt="\\Downarrow"):l==="["||l==="\\lbrack"?(be="\u23A1",ze="\u23A2",nt="\u23A3",dt="Size4-Regular"):l==="]"||l==="\\rbrack"?(be="\u23A4",ze="\u23A5",nt="\u23A6",dt="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(ze=be="\u23A2",nt="\u23A3",dt="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(be="\u23A1",ze=nt="\u23A2",dt="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(ze=be="\u23A5",nt="\u23A6",dt="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(be="\u23A4",ze=nt="\u23A5",dt="Size4-Regular"):l==="("||l==="\\lparen"?(be="\u239B",ze="\u239C",nt="\u239D",dt="Size4-Regular"):l===")"||l==="\\rparen"?(be="\u239E",ze="\u239F",nt="\u23A0",dt="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(be="\u23A7",Ie="\u23A8",nt="\u23A9",ze="\u23AA",dt="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(be="\u23AB",Ie="\u23AC",nt="\u23AD",ze="\u23AA",dt="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(be="\u23A7",nt="\u23A9",ze="\u23AA",dt="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(be="\u23AB",nt="\u23AD",ze="\u23AA",dt="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(be="\u23A7",nt="\u23AD",ze="\u23AA",dt="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(be="\u23AB",nt="\u23A9",ze="\u23AA",dt="Size4-Regular");var Dt=Ti(be,dt,D),Zt=Dt.height+Dt.depth,er=Ti(ze,dt,D),hr=er.height+er.depth,Sr=Ti(nt,dt,D),Kr=Sr.height+Sr.depth,Zr=0,Wr=1;if(Ie!==null){var Tn=Ti(Ie,dt,D);Zr=Tn.height+Tn.depth,Wr=2}var Dn=Zt+Kr+Zr,$n=Math.max(0,Math.ceil((d-Dn)/(Wr*hr))),Hn=Dn+$n*Wr*hr,qn=p.fontMetrics().axisHeight;h&&(qn*=p.sizeMultiplier);var vi=Hn/2-qn,hi=($n+1)*.005-hr,Sn=[];if(Sn.push(Ii(nt,dt,D)),Ie===null)for(var ki=0;ki<$n;ki++)Sn.push(ti),Sn.push(Ii(ze,dt,D));else{for(var Hi=0;Hi<$n;Hi++)Sn.push(ti),Sn.push(Ii(ze,dt,D));Sn.push({type:"kern",size:hi}),Sn.push(Ii(ze,dt,D)),Sn.push(ti),Sn.push(Ii(Ie,dt,D));for(var Mi=0;Mi<$n;Mi++)Sn.push(ti),Sn.push(Ii(ze,dt,D))}Sn.push({type:"kern",size:hi}),Sn.push(Ii(ze,dt,D)),Sn.push(ti),Sn.push(Ii(be,dt,D));var _i=p.havingBaseStyle(m.TEXT),Gi=Xe.makeVList({positionType:"bottom",positionData:vi,children:Sn},_i);return vs(Xe.makeSpan(["delimsizing","mult"],[Gi],_i),m.TEXT,p,U)},is=80,Si=.08,Li=function(l,d,h,p,D){var U=Et(l,p,h),be=new _e(l,U),Ie=new ue([be],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return Xe.makeSvgSpan(["hide-tail"],[Ie],D)},Qs=function(l,d){var h=d.havingBaseSizing(),p=Ls("\\surd",l*h.sizeMultiplier,$i,h),D=h.sizeMultiplier,U=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),be,Ie=0,ze=0,nt=0,dt;return p.type==="small"?(nt=1e3+1e3*U+is,l<1?D=1:l<1.4&&(D=.7),Ie=(1+U+Si)/D,ze=(1+U)/D,be=Li("sqrtMain",Ie,nt,U,d),be.style.minWidth="0.853em",dt=.833/D):p.type==="large"?(nt=(1e3+is)*ss[p.size],ze=(ss[p.size]+U)/D,Ie=(ss[p.size]+U+Si)/D,be=Li("sqrtSize"+p.size,Ie,nt,U,d),be.style.minWidth="1.02em",dt=1/D):(Ie=l+U+Si,ze=l+U,nt=Math.floor(1e3*l+U)+is,be=Li("sqrtTall",Ie,nt,U,d),be.style.minWidth="0.742em",dt=1.056),be.height=ze,be.style.height=Ie+"em",{span:be,advanceWidth:dt,ruleWidth:(d.fontMetrics().sqrtRuleThickness+U)*D}},Oi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Js=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],bs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ss=[0,1.2,1.8,2.4,3],qs=function(l,d,h,p,D){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),k.contains(Oi,l)||k.contains(bs,l))return Is(l,d,!1,h,p,D);if(k.contains(Js,l))return _s(l,ss[d],!1,h,p,D);throw new X("Illegal delimiter: '"+l+"'")},ri=[{type:"small",style:m.SCRIPTSCRIPT},{type:"small",style:m.SCRIPT},{type:"small",style:m.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xi=[{type:"small",style:m.SCRIPTSCRIPT},{type:"small",style:m.SCRIPT},{type:"small",style:m.TEXT},{type:"stack"}],$i=[{type:"small",style:m.SCRIPTSCRIPT},{type:"small",style:m.SCRIPT},{type:"small",style:m.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Wi=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+l.type+"' here.")},Ls=function(l,d,h,p){for(var D=Math.min(2,3-p.style.size),U=D;U<h.length&&h[U].type!=="stack";U++){var be=Ti(l,Wi(h[U]),"math"),Ie=be.height+be.depth;if(h[U].type==="small"){var ze=p.havingBaseStyle(h[U].style);Ie*=ze.sizeMultiplier}if(Ie>d)return h[U]}return h[h.length-1]},wn=function(l,d,h,p,D,U){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var be;k.contains(bs,l)?be=ri:k.contains(Oi,l)?be=$i:be=Xi;var Ie=Ls(l,d,be,p);return Ie.type==="small"?Rs(l,Ie.style,h,p,D,U):Ie.type==="large"?Is(l,Ie.size,h,p,D,U):_s(l,d,h,p,D,U)},as=function(l,d,h,p,D,U){var be=p.fontMetrics().axisHeight*p.sizeMultiplier,Ie=901,ze=5/p.fontMetrics().ptPerEm,nt=Math.max(d-be,h+be),dt=Math.max(nt/500*Ie,2*nt-ze);return wn(l,dt,!0,p,D,U)},gi={sqrtImage:Qs,sizedDelim:qs,customSizedDelim:wn,leftRightDelim:as},Qi={"\\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}},ea=["(","\\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 os(j,l){var d=hn(j);if(d&&k.contains(ea,d.text))return d;throw new X("Invalid delimiter: '"+(d?d.text:JSON.stringify(j))+"' after '"+l.funcName+"'",j)}cr({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(l,d){var h=os(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:Qi[l.funcName].size,mclass:Qi[l.funcName].mclass,delim:h.text}},htmlBuilder:function(l,d){return l.delim==="."?Xe.makeSpan([l.mclass]):gi.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(Xn(l.delim,l.mode));var h=new Jt.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function ls(j){if(!j.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}cr({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var h=l.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new X("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:os(d[0],l).text,color:h}}}),cr({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var h=os(d[0],l),p=l.parser;++p.leftrightDepth;var D=p.parseExpression(!1);--p.leftrightDepth,p.expect("\\right",!1);var U=xr(p.parseFunction(),"leftright-right");return{type:"leftright",mode:p.mode,body:D,left:h.text,right:U.delim,rightColor:U.color}},htmlBuilder:function(l,d){ls(l);for(var h=un(l.body,d,!0,["mopen","mclose"]),p=0,D=0,U=!1,be=0;be<h.length;be++)h[be].isMiddle?U=!0:(p=Math.max(h[be].height,p),D=Math.max(h[be].depth,D));p*=d.sizeMultiplier,D*=d.sizeMultiplier;var Ie;if(l.left==="."?Ie=ii(d,["mopen"]):Ie=gi.leftRightDelim(l.left,p,D,d,l.mode,["mopen"]),h.unshift(Ie),U)for(var ze=1;ze<h.length;ze++){var nt=h[ze],dt=nt.isMiddle;dt&&(h[ze]=gi.leftRightDelim(dt.delim,p,D,dt.options,l.mode,[]))}var Dt;if(l.right===".")Dt=ii(d,["mclose"]);else{var Zt=l.rightColor?d.withColor(l.rightColor):d;Dt=gi.leftRightDelim(l.right,p,D,Zt,l.mode,["mclose"])}return h.push(Dt),Xe.makeSpan(["minner"],h,d)},mathmlBuilder:function(l,d){ls(l);var h=On(l.body,d);if(l.left!=="."){var p=new Jt.MathNode("mo",[Xn(l.left,l.mode)]);p.setAttribute("fence","true"),h.unshift(p)}if(l.right!=="."){var D=new Jt.MathNode("mo",[Xn(l.right,l.mode)]);D.setAttribute("fence","true"),l.rightColor&&D.setAttribute("mathcolor",l.rightColor),h.push(D)}return mi(h)}}),cr({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var h=os(d[0],l);if(!l.parser.leftrightDepth)throw new X("\\middle without preceding \\left",h);return{type:"middle",mode:l.parser.mode,delim:h.text}},htmlBuilder:function(l,d){var h;if(l.delim===".")h=ii(d,[]);else{h=gi.sizedDelim(l.delim,1,d,l.mode,[]);var p={delim:l.delim,options:d};h.isMiddle=p}return h},mathmlBuilder:function(l,d){var h=l.delim==="\\vert"||l.delim==="|"?Xn("|","text"):Xn(l.delim,l.mode),p=new Jt.MathNode("mo",[h]);return p.setAttribute("fence","true"),p.setAttribute("lspace","0.05em"),p.setAttribute("rspace","0.05em"),p}});var us=function(l,d){var h=Xe.wrapFragment(Gr(l.body,d),d),p=l.label.substr(1),D=d.sizeMultiplier,U,be=0,Ie=k.isCharacterBox(l.body);if(p==="sout")U=Xe.makeSpan(["stretchy","sout"]),U.height=d.fontMetrics().defaultRuleThickness/D,be=-.5*d.fontMetrics().xHeight;else{/cancel/.test(p)?Ie||h.classes.push("cancel-pad"):h.classes.push("boxpad");var ze=0,nt=0;/box/.test(p)?(nt=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),ze=d.fontMetrics().fboxsep+(p==="colorbox"?0:nt)):ze=Ie?.2:0,U=mr.encloseSpan(h,p,ze,d),/fbox|boxed|fcolorbox/.test(p)&&(U.style.borderStyle="solid",U.style.borderWidth=nt+"em"),be=h.depth+ze,l.backgroundColor&&(U.style.backgroundColor=l.backgroundColor,l.borderColor&&(U.style.borderColor=l.borderColor))}var dt;return l.backgroundColor?dt=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:U,shift:be},{type:"elem",elem:h,shift:0}]},d):dt=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:U,shift:be,wrapperClasses:/cancel/.test(p)?["svg-align"]:[]}]},d),/cancel/.test(p)&&(dt.height=h.height,dt.depth=h.depth),/cancel/.test(p)&&!Ie?Xe.makeSpan(["mord","cancel-lap"],[dt],d):Xe.makeSpan(["mord"],[dt],d)},ys=function(l,d){var h=0,p=new Jt.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Jr(l.body,d)]);switch(l.label){case"\\cancel":p.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":p.setAttribute("notation","downdiagonalstrike");break;case"\\sout":p.setAttribute("notation","horizontalstrike");break;case"\\fbox":p.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,p.setAttribute("width","+"+2*h+"pt"),p.setAttribute("height","+"+2*h+"pt"),p.setAttribute("lspace",h+"pt"),p.setAttribute("voffset",h+"pt"),l.label==="\\fcolorbox"){var D=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);p.setAttribute("style","border: "+D+"em solid "+String(l.borderColor))}break;case"\\xcancel":p.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&p.setAttribute("mathbackground",l.backgroundColor),p};cr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,h){var p=l.parser,D=l.funcName,U=xr(d[0],"color-token").color,be=d[1];return{type:"enclose",mode:p.mode,label:D,backgroundColor:U,body:be}},htmlBuilder:us,mathmlBuilder:ys}),cr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,h){var p=l.parser,D=l.funcName,U=xr(d[0],"color-token").color,be=xr(d[1],"color-token").color,Ie=d[2];return{type:"enclose",mode:p.mode,label:D,backgroundColor:be,borderColor:U,body:Ie}},htmlBuilder:us,mathmlBuilder:ys}),cr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:d[0]}}}),cr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,h){var p=l.parser,D=l.funcName,U=d[0];return{type:"enclose",mode:p.mode,label:D,body:U}},htmlBuilder:us,mathmlBuilder:ys});var ks={};function Di(j){for(var l=j.type,d=j.names,h=j.props,p=j.handler,D=j.htmlBuilder,U=j.mathmlBuilder,be={type:l,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:p},Ie=0;Ie<d.length;++Ie)ks[d[Ie]]=be;D&&(Un[l]=D),U&&(ei[l]=U)}function xs(j){var l=[];j.consumeSpaces();for(var d=j.fetch().text;d==="\\hline"||d==="\\hdashline";)j.consume(),l.push(d==="\\hdashline"),j.consumeSpaces(),d=j.fetch().text;return l}function _n(j,l,d){var h=l.hskipBeforeAndAfter,p=l.addJot,D=l.cols,U=l.arraystretch,be=l.colSeparationType;if(j.gullet.beginGroup(),j.gullet.macros.set("\\\\","\\cr"),!U){var Ie=j.gullet.expandMacroAsText("\\arraystretch");if(Ie==null)U=1;else if(U=parseFloat(Ie),!U||U<0)throw new X("Invalid \\arraystretch: "+Ie)}j.gullet.beginGroup();var ze=[],nt=[ze],dt=[],Dt=[];for(Dt.push(xs(j));;){var Zt=j.parseExpression(!1,"\\cr");j.gullet.endGroup(),j.gullet.beginGroup(),Zt={type:"ordgroup",mode:j.mode,body:Zt},d&&(Zt={type:"styling",mode:j.mode,style:d,body:[Zt]}),ze.push(Zt);var er=j.fetch().text;if(er==="&")j.consume();else if(er==="\\end"){ze.length===1&&Zt.type==="styling"&&Zt.body[0].body.length===0&&nt.pop(),Dt.length<nt.length+1&&Dt.push([]);break}else if(er==="\\cr"){var hr=xr(j.parseFunction(),"cr");dt.push(hr.size),Dt.push(xs(j)),ze=[],nt.push(ze)}else throw new X("Expected & or \\\\ or \\cr or \\end",j.nextToken)}return j.gullet.endGroup(),j.gullet.endGroup(),{type:"array",mode:j.mode,addJot:p,arraystretch:U,body:nt,cols:D,rowGaps:dt,hskipBeforeAndAfter:h,hLinesBeforeRow:Dt,colSeparationType:be}}function fn(j){return j.substr(0,1)==="d"?"display":"text"}var cn=function(l,d){var h,p,D=l.body.length,U=l.hLinesBeforeRow,be=0,Ie=new Array(D),ze=[],nt=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),dt=1/d.fontMetrics().ptPerEm,Dt=5*dt;if(l.colSeparationType&&l.colSeparationType==="small"){var Zt=d.havingStyle(m.SCRIPT).sizeMultiplier;Dt=.2778*(Zt/d.sizeMultiplier)}var er=12*dt,hr=3*dt,Sr=l.arraystretch*er,Kr=.7*Sr,Zr=.3*Sr,Wr=0;function Tn(va){for(var rs=0;rs<va.length;++rs)rs>0&&(Wr+=.25),ze.push({pos:Wr,isDashed:va[rs]})}for(Tn(U[0]),h=0;h<l.body.length;++h){var Dn=l.body[h],$n=Kr,Hn=Zr;be<Dn.length&&(be=Dn.length);var qn=new Array(Dn.length);for(p=0;p<Dn.length;++p){var vi=Gr(Dn[p],d);Hn<vi.depth&&(Hn=vi.depth),$n<vi.height&&($n=vi.height),qn[p]=vi}var hi=l.rowGaps[h],Sn=0;hi&&(Sn=Ye(hi,d),Sn>0&&(Sn+=Zr,Hn<Sn&&(Hn=Sn),Sn=0)),l.addJot&&(Hn+=hr),qn.height=$n,qn.depth=Hn,Wr+=$n,qn.pos=Wr,Wr+=Hn+Sn,Ie[h]=qn,Tn(U[h+1])}var ki=Wr/2+d.fontMetrics().axisHeight,Hi=l.cols||[],Mi=[],_i,Gi;for(p=0,Gi=0;p<be||Gi<Hi.length;++p,++Gi){for(var oi=Hi[Gi]||{},Bi=!0;oi.type==="separator";){if(Bi||(_i=Xe.makeSpan(["arraycolsep"],[]),_i.style.width=d.fontMetrics().doubleRuleSep+"em",Mi.push(_i)),oi.separator==="|"||oi.separator===":"){var to=oi.separator==="|"?"solid":"dashed",ms=Xe.makeSpan(["vertical-separator"],[],d);ms.style.height=Wr+"em",ms.style.borderRightWidth=nt+"em",ms.style.borderRightStyle=to,ms.style.margin="0 -"+nt/2+"em",ms.style.verticalAlign=-(Wr-ki)+"em",Mi.push(ms)}else throw new X("Invalid separator type: "+oi.separator);Gi++,oi=Hi[Gi]||{},Bi=!1}if(!(p>=be)){var ps=void 0;(p>0||l.hskipBeforeAndAfter)&&(ps=k.deflt(oi.pregap,Dt),ps!==0&&(_i=Xe.makeSpan(["arraycolsep"],[]),_i.style.width=ps+"em",Mi.push(_i)));var gs=[];for(h=0;h<D;++h){var Ws=Ie[h],Zs=Ws[p];if(Zs){var ts=Ws.pos-ki;Zs.depth=Ws.depth,Zs.height=Ws.height,gs.push({type:"elem",elem:Zs,shift:ts})}}gs=Xe.makeVList({positionType:"individualShift",children:gs},d),gs=Xe.makeSpan(["col-align-"+(oi.align||"c")],[gs]),Mi.push(gs),(p<be-1||l.hskipBeforeAndAfter)&&(ps=k.deflt(oi.postgap,Dt),ps!==0&&(_i=Xe.makeSpan(["arraycolsep"],[]),_i.style.width=ps+"em",Mi.push(_i)))}}if(Ie=Xe.makeSpan(["mtable"],Mi),ze.length>0){for(var Ba=Xe.makeLineSpan("hline",d,nt),ro=Xe.makeLineSpan("hdashline",d,nt),pa=[{type:"elem",elem:Ie,shift:0}];ze.length>0;){var Vs=ze.pop(),ga=Vs.pos-ki;Vs.isDashed?pa.push({type:"elem",elem:ro,shift:ga}):pa.push({type:"elem",elem:Ba,shift:ga})}Ie=Xe.makeVList({positionType:"individualShift",children:pa},d)}return Xe.makeSpan(["mord"],[Ie],d)},Wn={c:"center ",l:"left ",r:"right "},Jn=function(l,d){var h=new Jt.MathNode("mtable",l.body.map(function(Wr){return new Jt.MathNode("mtr",Wr.map(function(Tn){return new Jt.MathNode("mtd",[Jr(Tn,d)])}))})),p=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);h.setAttribute("rowspacing",p+"em");var D="",U="";if(l.cols){var be=l.cols,Ie="",ze=!1,nt=0,dt=be.length;be[0].type==="separator"&&(D+="top ",nt=1),be[be.length-1].type==="separator"&&(D+="bottom ",dt-=1);for(var Dt=nt;Dt<dt;Dt++)be[Dt].type==="align"?(U+=Wn[be[Dt].align],ze&&(Ie+="none "),ze=!0):be[Dt].type==="separator"&&ze&&(Ie+=be[Dt].separator==="|"?"solid ":"dashed ",ze=!1);h.setAttribute("columnalign",U.trim()),/[sd]/.test(Ie)&&h.setAttribute("columnlines",Ie.trim())}if(l.colSeparationType==="align"){for(var Zt=l.cols||[],er="",hr=1;hr<Zt.length;hr++)er+=hr%2?"0em ":"1em ";h.setAttribute("columnspacing",er.trim())}else l.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var Sr="",Kr=l.hLinesBeforeRow;D+=Kr[0].length>0?"left ":"",D+=Kr[Kr.length-1].length>0?"right ":"";for(var Zr=1;Zr<Kr.length-1;Zr++)Sr+=Kr[Zr].length===0?"none ":Kr[Zr][0]?"dashed ":"solid ";return/[sd]/.test(Sr)&&h.setAttribute("rowlines",Sr.trim()),D!==""&&(h=new Jt.MathNode("menclose",[h]),h.setAttribute("notation",D.trim())),l.arraystretch&&l.arraystretch<1&&(h=new Jt.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Ji=function(l,d){var h=[],p=_n(l.parser,{cols:h,addJot:!0},"display"),D,U=0,be={type:"ordgroup",mode:l.mode,body:[]},Ie=$r(d[0],"ordgroup");if(Ie){for(var ze="",nt=0;nt<Ie.body.length;nt++){var dt=xr(Ie.body[nt],"textord");ze+=dt.text}D=Number(ze),U=D*2}var Dt=!U;p.body.forEach(function(Sr){for(var Kr=1;Kr<Sr.length;Kr+=2){var Zr=xr(Sr[Kr],"styling"),Wr=xr(Zr.body[0],"ordgroup");Wr.body.unshift(be)}if(Dt)U<Sr.length&&(U=Sr.length);else{var Tn=Sr.length/2;if(D<Tn)throw new X("Too many math in a row: "+("expected "+D+", but got "+Tn),Sr[0])}});for(var Zt=0;Zt<U;++Zt){var er="r",hr=0;Zt%2===1?er="l":Zt>0&&Dt&&(hr=1),h[Zt]={type:"align",align:er,pregap:hr,postgap:0}}return p.colSeparationType=Dt?"align":"alignat",p};Di({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var h=hn(d[0]),p=h?[d[0]]:xr(d[0],"ordgroup").body,D=p.map(function(be){var Ie=jr(be),ze=Ie.text;if("lcr".indexOf(ze)!==-1)return{type:"align",align:ze};if(ze==="|")return{type:"separator",separator:"|"};if(ze===":")return{type:"separator",separator:":"};throw new X("Unknown column alignment: "+ze,be)}),U={cols:D,hskipBeforeAndAfter:!0};return _n(l.parser,U,fn(l.envName))},htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var d={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],h={hskipBeforeAndAfter:!1},p=_n(l.parser,h,fn(l.envName));return d?{type:"leftright",mode:l.mode,body:[p],left:d[0],right:d[1],rightColor:void 0}:p},htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},h=_n(l.parser,d,"script");return h.colSeparationType="small",h},htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var h=hn(d[0]),p=h?[d[0]]:xr(d[0],"ordgroup").body,D=p.map(function(be){var Ie=jr(be),ze=Ie.text;if("lc".indexOf(ze)!==-1)return{type:"align",align:ze};throw new X("Unknown column alignment: "+ze,be)});if(D.length>1)throw new X("{subarray} can contain only one column");var U={cols:D,hskipBeforeAndAfter:!1,arraystretch:.5};if(U=_n(l.parser,U,"script"),U.body[0].length>1)throw new X("{subarray} can contain only one column");return U},htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var d={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=_n(l.parser,d,fn(l.envName));return{type:"leftright",mode:l.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["aligned"],props:{numArgs:0},handler:Ji,htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return _n(l.parser,d,"display")},htmlBuilder:cn,mathmlBuilder:Jn}),Di({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ji,htmlBuilder:cn,mathmlBuilder:Jn}),cr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new X(l.funcName+" valid only within array environment")}});var Es=ks,Os=Es;cr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0];if(D.type!=="ordgroup")throw new X("Invalid environment name",D);for(var U="",be=0;be<D.body.length;++be)U+=xr(D.body[be],"textord").text;if(p==="\\begin"){if(!Os.hasOwnProperty(U))throw new X("No such environment: "+U,D);var Ie=Os[U],ze=h.parseArguments("\\begin{"+U+"}",Ie),nt=ze.args,dt=ze.optArgs,Dt={mode:h.mode,envName:U,parser:h},Zt=Ie.handler(Dt,nt,dt);h.expect("\\end",!1);var er=h.nextToken,hr=xr(h.parseFunction(),"environment");if(hr.name!==U)throw new X("Mismatch: \\begin{"+U+"} matched by \\end{"+hr.name+"}",er);return Zt}return{type:"environment",mode:h.mode,name:U,nameGroup:D}}});var Ps=Xe.makeSpan;function qi(j,l){var d=un(j.body,l,!0);return Ps([j.mclass],d,l)}function Zi(j,l){var d,h=On(j.body,l);return j.mclass==="minner"?Jt.newDocumentFragment(h):(j.mclass==="mord"?j.isCharacterBox?(d=h[0],d.type="mi"):d=new Jt.MathNode("mi",h):(j.isCharacterBox?(d=h[0],d.type="mo"):d=new Jt.MathNode("mo",h),j.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):j.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(j.mclass==="mopen"||j.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}cr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0];return{type:"mclass",mode:h.mode,mclass:"m"+p.substr(5),body:an(D),isCharacterBox:k.isCharacterBox(D)}},htmlBuilder:qi,mathmlBuilder:Zi});var Kt=function(l){var d=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return d.type==="atom"&&(d.family==="bin"||d.family==="rel")?"m"+d.family:"mord"};cr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var h=l.parser;return{type:"mclass",mode:h.mode,mclass:Kt(d[0]),body:[d[1]],isCharacterBox:k.isCharacterBox(d[1])}}}),cr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[1],U=d[0],be;p!=="\\stackrel"?be=Kt(D):be="mrel";var Ie={type:"op",mode:D.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:p!=="\\stackrel",body:an(D)},ze={type:"supsub",mode:U.mode,base:Ie,sup:p==="\\underset"?null:U,sub:p==="\\underset"?U:null};return{type:"mclass",mode:h.mode,mclass:be,body:[ze],isCharacterBox:k.isCharacterBox(ze)}},htmlBuilder:qi,mathmlBuilder:Zi});var cs=function(l,d){var h=l.font,p=d.withFont(h);return Gr(l.body,p)},ta=function(l,d){var h=l.font,p=d.withFont(h);return Jr(l.body,p)},ba={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};cr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0],U=p;return U in ba&&(U=ba[U]),{type:"font",mode:h.mode,font:U.slice(1),body:D}},htmlBuilder:cs,mathmlBuilder:ta}),cr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,p=d[0],D=k.isCharacterBox(p);return{type:"mclass",mode:h.mode,mclass:Kt(p),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:p}],isCharacterBox:D}}}),cr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.parser,p=l.funcName,D=l.breakOnTokenText,U=h.mode,be=h.parseExpression(!0,D),Ie="math"+p.slice(1);return{type:"font",mode:U,font:Ie,body:{type:"ordgroup",mode:h.mode,body:be}}},htmlBuilder:cs,mathmlBuilder:ta});var ya=function(l,d){var h=d;return l==="display"?h=h.id>=m.SCRIPT.id?h.text():m.DISPLAY:l==="text"&&h.size===m.DISPLAY.size?h=m.TEXT:l==="script"?h=m.SCRIPT:l==="scriptscript"&&(h=m.SCRIPTSCRIPT),h},ra=function(l,d){var h=ya(l.size,d.style),p=h.fracNum(),D=h.fracDen(),U;U=d.havingStyle(p);var be=Gr(l.numer,U,d);if(l.continued){var Ie=8.5/d.fontMetrics().ptPerEm,ze=3.5/d.fontMetrics().ptPerEm;be.height=be.height<Ie?Ie:be.height,be.depth=be.depth<ze?ze:be.depth}U=d.havingStyle(D);var nt=Gr(l.denom,U,d),dt,Dt,Zt;l.hasBarLine?(l.barSize?(Dt=Ye(l.barSize,d),dt=Xe.makeLineSpan("frac-line",d,Dt)):dt=Xe.makeLineSpan("frac-line",d),Dt=dt.height,Zt=dt.height):(dt=null,Dt=0,Zt=d.fontMetrics().defaultRuleThickness);var er,hr,Sr;h.size===m.DISPLAY.size||l.size==="display"?(er=d.fontMetrics().num1,Dt>0?hr=3*Zt:hr=7*Zt,Sr=d.fontMetrics().denom1):(Dt>0?(er=d.fontMetrics().num2,hr=Zt):(er=d.fontMetrics().num3,hr=3*Zt),Sr=d.fontMetrics().denom2);var Kr;if(dt){var Wr=d.fontMetrics().axisHeight;er-be.depth-(Wr+.5*Dt)<hr&&(er+=hr-(er-be.depth-(Wr+.5*Dt))),Wr-.5*Dt-(nt.height-Sr)<hr&&(Sr+=hr-(Wr-.5*Dt-(nt.height-Sr)));var Tn=-(Wr-.5*Dt);Kr=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:nt,shift:Sr},{type:"elem",elem:dt,shift:Tn},{type:"elem",elem:be,shift:-er}]},d)}else{var Zr=er-be.depth-(nt.height-Sr);Zr<hr&&(er+=.5*(hr-Zr),Sr+=.5*(hr-Zr)),Kr=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:nt,shift:Sr},{type:"elem",elem:be,shift:-er}]},d)}U=d.havingStyle(h),Kr.height*=U.sizeMultiplier/d.sizeMultiplier,Kr.depth*=U.sizeMultiplier/d.sizeMultiplier;var Dn;h.size===m.DISPLAY.size?Dn=d.fontMetrics().delim1:Dn=d.fontMetrics().delim2;var $n,Hn;return l.leftDelim==null?$n=ii(d,["mopen"]):$n=gi.customSizedDelim(l.leftDelim,Dn,!0,d.havingStyle(h),l.mode,["mopen"]),l.continued?Hn=Xe.makeSpan([]):l.rightDelim==null?Hn=ii(d,["mclose"]):Hn=gi.customSizedDelim(l.rightDelim,Dn,!0,d.havingStyle(h),l.mode,["mclose"]),Xe.makeSpan(["mord"].concat(U.sizingClasses(d)),[$n,Xe.makeSpan(["mfrac"],[Kr]),Hn],d)},na=function(l,d){var h=new Jt.MathNode("mfrac",[Jr(l.numer,d),Jr(l.denom,d)]);if(!l.hasBarLine)h.setAttribute("linethickness","0px");else if(l.barSize){var p=Ye(l.barSize,d);h.setAttribute("linethickness",p+"em")}var D=ya(l.size,d.style);if(D.size!==d.style.size){h=new Jt.MathNode("mstyle",[h]);var U=D.size===m.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",U),h.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var be=[];if(l.leftDelim!=null){var Ie=new Jt.MathNode("mo",[new Jt.TextNode(l.leftDelim.replace("\\",""))]);Ie.setAttribute("fence","true"),be.push(Ie)}if(be.push(h),l.rightDelim!=null){var ze=new Jt.MathNode("mo",[new Jt.TextNode(l.rightDelim.replace("\\",""))]);ze.setAttribute("fence","true"),be.push(ze)}return mi(be)}return h};cr({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0],U=d[1],be,Ie=null,ze=null,nt="auto";switch(p){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":be=!0;break;case"\\\\atopfrac":be=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":be=!1,Ie="(",ze=")";break;case"\\\\bracefrac":be=!1,Ie="\\{",ze="\\}";break;case"\\\\brackfrac":be=!1,Ie="[",ze="]";break;default:throw new Error("Unrecognized genfrac command")}switch(p){case"\\cfrac":case"\\dfrac":case"\\dbinom":nt="display";break;case"\\tfrac":case"\\tbinom":nt="text";break}return{type:"genfrac",mode:h.mode,continued:p==="\\cfrac",numer:D,denom:U,hasBarLine:be,leftDelim:Ie,rightDelim:ze,size:nt,barSize:null}},htmlBuilder:ra,mathmlBuilder:na}),cr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,h=l.funcName,p=l.token,D;switch(h){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:d.mode,replaceWith:D,token:p}}});var Pi=["display","text","script","scriptscript"],Ms=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};cr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var h=l.parser,p=d[4],D=d[5],U=$r(d[0],"atom");U&&(U=dn(d[0],"open"));var be=U?Ms(U.text):null,Ie=$r(d[1],"atom");Ie&&(Ie=dn(d[1],"close"));var ze=Ie?Ms(Ie.text):null,nt=xr(d[2],"size"),dt,Dt=null;nt.isBlank?dt=!0:(Dt=nt.value,dt=Dt.number>0);var Zt="auto",er=$r(d[3],"ordgroup");if(er){if(er.body.length>0){var hr=xr(er.body[0],"textord");Zt=Pi[Number(hr.text)]}}else er=xr(d[3],"textord"),Zt=Pi[Number(er.text)];return{type:"genfrac",mode:h.mode,numer:p,denom:D,continued:!1,hasBarLine:dt,barSize:Dt,leftDelim:be,rightDelim:ze,size:Zt}},htmlBuilder:ra,mathmlBuilder:na}),cr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var h=l.parser,p=l.funcName,D=l.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:xr(d[0],"size").value,token:D}}}),cr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0],U=z(xr(d[1],"infix").size),be=d[2],Ie=U.number>0;return{type:"genfrac",mode:h.mode,numer:D,denom:be,continued:!1,hasBarLine:Ie,barSize:U,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ra,mathmlBuilder:na});var xa=function(l,d){var h=d.style,p,D,U=$r(l,"supsub");U?(p=U.sup?Gr(U.sup,d.havingStyle(h.sup()),d):Gr(U.sub,d.havingStyle(h.sub()),d),D=xr(U.base,"horizBrace")):D=xr(l,"horizBrace");var be=Gr(D.base,d.havingBaseStyle(m.DISPLAY)),Ie=mr.svgSpan(D,d),ze;if(D.isOver?(ze=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:.1},{type:"elem",elem:Ie}]},d),ze.children[0].children[0].children[1].classes.push("svg-align")):(ze=Xe.makeVList({positionType:"bottom",positionData:be.depth+.1+Ie.height,children:[{type:"elem",elem:Ie},{type:"kern",size:.1},{type:"elem",elem:be}]},d),ze.children[0].children[0].children[0].classes.push("svg-align")),p){var nt=Xe.makeSpan(["mord",D.isOver?"mover":"munder"],[ze],d);D.isOver?ze=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:nt},{type:"kern",size:.2},{type:"elem",elem:p}]},d):ze=Xe.makeVList({positionType:"bottom",positionData:nt.depth+.2+p.height+p.depth,children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:nt}]},d)}return Xe.makeSpan(["mord",D.isOver?"mover":"munder"],[ze],d)},Ha=function(l,d){var h=mr.mathMLnode(l.label);return new Jt.MathNode(l.isOver?"mover":"munder",[Jr(l.base,d),h])};cr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var h=l.parser,p=l.funcName;return{type:"horizBrace",mode:h.mode,label:p,isOver:/^\\over/.test(p),base:d[0]}},htmlBuilder:xa,mathmlBuilder:Ha}),cr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var h=l.parser,p=d[1],D=xr(d[0],"url").url;return h.settings.isTrusted({command:"\\href",url:D})?{type:"href",mode:h.mode,href:D,body:an(p)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var h=un(l.body,d,!1);return Xe.makeAnchor(l.href,[],h,d)},mathmlBuilder:function(l,d){var h=xn(l.body,d);return h instanceof pn||(h=new pn("mrow",[h])),h.setAttribute("href",l.href),h}}),cr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var h=l.parser,p=xr(d[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:p}))return h.formatUnsupportedCmd("\\url");for(var D=[],U=0;U<p.length;U++){var be=p[U];be==="~"&&(be="\\textasciitilde"),D.push({type:"textord",mode:"text",text:be})}var Ie={type:"text",mode:h.mode,font:"\\texttt",body:D};return{type:"href",mode:h.mode,href:p,body:an(Ie)}}}),cr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"htmlmathml",mode:h.mode,html:an(d[0]),mathml:an(d[1])}},htmlBuilder:function(l,d){var h=un(l.html,d,!1);return Xe.makeFragment(h)},mathmlBuilder:function(l,d){return xn(l.mathml,d)}});var Bs=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new X("Invalid size: '"+l+"' in \\includegraphics");var h={number:+(d[1]+d[2]),unit:d[3]};if(!tt(h))throw new X("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};cr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,h){var p=l.parser,D={number:0,unit:"em"},U={number:.9,unit:"em"},be={number:0,unit:"em"},Ie="";if(h[0])for(var ze=xr(h[0],"raw").string,nt=ze.split(","),dt=0;dt<nt.length;dt++){var Dt=nt[dt].split("=");if(Dt.length===2){var Zt=Dt[1].trim();switch(Dt[0].trim()){case"alt":Ie=Zt;break;case"width":D=Bs(Zt);break;case"height":U=Bs(Zt);break;case"totalheight":be=Bs(Zt);break;default:throw new X("Invalid key: '"+Dt[0]+"' in \\includegraphics.")}}}var er=xr(d[0],"url").url;return Ie===""&&(Ie=er,Ie=Ie.replace(/^.*[\\/]/,""),Ie=Ie.substring(0,Ie.lastIndexOf("."))),p.settings.isTrusted({command:"\\includegraphics",url:er})?{type:"includegraphics",mode:p.mode,alt:Ie,width:D,height:U,totalheight:be,src:er}:p.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var h=Ye(l.height,d),p=0;l.totalheight.number>0&&(p=Ye(l.totalheight,d)-h,p=Number(p.toFixed(2)));var D=0;l.width.number>0&&(D=Ye(l.width,d));var U={height:h+p+"em"};D>0&&(U.width=D+"em"),p>0&&(U.verticalAlign=-p+"em");var be=new Ae(l.src,l.alt,U);return be.height=h,be.depth=p,be},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mglyph",[]);h.setAttribute("alt",l.alt);var p=Ye(l.height,d),D=0;if(l.totalheight.number>0&&(D=Ye(l.totalheight,d)-p,D=D.toFixed(2),h.setAttribute("valign","-"+D+"em")),h.setAttribute("height",p+D+"em"),l.width.number>0){var U=Ye(l.width,d);h.setAttribute("width",U+"em")}return h.setAttribute("src",l.src),h}}),cr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var h=l.parser,p=l.funcName,D=xr(d[0],"size");if(h.settings.strict){var U=p[1]==="m",be=D.value.unit==="mu";U?(be||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" supports only mu units, "+("not "+D.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" works only in math mode")):be&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:D.value}},htmlBuilder:function(l,d){return Xe.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var h=Ye(l.dimension,d);return new Jt.SpaceNode(h)}}),cr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0];return{type:"lap",mode:h.mode,alignment:p.slice(5),body:D}},htmlBuilder:function(l,d){var h;l.alignment==="clap"?(h=Xe.makeSpan([],[Gr(l.body,d)]),h=Xe.makeSpan(["inner"],[h],d)):h=Xe.makeSpan(["inner"],[Gr(l.body,d)]);var p=Xe.makeSpan(["fix"],[]),D=Xe.makeSpan([l.alignment],[h,p],d),U=Xe.makeSpan(["strut"]);return U.style.height=D.height+D.depth+"em",U.style.verticalAlign=-D.depth+"em",D.children.unshift(U),D=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D}]},d),Xe.makeSpan(["mord"],[D],d)},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mpadded",[Jr(l.body,d)]);if(l.alignment!=="rlap"){var p=l.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",p+"width")}return h.setAttribute("width","0px"),h}}),cr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=l.funcName,p=l.parser,D=p.mode;p.switchMode("math");var U=h==="\\("?"\\)":"$",be=p.parseExpression(!1,U);return p.expect(U),p.switchMode(D),{type:"styling",mode:p.mode,style:"text",body:be}}}),cr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new X("Mismatched "+l.funcName)}});var ia=function(l,d){switch(d.style.size){case m.DISPLAY.size:return l.display;case m.TEXT.size:return l.text;case m.SCRIPT.size:return l.script;case m.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};cr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var h=l.parser;return{type:"mathchoice",mode:h.mode,display:an(d[0]),text:an(d[1]),script:an(d[2]),scriptscript:an(d[3])}},htmlBuilder:function(l,d){var h=ia(l,d),p=un(h,d,!1);return Xe.makeFragment(p)},mathmlBuilder:function(l,d){var h=ia(l,d);return xn(h,d)}});var Ns=function(l,d,h,p,D,U,be){l=Xe.makeSpan([],[l]);var Ie,ze;if(d){var nt=Gr(d,p.havingStyle(D.sup()),p);ze={elem:nt,kern:Math.max(p.fontMetrics().bigOpSpacing1,p.fontMetrics().bigOpSpacing3-nt.depth)}}if(h){var dt=Gr(h,p.havingStyle(D.sub()),p);Ie={elem:dt,kern:Math.max(p.fontMetrics().bigOpSpacing2,p.fontMetrics().bigOpSpacing4-dt.height)}}var Dt;if(ze&&Ie){var Zt=p.fontMetrics().bigOpSpacing5+Ie.elem.height+Ie.elem.depth+Ie.kern+l.depth+be;Dt=Xe.makeVList({positionType:"bottom",positionData:Zt,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:Ie.elem,marginLeft:-U+"em"},{type:"kern",size:Ie.kern},{type:"elem",elem:l},{type:"kern",size:ze.kern},{type:"elem",elem:ze.elem,marginLeft:U+"em"},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else if(Ie){var er=l.height-be;Dt=Xe.makeVList({positionType:"top",positionData:er,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:Ie.elem,marginLeft:-U+"em"},{type:"kern",size:Ie.kern},{type:"elem",elem:l}]},p)}else if(ze){var hr=l.depth+be;Dt=Xe.makeVList({positionType:"bottom",positionData:hr,children:[{type:"elem",elem:l},{type:"kern",size:ze.kern},{type:"elem",elem:ze.elem,marginLeft:U+"em"},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else return l;return Xe.makeSpan(["mop","op-limits"],[Dt],p)},Ea=["\\smallint"],Ui=function(l,d){var h,p,D=!1,U,be=$r(l,"supsub");be?(h=be.sup,p=be.sub,U=xr(be.base,"op"),D=!0):U=xr(l,"op");var Ie=d.style,ze=!1;Ie.size===m.DISPLAY.size&&U.symbol&&!k.contains(Ea,U.name)&&(ze=!0);var nt;if(U.symbol){var dt=ze?"Size2-Regular":"Size1-Regular",Dt="";if((U.name==="\\oiint"||U.name==="\\oiiint")&&(Dt=U.name.substr(1),U.name=Dt==="oiint"?"\\iint":"\\iiint"),nt=Xe.makeSymbol(U.name,dt,"math",d,["mop","op-symbol",ze?"large-op":"small-op"]),Dt.length>0){var Zt=nt.italic,er=Xe.staticSvg(Dt+"Size"+(ze?"2":"1"),d);nt=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:nt,shift:0},{type:"elem",elem:er,shift:ze?.08:0}]},d),U.name="\\"+Dt,nt.classes.unshift("mop"),nt.italic=Zt}}else if(U.body){var hr=un(U.body,d,!0);hr.length===1&&hr[0]instanceof ee?(nt=hr[0],nt.classes[0]="mop"):nt=Xe.makeSpan(["mop"],Xe.tryCombineChars(hr),d)}else{for(var Sr=[],Kr=1;Kr<U.name.length;Kr++)Sr.push(Xe.mathsym(U.name[Kr],U.mode,d));nt=Xe.makeSpan(["mop"],Sr,d)}var Zr=0,Wr=0;return(nt instanceof ee||U.name==="\\oiint"||U.name==="\\oiiint")&&!U.suppressBaseShift&&(Zr=(nt.height-nt.depth)/2-d.fontMetrics().axisHeight,Wr=nt.italic),D?Ns(nt,h,p,d,Ie,Wr,Zr):(Zr&&(nt.style.position="relative",nt.style.top=Zr+"em"),nt)},ws=function(l,d){var h;if(l.symbol)h=new pn("mo",[Xn(l.name,l.mode)]),k.contains(Ea,l.name)&&h.setAttribute("largeop","false");else if(l.body)h=new pn("mo",On(l.body,d));else{h=new pn("mi",[new fi(l.name.slice(1))]);var p=new pn("mo",[Xn("\u2061","text")]);l.parentIsSupSub?h=new pn("mo",[h,p]):h=yi([h,p])}return h},Ga={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};cr({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(l,d){var h=l.parser,p=l.funcName,D=p;return D.length===1&&(D=Ga[D]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:D}},htmlBuilder:Ui,mathmlBuilder:ws}),cr({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var h=l.parser,p=d[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:an(p)}},htmlBuilder:Ui,mathmlBuilder:ws});var wa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};cr({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(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Ui,mathmlBuilder:ws}),cr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Ui,mathmlBuilder:ws}),cr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName,p=h;return p.length===1&&(p=wa[p]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:p}},htmlBuilder:Ui,mathmlBuilder:ws});var sa=function(l,d){var h,p,D=!1,U,be=$r(l,"supsub");be?(h=be.sup,p=be.sub,U=xr(be.base,"operatorname"),D=!0):U=xr(l,"operatorname");var Ie;if(U.body.length>0){for(var ze=U.body.map(function(Zt){var er=Zt.text;return typeof er=="string"?{type:"textord",mode:Zt.mode,text:er}:Zt}),nt=un(ze,d.withFont("mathrm"),!0),dt=0;dt<nt.length;dt++){var Dt=nt[dt];Dt instanceof ee&&(Dt.text=Dt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Ie=Xe.makeSpan(["mop"],nt,d)}else Ie=Xe.makeSpan(["mop"],[],d);return D?Ns(Ie,h,p,d,d.style,0,0):Ie},Ka=function(l,d){for(var h=On(l.body,d.withFont("mathrm")),p=!0,D=0;D<h.length;D++){var U=h[D];if(!(U instanceof Jt.SpaceNode))if(U instanceof Jt.MathNode)switch(U.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var be=U.children[0];U.children.length===1&&be instanceof Jt.TextNode?be.text=be.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):p=!1;break}default:p=!1}else p=!1}if(p){var Ie=h.map(function(dt){return dt.toText()}).join("");h=[new Jt.TextNode(Ie)]}var ze=new Jt.MathNode("mi",h);ze.setAttribute("mathvariant","normal");var nt=new Jt.MathNode("mo",[Xn("\u2061","text")]);return l.parentIsSupSub?new Jt.MathNode("mo",[ze,nt]):Jt.newDocumentFragment([ze,nt])};cr({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0];return{type:"operatorname",mode:h.mode,body:an(D),alwaysHandleSupSub:p==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:sa,mathmlBuilder:Ka}),tn({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?Xe.makeFragment(un(l.body,d,!1)):Xe.makeSpan(["mord"],un(l.body,d,!0),d)},mathmlBuilder:function(l,d){return xn(l.body,d,!0)}}),cr({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var h=l.parser,p=d[0];return{type:"overline",mode:h.mode,body:p}},htmlBuilder:function(l,d){var h=Gr(l.body,d.havingCrampedStyle()),p=Xe.makeLineSpan("overline-line",d),D=d.fontMetrics().defaultRuleThickness,U=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*D},{type:"elem",elem:p},{type:"kern",size:D}]},d);return Xe.makeSpan(["mord","overline"],[U],d)},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mo",[new Jt.TextNode("\u203E")]);h.setAttribute("stretchy","true");var p=new Jt.MathNode("mover",[Jr(l.body,d),h]);return p.setAttribute("accent","true"),p}}),cr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,p=d[0];return{type:"phantom",mode:h.mode,body:an(p)}},htmlBuilder:function(l,d){var h=un(l.body,d.withPhantom(),!1);return Xe.makeFragment(h)},mathmlBuilder:function(l,d){var h=On(l.body,d);return new Jt.MathNode("mphantom",h)}}),cr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,p=d[0];return{type:"hphantom",mode:h.mode,body:p}},htmlBuilder:function(l,d){var h=Xe.makeSpan([],[Gr(l.body,d.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var p=0;p<h.children.length;p++)h.children[p].height=0,h.children[p].depth=0;return h=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d),Xe.makeSpan(["mord"],[h],d)},mathmlBuilder:function(l,d){var h=On(an(l.body),d),p=new Jt.MathNode("mphantom",h),D=new Jt.MathNode("mpadded",[p]);return D.setAttribute("height","0px"),D.setAttribute("depth","0px"),D}}),cr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,p=d[0];return{type:"vphantom",mode:h.mode,body:p}},htmlBuilder:function(l,d){var h=Xe.makeSpan(["inner"],[Gr(l.body,d.withPhantom())]),p=Xe.makeSpan(["fix"],[]);return Xe.makeSpan(["mord","rlap"],[h,p],d)},mathmlBuilder:function(l,d){var h=On(an(l.body),d),p=new Jt.MathNode("mphantom",h),D=new Jt.MathNode("mpadded",[p]);return D.setAttribute("width","0px"),D}}),cr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser,p=xr(d[0],"size").value,D=d[1];return{type:"raisebox",mode:h.mode,dy:p,body:D}},htmlBuilder:function(l,d){var h=Gr(l.body,d),p=Ye(l.dy,d);return Xe.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:h}]},d)},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mpadded",[Jr(l.body,d)]),p=l.dy.number+l.dy.unit;return h.setAttribute("voffset",p),h}}),cr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,h){var p=l.parser,D=h[0],U=xr(d[0],"size"),be=xr(d[1],"size");return{type:"rule",mode:p.mode,shift:D&&xr(D,"size").value,width:U.value,height:be.value}},htmlBuilder:function(l,d){var h=Xe.makeSpan(["mord","rule"],[],d),p=Ye(l.width,d),D=Ye(l.height,d),U=l.shift?Ye(l.shift,d):0;return h.style.borderRightWidth=p+"em",h.style.borderTopWidth=D+"em",h.style.bottom=U+"em",h.width=p,h.height=D+U,h.depth=-U,h.maxFontSize=D*1.125*d.sizeMultiplier,h},mathmlBuilder:function(l,d){var h=Ye(l.width,d),p=Ye(l.height,d),D=l.shift?Ye(l.shift,d):0,U=d.color&&d.getColor()||"black",be=new Jt.MathNode("mspace");be.setAttribute("mathbackground",U),be.setAttribute("width",h+"em"),be.setAttribute("height",p+"em");var Ie=new Jt.MathNode("mpadded",[be]);return D>=0?Ie.setAttribute("height","+"+D+"em"):(Ie.setAttribute("height",D+"em"),Ie.setAttribute("depth","+"+-D+"em")),Ie.setAttribute("voffset",D+"em"),Ie}});function aa(j,l,d){for(var h=un(j,l,!1),p=l.sizeMultiplier/d.sizeMultiplier,D=0;D<h.length;D++){var U=h[D].classes.indexOf("sizing");U<0?Array.prototype.push.apply(h[D].classes,l.sizingClasses(d)):h[D].classes[U+1]==="reset-size"+l.size&&(h[D].classes[U+1]="reset-size"+d.size),h[D].height*=p,h[D].depth*=p}return Xe.makeFragment(h)}var Ss=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Wa=function(l,d){var h=d.havingSize(l.size);return aa(l.body,h,d)};cr({type:"sizing",names:Ss,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,p=l.funcName,D=l.parser,U=D.parseExpression(!1,h);return{type:"sizing",mode:D.mode,size:Ss.indexOf(p)+1,body:U}},htmlBuilder:Wa,mathmlBuilder:function(l,d){var h=d.havingSize(l.size),p=On(l.body,h),D=new Jt.MathNode("mstyle",p);return D.setAttribute("mathsize",h.sizeMultiplier+"em"),D}}),cr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,h){var p=l.parser,D=!1,U=!1,be=h[0]&&xr(h[0],"ordgroup");if(be)for(var Ie="",ze=0;ze<be.body.length;++ze){var nt=be.body[ze];if(Ie=nt.text,Ie==="t")D=!0;else if(Ie==="b")U=!0;else{D=!1,U=!1;break}}else D=!0,U=!0;var dt=d[0];return{type:"smash",mode:p.mode,body:dt,smashHeight:D,smashDepth:U}},htmlBuilder:function(l,d){var h=Xe.makeSpan([],[Gr(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return h;if(l.smashHeight&&(h.height=0,h.children))for(var p=0;p<h.children.length;p++)h.children[p].height=0;if(l.smashDepth&&(h.depth=0,h.children))for(var D=0;D<h.children.length;D++)h.children[D].depth=0;var U=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d);return Xe.makeSpan(["mord"],[U],d)},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mpadded",[Jr(l.body,d)]);return l.smashHeight&&h.setAttribute("height","0px"),l.smashDepth&&h.setAttribute("depth","0px"),h}}),cr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var p=l.parser,D=h[0],U=d[0];return{type:"sqrt",mode:p.mode,body:U,index:D}},htmlBuilder:function(l,d){var h=Gr(l.body,d.havingCrampedStyle());h.height===0&&(h.height=d.fontMetrics().xHeight),h=Xe.wrapFragment(h,d);var p=d.fontMetrics(),D=p.defaultRuleThickness,U=D;d.style.id<m.TEXT.id&&(U=d.fontMetrics().xHeight);var be=D+U/4,Ie=h.height+h.depth+be+D,ze=gi.sqrtImage(Ie,d),nt=ze.span,dt=ze.ruleWidth,Dt=ze.advanceWidth,Zt=nt.height-dt;Zt>h.height+h.depth+be&&(be=(be+Zt-h.height-h.depth)/2);var er=nt.height-h.height-be-dt;h.style.paddingLeft=Dt+"em";var hr=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+er)},{type:"elem",elem:nt},{type:"kern",size:dt}]},d);if(l.index){var Sr=d.havingStyle(m.SCRIPTSCRIPT),Kr=Gr(l.index,Sr,d),Zr=.6*(hr.height-hr.depth),Wr=Xe.makeVList({positionType:"shift",positionData:-Zr,children:[{type:"elem",elem:Kr}]},d),Tn=Xe.makeSpan(["root"],[Wr]);return Xe.makeSpan(["mord","sqrt"],[Tn,hr],d)}else return Xe.makeSpan(["mord","sqrt"],[hr],d)},mathmlBuilder:function(l,d){var h=l.body,p=l.index;return p?new Jt.MathNode("mroot",[Jr(h,d),Jr(p,d)]):new Jt.MathNode("msqrt",[Jr(h,d)])}});var Sa={display:m.DISPLAY,text:m.TEXT,script:m.SCRIPT,scriptscript:m.SCRIPTSCRIPT};cr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,p=l.funcName,D=l.parser,U=D.parseExpression(!0,h),be=p.slice(1,p.length-5);return{type:"styling",mode:D.mode,style:be,body:U}},htmlBuilder:function(l,d){var h=Sa[l.style],p=d.havingStyle(h).withFont("");return aa(l.body,p,d)},mathmlBuilder:function(l,d){var h=Sa[l.style],p=d.havingStyle(h),D=On(l.body,p),U=new Jt.MathNode("mstyle",D),be={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Ie=be[l.style];return U.setAttribute("scriptlevel",Ie[0]),U.setAttribute("displaystyle",Ie[1]),U}});var Za=function(l,d){var h=l.base;if(h)if(h.type==="op"){var p=h.limits&&(d.style.size===m.DISPLAY.size||h.alwaysHandleSupSub);return p?Ui:null}else if(h.type==="operatorname"){var D=h.alwaysHandleSupSub&&(d.style.size===m.DISPLAY.size||h.limits);return D?sa:null}else{if(h.type==="accent")return k.isCharacterBox(h.base)?nn:null;if(h.type==="horizBrace"){var U=!l.sub;return U===h.isOver?xa:null}else return null}else return null};tn({type:"supsub",htmlBuilder:function(l,d){var h=Za(l,d);if(h)return h(l,d);var p=l.base,D=l.sup,U=l.sub,be=Gr(p,d),Ie,ze,nt=d.fontMetrics(),dt=0,Dt=0,Zt=p&&k.isCharacterBox(p);if(D){var er=d.havingStyle(d.style.sup());Ie=Gr(D,er,d),Zt||(dt=be.height-er.fontMetrics().supDrop*er.sizeMultiplier/d.sizeMultiplier)}if(U){var hr=d.havingStyle(d.style.sub());ze=Gr(U,hr,d),Zt||(Dt=be.depth+hr.fontMetrics().subDrop*hr.sizeMultiplier/d.sizeMultiplier)}var Sr;d.style===m.DISPLAY?Sr=nt.sup1:d.style.cramped?Sr=nt.sup3:Sr=nt.sup2;var Kr=d.sizeMultiplier,Zr=.5/nt.ptPerEm/Kr+"em",Wr=null;if(ze){var Tn=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(be instanceof ee||Tn)&&(Wr=-be.italic+"em")}var Dn;if(Ie&&ze){dt=Math.max(dt,Sr,Ie.depth+.25*nt.xHeight),Dt=Math.max(Dt,nt.sub2);var $n=nt.defaultRuleThickness,Hn=4*$n;if(dt-Ie.depth-(ze.height-Dt)<Hn){Dt=Hn-(dt-Ie.depth)+ze.height;var qn=.8*nt.xHeight-(dt-Ie.depth);qn>0&&(dt+=qn,Dt-=qn)}var vi=[{type:"elem",elem:ze,shift:Dt,marginRight:Zr,marginLeft:Wr},{type:"elem",elem:Ie,shift:-dt,marginRight:Zr}];Dn=Xe.makeVList({positionType:"individualShift",children:vi},d)}else if(ze){Dt=Math.max(Dt,nt.sub1,ze.height-.8*nt.xHeight);var hi=[{type:"elem",elem:ze,marginLeft:Wr,marginRight:Zr}];Dn=Xe.makeVList({positionType:"shift",positionData:Dt,children:hi},d)}else if(Ie)dt=Math.max(dt,Sr,Ie.depth+.25*nt.xHeight),Dn=Xe.makeVList({positionType:"shift",positionData:-dt,children:[{type:"elem",elem:Ie,marginRight:Zr}]},d);else throw new Error("supsub must have either sup or sub.");var Sn=jn(be,"right")||"mord";return Xe.makeSpan([Sn],[be,Xe.makeSpan(["msupsub"],[Dn])],d)},mathmlBuilder:function(l,d){var h=!1,p,D,U=$r(l.base,"horizBrace");U&&(D=!!l.sup,D===U.isOver&&(h=!0,p=U.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var be=[Jr(l.base,d)];l.sub&&be.push(Jr(l.sub,d)),l.sup&&be.push(Jr(l.sup,d));var Ie;if(h)Ie=p?"mover":"munder";else if(l.sub)if(l.sup){var dt=l.base;dt&&dt.type==="op"&&dt.limits&&d.style===m.DISPLAY||dt&&dt.type==="operatorname"&&dt.alwaysHandleSupSub&&(d.style===m.DISPLAY||dt.limits)?Ie="munderover":Ie="msubsup"}else{var nt=l.base;nt&&nt.type==="op"&&nt.limits&&(d.style===m.DISPLAY||nt.alwaysHandleSupSub)||nt&&nt.type==="operatorname"&&nt.alwaysHandleSupSub&&(nt.limits||d.style===m.DISPLAY)?Ie="munder":Ie="msub"}else{var ze=l.base;ze&&ze.type==="op"&&ze.limits&&(d.style===m.DISPLAY||ze.alwaysHandleSupSub)||ze&&ze.type==="operatorname"&&ze.alwaysHandleSupSub&&(ze.limits||d.style===m.DISPLAY)?Ie="mover":Ie="msup"}var Dt=new Jt.MathNode(Ie,be);return Dt}}),tn({type:"atom",htmlBuilder:function(l,d){return Xe.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mo",[Xn(l.text,l.mode)]);if(l.family==="bin"){var p=li(l,d);p==="bold-italic"&&h.setAttribute("mathvariant",p)}else l.family==="punct"?h.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&h.setAttribute("stretchy","false");return h}});var Aa={mi:"italic",mn:"normal",mtext:"normal"};tn({type:"mathord",htmlBuilder:function(l,d){return Xe.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mi",[Xn(l.text,l.mode,d)]),p=li(l,d)||"italic";return p!==Aa[h.type]&&h.setAttribute("mathvariant",p),h}}),tn({type:"textord",htmlBuilder:function(l,d){return Xe.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var h=Xn(l.text,l.mode,d),p=li(l,d)||"normal",D;return l.mode==="text"?D=new Jt.MathNode("mtext",[h]):/[0-9]/.test(l.text)?D=new Jt.MathNode("mn",[h]):l.text==="\\prime"?D=new Jt.MathNode("mo",[h]):D=new Jt.MathNode("mi",[h]),p!==Aa[D.type]&&D.setAttribute("mathvariant",p),D}});var Fs={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},zs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};tn({type:"spacing",htmlBuilder:function(l,d){if(zs.hasOwnProperty(l.text)){var h=zs[l.text].className||"";if(l.mode==="text"){var p=Xe.makeOrd(l,d,"textord");return p.classes.push(h),p}else return Xe.makeSpan(["mspace",h],[Xe.mathsym(l.text,l.mode,d)],d)}else{if(Fs.hasOwnProperty(l.text))return Xe.makeSpan(["mspace",Fs[l.text]],[],d);throw new X('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var h;if(zs.hasOwnProperty(l.text))h=new Jt.MathNode("mtext",[new Jt.TextNode("\xA0")]);else{if(Fs.hasOwnProperty(l.text))return new Jt.MathNode("mspace");throw new X('Unknown type of space "'+l.text+'"')}return h}});var $s=function(){var l=new Jt.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};tn({type:"tag",mathmlBuilder:function(l,d){var h=new Jt.MathNode("mtable",[new Jt.MathNode("mtr",[$s(),new Jt.MathNode("mtd",[xn(l.body,d)]),$s(),new Jt.MathNode("mtd",[xn(l.tag,d)])])]);return h.setAttribute("width","100%"),h}});var oa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ca={"\\textbf":"textbf","\\textmd":"textmd"},Ta={"\\textit":"textit","\\textup":"textup"},Da=function(l,d){var h=l.font;return h?oa[h]?d.withTextFontFamily(oa[h]):Ca[h]?d.withTextFontWeight(Ca[h]):d.withTextFontShape(Ta[h]):d};cr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,d){var h=l.parser,p=l.funcName,D=d[0];return{type:"text",mode:h.mode,body:an(D),font:p}},htmlBuilder:function(l,d){var h=Da(l,d),p=un(l.body,h,!0);return Xe.makeSpan(["mord","text"],Xe.tryCombineChars(p),h)},mathmlBuilder:function(l,d){var h=Da(l,d);return xn(l.body,h)}}),cr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"underline",mode:h.mode,body:d[0]}},htmlBuilder:function(l,d){var h=Gr(l.body,d),p=Xe.makeLineSpan("underline-line",d),D=d.fontMetrics().defaultRuleThickness,U=Xe.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:D},{type:"elem",elem:p},{type:"kern",size:3*D},{type:"elem",elem:h}]},d);return Xe.makeSpan(["mord","underline"],[U],d)},mathmlBuilder:function(l,d){var h=new Jt.MathNode("mo",[new Jt.TextNode("\u203E")]);h.setAttribute("stretchy","true");var p=new Jt.MathNode("munder",[Jr(l.body,d),h]);return p.setAttribute("accentunder","true"),p}}),cr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,h){throw new X("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var h=Ra(l),p=[],D=d.havingStyle(d.style.text()),U=0;U<h.length;U++){var be=h[U];be==="~"&&(be="\\textasciitilde"),p.push(Xe.makeSymbol(be,"Typewriter-Regular",l.mode,D,["mord","texttt"]))}return Xe.makeSpan(["mord","text"].concat(D.sizingClasses(d)),Xe.tryCombineChars(p),D)},mathmlBuilder:function(l,d){var h=new Jt.TextNode(Ra(l)),p=new Jt.MathNode("mtext",[h]);return p.setAttribute("mathvariant","monospace"),p}});var Ra=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Va=ni,ds=Va,la=`[ \r
]`,ua="\\\\[a-zA-Z@]+",Ya="\\\\[^\uD800-\uDFFF]",Ia=""+ua+la+"*",Xa=new RegExp("^("+ua+")"+la+"*$"),ca="[\u0300-\u036F]",ui=new RegExp(ca+"+$"),Vi="("+la+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ca+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ca+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Ia)+("|"+Ya+")"),Us=function(){function j(d,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=h,this.tokenRegex=new RegExp(Vi,"g"),this.catcodes={"%":14}}var l=j.prototype;return l.setCatcode=function(h,p){this.catcodes[h]=p},l.lex=function(){var h=this.input,p=this.tokenRegex.lastIndex;if(p===h.length)return new Le("EOF",new ye(this,p,p));var D=this.tokenRegex.exec(h);if(D===null||D.index!==p)throw new X("Unexpected character: '"+h[p]+"'",new Le(h[p],new ye(this,p,p+1)));var U=D[2]||" ";if(this.catcodes[U]===14){var be=h.indexOf(`
`,this.tokenRegex.lastIndex);return be===-1?(this.tokenRegex.lastIndex=h.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 Ie=U.match(Xa);return Ie&&(U=Ie[1]),new Le(U,new ye(this,p,this.tokenRegex.lastIndex))},j}(),Qa=function(){function j(d,h){d===void 0&&(d={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=d,this.undefStack=[]}var l=j.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var p in h)h.hasOwnProperty(p)&&(h[p]===void 0?delete this.current[p]:this.current[p]=h[p])},l.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},l.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},l.set=function(h,p,D){if(D===void 0&&(D=!1),D){for(var U=0;U<this.undefStack.length;U++)delete this.undefStack[U][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=p)}else{var be=this.undefStack[this.undefStack.length-1];be&&!be.hasOwnProperty(h)&&(be[h]=this.current[h])}this.current[h]=p},j}(),La={},js=La;function Ne(j,l){La[j]=l}Ne("\\@firstoftwo",function(j){var l=j.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Ne("\\@secondoftwo",function(j){var l=j.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Ne("\\@ifnextchar",function(j){var l=j.consumeArgs(3),d=j.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Ne("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ne("\\TextOrMath",function(j){var l=j.consumeArgs(2);return j.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var es={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};Ne("\\char",function(j){var l=j.popToken(),d,h="";if(l.text==="'")d=8,l=j.popToken();else if(l.text==='"')d=16,l=j.popToken();else if(l.text==="`")if(l=j.popToken(),l.text[0]==="\\")h=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new X("\\char` missing argument");h=l.text.charCodeAt(0)}else d=10;if(d){if(h=es[l.text],h==null||h>=d)throw new X("Invalid base-"+d+" digit "+l.text);for(var p;(p=es[j.future().text])!=null&&p<d;)h*=d,h+=p,j.popToken()}return"\\@char{"+h+"}"});var da=function(l,d){var h=l.consumeArgs(1)[0];if(h.length!==1)throw new X("\\gdef's first argument must be a macro name");var p=h[0].text,D=0;for(h=l.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=l.consumeArgs(1)[0],h.length!==1)throw new X('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new X('Invalid argument number "'+h[0].text+'"');if(D++,parseInt(h[0].text)!==D)throw new X('Argument number "'+h[0].text+'" out of order');h=l.consumeArgs(1)[0]}return l.macros.set(p,{tokens:h,numArgs:D},d),""};Ne("\\gdef",function(j){return da(j,!0)}),Ne("\\def",function(j){return da(j,!1)}),Ne("\\global",function(j){var l=j.consumeArgs(1)[0];if(l.length!==1)throw new X("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return da(j,!0);throw new X("Invalid command '"+d+"' after \\global")});var Hs=function(l,d,h){var p=l.consumeArgs(1)[0];if(p.length!==1)throw new X("\\newcommand's first argument must be a macro name");var D=p[0].text,U=l.isDefined(D);if(U&&!d)throw new X("\\newcommand{"+D+"} attempting to redefine "+(D+"; use \\renewcommand"));if(!U&&!h)throw new X("\\renewcommand{"+D+"} when command "+D+" does not yet exist; use \\newcommand");var be=0;if(p=l.consumeArgs(1)[0],p.length===1&&p[0].text==="["){for(var Ie="",ze=l.expandNextToken();ze.text!=="]"&&ze.text!=="EOF";)Ie+=ze.text,ze=l.expandNextToken();if(!Ie.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+Ie);be=parseInt(Ie),p=l.consumeArgs(1)[0]}return l.macros.set(D,{tokens:p,numArgs:be}),""};Ne("\\newcommand",function(j){return Hs(j,!1,!0)}),Ne("\\renewcommand",function(j){return Hs(j,!0,!1)}),Ne("\\providecommand",function(j){return Hs(j,!0,!0)}),Ne("\\bgroup","{"),Ne("\\egroup","}"),Ne("\\lq","`"),Ne("\\rq","'"),Ne("\\aa","\\r a"),Ne("\\AA","\\r A"),Ne("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Ne("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ne("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Ne("\u212C","\\mathscr{B}"),Ne("\u2130","\\mathscr{E}"),Ne("\u2131","\\mathscr{F}"),Ne("\u210B","\\mathscr{H}"),Ne("\u2110","\\mathscr{I}"),Ne("\u2112","\\mathscr{L}"),Ne("\u2133","\\mathscr{M}"),Ne("\u211B","\\mathscr{R}"),Ne("\u212D","\\mathfrak{C}"),Ne("\u210C","\\mathfrak{H}"),Ne("\u2128","\\mathfrak{Z}"),Ne("\\Bbbk","\\Bbb{k}"),Ne("\xB7","\\cdotp"),Ne("\\llap","\\mathllap{\\textrm{#1}}"),Ne("\\rlap","\\mathrlap{\\textrm{#1}}"),Ne("\\clap","\\mathclap{\\textrm{#1}}"),Ne("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Ne("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Ne("\\ne","\\neq"),Ne("\u2260","\\neq"),Ne("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Ne("\u2209","\\notin"),Ne("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Ne("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Ne("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Ne("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Ne("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Ne("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Ne("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Ne("\u27C2","\\perp"),Ne("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Ne("\u220C","\\notni"),Ne("\u231C","\\ulcorner"),Ne("\u231D","\\urcorner"),Ne("\u231E","\\llcorner"),Ne("\u231F","\\lrcorner"),Ne("\xA9","\\copyright"),Ne("\xAE","\\textregistered"),Ne("\uFE0F","\\textregistered"),Ne("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Ne("\u22EE","\\vdots"),Ne("\\varGamma","\\mathit{\\Gamma}"),Ne("\\varDelta","\\mathit{\\Delta}"),Ne("\\varTheta","\\mathit{\\Theta}"),Ne("\\varLambda","\\mathit{\\Lambda}"),Ne("\\varXi","\\mathit{\\Xi}"),Ne("\\varPi","\\mathit{\\Pi}"),Ne("\\varSigma","\\mathit{\\Sigma}"),Ne("\\varUpsilon","\\mathit{\\Upsilon}"),Ne("\\varPhi","\\mathit{\\Phi}"),Ne("\\varPsi","\\mathit{\\Psi}"),Ne("\\varOmega","\\mathit{\\Omega}"),Ne("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ne("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Ne("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ne("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ne("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ne("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var ji={",":"\\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"};Ne("\\dots",function(j){var l="\\dotso",d=j.expandAfterFuture().text;return d in ji?l=ji[d]:(d.substr(0,4)==="\\not"||d in $t.math&&k.contains(["bin","rel"],$t.math[d].group))&&(l="\\dotsb"),l});var yt={")":!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};Ne("\\dotso",function(j){var l=j.future().text;return l in yt?"\\ldots\\,":"\\ldots"}),Ne("\\dotsc",function(j){var l=j.future().text;return l in yt&&l!==","?"\\ldots\\,":"\\ldots"}),Ne("\\cdots",function(j){var l=j.future().text;return l in yt?"\\@cdots\\,":"\\@cdots"}),Ne("\\dotsb","\\cdots"),Ne("\\dotsm","\\cdots"),Ne("\\dotsi","\\!\\cdots"),Ne("\\dotsx","\\ldots\\,"),Ne("\\DOTSI","\\relax"),Ne("\\DOTSB","\\relax"),Ne("\\DOTSX","\\relax"),Ne("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ne("\\,","\\tmspace+{3mu}{.1667em}"),Ne("\\thinspace","\\,"),Ne("\\>","\\mskip{4mu}"),Ne("\\:","\\tmspace+{4mu}{.2222em}"),Ne("\\medspace","\\:"),Ne("\\;","\\tmspace+{5mu}{.2777em}"),Ne("\\thickspace","\\;"),Ne("\\!","\\tmspace-{3mu}{.1667em}"),Ne("\\negthinspace","\\!"),Ne("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ne("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ne("\\enspace","\\kern.5em "),Ne("\\enskip","\\hskip.5em\\relax"),Ne("\\quad","\\hskip1em\\relax"),Ne("\\qquad","\\hskip2em\\relax"),Ne("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ne("\\tag@paren","\\tag@literal{({#1})}"),Ne("\\tag@literal",function(j){if(j.macros.get("\\df@tag"))throw new X("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ne("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ne("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ne("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ne("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ne("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Ne("\\\\","\\newline"),Ne("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ha=rt["Main-Regular"][84][1]-.7*rt["Main-Regular"][65][1]+"em";Ne("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Ne("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Ne("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ne("\\@hspace","\\hskip #1\\relax"),Ne("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ne("\\ordinarycolon",":"),Ne("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ne("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ne("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ne("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ne("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ne("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ne("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ne("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ne("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ne("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ne("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ne("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ne("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ne("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ne("\u2237","\\dblcolon"),Ne("\u2239","\\eqcolon"),Ne("\u2254","\\coloneqq"),Ne("\u2255","\\eqqcolon"),Ne("\u2A74","\\Coloneqq"),Ne("\\ratio","\\vcentcolon"),Ne("\\coloncolon","\\dblcolon"),Ne("\\colonequals","\\coloneqq"),Ne("\\coloncolonequals","\\Coloneqq"),Ne("\\equalscolon","\\eqqcolon"),Ne("\\equalscoloncolon","\\Eqqcolon"),Ne("\\colonminus","\\coloneq"),Ne("\\coloncolonminus","\\Coloneq"),Ne("\\minuscolon","\\eqcolon"),Ne("\\minuscoloncolon","\\Eqcolon"),Ne("\\coloncolonapprox","\\Colonapprox"),Ne("\\coloncolonsim","\\Colonsim"),Ne("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ne("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ne("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ne("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ne("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Ne("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ne("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ne("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Ne("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Ne("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Ne("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Ne("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Ne("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Ne("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Ne("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Ne("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Ne("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Ne("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Ne("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Ne("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Ne("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Ne("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Ne("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Ne("\u27E6","\\llbracket"),Ne("\u27E7","\\rrbracket"),Ne("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Ne("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Ne("\u2983","\\lBrace"),Ne("\u2984","\\rBrace"),Ne("\\darr","\\downarrow"),Ne("\\dArr","\\Downarrow"),Ne("\\Darr","\\Downarrow"),Ne("\\lang","\\langle"),Ne("\\rang","\\rangle"),Ne("\\uarr","\\uparrow"),Ne("\\uArr","\\Uparrow"),Ne("\\Uarr","\\Uparrow"),Ne("\\N","\\mathbb{N}"),Ne("\\R","\\mathbb{R}"),Ne("\\Z","\\mathbb{Z}"),Ne("\\alef","\\aleph"),Ne("\\alefsym","\\aleph"),Ne("\\Alpha","\\mathrm{A}"),Ne("\\Beta","\\mathrm{B}"),Ne("\\bull","\\bullet"),Ne("\\Chi","\\mathrm{X}"),Ne("\\clubs","\\clubsuit"),Ne("\\cnums","\\mathbb{C}"),Ne("\\Complex","\\mathbb{C}"),Ne("\\Dagger","\\ddagger"),Ne("\\diamonds","\\diamondsuit"),Ne("\\empty","\\emptyset"),Ne("\\Epsilon","\\mathrm{E}"),Ne("\\Eta","\\mathrm{H}"),Ne("\\exist","\\exists"),Ne("\\harr","\\leftrightarrow"),Ne("\\hArr","\\Leftrightarrow"),Ne("\\Harr","\\Leftrightarrow"),Ne("\\hearts","\\heartsuit"),Ne("\\image","\\Im"),Ne("\\infin","\\infty"),Ne("\\Iota","\\mathrm{I}"),Ne("\\isin","\\in"),Ne("\\Kappa","\\mathrm{K}"),Ne("\\larr","\\leftarrow"),Ne("\\lArr","\\Leftarrow"),Ne("\\Larr","\\Leftarrow"),Ne("\\lrarr","\\leftrightarrow"),Ne("\\lrArr","\\Leftrightarrow"),Ne("\\Lrarr","\\Leftrightarrow"),Ne("\\Mu","\\mathrm{M}"),Ne("\\natnums","\\mathbb{N}"),Ne("\\Nu","\\mathrm{N}"),Ne("\\Omicron","\\mathrm{O}"),Ne("\\plusmn","\\pm"),Ne("\\rarr","\\rightarrow"),Ne("\\rArr","\\Rightarrow"),Ne("\\Rarr","\\Rightarrow"),Ne("\\real","\\Re"),Ne("\\reals","\\mathbb{R}"),Ne("\\Reals","\\mathbb{R}"),Ne("\\Rho","\\mathrm{P}"),Ne("\\sdot","\\cdot"),Ne("\\sect","\\S"),Ne("\\spades","\\spadesuit"),Ne("\\sub","\\subset"),Ne("\\sube","\\subseteq"),Ne("\\supe","\\supseteq"),Ne("\\Tau","\\mathrm{T}"),Ne("\\thetasym","\\vartheta"),Ne("\\weierp","\\wp"),Ne("\\Zeta","\\mathrm{Z}"),Ne("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ne("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ne("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ne("\\blue","\\textcolor{##6495ed}{#1}"),Ne("\\orange","\\textcolor{##ffa500}{#1}"),Ne("\\pink","\\textcolor{##ff00af}{#1}"),Ne("\\red","\\textcolor{##df0030}{#1}"),Ne("\\green","\\textcolor{##28ae7b}{#1}"),Ne("\\gray","\\textcolor{gray}{#1}"),Ne("\\purple","\\textcolor{##9d38bd}{#1}"),Ne("\\blueA","\\textcolor{##ccfaff}{#1}"),Ne("\\blueB","\\textcolor{##80f6ff}{#1}"),Ne("\\blueC","\\textcolor{##63d9ea}{#1}"),Ne("\\blueD","\\textcolor{##11accd}{#1}"),Ne("\\blueE","\\textcolor{##0c7f99}{#1}"),Ne("\\tealA","\\textcolor{##94fff5}{#1}"),Ne("\\tealB","\\textcolor{##26edd5}{#1}"),Ne("\\tealC","\\textcolor{##01d1c1}{#1}"),Ne("\\tealD","\\textcolor{##01a995}{#1}"),Ne("\\tealE","\\textcolor{##208170}{#1}"),Ne("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ne("\\greenB","\\textcolor{##8af281}{#1}"),Ne("\\greenC","\\textcolor{##74cf70}{#1}"),Ne("\\greenD","\\textcolor{##1fab54}{#1}"),Ne("\\greenE","\\textcolor{##0d923f}{#1}"),Ne("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ne("\\goldB","\\textcolor{##ffbb71}{#1}"),Ne("\\goldC","\\textcolor{##ff9c39}{#1}"),Ne("\\goldD","\\textcolor{##e07d10}{#1}"),Ne("\\goldE","\\textcolor{##a75a05}{#1}"),Ne("\\redA","\\textcolor{##fca9a9}{#1}"),Ne("\\redB","\\textcolor{##ff8482}{#1}"),Ne("\\redC","\\textcolor{##f9685d}{#1}"),Ne("\\redD","\\textcolor{##e84d39}{#1}"),Ne("\\redE","\\textcolor{##bc2612}{#1}"),Ne("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ne("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ne("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ne("\\maroonD","\\textcolor{##ca337c}{#1}"),Ne("\\maroonE","\\textcolor{##9e034e}{#1}"),Ne("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ne("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ne("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ne("\\purpleD","\\textcolor{##7854ab}{#1}"),Ne("\\purpleE","\\textcolor{##543b78}{#1}"),Ne("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ne("\\mintB","\\textcolor{##edf2df}{#1}"),Ne("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ne("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ne("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ne("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ne("\\grayD","\\textcolor{##d6d8da}{#1}"),Ne("\\grayE","\\textcolor{##babec2}{#1}"),Ne("\\grayF","\\textcolor{##888d93}{#1}"),Ne("\\grayG","\\textcolor{##626569}{#1}"),Ne("\\grayH","\\textcolor{##3b3e40}{#1}"),Ne("\\grayI","\\textcolor{##21242c}{#1}"),Ne("\\kaBlue","\\textcolor{##314453}{#1}"),Ne("\\kaGreen","\\textcolor{##71B307}{#1}");var Gs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ja=function(){function j(d,h,p){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=h,this.expansionCount=0,this.feed(d),this.macros=new Qa(js,h.macros),this.mode=p,this.stack=[]}var l=j.prototype;return l.feed=function(h){this.lexer=new Us(h,this.settings)},l.switchMode=function(h){this.mode=h},l.beginGroup=function(){this.macros.beginGroup()},l.endGroup=function(){this.macros.endGroup()},l.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},l.popToken=function(){return this.future(),this.stack.pop()},l.pushToken=function(h){this.stack.push(h)},l.pushTokens=function(h){var p;(p=this.stack).push.apply(p,h)},l.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},l.consumeArgs=function(h){for(var p=[],D=0;D<h;++D){this.consumeSpaces();var U=this.popToken();if(U.text==="{"){for(var be=[],Ie=1;Ie!==0;){var ze=this.popToken();if(be.push(ze),ze.text==="{")++Ie;else if(ze.text==="}")--Ie;else if(ze.text==="EOF")throw new X("End of input in macro argument",U)}be.pop(),be.reverse(),p[D]=be}else{if(U.text==="EOF")throw new X("End of input expecting macro argument");p[D]=[U]}}return p},l.expandOnce=function(){var h=this.popToken(),p=h.text,D=this._getExpansion(p);if(D==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new X("Too many expansions: infinite loop or need to increase maxExpand setting");var U=D.tokens;if(D.numArgs){var be=this.consumeArgs(D.numArgs);U=U.slice();for(var Ie=U.length-1;Ie>=0;--Ie){var ze=U[Ie];if(ze.text==="#"){if(Ie===0)throw new X("Incomplete placeholder at end of macro body",ze);if(ze=U[--Ie],ze.text==="#")U.splice(Ie+1,1);else if(/^[1-9]$/.test(ze.text)){var nt;(nt=U).splice.apply(nt,[Ie,2].concat(be[+ze.text-1]))}else throw new X("Not a valid argument number",ze)}}}return this.pushTokens(U),U},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof Le)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(h){if(this.macros.get(h)){var p=[],D=this.stack.length;for(this.pushToken(new Le(h));this.stack.length>D;){var U=this.expandOnce();U instanceof Le&&p.push(this.stack.pop())}return p}},l.expandMacroAsText=function(h){var p=this.expandMacro(h);return p&&p.map(function(D){return D.text}).join("")},l._getExpansion=function(h){var p=this.macros.get(h);if(p==null)return p;var D=typeof p=="function"?p(this):p;if(typeof D=="string"){var U=0;if(D.indexOf("#")!==-1)for(var be=D.replace(/##/g,"");be.indexOf("#"+(U+1))!==-1;)++U;for(var Ie=new Us(D,this.settings),ze=[],nt=Ie.lex();nt.text!=="EOF";)ze.push(nt),nt=Ie.lex();ze.reverse();var dt={tokens:ze,numArgs:U};return dt}return D},l.isDefined=function(h){return this.macros.has(h)||ds.hasOwnProperty(h)||$t.math.hasOwnProperty(h)||$t.text.hasOwnProperty(h)||Gs.hasOwnProperty(h)},j}(),hs={"\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"}},ka={\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"},Ks=function(){function j(d,h){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 Ja(d,h,this.mode),this.settings=h,this.leftrightDepth=0}var l=j.prototype;return l.expect=function(h,p){if(p===void 0&&(p=!0),this.fetch().text!==h)throw new X("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());p&&this.consume()},l.consume=function(){this.nextToken=null},l.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},l.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var h=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),h},l.parseExpression=function(h,p){for(var D=[];;){this.mode==="math"&&this.consumeSpaces();var U=this.fetch();if(j.endOfExpression.indexOf(U.text)!==-1||p&&U.text===p||h&&ds[U.text]&&ds[U.text].infix)break;var be=this.parseAtom(p);if(!be)break;D.push(be)}return this.mode==="text"&&this.formLigatures(D),this.handleInfixNodes(D)},l.handleInfixNodes=function(h){for(var p=-1,D,U=0;U<h.length;U++){var be=$r(h[U],"infix");if(be){if(p!==-1)throw new X("only one infix operator per group",be.token);p=U,D=be.replaceWith}}if(p!==-1&&D){var Ie,ze,nt=h.slice(0,p),dt=h.slice(p+1);nt.length===1&&nt[0].type==="ordgroup"?Ie=nt[0]:Ie={type:"ordgroup",mode:this.mode,body:nt},dt.length===1&&dt[0].type==="ordgroup"?ze=dt[0]:ze={type:"ordgroup",mode:this.mode,body:dt};var Dt;return D==="\\\\abovefrac"?Dt=this.callFunction(D,[Ie,h[p],ze],[]):Dt=this.callFunction(D,[Ie,ze],[]),[Dt]}else return h},l.handleSupSubscript=function(h){var p=this.fetch(),D=p.text;this.consume();var U=this.parseGroup(h,!1,j.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!U)throw new X("Expected group after '"+D+"'",p);return U},l.formatUnsupportedCmd=function(h){for(var p=[],D=0;D<h.length;D++)p.push({type:"textord",mode:"text",text:h[D]});var U={type:"text",mode:this.mode,body:p},be={type:"color",mode:this.mode,color:this.settings.errorColor,body:[U]};return be},l.parseAtom=function(h){var p=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return p;for(var D,U;;){this.consumeSpaces();var be=this.fetch();if(be.text==="\\limits"||be.text==="\\nolimits"){var Ie=$r(p,"op");if(Ie){var ze=be.text==="\\limits";Ie.limits=ze,Ie.alwaysHandleSupSub=!0}else if(Ie=$r(p,"operatorname"),Ie&&Ie.alwaysHandleSupSub){var nt=be.text==="\\limits";Ie.limits=nt}else throw new X("Limit controls must follow a math operator",be);this.consume()}else if(be.text==="^"){if(D)throw new X("Double superscript",be);D=this.handleSupSubscript("superscript")}else if(be.text==="_"){if(U)throw new X("Double subscript",be);U=this.handleSupSubscript("subscript")}else if(be.text==="'"){if(D)throw new X("Double superscript",be);var dt={type:"textord",mode:this.mode,text:"\\prime"},Dt=[dt];for(this.consume();this.fetch().text==="'";)Dt.push(dt),this.consume();this.fetch().text==="^"&&Dt.push(this.handleSupSubscript("superscript")),D={type:"ordgroup",mode:this.mode,body:Dt}}else break}return D||U?{type:"supsub",mode:this.mode,base:p,sup:D,sub:U}:p},l.parseFunction=function(h,p,D){var U=this.fetch(),be=U.text,Ie=ds[be];if(!Ie)return null;if(this.consume(),D!=null&&Ie.greediness<=D)throw new X("Got function '"+be+"' with no arguments"+(p?" as "+p:""),U);if(this.mode==="text"&&!Ie.allowedInText)throw new X("Can't use function '"+be+"' in text mode",U);if(this.mode==="math"&&Ie.allowedInMath===!1)throw new X("Can't use function '"+be+"' in math mode",U);var ze=this.parseArguments(be,Ie),nt=ze.args,dt=ze.optArgs;return this.callFunction(be,nt,dt,U,h)},l.callFunction=function(h,p,D,U,be){var Ie={funcName:h,parser:this,token:U,breakOnTokenText:be},ze=ds[h];if(ze&&ze.handler)return ze.handler(Ie,p,D);throw new X("No function handler for "+h)},l.parseArguments=function(h,p){var D=p.numArgs+p.numOptionalArgs;if(D===0)return{args:[],optArgs:[]};for(var U=p.greediness,be=[],Ie=[],ze=0;ze<D;ze++){var nt=p.argTypes&&p.argTypes[ze],dt=ze<p.numOptionalArgs,Dt=ze>0&&!dt||ze===0&&!dt&&this.mode==="math",Zt=this.parseGroupOfType("argument to '"+h+"'",nt,dt,U,Dt);if(!Zt){if(dt){Ie.push(null);continue}throw new X("Expected group after '"+h+"'",this.fetch())}(dt?Ie:be).push(Zt)}return{args:be,optArgs:Ie}},l.parseGroupOfType=function(h,p,D,U,be){switch(p){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(h,D,U,void 0,p,be);case"hbox":{var Ie=this.parseGroup(h,D,U,void 0,"text",be);if(!Ie)return Ie;var ze={type:"styling",mode:Ie.mode,body:[Ie],style:"text"};return ze}case"raw":{if(be&&this.consumeSpaces(),D&&this.fetch().text==="{")return null;var nt=this.parseStringGroup("raw",D,!0);if(nt)return{type:"raw",mode:"text",string:nt.text};throw new X("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,D,U,void 0,void 0,be);default:throw new X("Unknown group type as "+h,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(h,p,D){var U=p?"[":"{",be=p?"]":"}",Ie=this.fetch();if(Ie.text!==U){if(p)return null;if(D&&Ie.text!=="EOF"&&/[^{}[\]]/.test(Ie.text))return this.consume(),Ie}var ze=this.mode;this.mode="text",this.expect(U);for(var nt="",dt=this.fetch(),Dt=0,Zt=dt,er;(er=this.fetch()).text!==be||D&&Dt>0;){switch(er.text){case"EOF":throw new X("Unexpected end of input in "+h,dt.range(Zt,nt));case U:Dt++;break;case be:Dt--;break}Zt=er,nt+=Zt.text,this.consume()}return this.expect(be),this.mode=ze,dt.range(Zt,nt)},l.parseRegexGroup=function(h,p){var D=this.mode;this.mode="text";for(var U=this.fetch(),be=U,Ie="",ze;(ze=this.fetch()).text!=="EOF"&&h.test(Ie+ze.text);)be=ze,Ie+=be.text,this.consume();if(Ie==="")throw new X("Invalid "+p+": '"+U.text+"'",U);return this.mode=D,U.range(be,Ie)},l.parseColorGroup=function(h){var p=this.parseStringGroup("color",h);if(!p)return null;var D=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(p.text);if(!D)throw new X("Invalid color: '"+p.text+"'",p);var U=D[0];return/^[0-9a-f]{6}$/i.test(U)&&(U="#"+U),{type:"color-token",mode:this.mode,color:U}},l.parseSizeGroup=function(h){var p,D=!1;if(!h&&this.fetch().text!=="{"?p=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):p=this.parseStringGroup("size",h),!p)return null;!h&&p.text.length===0&&(p.text="0pt",D=!0);var U=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(p.text);if(!U)throw new X("Invalid size: '"+p.text+"'",p);var be={number:+(U[1]+U[2]),unit:U[3]};if(!tt(be))throw new X("Invalid unit: '"+be.unit+"'",p);return{type:"size",mode:this.mode,value:be,isBlank:D}},l.parseUrlGroup=function(h,p){this.gullet.lexer.setCatcode("%",13);var D=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!D)return null;var U=D.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:U}},l.parseGroup=function(h,p,D,U,be,Ie){var ze=this.mode;be&&this.switchMode(be),Ie&&this.consumeSpaces();var nt=this.fetch(),dt=nt.text,Dt;if(p?dt==="[":dt==="{"||dt==="\\begingroup"){this.consume();var Zt=j.endOfGroup[dt];this.gullet.beginGroup();var er=this.parseExpression(!1,Zt),hr=this.fetch();this.expect(Zt),this.gullet.endGroup(),Dt={type:"ordgroup",mode:this.mode,loc:ye.range(nt,hr),body:er,semisimple:dt==="\\begingroup"||void 0}}else if(p)Dt=null;else if(Dt=this.parseFunction(U,h,D)||this.parseSymbol(),Dt==null&&dt[0]==="\\"&&!Gs.hasOwnProperty(dt)){if(this.settings.throwOnError)throw new X("Undefined control sequence: "+dt,nt);Dt=this.formatUnsupportedCmd(dt),this.consume()}return be&&this.switchMode(ze),Dt},l.formLigatures=function(h){for(var p=h.length-1,D=0;D<p;++D){var U=h[D],be=U.text;be==="-"&&h[D+1].text==="-"&&(D+1<p&&h[D+2].text==="-"?(h.splice(D,3,{type:"textord",mode:"text",loc:ye.range(U,h[D+2]),text:"---"}),p-=2):(h.splice(D,2,{type:"textord",mode:"text",loc:ye.range(U,h[D+1]),text:"--"}),p-=1)),(be==="'"||be==="`")&&h[D+1].text===be&&(h.splice(D,2,{type:"textord",mode:"text",loc:ye.range(U,h[D+1]),text:be+be}),p-=1)}},l.parseSymbol=function(){var h=this.fetch(),p=h.text;if(/^\\verb[^a-zA-Z]/.test(p)){this.consume();var D=p.slice(5),U=D.charAt(0)==="*";if(U&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new X(`\\verb assertion failed --
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:U}}ka.hasOwnProperty(p[0])&&!$t[this.mode][p[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+p[0]+'" used in math mode',h),p=ka[p[0]]+p.substr(1));var be=ui.exec(p);be&&(p=p.substring(0,be.index),p==="i"?p="\u0131":p==="j"&&(p="\u0237"));var Ie;if($t[this.mode][p]){this.settings.strict&&this.mode==="math"&&ar.indexOf(p)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+p[0]+'" used in math mode',h);var ze=$t[this.mode][p].group,nt=ye.range(h),dt;if(Ht.hasOwnProperty(ze)){var Dt=ze;dt={type:"atom",mode:this.mode,family:Dt,loc:nt,text:p}}else dt={type:ze,mode:this.mode,loc:nt,text:p};Ie=dt}else if(p.charCodeAt(0)>=128)this.settings.strict&&(we(p.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+p[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+p[0]+'"'+(" ("+p.charCodeAt(0)+")"),h)),Ie={type:"textord",mode:"text",loc:ye.range(h),text:p};else return null;if(this.consume(),be)for(var Zt=0;Zt<be[0].length;Zt++){var er=be[0][Zt];if(!hs[er])throw new X("Unknown accent ' "+er+"'",h);var hr=hs[er][this.mode];if(!hr)throw new X("Accent "+er+" unsupported in "+this.mode+" mode",h);Ie={type:"accent",mode:this.mode,loc:ye.range(h),label:hr,isStretchy:!1,isShifty:!0,base:Ie}}return Ie},j}();Ks.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ks.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ks.SUPSUB_GREEDINESS=1;var Oa=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new Ks(l,d);delete h.gullet.macros.current["\\df@tag"];var p=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new X("\\tag works only in display equations");h.gullet.feed("\\df@tag"),p=[{type:"tag",mode:"text",body:p,tag:h.parse()}]}return p},fa=Oa,Pa=function(l,d,h){d.textContent="";var p=Ai(l,h).toNode();d.appendChild(p)};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."),Pa=function(){throw new X("KaTeX doesn't work in quirks mode.")});var fs=function(l,d){var h=Ai(l,d).toMarkup();return h},ma=function(l,d){var h=new P(d);return fa(l,h)},As=function(l,d,h){if(h.throwOnError||!(l instanceof X))throw l;var p=Xe.makeSpan(["katex-error"],[new ee(d)]);return p.setAttribute("title",l.toString()),p.setAttribute("style","color:"+h.errorColor),p},Ai=function(l,d){var h=new P(d);try{var p=fa(l,h);return In(p,l,h)}catch(D){return As(D,l,h)}},qa=function(l,d){var h=new P(d);try{var p=fa(l,h);return Kn(p,l,h)}catch(D){return As(D,l,h)}},Ma={version:"0.11.1",render:Pa,renderToString:fs,ParseError:X,__parse:ma,__renderToDomTree:Ai,__renderToHTMLTree:qa,__setFontMetrics:mt,__defineSymbol:S,__defineMacro:Ne,__domTree:{Span:N,Anchor:ce,SymbolNode:ee,SvgNode:ue,PathNode:_e,LineNode:ke}},eo=y.default=Ma}]).default})},32834:function(Ut){(function(qe,y){Ut.exports=y()})(this,function(){"use strict";function qe(Be,He){for(var Ve=0;Ve<He.length;Ve++){var re=He[Ve];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(Be,re.key,re)}}function y(Be,He,Ve){return He&&qe(Be.prototype,He),Ve&&qe(Be,Ve),Be}function A(Be,He){if(Be){if(typeof Be=="string")return J(Be,He);var Ve=Object.prototype.toString.call(Be).slice(8,-1);if(Ve==="Object"&&Be.constructor&&(Ve=Be.constructor.name),Ve==="Map"||Ve==="Set")return Array.from(Be);if(Ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ve))return J(Be,He)}}function J(Be,He){(He==null||He>Be.length)&&(He=Be.length);for(var Ve=0,re=new Array(He);Ve<He;Ve++)re[Ve]=Be[Ve];return re}function ye(Be,He){var Ve=typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(Ve)return(Ve=Ve.call(Be)).next.bind(Ve);if(Array.isArray(Be)||(Ve=A(Be))||He&&Be&&typeof Be.length=="number"){Ve&&(Be=Ve);var re=0;return function(){return re>=Be.length?{done:!0}:{done:!1,value:Be[re++]}}}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 Le={exports:{}};function oe(){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 X(Be){Le.exports.defaults=Be}Le.exports={defaults:oe(),getDefaults:oe,changeDefaults:X};var fe=/[&<>"']/,he=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,V=/[<>"']|&(?!#?\w+;)/g,F={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g=function(He){return F[He]};function c(Be,He){if(He){if(fe.test(Be))return Be.replace(he,g)}else if(o.test(Be))return Be.replace(V,g);return Be}var w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function b(Be){return Be.replace(w,function(He,Ve){return Ve=Ve.toLowerCase(),Ve==="colon"?":":Ve.charAt(0)==="#"?Ve.charAt(1)==="x"?String.fromCharCode(parseInt(Ve.substring(2),16)):String.fromCharCode(+Ve.substring(1)):""})}var z=/(^|[^\[])\^/g;function te(Be,He){Be=Be.source||Be,He=He||"";var Ve={replace:function(me,Me){return Me=Me.source||Me,Me=Me.replace(z,"$1"),Be=Be.replace(me,Me),Ve},getRegex:function(){return new RegExp(Be,He)}};return Ve}var k=/[^\w:]/g,P=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H(Be,He,Ve){if(Be){var re;try{re=decodeURIComponent(b(Ve)).replace(k,"").toLowerCase()}catch(me){return null}if(re.indexOf("javascript:")===0||re.indexOf("vbscript:")===0||re.indexOf("data:")===0)return null}He&&!P.test(Ve)&&(Ve=q(He,Ve));try{Ve=encodeURI(Ve).replace(/%25/g,"%")}catch(me){return null}return Ve}var ae={},E=/^[^:]+:\/*[^/]*$/,W=/^([^:]+:)[\s\S]*$/,ne=/^([^:]+:\/*[^/]*)[\s\S]*$/;function q(Be,He){ae[" "+Be]||(E.test(Be)?ae[" "+Be]=Be+"/":ae[" "+Be]=Fe(Be,"/",!0)),Be=ae[" "+Be];var Ve=Be.indexOf(":")===-1;return He.substring(0,2)==="//"?Ve?He:Be.replace(W,"$1")+He:He.charAt(0)==="/"?Ve?He:Be.replace(ne,"$1")+He:Be+He}var ge={exec:function(){}};function Te(Be){for(var He=1,Ve,re;He<arguments.length;He++){Ve=arguments[He];for(re in Ve)Object.prototype.hasOwnProperty.call(Ve,re)&&(Be[re]=Ve[re])}return Be}function Se(Be,He){var Ve=Be.replace(/\|/g,function(Me,Ue,Y){for(var Ft=!1,Oe=Ue;--Oe>=0&&Y[Oe]==="\\";)Ft=!Ft;return Ft?"|":" |"}),re=Ve.split(/ \|/),me=0;if(re.length>He)re.splice(He);else for(;re.length<He;)re.push("");for(;me<re.length;me++)re[me]=re[me].trim().replace(/\\\|/g,"|");return re}function Fe(Be,He,Ve){var re=Be.length;if(re===0)return"";for(var me=0;me<re;){var Me=Be.charAt(re-me-1);if(Me===He&&!Ve)me++;else if(Me!==He&&Ve)me++;else break}return Be.substr(0,re-me)}function G(Be,He){if(Be.indexOf(He[1])===-1)return-1;for(var Ve=Be.length,re=0,me=0;me<Ve;me++)if(Be[me]==="\\")me++;else if(Be[me]===He[0])re++;else if(Be[me]===He[1]&&(re--,re<0))return me;return-1}function I(Be){Be&&Be.sanitize&&!Be.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 $(Be,He){if(He<1)return"";for(var Ve="";He>1;)He&1&&(Ve+=Be),He>>=1,Be+=Be;return Ve+Be}var R={escape:c,unescape:b,edit:te,cleanUrl:H,resolveUrl:q,noopTest:ge,merge:Te,splitCells:Se,rtrim:Fe,findClosingBracket:G,checkSanitizeDeprecation:I,repeatString:$},Z=Le.exports.defaults,B=R.rtrim,m=R.splitCells,_=R.escape,O=R.findClosingBracket;function M(Be,He,Ve){var re=He.href,me=He.title?_(He.title):null,Me=Be[1].replace(/\\([\[\]])/g,"$1");return Be[0].charAt(0)!=="!"?{type:"link",raw:Ve,href:re,title:me,text:Me}:{type:"image",raw:Ve,href:re,title:me,text:_(Me)}}function we(Be,He){var Ve=Be.match(/^(\s+)(?:```)/);if(Ve===null)return He;var re=Ve[1];return He.split(`
`).map(function(me){var Me=me.match(/^\s+/);if(Me===null)return me;var Ue=Me[0];return Ue.length>=re.length?me.slice(re.length):me}).join(`
`)}var Ee=function(){function Be(Ve){this.options=Ve||Z}var He=Be.prototype;return He.space=function(re){var me=this.rules.block.newline.exec(re);if(me)return me[0].length>1?{type:"space",raw:me[0]}:{raw:`
`}},He.code=function(re){var me=this.rules.block.code.exec(re);if(me){var Me=me[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:me[0],codeBlockStyle:"indented",text:this.options.pedantic?Me:B(Me,`
`)}}},He.fences=function(re){var me=this.rules.block.fences.exec(re);if(me){var Me=me[0],Ue=we(Me,me[3]||"");return{type:"code",raw:Me,lang:me[2]?me[2].trim():me[2],text:Ue}}},He.heading=function(re){var me=this.rules.block.heading.exec(re);if(me){var Me=me[2].trim();if(/#$/.test(Me)){var Ue=B(Me,"#");(this.options.pedantic||!Ue||/ $/.test(Ue))&&(Me=Ue.trim())}return{type:"heading",raw:me[0],depth:me[1].length,text:Me}}},He.nptable=function(re){var me=this.rules.block.nptable.exec(re);if(me){var Me={type:"table",header:m(me[1].replace(/^ *| *\| *$/g,"")),align:me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:me[3]?me[3].replace(/\n$/,"").split(`
`):[],raw:me[0]};if(Me.header.length===Me.align.length){var Ue=Me.align.length,Y;for(Y=0;Y<Ue;Y++)/^ *-+: *$/.test(Me.align[Y])?Me.align[Y]="right":/^ *:-+: *$/.test(Me.align[Y])?Me.align[Y]="center":/^ *:-+ *$/.test(Me.align[Y])?Me.align[Y]="left":Me.align[Y]=null;for(Ue=Me.cells.length,Y=0;Y<Ue;Y++)Me.cells[Y]=m(Me.cells[Y],Me.header.length);return Me}}},He.hr=function(re){var me=this.rules.block.hr.exec(re);if(me)return{type:"hr",raw:me[0]}},He.blockquote=function(re){var me=this.rules.block.blockquote.exec(re);if(me){var Me=me[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:me[0],text:Me}}},He.list=function(re){var me=this.rules.block.list.exec(re);if(me){var Me=me[0],Ue=me[2],Y=Ue.length>1,Ft={type:"list",raw:Me,ordered:Y,start:Y?+Ue.slice(0,-1):"",loose:!1,items:[]},Oe=me[0].match(this.rules.block.item),Wt=!1,ir,bt,kt,lt,pt,tr,pe,Ce,it,Ke=Oe.length;kt=this.rules.block.listItemStart.exec(Oe[0]);for(var st=0;st<Ke;st++){if(ir=Oe[st],Me=ir,this.options.pedantic||(it=ir.match(new RegExp("\\n\\s*\\n {0,"+(kt[0].length-1)+"}\\S")),it&&(pt=ir.length-it.index+Oe.slice(st+1).join(`
`).length,Ft.raw=Ft.raw.substring(0,Ft.raw.length-pt),ir=ir.substring(0,it.index),Me=ir,Ke=st+1)),st!==Ke-1){if(lt=this.rules.block.listItemStart.exec(Oe[st+1]),this.options.pedantic?lt[1].length>kt[1].length:lt[1].length>=kt[0].length||lt[1].length>3){Oe.splice(st,2,Oe[st]+(!this.options.pedantic&&lt[1].length<kt[0].length&&!Oe[st].match(/\n$/)?"":`
`)+Oe[st+1]),st--,Ke--;continue}else(!this.options.pedantic||this.options.smartLists?lt[2][lt[2].length-1]!==Ue[Ue.length-1]:Y===(lt[2].length===1))&&(pt=Oe.slice(st+1).join(`
`).length,Ft.raw=Ft.raw.substring(0,Ft.raw.length-pt),st=Ke-1);kt=lt}bt=ir.length,ir=ir.replace(/^ *([*+-]|\d+[.)]) ?/,""),~ir.indexOf(`
`)&&(bt-=ir.length,ir=this.options.pedantic?ir.replace(/^ {1,4}/gm,""):ir.replace(new RegExp("^ {1,"+bt+"}","gm"),"")),ir=B(ir,`
`),st!==Ke-1&&(Me=Me+`
`),tr=Wt||/\n\n(?!\s*$)/.test(Me),st!==Ke-1&&(Wt=Me.slice(-2)===`
`,tr||(tr=Wt)),tr&&(Ft.loose=!0),this.options.gfm&&(pe=/^\[[ xX]\] /.test(ir),Ce=void 0,pe&&(Ce=ir[1]!==" ",ir=ir.replace(/^\[[ xX]\] +/,""))),Ft.items.push({type:"list_item",raw:Me,task:pe,checked:Ce,loose:tr,text:ir})}return Ft}},He.html=function(re){var me=this.rules.block.html.exec(re);if(me)return{type:this.options.sanitize?"paragraph":"html",raw:me[0],pre:!this.options.sanitizer&&(me[1]==="pre"||me[1]==="script"||me[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):_(me[0]):me[0]}},He.def=function(re){var me=this.rules.block.def.exec(re);if(me){me[3]&&(me[3]=me[3].substring(1,me[3].length-1));var Me=me[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Me,raw:me[0],href:me[2],title:me[3]}}},He.table=function(re){var me=this.rules.block.table.exec(re);if(me){var Me={type:"table",header:m(me[1].replace(/^ *| *\| *$/g,"")),align:me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:me[3]?me[3].replace(/\n$/,"").split(`
`):[]};if(Me.header.length===Me.align.length){Me.raw=me[0];var Ue=Me.align.length,Y;for(Y=0;Y<Ue;Y++)/^ *-+: *$/.test(Me.align[Y])?Me.align[Y]="right":/^ *:-+: *$/.test(Me.align[Y])?Me.align[Y]="center":/^ *:-+ *$/.test(Me.align[Y])?Me.align[Y]="left":Me.align[Y]=null;for(Ue=Me.cells.length,Y=0;Y<Ue;Y++)Me.cells[Y]=m(Me.cells[Y].replace(/^ *\| *| *\| *$/g,""),Me.header.length);return Me}}},He.lheading=function(re){var me=this.rules.block.lheading.exec(re);if(me)return{type:"heading",raw:me[0],depth:me[2].charAt(0)==="="?1:2,text:me[1]}},He.paragraph=function(re){var me=this.rules.block.paragraph.exec(re);if(me)return{type:"paragraph",raw:me[0],text:me[1].charAt(me[1].length-1)===`
`?me[1].slice(0,-1):me[1]}},He.text=function(re){var me=this.rules.block.text.exec(re);if(me)return{type:"text",raw:me[0],text:me[0]}},He.escape=function(re){var me=this.rules.inline.escape.exec(re);if(me)return{type:"escape",raw:me[0],text:_(me[1])}},He.tag=function(re,me,Me){var Ue=this.rules.inline.tag.exec(re);if(Ue)return!me&&/^<a /i.test(Ue[0])?me=!0:me&&/^<\/a>/i.test(Ue[0])&&(me=!1),!Me&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ue[0])?Me=!0:Me&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ue[0])&&(Me=!1),{type:this.options.sanitize?"text":"html",raw:Ue[0],inLink:me,inRawBlock:Me,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):_(Ue[0]):Ue[0]}},He.link=function(re){var me=this.rules.inline.link.exec(re);if(me){var Me=me[2].trim();if(!this.options.pedantic&&/^</.test(Me)){if(!/>$/.test(Me))return;var Ue=B(Me.slice(0,-1),"\\");if((Me.length-Ue.length)%2===0)return}else{var Y=O(me[2],"()");if(Y>-1){var Ft=me[0].indexOf("!")===0?5:4,Oe=Ft+me[1].length+Y;me[2]=me[2].substring(0,Y),me[0]=me[0].substring(0,Oe).trim(),me[3]=""}}var Wt=me[2],ir="";if(this.options.pedantic){var bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Wt);bt&&(Wt=bt[1],ir=bt[3])}else ir=me[3]?me[3].slice(1,-1):"";return Wt=Wt.trim(),/^</.test(Wt)&&(this.options.pedantic&&!/>$/.test(Me)?Wt=Wt.slice(1):Wt=Wt.slice(1,-1)),M(me,{href:Wt&&Wt.replace(this.rules.inline._escapes,"$1"),title:ir&&ir.replace(this.rules.inline._escapes,"$1")},me[0])}},He.reflink=function(re,me){var Me;if((Me=this.rules.inline.reflink.exec(re))||(Me=this.rules.inline.nolink.exec(re))){var Ue=(Me[2]||Me[1]).replace(/\s+/g," ");if(Ue=me[Ue.toLowerCase()],!Ue||!Ue.href){var Y=Me[0].charAt(0);return{type:"text",raw:Y,text:Y}}return M(Me,Ue,Me[0])}},He.emStrong=function(re,me,Me){Me===void 0&&(Me="");var Ue=this.rules.inline.emStrong.lDelim.exec(re);if(Ue&&!(Ue[3]&&Me.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 Y=Ue[1]||Ue[2]||"";if(!Y||Y&&(Me===""||this.rules.inline.punctuation.exec(Me))){var Ft=Ue[0].length-1,Oe,Wt,ir=Ft,bt=0,kt=Ue[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(kt.lastIndex=0,me=me.slice(-1*re.length+Ft);(Ue=kt.exec(me))!=null;)if(Oe=Ue[1]||Ue[2]||Ue[3]||Ue[4]||Ue[5]||Ue[6],!!Oe){if(Wt=Oe.length,Ue[3]||Ue[4]){ir+=Wt;continue}else if((Ue[5]||Ue[6])&&Ft%3&&!((Ft+Wt)%3)){bt+=Wt;continue}if(ir-=Wt,!(ir>0))return Wt=Math.min(Wt,Wt+ir+bt),Math.min(Ft,Wt)%2?{type:"em",raw:re.slice(0,Ft+Ue.index+Wt+1),text:re.slice(1,Ft+Ue.index+Wt)}:{type:"strong",raw:re.slice(0,Ft+Ue.index+Wt+1),text:re.slice(2,Ft+Ue.index+Wt-1)}}}}},He.codespan=function(re){var me=this.rules.inline.code.exec(re);if(me){var Me=me[2].replace(/\n/g," "),Ue=/[^ ]/.test(Me),Y=/^ /.test(Me)&&/ $/.test(Me);return Ue&&Y&&(Me=Me.substring(1,Me.length-1)),Me=_(Me,!0),{type:"codespan",raw:me[0],text:Me}}},He.br=function(re){var me=this.rules.inline.br.exec(re);if(me)return{type:"br",raw:me[0]}},He.del=function(re){var me=this.rules.inline.del.exec(re);if(me)return{type:"del",raw:me[0],text:me[2]}},He.autolink=function(re,me){var Me=this.rules.inline.autolink.exec(re);if(Me){var Ue,Y;return Me[2]==="@"?(Ue=_(this.options.mangle?me(Me[1]):Me[1]),Y="mailto:"+Ue):(Ue=_(Me[1]),Y=Ue),{type:"link",raw:Me[0],text:Ue,href:Y,tokens:[{type:"text",raw:Ue,text:Ue}]}}},He.url=function(re,me){var Me;if(Me=this.rules.inline.url.exec(re)){var Ue,Y;if(Me[2]==="@")Ue=_(this.options.mangle?me(Me[0]):Me[0]),Y="mailto:"+Ue;else{var Ft;do Ft=Me[0],Me[0]=this.rules.inline._backpedal.exec(Me[0])[0];while(Ft!==Me[0]);Ue=_(Me[0]),Me[1]==="www."?Y="http://"+Ue:Y=Ue}return{type:"link",raw:Me[0],text:Ue,href:Y,tokens:[{type:"text",raw:Ue,text:Ue}]}}},He.inlineText=function(re,me,Me){var Ue=this.rules.inline.text.exec(re);if(Ue){var Y;return me?Y=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):_(Ue[0]):Ue[0]:Y=_(this.options.smartypants?Me(Ue[0]):Ue[0]),{type:"text",raw:Ue[0],text:Y}}},Be}(),De=R.noopTest,$e=R.edit,Je=R.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:De,table:De,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=$e(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=$e(Qe.item,"gm").replace(/bull/g,Qe.bullet).getRegex(),Qe.listItemStart=$e(/^( *)(bull) */).replace("bull",Qe.bullet).getRegex(),Qe.list=$e(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=$e(Qe.html,"i").replace("comment",Qe._comment).replace("tag",Qe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qe.paragraph=$e(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=$e(Qe.blockquote).replace("paragraph",Qe.paragraph).getRegex(),Qe.normal=Je({},Qe),Qe.gfm=Je({},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=$e(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=$e(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=Je({},Qe.normal,{html:$e(`^ *(?: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:De,paragraph:$e(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 et={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:De,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:De,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};et._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",et.punctuation=$e(et.punctuation).replace(/punctuation/g,et._punctuation).getRegex(),et.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,et.escapedEmSt=/\\\*|\\_/g,et._comment=$e(Qe._comment).replace("(?:-->|$)","-->").getRegex(),et.emStrong.lDelim=$e(et.emStrong.lDelim).replace(/punct/g,et._punctuation).getRegex(),et.emStrong.rDelimAst=$e(et.emStrong.rDelimAst,"g").replace(/punct/g,et._punctuation).getRegex(),et.emStrong.rDelimUnd=$e(et.emStrong.rDelimUnd,"g").replace(/punct/g,et._punctuation).getRegex(),et._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,et._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,et._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])?)+(?![-_])/,et.autolink=$e(et.autolink).replace("scheme",et._scheme).replace("email",et._email).getRegex(),et._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,et.tag=$e(et.tag).replace("comment",et._comment).replace("attribute",et._attribute).getRegex(),et._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,et._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,et._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,et.link=$e(et.link).replace("label",et._label).replace("href",et._href).replace("title",et._title).getRegex(),et.reflink=$e(et.reflink).replace("label",et._label).getRegex(),et.reflinkSearch=$e(et.reflinkSearch,"g").replace("reflink",et.reflink).replace("nolink",et.nolink).getRegex(),et.normal=Je({},et),et.pedantic=Je({},et.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:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",et._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",et._label).getRegex()}),et.gfm=Je({},et.normal,{escape:$e(et.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),et.gfm.url=$e(et.gfm.url,"i").replace("email",et.gfm._extended_email).getRegex(),et.breaks=Je({},et.gfm,{br:$e(et.br).replace("{2,}","*").getRegex(),text:$e(et.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var St={block:Qe,inline:et},Et=Ee,Bt=Le.exports.defaults,ht=St.block,Rt=St.inline,It=R.repeatString;function le(Be){return Be.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 ve(Be){var He="",Ve,re,me=Be.length;for(Ve=0;Ve<me;Ve++)re=Be.charCodeAt(Ve),Math.random()>.5&&(re="x"+re.toString(16)),He+="&#"+re+";";return He}var N=function(){function Be(Ve){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ve||Bt,this.options.tokenizer=this.options.tokenizer||new Et,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var re={block:ht.normal,inline:Rt.normal};this.options.pedantic?(re.block=ht.pedantic,re.inline=Rt.pedantic):this.options.gfm&&(re.block=ht.gfm,this.options.breaks?re.inline=Rt.breaks:re.inline=Rt.gfm),this.tokenizer.rules=re}Be.lex=function(re,me){var Me=new Be(me);return Me.lex(re)},Be.lexInline=function(re,me){var Me=new Be(me);return Me.inlineTokens(re)};var He=Be.prototype;return He.lex=function(re){return re=re.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(re,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(re,me,Me){me===void 0&&(me=[]),Me===void 0&&(Me=!0),this.options.pedantic&&(re=re.replace(/^ +$/gm,""));for(var Ue,Y,Ft,Oe;re;){if(Ue=this.tokenizer.space(re)){re=re.substring(Ue.raw.length),Ue.type&&me.push(Ue);continue}if(Ue=this.tokenizer.code(re)){re=re.substring(Ue.raw.length),Oe=me[me.length-1],Oe&&Oe.type==="paragraph"?(Oe.raw+=`
`+Ue.raw,Oe.text+=`
`+Ue.text):me.push(Ue);continue}if(Ue=this.tokenizer.fences(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Ue=this.tokenizer.heading(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Ue=this.tokenizer.nptable(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Ue=this.tokenizer.hr(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Ue=this.tokenizer.blockquote(re)){re=re.substring(Ue.raw.length),Ue.tokens=this.blockTokens(Ue.text,[],Me),me.push(Ue);continue}if(Ue=this.tokenizer.list(re)){for(re=re.substring(Ue.raw.length),Ft=Ue.items.length,Y=0;Y<Ft;Y++)Ue.items[Y].tokens=this.blockTokens(Ue.items[Y].text,[],!1);me.push(Ue);continue}if(Ue=this.tokenizer.html(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Me&&(Ue=this.tokenizer.def(re))){re=re.substring(Ue.raw.length),this.tokens.links[Ue.tag]||(this.tokens.links[Ue.tag]={href:Ue.href,title:Ue.title});continue}if(Ue=this.tokenizer.table(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Ue=this.tokenizer.lheading(re)){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Me&&(Ue=this.tokenizer.paragraph(re))){re=re.substring(Ue.raw.length),me.push(Ue);continue}if(Ue=this.tokenizer.text(re)){re=re.substring(Ue.raw.length),Oe=me[me.length-1],Oe&&Oe.type==="text"?(Oe.raw+=`
`+Ue.raw,Oe.text+=`
`+Ue.text):me.push(Ue);continue}if(re){var Wt="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(Wt);break}else throw new Error(Wt)}}return me},He.inline=function(re){var me,Me,Ue,Y,Ft,Oe,Wt=re.length;for(me=0;me<Wt;me++)switch(Oe=re[me],Oe.type){case"paragraph":case"text":case"heading":{Oe.tokens=[],this.inlineTokens(Oe.text,Oe.tokens);break}case"table":{for(Oe.tokens={header:[],cells:[]},Y=Oe.header.length,Me=0;Me<Y;Me++)Oe.tokens.header[Me]=[],this.inlineTokens(Oe.header[Me],Oe.tokens.header[Me]);for(Y=Oe.cells.length,Me=0;Me<Y;Me++)for(Ft=Oe.cells[Me],Oe.tokens.cells[Me]=[],Ue=0;Ue<Ft.length;Ue++)Oe.tokens.cells[Me][Ue]=[],this.inlineTokens(Ft[Ue],Oe.tokens.cells[Me][Ue]);break}case"blockquote":{this.inline(Oe.tokens);break}case"list":{for(Y=Oe.items.length,Me=0;Me<Y;Me++)this.inline(Oe.items[Me].tokens);break}}return re},He.inlineTokens=function(re,me,Me,Ue){me===void 0&&(me=[]),Me===void 0&&(Me=!1),Ue===void 0&&(Ue=!1);var Y,Ft,Oe=re,Wt,ir,bt;if(this.tokens.links){var kt=Object.keys(this.tokens.links);if(kt.length>0)for(;(Wt=this.tokenizer.rules.inline.reflinkSearch.exec(Oe))!=null;)kt.includes(Wt[0].slice(Wt[0].lastIndexOf("[")+1,-1))&&(Oe=Oe.slice(0,Wt.index)+"["+It("a",Wt[0].length-2)+"]"+Oe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Wt=this.tokenizer.rules.inline.blockSkip.exec(Oe))!=null;)Oe=Oe.slice(0,Wt.index)+"["+It("a",Wt[0].length-2)+"]"+Oe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Wt=this.tokenizer.rules.inline.escapedEmSt.exec(Oe))!=null;)Oe=Oe.slice(0,Wt.index)+"++"+Oe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;re;){if(ir||(bt=""),ir=!1,Y=this.tokenizer.escape(re)){re=re.substring(Y.raw.length),me.push(Y);continue}if(Y=this.tokenizer.tag(re,Me,Ue)){re=re.substring(Y.raw.length),Me=Y.inLink,Ue=Y.inRawBlock;var lt=me[me.length-1];lt&&Y.type==="text"&&lt.type==="text"?(lt.raw+=Y.raw,lt.text+=Y.text):me.push(Y);continue}if(Y=this.tokenizer.link(re)){re=re.substring(Y.raw.length),Y.type==="link"&&(Y.tokens=this.inlineTokens(Y.text,[],!0,Ue)),me.push(Y);continue}if(Y=this.tokenizer.reflink(re,this.tokens.links)){re=re.substring(Y.raw.length);var pt=me[me.length-1];Y.type==="link"?(Y.tokens=this.inlineTokens(Y.text,[],!0,Ue),me.push(Y)):pt&&Y.type==="text"&&pt.type==="text"?(pt.raw+=Y.raw,pt.text+=Y.text):me.push(Y);continue}if(Y=this.tokenizer.emStrong(re,Oe,bt)){re=re.substring(Y.raw.length),Y.tokens=this.inlineTokens(Y.text,[],Me,Ue),me.push(Y);continue}if(Y=this.tokenizer.codespan(re)){re=re.substring(Y.raw.length),me.push(Y);continue}if(Y=this.tokenizer.br(re)){re=re.substring(Y.raw.length),me.push(Y);continue}if(Y=this.tokenizer.del(re)){re=re.substring(Y.raw.length),Y.tokens=this.inlineTokens(Y.text,[],Me,Ue),me.push(Y);continue}if(Y=this.tokenizer.autolink(re,ve)){re=re.substring(Y.raw.length),me.push(Y);continue}if(!Me&&(Y=this.tokenizer.url(re,ve))){re=re.substring(Y.raw.length),me.push(Y);continue}if(Y=this.tokenizer.inlineText(re,Ue,le)){re=re.substring(Y.raw.length),Y.raw.slice(-1)!=="_"&&(bt=Y.raw.slice(-1)),ir=!0,Ft=me[me.length-1],Ft&&Ft.type==="text"?(Ft.raw+=Y.raw,Ft.text+=Y.text):me.push(Y);continue}if(re){var tr="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(tr);break}else throw new Error(tr)}}return me},y(Be,null,[{key:"rules",get:function(){return{block:ht,inline:Rt}}}]),Be}(),ce=Le.exports.defaults,Ae=R.cleanUrl,L=R.escape,ee=function(){function Be(Ve){this.options=Ve||ce}var He=Be.prototype;return He.code=function(re,me,Me){var Ue=(me||"").match(/\S*/)[0];if(this.options.highlight){var Y=this.options.highlight(re,Ue);Y!=null&&Y!==re&&(Me=!0,re=Y)}return re=re.replace(/\n$/,"")+`
`,Ue?'<pre><code class="'+this.options.langPrefix+L(Ue,!0)+'">'+(Me?re:L(re,!0))+`</code></pre>
`:"<pre><code>"+(Me?re:L(re,!0))+`</code></pre>
`},He.blockquote=function(re){return`<blockquote>
`+re+`</blockquote>
`},He.html=function(re){return re},He.heading=function(re,me,Me,Ue){return this.options.headerIds?"<h"+me+' id="'+this.options.headerPrefix+Ue.slug(Me)+'">'+re+"</h"+me+`>
`:"<h"+me+">"+re+"</h"+me+`>
`},He.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},He.list=function(re,me,Me){var Ue=me?"ol":"ul",Y=me&&Me!==1?' start="'+Me+'"':"";return"<"+Ue+Y+`>
`+re+"</"+Ue+`>
`},He.listitem=function(re){return"<li>"+re+`</li>
`},He.checkbox=function(re){return"<input "+(re?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(re){return"<p>"+re+`</p>
`},He.table=function(re,me){return me&&(me="<tbody>"+me+"</tbody>"),`<table>
<thead>
`+re+`</thead>
`+me+`</table>
`},He.tablerow=function(re){return`<tr>
`+re+`</tr>
`},He.tablecell=function(re,me){var Me=me.header?"th":"td",Ue=me.align?"<"+Me+' align="'+me.align+'">':"<"+Me+">";return Ue+re+"</"+Me+`>
`},He.strong=function(re){return"<strong>"+re+"</strong>"},He.em=function(re){return"<em>"+re+"</em>"},He.codespan=function(re){return"<code>"+re+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(re){return"<del>"+re+"</del>"},He.link=function(re,me,Me){if(re=Ae(this.options.sanitize,this.options.baseUrl,re),re===null)return Me;var Ue='<a href="'+L(re)+'"';return me&&(Ue+=' title="'+me+'"'),Ue+=">"+Me+"</a>",Ue},He.image=function(re,me,Me){if(re=Ae(this.options.sanitize,this.options.baseUrl,re),re===null)return Me;var Ue='<img src="'+re+'" alt="'+Me+'"';return me&&(Ue+=' title="'+me+'"'),Ue+=this.options.xhtml?"/>":">",Ue},He.text=function(re){return re},Be}(),ue=function(){function Be(){}var He=Be.prototype;return He.strong=function(re){return re},He.em=function(re){return re},He.codespan=function(re){return re},He.del=function(re){return re},He.html=function(re){return re},He.text=function(re){return re},He.link=function(re,me,Me){return""+Me},He.image=function(re,me,Me){return""+Me},He.br=function(){return""},Be}(),_e=function(){function Be(){this.seen={}}var He=Be.prototype;return He.serialize=function(re){return re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},He.getNextSafeSlug=function(re,me){var Me=re,Ue=0;if(this.seen.hasOwnProperty(Me)){Ue=this.seen[re];do Ue++,Me=re+"-"+Ue;while(this.seen.hasOwnProperty(Me))}return me||(this.seen[re]=Ue,this.seen[Me]=0),Me},He.slug=function(re,me){me===void 0&&(me={});var Me=this.serialize(re);return this.getNextSafeSlug(Me,me.dryrun)},Be}(),ke=ee,Pe=ue,We=_e,rt=Le.exports.defaults,Ze=R.unescape,Ge=function(){function Be(Ve){this.options=Ve||rt,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Pe,this.slugger=new We}Be.parse=function(re,me){var Me=new Be(me);return Me.parse(re)},Be.parseInline=function(re,me){var Me=new Be(me);return Me.parseInline(re)};var He=Be.prototype;return He.parse=function(re,me){me===void 0&&(me=!0);var Me="",Ue,Y,Ft,Oe,Wt,ir,bt,kt,lt,pt,tr,pe,Ce,it,Ke,st,ft,wt,Xt=re.length;for(Ue=0;Ue<Xt;Ue++)switch(pt=re[Ue],pt.type){case"space":continue;case"hr":{Me+=this.renderer.hr();continue}case"heading":{Me+=this.renderer.heading(this.parseInline(pt.tokens),pt.depth,Ze(this.parseInline(pt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Me+=this.renderer.code(pt.text,pt.lang,pt.escaped);continue}case"table":{for(kt="",bt="",Oe=pt.header.length,Y=0;Y<Oe;Y++)bt+=this.renderer.tablecell(this.parseInline(pt.tokens.header[Y]),{header:!0,align:pt.align[Y]});for(kt+=this.renderer.tablerow(bt),lt="",Oe=pt.cells.length,Y=0;Y<Oe;Y++){for(ir=pt.tokens.cells[Y],bt="",Wt=ir.length,Ft=0;Ft<Wt;Ft++)bt+=this.renderer.tablecell(this.parseInline(ir[Ft]),{header:!1,align:pt.align[Ft]});lt+=this.renderer.tablerow(bt)}Me+=this.renderer.table(kt,lt);continue}case"blockquote":{lt=this.parse(pt.tokens),Me+=this.renderer.blockquote(lt);continue}case"list":{for(tr=pt.ordered,pe=pt.start,Ce=pt.loose,Oe=pt.items.length,lt="",Y=0;Y<Oe;Y++)Ke=pt.items[Y],st=Ke.checked,ft=Ke.task,it="",Ke.task&&(wt=this.renderer.checkbox(st),Ce?Ke.tokens.length>0&&Ke.tokens[0].type==="text"?(Ke.tokens[0].text=wt+" "+Ke.tokens[0].text,Ke.tokens[0].tokens&&Ke.tokens[0].tokens.length>0&&Ke.tokens[0].tokens[0].type==="text"&&(Ke.tokens[0].tokens[0].text=wt+" "+Ke.tokens[0].tokens[0].text)):Ke.tokens.unshift({type:"text",text:wt}):it+=wt),it+=this.parse(Ke.tokens,Ce),lt+=this.renderer.listitem(it,ft,st);Me+=this.renderer.list(lt,tr,pe);continue}case"html":{Me+=this.renderer.html(pt.text);continue}case"paragraph":{Me+=this.renderer.paragraph(this.parseInline(pt.tokens));continue}case"text":{for(lt=pt.tokens?this.parseInline(pt.tokens):pt.text;Ue+1<Xt&&re[Ue+1].type==="text";)pt=re[++Ue],lt+=`
`+(pt.tokens?this.parseInline(pt.tokens):pt.text);Me+=me?this.renderer.paragraph(lt):lt;continue}default:{var ar='Token with "'+pt.type+'" type was not found.';if(this.options.silent){console.error(ar);return}else throw new Error(ar)}}return Me},He.parseInline=function(re,me){me=me||this.renderer;var Me="",Ue,Y,Ft=re.length;for(Ue=0;Ue<Ft;Ue++)switch(Y=re[Ue],Y.type){case"escape":{Me+=me.text(Y.text);break}case"html":{Me+=me.html(Y.text);break}case"link":{Me+=me.link(Y.href,Y.title,this.parseInline(Y.tokens,me));break}case"image":{Me+=me.image(Y.href,Y.title,Y.text);break}case"strong":{Me+=me.strong(this.parseInline(Y.tokens,me));break}case"em":{Me+=me.em(this.parseInline(Y.tokens,me));break}case"codespan":{Me+=me.codespan(Y.text);break}case"br":{Me+=me.br();break}case"del":{Me+=me.del(this.parseInline(Y.tokens,me));break}case"text":{Me+=me.text(Y.text);break}default:{var Oe='Token with "'+Y.type+'" type was not found.';if(this.options.silent){console.error(Oe);return}else throw new Error(Oe)}}return Me},Be}(),mt=N,At=Ge,_t=Ee,Lt=ee,Ht=ue,Pt=_e,Yt=R.merge,$t=R.checkSanitizeDeprecation,S=R.escape,C=Le.exports.getDefaults,ot=Le.exports.changeDefaults,Q=Le.exports.defaults;function Re(Be,He,Ve){if(typeof Be=="undefined"||Be===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Be!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Be)+", string expected");if(typeof He=="function"&&(Ve=He,He=null),He=Yt({},Re.defaults,He||{}),$t(He),Ve){var re=He.highlight,me;try{me=mt.lex(Be,He)}catch(Ft){return Ve(Ft)}var Me=function(Oe){var Wt;if(!Oe)try{He.walkTokens&&Re.walkTokens(me,He.walkTokens),Wt=At.parse(me,He)}catch(ir){Oe=ir}return He.highlight=re,Oe?Ve(Oe):Ve(null,Wt)};if(!re||re.length<3||(delete He.highlight,!me.length))return Me();var Ue=0;Re.walkTokens(me,function(Ft){Ft.type==="code"&&(Ue++,setTimeout(function(){re(Ft.text,Ft.lang,function(Oe,Wt){if(Oe)return Me(Oe);Wt!=null&&Wt!==Ft.text&&(Ft.text=Wt,Ft.escaped=!0),Ue--,Ue===0&&Me()})},0))}),Ue===0&&Me();return}try{var Y=mt.lex(Be,He);return He.walkTokens&&Re.walkTokens(Y,He.walkTokens),At.parse(Y,He)}catch(Ft){if(Ft.message+=`
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+S(Ft.message+"",!0)+"</pre>";throw Ft}}Re.options=Re.setOptions=function(Be){return Yt(Re.defaults,Be),ot(Re.defaults),Re},Re.getDefaults=C,Re.defaults=Q,Re.use=function(Be){var He=Yt({},Be);if(Be.renderer&&function(){var re=Re.defaults.renderer||new Lt,me=function(Y){var Ft=re[Y];re[Y]=function(){for(var Oe=arguments.length,Wt=new Array(Oe),ir=0;ir<Oe;ir++)Wt[ir]=arguments[ir];var bt=Be.renderer[Y].apply(re,Wt);return bt===!1&&(bt=Ft.apply(re,Wt)),bt}};for(var Me in Be.renderer)me(Me);He.renderer=re}(),Be.tokenizer&&function(){var re=Re.defaults.tokenizer||new _t,me=function(Y){var Ft=re[Y];re[Y]=function(){for(var Oe=arguments.length,Wt=new Array(Oe),ir=0;ir<Oe;ir++)Wt[ir]=arguments[ir];var bt=Be.tokenizer[Y].apply(re,Wt);return bt===!1&&(bt=Ft.apply(re,Wt)),bt}};for(var Me in Be.tokenizer)me(Me);He.tokenizer=re}(),Be.walkTokens){var Ve=Re.defaults.walkTokens;He.walkTokens=function(re){Be.walkTokens(re),Ve&&Ve(re)}}Re.setOptions(He)},Re.walkTokens=function(Be,He){for(var Ve=ye(Be),re;!(re=Ve()).done;){var me=re.value;switch(He(me),me.type){case"table":{for(var Me=ye(me.tokens.header),Ue;!(Ue=Me()).done;){var Y=Ue.value;Re.walkTokens(Y,He)}for(var Ft=ye(me.tokens.cells),Oe;!(Oe=Ft()).done;)for(var Wt=Oe.value,ir=ye(Wt),bt;!(bt=ir()).done;){var kt=bt.value;Re.walkTokens(kt,He)}break}case"list":{Re.walkTokens(me.items,He);break}default:me.tokens&&Re.walkTokens(me.tokens,He)}}},Re.parseInline=function(Be,He){if(typeof Be=="undefined"||Be===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Be!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Be)+", string expected");He=Yt({},Re.defaults,He||{}),$t(He);try{var Ve=mt.lexInline(Be,He);return He.walkTokens&&Re.walkTokens(Ve,He.walkTokens),At.parseInline(Ve,He)}catch(re){if(re.message+=`
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+S(re.message+"",!0)+"</pre>";throw re}},Re.Parser=At,Re.parser=At.parse,Re.Renderer=Lt,Re.TextRenderer=Ht,Re.Lexer=mt,Re.lexer=mt.lex,Re.Tokenizer=_t,Re.Slugger=Pt,Re.parse=Re;var pr=Re;return pr})},11690:function(Ut){const qe=/[&<>"']/,y=/[&<>"']/g,A=/[<>"']|&(?!#?\w+;)/,J=/[<>"']|&(?!#?\w+;)/g,ye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Le=q=>ye[q];function oe(q,ge){if(ge){if(qe.test(q))return q.replace(y,Le)}else if(A.test(q))return q.replace(J,Le);return q}const X=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function fe(q){return q.replace(X,(ge,Te)=>(Te=Te.toLowerCase(),Te==="colon"?":":Te.charAt(0)==="#"?Te.charAt(1)==="x"?String.fromCharCode(parseInt(Te.substring(2),16)):String.fromCharCode(+Te.substring(1)):""))}const he=/(^|[^\[])\^/g;function o(q,ge){q=q.source||q,ge=ge||"";const Te={replace:(Se,Fe)=>(Fe=Fe.source||Fe,Fe=Fe.replace(he,"$1"),q=q.replace(Se,Fe),Te),getRegex:()=>new RegExp(q,ge)};return Te}const V=/[^\w:]/g,F=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(q,ge,Te){if(q){let Se;try{Se=decodeURIComponent(fe(Te)).replace(V,"").toLowerCase()}catch(Fe){return null}if(Se.indexOf("javascript:")===0||Se.indexOf("vbscript:")===0||Se.indexOf("data:")===0)return null}ge&&!F.test(Te)&&(Te=te(ge,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(Se){return null}return Te}const c={},w=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,z=/^([^:]+:\/*[^/]*)[\s\S]*$/;function te(q,ge){c[" "+q]||(w.test(q)?c[" "+q]=q+"/":c[" "+q]=ae(q,"/",!0)),q=c[" "+q];const Te=q.indexOf(":")===-1;return ge.substring(0,2)==="//"?Te?ge:q.replace(b,"$1")+ge:ge.charAt(0)==="/"?Te?ge:q.replace(z,"$1")+ge:q+ge}const k={exec:function(){}};function P(q){let ge=1,Te,Se;for(;ge<arguments.length;ge++){Te=arguments[ge];for(Se in Te)Object.prototype.hasOwnProperty.call(Te,Se)&&(q[Se]=Te[Se])}return q}function H(q,ge){const Te=q.replace(/\|/g,(G,I,$)=>{let R=!1,Z=I;for(;--Z>=0&&$[Z]==="\\";)R=!R;return R?"|":" |"}),Se=Te.split(/ \|/);let Fe=0;if(Se.length>ge)Se.splice(ge);else for(;Se.length<ge;)Se.push("");for(;Fe<Se.length;Fe++)Se[Fe]=Se[Fe].trim().replace(/\\\|/g,"|");return Se}function ae(q,ge,Te){const Se=q.length;if(Se===0)return"";let Fe=0;for(;Fe<Se;){const G=q.charAt(Se-Fe-1);if(G===ge&&!Te)Fe++;else if(G!==ge&&Te)Fe++;else break}return q.substr(0,Se-Fe)}function E(q,ge){if(q.indexOf(ge[1])===-1)return-1;const Te=q.length;let Se=0,Fe=0;for(;Fe<Te;Fe++)if(q[Fe]==="\\")Fe++;else if(q[Fe]===ge[0])Se++;else if(q[Fe]===ge[1]&&(Se--,Se<0))return Fe;return-1}function W(q){q&&q.sanitize&&!q.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 ne(q,ge){if(ge<1)return"";let Te="";for(;ge>1;)ge&1&&(Te+=q),ge>>=1,q+=q;return Te+q}Ut.exports={escape:oe,unescape:fe,edit:o,cleanUrl:g,resolveUrl:te,noopTest:k,merge:P,splitCells:H,rtrim:ae,findClosingBracket:E,checkSanitizeDeprecation:W,repeatString:ne}},75918:function(Ut,qe,y){"use strict";y.d(qe,{Wi:function(){return X},Z0:function(){return fe},aU:function(){return oe},eZ:function(){return o},wY:function(){return he}});var A=y(4348),J=y(69323),ye=y(13268),Le=function(V,F,g,c){function w(b){return b instanceof g?b:new g(function(z){z(b)})}return new(g||(g=Promise))(function(b,z){function te(H){try{P(c.next(H))}catch(ae){z(ae)}}function k(H){try{P(c.throw(H))}catch(ae){z(ae)}}function P(H){H.done?b(H.value):w(H.value).then(te,k)}P((c=c.apply(V,F||[])).next())})};class oe extends J.JT{constructor(F,g="",c="",w=!0,b){super(),this._onDidChange=this._register(new A.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=F,this._label=g,this._cssClass=c,this._enabled=w,this._actionCallback=b}get id(){return this._id}get label(){return this._label}set label(F){this._setLabel(F)}_setLabel(F){this._label!==F&&(this._label=F,this._onDidChange.fire({label:F}))}get tooltip(){return this._tooltip||""}set tooltip(F){this._setTooltip(F)}_setTooltip(F){this._tooltip!==F&&(this._tooltip=F,this._onDidChange.fire({tooltip:F}))}get class(){return this._cssClass}set class(F){this._setClass(F)}_setClass(F){this._cssClass!==F&&(this._cssClass=F,this._onDidChange.fire({class:F}))}get enabled(){return this._enabled}set enabled(F){this._setEnabled(F)}_setEnabled(F){this._enabled!==F&&(this._enabled=F,this._onDidChange.fire({enabled:F}))}get checked(){return this._checked}set checked(F){this._setChecked(F)}_setChecked(F){this._checked!==F&&(this._checked=F,this._onDidChange.fire({checked:F}))}run(F,g){return Le(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(F))})}}class X extends J.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new A.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new A.Q5),this.onDidRun=this._onDidRun.event}run(F,g){return Le(this,void 0,void 0,function*(){if(!F.enabled)return;this._onBeforeRun.fire({action:F});let c;try{yield this.runAction(F,g)}catch(w){c=w}this._onDidRun.fire({action:F,error:c})})}runAction(F,g){return Le(this,void 0,void 0,function*(){yield F.run(g)})}}class fe extends oe{constructor(F){super(fe.ID,F,F?"separator text":"separator"),this.checked=!1,this.enabled=!1}}fe.ID="vs.actions.separator";class he{constructor(F,g,c,w){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=F,this.label=g,this.class=w,this._actions=c}get actions(){return this._actions}dispose(){}run(){return Le(this,void 0,void 0,function*(){})}}class o extends oe{constructor(){super(o.ID,ye.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Ut,qe,y){"use strict";y.d(qe,{ok:function(){return A}});function A(J,ye){if(!J)throw new Error(ye?`Assertion failed (${ye})`:"Assertion Failed")}},52615:function(Ut,qe,y){"use strict";y.d(qe,{CM:function(){return oe},JL:function(){return X},dT:function(){return he},fK:function(){return Le},lA:function(){return fe}});var A=y(4348);class J{constructor(){this._icons=new Map,this._onDidRegister=new A.Q5}add(V){const F=this._icons.get(V.id);F?V.description?F.description=V.description:console.error(`Duplicate registration of codicon ${V.id}`):(this._icons.set(V.id,V),this._onDidRegister.fire(V))}get(V){return this._icons.get(V)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ye=new J,Le=ye;function oe(o,V){return new fe(o,V)}function X(o){return o?o.replace(/\$\((.*?)\)/g,(V,F)=>` ${F} `).trim():""}class fe{constructor(V,F,g){this.id=V,this.definition=F,this.description=g,ye.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var he;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const V=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function F(w){if(w instanceof fe)return["codicon","codicon-"+w.id];const b=V.exec(w.id);if(!b)return F(fe.error);let[,z,te]=b;const k=["codicon","codicon-"+z];return te&&k.push("codicon-modifier-"+te.substr(1)),k}o.asClassNameArray=F;function g(w){return F(w).join(" ")}o.asClassName=g;function c(w){return"."+F(w).join(".")}o.asCSSSelector=c})(he||(he={})),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"})}(fe||(fe={}))},79881:function(Ut,qe,y){"use strict";y.d(qe,{B8:function(){return F},Cp:function(){return Le},F0:function(){return he},L6:function(){return V},VV:function(){return fe},b1:function(){return o},dL:function(){return ye},ri:function(){return oe}});class A{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
`+c.stack):c},0)}}emit(c){this.listeners.forEach(w=>{w(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const J=new A;function ye(g){fe(g)||J.onUnexpectedError(g)}function Le(g){fe(g)||J.onUnexpectedExternalError(g)}function oe(g){if(g instanceof Error){let{name:c,message:w}=g;const b=g.stacktrace||g.stack;return{$isError:!0,name:c,message:w,stack:b}}return g}const X="Canceled";function fe(g){return g instanceof Error&&g.name===X&&g.message===X}function he(){const g=new Error(X);return g.name=g.message,g}function o(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}function V(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}class F extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}},4348:function(Ut,qe,y){"use strict";y.d(qe,{D0:function(){return F},E7:function(){return g},K3:function(){return V},Q5:function(){return o},ZD:function(){return c},ju:function(){return oe}});var A=y(79881),J=y(69323),ye=y(34502),Le=y(95830),oe;(function(w){w.None=()=>J.JT.None;function b($){return(R,Z=null,B)=>{let m=!1,_;return _=$(O=>{if(!m)return _?_.dispose():m=!0,R.call(Z,O)},null,B),m&&_.dispose(),_}}w.once=b;function z($,R){return E((Z,B=null,m)=>$(_=>Z.call(B,R(_)),null,m))}w.map=z;function te($,R){return E((Z,B=null,m)=>$(_=>{R(_),Z.call(B,_)},null,m))}w.forEach=te;function k($,R){return E((Z,B=null,m)=>$(_=>R(_)&&Z.call(B,_),null,m))}w.filter=k;function P($){return $}w.signal=P;function H(...$){return(R,Z=null,B)=>(0,J.F8)(...$.map(m=>m(_=>R.call(Z,_),null,B)))}w.any=H;function ae($,R,Z){let B=Z;return z($,m=>(B=R(B,m),B))}w.reduce=ae;function E($){let R;const Z=new o({onFirstListenerAdd(){R=$(Z.fire,Z)},onLastListenerRemove(){R.dispose()}});return Z.event}function W($,R,Z=100,B=!1,m){let _,O,M,we=0;const Ee=new o({leakWarningThreshold:m,onFirstListenerAdd(){_=$(De=>{we++,O=R(O,De),B&&!M&&(Ee.fire(O),O=void 0),clearTimeout(M),M=setTimeout(()=>{const $e=O;O=void 0,M=void 0,(!B||we>1)&&Ee.fire($e),we=0},Z)})},onLastListenerRemove(){_.dispose()}});return Ee.event}w.debounce=W;function ne($,R=(Z,B)=>Z===B){let Z=!0,B;return k($,m=>{const _=Z||!R(m,B);return Z=!1,B=m,_})}w.latch=ne;function q($,R){return[w.filter($,R),w.filter($,Z=>!R(Z))]}w.split=q;function ge($,R=!1,Z=[]){let B=Z.slice(),m=$(M=>{B?B.push(M):O.fire(M)});const _=()=>{B&&B.forEach(M=>O.fire(M)),B=null},O=new o({onFirstListenerAdd(){m||(m=$(M=>O.fire(M)))},onFirstListenerDidAdd(){B&&(R?setTimeout(_):_())},onLastListenerRemove(){m&&m.dispose(),m=null}});return O.event}w.buffer=ge;class Te{constructor(R){this.event=R}map(R){return new Te(z(this.event,R))}forEach(R){return new Te(te(this.event,R))}filter(R){return new Te(k(this.event,R))}reduce(R,Z){return new Te(ae(this.event,R,Z))}latch(){return new Te(ne(this.event))}debounce(R,Z=100,B=!1,m){return new Te(W(this.event,R,Z,B,m))}on(R,Z,B){return this.event(R,Z,B)}once(R,Z,B){return b(this.event)(R,Z,B)}}function Se($){return new Te($)}w.chain=Se;function Fe($,R,Z=B=>B){const B=(...M)=>O.fire(Z(...M)),m=()=>$.on(R,B),_=()=>$.removeListener(R,B),O=new o({onFirstListenerAdd:m,onLastListenerRemove:_});return O.event}w.fromNodeEventEmitter=Fe;function G($,R,Z=B=>B){const B=(...M)=>O.fire(Z(...M)),m=()=>$.addEventListener(R,B),_=()=>$.removeEventListener(R,B),O=new o({onFirstListenerAdd:m,onLastListenerRemove:_});return O.event}w.fromDOMEventEmitter=G;function I($){return new Promise(R=>b($)(R))}w.toPromise=I})(oe||(oe={}));class X{constructor(b){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${b}_${X._idPool++}`}start(b){this._stopWatch=new Le.G(!0),this._listenerCount=b}stop(){if(this._stopWatch){const b=this._stopWatch.elapsed();this._elapsedOverall+=b,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${b.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}X._idPool=0;let fe=-1;class he{constructor(b,z=Math.random().toString(18).slice(2,5)){this.customThreshold=b,this.name=z,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(b){let z=fe;if(typeof this.customThreshold=="number"&&(z=this.customThreshold),z<=0||b<z)return;this._stacks||(this._stacks=new Map);const te=new Error().stack.split(`
`).slice(3).join(`
`),k=this._stacks.get(te)||0;if(this._stacks.set(te,k+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=z*.5;let P,H=0;for(const[ae,E]of this._stacks)(!P||H<E)&&(P=ae,H=E);console.warn(`[${this.name}] potential listener LEAK detected, having ${b} listeners already. MOST frequent listener (${H}):`),console.warn(P)}return()=>{const P=this._stacks.get(te)||0;this._stacks.set(te,P-1)}}}class o{constructor(b){var z;this._disposed=!1,this._options=b,this._leakageMon=fe>0?new he(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((z=this._options)===null||z===void 0)&&z._profName?new X(this._options._profName):void 0}get event(){return this._event||(this._event=(b,z,te)=>{var k;this._listeners||(this._listeners=new ye.S);const P=this._listeners.isEmpty();P&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const H=this._listeners.push(z?[b,z]:b);P&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,b,z);const ae=(k=this._leakageMon)===null||k===void 0?void 0:k.check(this._listeners.size),E=(0,J.OF)(()=>{ae&&ae(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return te instanceof J.SL?te.add(E):Array.isArray(te)&&te.push(E),E}),this._event}fire(b){var z,te;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ye.S);for(let k of this._listeners)this._deliveryQueue.push([k,b]);for((z=this._perfMon)===null||z===void 0||z.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[k,P]=this._deliveryQueue.shift();try{typeof k=="function"?k.call(void 0,P):k[0].call(k[1],P)}catch(H){(0,A.dL)(H)}}(te=this._perfMon)===null||te===void 0||te.stop()}}dispose(){var b,z,te,k,P;this._disposed||(this._disposed=!0,(b=this._listeners)===null||b===void 0||b.clear(),(z=this._deliveryQueue)===null||z===void 0||z.clear(),(k=(te=this._options)===null||te===void 0?void 0:te.onLastListenerRemove)===null||k===void 0||k.call(te),(P=this._leakageMon)===null||P===void 0||P.dispose())}}class V extends o{constructor(b){super(b),this._isPaused=0,this._eventQueue=new ye.S,this._mergeFn=b==null?void 0:b.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const b=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(b))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(b){this._listeners&&(this._isPaused!==0?this._eventQueue.push(b):super.fire(b))}}class F extends V{constructor(b){var z;super(b),this._delay=(z=b.delay)!==null&&z!==void 0?z:100}fire(b){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(b)}}class g{constructor(){this.buffers=[]}wrapEvent(b){return(z,te,k)=>b(P=>{const H=this.buffers[this.buffers.length-1];H?H.push(()=>z.call(te,P)):z.call(te,P)},void 0,k)}bufferEvents(b){const z=[];this.buffers.push(z);const te=b();return this.buffers.pop(),z.forEach(k=>k()),te}}class c{constructor(){this.listening=!1,this.inputEvent=oe.None,this.inputEventListener=J.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(b){this.inputEvent=b,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=b(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Ut,qe,y){"use strict";y.d(qe,{I:function(){return A}});function A(J){const ye=this;let Le=!1,oe;return function(){return Le||(Le=!0,oe=J.apply(ye,arguments)),oe}}},88226:function(Ut,qe,y){"use strict";y.d(qe,{$:function(){return A}});var A;(function(J){function ye(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"}J.is=ye;const Le=Object.freeze([]);function oe(){return Le}J.empty=oe;function*X(H){yield H}J.single=X;function fe(H){return H||Le}J.from=fe;function he(H){return!H||H[Symbol.iterator]().next().done===!0}J.isEmpty=he;function o(H){return H[Symbol.iterator]().next().value}J.first=o;function V(H,ae){for(const E of H)if(ae(E))return!0;return!1}J.some=V;function F(H,ae){for(const E of H)if(ae(E))return E}J.find=F;function*g(H,ae){for(const E of H)ae(E)&&(yield E)}J.filter=g;function*c(H,ae){let E=0;for(const W of H)yield ae(W,E++)}J.map=c;function*w(...H){for(const ae of H)for(const E of ae)yield E}J.concat=w;function*b(H){for(const ae of H)for(const E of ae)yield E}J.concatNested=b;function z(H,ae,E){let W=E;for(const ne of H)W=ae(W,ne);return W}J.reduce=z;function*te(H,ae,E=H.length){for(ae<0&&(ae+=H.length),E<0?E+=H.length:E>H.length&&(E=H.length);ae<E;ae++)yield H[ae]}J.slice=te;function k(H,ae=Number.POSITIVE_INFINITY){const E=[];if(ae===0)return[E,H];const W=H[Symbol.iterator]();for(let ne=0;ne<ae;ne++){const q=W.next();if(q.done)return[E,J.empty()];E.push(q.value)}return[E,{[Symbol.iterator](){return W}}]}J.consume=k;function P(H,ae,E=(W,ne)=>W===ne){const W=H[Symbol.iterator](),ne=ae[Symbol.iterator]();for(;;){const q=W.next(),ge=ne.next();if(q.done!==ge.done)return!1;if(q.done)return!0;if(!E(q.value,ge.value))return!1}}J.equals=P})(A||(A={}))},69323:function(Ut,qe,y){"use strict";y.d(qe,{B9:function(){return c},F8:function(){return w},JT:function(){return te},Jz:function(){return P},OF:function(){return b},SL:function(){return z},Wf:function(){return g},XK:function(){return k},dk:function(){return V}});var A=y(17845),J=y(88226);const ye=!1;let Le=null;function oe(H){Le=H}if(ye){const H="__is_disposable_tracked__";oe(new class{trackDisposable(ae){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ae[H]||console.log(E)},3e3)}setParent(ae,E){if(ae&&ae!==te.None)try{ae[H]=!0}catch(W){}}markAsDisposed(ae){if(ae&&ae!==te.None)try{ae[H]=!0}catch(E){}}markAsSingleton(ae){}})}function X(H){return Le==null||Le.trackDisposable(H),H}function fe(H){Le==null||Le.markAsDisposed(H)}function he(H,ae){Le==null||Le.setParent(H,ae)}function o(H,ae){if(Le)for(const E of H)Le.setParent(E,ae)}function V(H){return Le==null||Le.markAsSingleton(H),H}class F extends Error{constructor(ae){super(`Encountered errors while disposing of store. Errors: [${ae.join(", ")}]`),this.errors=ae}}function g(H){return typeof H.dispose=="function"&&H.dispose.length===0}function c(H){if(J.$.is(H)){let ae=[];for(const E of H)if(E)try{E.dispose()}catch(W){ae.push(W)}if(ae.length===1)throw ae[0];if(ae.length>1)throw new F(ae);return Array.isArray(H)?[]:H}else if(H)return H.dispose(),H}function w(...H){const ae=b(()=>c(H));return o(H,ae),ae}function b(H){const ae=X({dispose:(0,A.I)(()=>{fe(ae),H()})});return ae}class z{constructor(){this._toDispose=new Set,this._isDisposed=!1,X(this)}dispose(){this._isDisposed||(fe(this),this._isDisposed=!0,this.clear())}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(ae){if(!ae)return ae;if(ae===this)throw new Error("Cannot register a disposable on itself!");return he(ae,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(ae),ae}}z.DISABLE_DISPOSED_WARNING=!1;class te{constructor(){this._store=new z,X(this),he(this._store,this)}dispose(){fe(this),this._store.dispose()}_register(ae){if(ae===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ae)}}te.None=Object.freeze({dispose(){}});class k{constructor(){this._isDisposed=!1,X(this)}get value(){return this._isDisposed?void 0:this._value}set value(ae){var E;this._isDisposed||ae===this._value||((E=this._value)===null||E===void 0||E.dispose(),ae&&he(ae,this),this._value=ae)}clear(){this.value=void 0}dispose(){var ae;this._isDisposed=!0,fe(this),(ae=this._value)===null||ae===void 0||ae.dispose(),this._value=void 0}clearAndLeak(){const ae=this._value;return this._value=void 0,ae&&he(ae,null),ae}}class P{constructor(ae){this.object=ae}dispose(){}}},34502:function(Ut,qe,y){"use strict";y.d(qe,{S:function(){return J}});class A{constructor(Le){this.element=Le,this.next=A.Undefined,this.prev=A.Undefined}}A.Undefined=new A(void 0);class J{constructor(){this._first=A.Undefined,this._last=A.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===A.Undefined}clear(){let Le=this._first;for(;Le!==A.Undefined;){const oe=Le.next;Le.prev=A.Undefined,Le.next=A.Undefined,Le=oe}this._first=A.Undefined,this._last=A.Undefined,this._size=0}unshift(Le){return this._insert(Le,!1)}push(Le){return this._insert(Le,!0)}_insert(Le,oe){const X=new A(Le);if(this._first===A.Undefined)this._first=X,this._last=X;else if(oe){const he=this._last;this._last=X,X.prev=he,he.next=X}else{const he=this._first;this._first=X,X.next=he,he.prev=X}this._size+=1;let fe=!1;return()=>{fe||(fe=!0,this._remove(X))}}shift(){if(this._first!==A.Undefined){const Le=this._first.element;return this._remove(this._first),Le}}pop(){if(this._last!==A.Undefined){const Le=this._last.element;return this._remove(this._last),Le}}_remove(Le){if(Le.prev!==A.Undefined&&Le.next!==A.Undefined){const oe=Le.prev;oe.next=Le.next,Le.next.prev=oe}else Le.prev===A.Undefined&&Le.next===A.Undefined?(this._first=A.Undefined,this._last=A.Undefined):Le.next===A.Undefined?(this._last=this._last.prev,this._last.next=A.Undefined):Le.prev===A.Undefined&&(this._first=this._first.next,this._first.prev=A.Undefined);this._size-=1}*[Symbol.iterator](){let Le=this._first;for(;Le!==A.Undefined;)yield Le.element,Le=Le.next}}},23345:function(Ut,qe,y){"use strict";y.d(qe,{$L:function(){return W},ED:function(){return P},IJ:function(){return ae},OS:function(){return Te},WE:function(){return q},dz:function(){return H},gn:function(){return ne},li:function(){return b},r:function(){return G},tY:function(){return E},xS:function(){return ge}});var A=y(97671),J;const ye="en";let Le=!1,oe=!1,X=!1,fe=!1,he=!1,o=!1,V=!1,F,g=null,c=null,w;const b=typeof self=="object"?self:typeof y.g=="object"?y.g:{};let z;typeof b.vscode!="undefined"&&typeof b.vscode.process!="undefined"?z=b.vscode.process:typeof A!="undefined"&&(z=A);const te=typeof((J=z==null?void 0:z.versions)===null||J===void 0?void 0:J.electron)=="string"&&z.type==="renderer";if(typeof navigator=="object"&&!te)w=navigator.userAgent,Le=w.indexOf("Windows")>=0,oe=w.indexOf("Macintosh")>=0,V=(w.indexOf("Macintosh")>=0||w.indexOf("iPad")>=0||w.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X=w.indexOf("Linux")>=0,o=!0,F=navigator.language,g=F;else if(typeof z=="object"){Le=z.platform==="win32",oe=z.platform==="darwin",X=z.platform==="linux",fe=X&&!!z.env.SNAP&&!!z.env.SNAP_REVISION,F=ye,g=ye;const I=z.env.VSCODE_NLS_CONFIG;if(I)try{const $=JSON.parse(I),R=$.availableLanguages["*"];F=$.locale,g=R||ye,c=$._translationsConfigFile}catch($){}he=!0}else console.error("Unable to resolve platform.");let k=0;oe?k=1:Le?k=3:X&&(k=2);const P=Le,H=oe,ae=X,E=he,W=o,ne=V,q=w,ge=function(){if(b.setImmediate)return b.setImmediate.bind(b);if(typeof b.postMessage=="function"&&!b.importScripts){let R=[];b.addEventListener("message",B=>{if(B.data&&B.data.vscodeSetImmediateId)for(let m=0,_=R.length;m<_;m++){const O=R[m];if(O.id===B.data.vscodeSetImmediateId){R.splice(m,1),O.callback();return}}});let Z=0;return B=>{const m=++Z;R.push({id:m,callback:B}),b.postMessage({vscodeSetImmediateId:m},"*")}}if(typeof(z==null?void 0:z.nextTick)=="function")return z.nextTick.bind(z);const $=Promise.resolve();return R=>$.then(R)}(),Te=oe||V?2:Le?1:3;let Se=!0,Fe=!1;function G(){if(!Fe){Fe=!0;const I=new Uint8Array(2);I[0]=1,I[1]=2,Se=new Uint16Array(I.buffer)[0]===513}return Se}},95830:function(Ut,qe,y){"use strict";y.d(qe,{G:function(){return ye}});var A=y(23345);const J=A.li.performance&&typeof A.li.performance.now=="function";class ye{constructor(oe){this._highResolution=J&&oe,this._startTime=this._now(),this._stopTime=-1}static create(oe=!0){return new ye(oe)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?A.li.performance.now():Date.now()}}},82983:function(Ut,qe,y){"use strict";y.d(qe,{$i:function(){return we},C8:function(){return Qe},GF:function(){return F},HO:function(){return Z},IO:function(){return g},K7:function(){return Je},Kw:function(){return Et},LC:function(){return b},Mh:function(){return ge},P1:function(){return Te},PJ:function(){return Bt},Qe:function(){return Ee},R1:function(){return V},RP:function(){return O},S6:function(){return ht},TT:function(){return P},Ut:function(){return m},V8:function(){return z},WU:function(){return ye},YK:function(){return Fe},YU:function(){return Le},ZG:function(){return Se},ZH:function(){return I},ab:function(){return De},c1:function(){return et},df:function(){return W},ec:function(){return oe},fi:function(){return Rt},fy:function(){return X},j3:function(){return fe},j_:function(){return ae},m5:function(){return A},mK:function(){return E},mr:function(){return c},oH:function(){return ve},oL:function(){return he},ok:function(){return q},ow:function(){return te},qq:function(){return ne},qu:function(){return k},rL:function(){return G},uS:function(){return St},un:function(){return o},uq:function(){return w},vH:function(){return R},xe:function(){return $e},zY:function(){return H}});function A(L){return!L||typeof L!="string"?!0:L.trim().length===0}const J=/{(\d+)}/g;function ye(L,...ee){return ee.length===0?L:L.replace(J,function(ue,_e){const ke=parseInt(_e,10);return isNaN(ke)||ke<0||ke>=ee.length?ue:ee[ke]})}function Le(L){return L.replace(/[<>&]/g,function(ee){switch(ee){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ee}})}function oe(L){return L.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function X(L,ee=" "){const ue=fe(L,ee);return he(ue,ee)}function fe(L,ee){if(!L||!ee)return L;const ue=ee.length;if(ue===0||L.length===0)return L;let _e=0;for(;L.indexOf(ee,_e)===_e;)_e=_e+ue;return L.substring(_e)}function he(L,ee){if(!L||!ee)return L;const ue=ee.length,_e=L.length;if(ue===0||_e===0)return L;let ke=_e,Pe=-1;for(;Pe=L.lastIndexOf(ee,ke-1),!(Pe===-1||Pe+ue!==ke);){if(Pe===0)return"";ke=Pe}return L.substring(0,ke)}function o(L){return L.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function V(L){return L.replace(/\*/g,"")}function F(L,ee,ue={}){if(!L)throw new Error("Cannot create regex from empty string");ee||(L=oe(L)),ue.wholeWord&&(/\B/.test(L.charAt(0))||(L="\\b"+L),/\B/.test(L.charAt(L.length-1))||(L=L+"\\b"));let _e="";return ue.global&&(_e+="g"),ue.matchCase||(_e+="i"),ue.multiline&&(_e+="m"),ue.unicode&&(_e+="u"),new RegExp(L,_e)}function g(L){return L.source==="^"||L.source==="^$"||L.source==="$"||L.source==="^\\s*$"?!1:!!(L.exec("")&&L.lastIndex===0)}function c(L){return(L.global?"g":"")+(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")}function w(L){return L.split(/\r\n|\r|\n/)}function b(L){for(let ee=0,ue=L.length;ee<ue;ee++){const _e=L.charCodeAt(ee);if(_e!==32&&_e!==9)return ee}return-1}function z(L,ee=0,ue=L.length){for(let _e=ee;_e<ue;_e++){const ke=L.charCodeAt(_e);if(ke!==32&&ke!==9)return L.substring(ee,_e)}return L.substring(ee,ue)}function te(L,ee=L.length-1){for(let ue=ee;ue>=0;ue--){const _e=L.charCodeAt(ue);if(_e!==32&&_e!==9)return ue}return-1}function k(L,ee){return L<ee?-1:L>ee?1:0}function P(L,ee,ue=0,_e=L.length,ke=0,Pe=ee.length){for(;ue<_e&&ke<Pe;ue++,ke++){let Ze=L.charCodeAt(ue),Ge=ee.charCodeAt(ke);if(Ze<Ge)return-1;if(Ze>Ge)return 1}const We=_e-ue,rt=Pe-ke;return We<rt?-1:We>rt?1:0}function H(L,ee){return ae(L,ee,0,L.length,0,ee.length)}function ae(L,ee,ue=0,_e=L.length,ke=0,Pe=ee.length){for(;ue<_e&&ke<Pe;ue++,ke++){let Ze=L.charCodeAt(ue),Ge=ee.charCodeAt(ke);if(Ze===Ge)continue;if(Ze>=128||Ge>=128)return P(L.toLowerCase(),ee.toLowerCase(),ue,_e,ke,Pe);E(Ze)&&(Ze-=32),E(Ge)&&(Ge-=32);const mt=Ze-Ge;if(mt!==0)return mt}const We=_e-ue,rt=Pe-ke;return We<rt?-1:We>rt?1:0}function E(L){return L>=97&&L<=122}function W(L){return L>=65&&L<=90}function ne(L,ee){return L.length===ee.length&&ae(L,ee)===0}function q(L,ee){const ue=ee.length;return ee.length>L.length?!1:ae(L,ee,0,ue)===0}function ge(L,ee){let ue,_e=Math.min(L.length,ee.length);for(ue=0;ue<_e;ue++)if(L.charCodeAt(ue)!==ee.charCodeAt(ue))return ue;return _e}function Te(L,ee){let ue,_e=Math.min(L.length,ee.length);const ke=L.length-1,Pe=ee.length-1;for(ue=0;ue<_e;ue++)if(L.charCodeAt(ke-ue)!==ee.charCodeAt(Pe-ue))return ue;return _e}function Se(L){return 55296<=L&&L<=56319}function Fe(L){return 56320<=L&&L<=57343}function G(L,ee){return(L-55296<<10)+(ee-56320)+65536}function I(L,ee,ue){const _e=L.charCodeAt(ue);if(Se(_e)&&ue+1<ee){const ke=L.charCodeAt(ue+1);if(Fe(ke))return G(_e,ke)}return _e}function $(L,ee){const ue=L.charCodeAt(ee-1);if(Fe(ue)&&ee>1){const _e=L.charCodeAt(ee-2);if(Se(_e))return G(_e,ue)}return ue}function R(L,ee){const ue=It.getInstance(),_e=ee,ke=L.length,Pe=I(L,ke,ee);ee+=Pe>=65536?2:1;let We=ue.getGraphemeBreakType(Pe);for(;ee<ke;){const rt=I(L,ke,ee),Ze=ue.getGraphemeBreakType(rt);if(Rt(We,Ze))break;ee+=rt>=65536?2:1,We=Ze}return ee-_e}function Z(L,ee){const ue=It.getInstance(),_e=ee,ke=$(L,ee);ee-=ke>=65536?2:1;let Pe=ue.getGraphemeBreakType(ke);for(;ee>0;){const We=$(L,ee),rt=ue.getGraphemeBreakType(We);if(Rt(rt,Pe))break;ee-=We>=65536?2:1,Pe=rt}return _e-ee}const B=/(?:[\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 m(L){return B.test(L)}const _=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function O(L){return _.test(L)}const M=/^[\t\n\r\x20-\x7E]*$/;function we(L){return M.test(L)}const Ee=/[\u2028\u2029]/;function De(L){return Ee.test(L)}function $e(L){for(let ee=0,ue=L.length;ee<ue;ee++)if(Je(L.charCodeAt(ee)))return!0;return!1}function Je(L){return L=+L,L>=11904&&L<=55215||L>=63744&&L<=64255||L>=65281&&L<=65374}function Qe(L){return L>=127462&&L<=127487||L===8986||L===8987||L===9200||L===9203||L>=9728&&L<=10175||L===11088||L===11093||L>=127744&&L<=128591||L>=128640&&L<=128764||L>=128992&&L<=129003||L>=129280&&L<=129535||L>=129648&&L<=129750}const et="\uFEFF";function St(L){return!!(L&&L.length>0&&L.charCodeAt(0)===65279)}function Et(L,ee=!1){return L?(ee&&(L=L.replace(/\\./g,"")),L.toLowerCase()!==L):!1}function Bt(L){return L=L%(2*26),L<26?String.fromCharCode(97+L):String.fromCharCode(65+L-26)}function ht(L){return It.getInstance().getGraphemeBreakType(L)}function Rt(L,ee){return L===0?ee!==5&&ee!==7:L===2&&ee===3?!1:L===4||L===2||L===3||ee===4||ee===2||ee===3?!0:!(L===8&&(ee===8||ee===9||ee===11||ee===12)||(L===11||L===9)&&(ee===9||ee===10)||(L===12||L===10)&&ee===10||ee===5||ee===13||ee===7||L===1||L===13&&ee===14||L===6&&ee===6)}class It{constructor(){this._data=le()}static getInstance(){return It._INSTANCE||(It._INSTANCE=new It),It._INSTANCE}getGraphemeBreakType(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;const ue=this._data,_e=ue.length/3;let ke=1;for(;ke<=_e;)if(ee<ue[3*ke])ke=2*ke;else if(ee>ue[3*ke+1])ke=2*ke+1;else return ue[3*ke+2];return 0}}It._INSTANCE=null;function le(){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 ve(L,ee){if(L===0)return 0;const ue=N(L,ee);if(ue!==void 0)return ue;const _e=$(ee,L);return L-=ce(_e),L}function N(L,ee){let ue=$(ee,L);for(L-=ce(ue);Ae(ue)||ue===65039||ue===8419;){if(L===0)return;ue=$(ee,L),L-=ce(ue)}if(Qe(ue)){if(L>=0){const _e=$(ee,L);_e===8205&&(L-=ce(_e))}return L}}function ce(L){return L>=65536?2:1}function Ae(L){return 127995<=L&&L<=127999}},72999:function(Ut,qe,y){"use strict";y.d(qe,{$E:function(){return b},$K:function(){return fe},D8:function(){return g},HD:function(){return J},IU:function(){return z},Jp:function(){return he},Kn:function(){return ye},cW:function(){return V},f6:function(){return te},hj:function(){return Le},jn:function(){return oe},kJ:function(){return A},mf:function(){return F},o8:function(){return X},p_:function(){return o},vE:function(){return k}});function A(P){return Array.isArray(P)}function J(P){return typeof P=="string"}function ye(P){return typeof P=="object"&&P!==null&&!Array.isArray(P)&&!(P instanceof RegExp)&&!(P instanceof Date)}function Le(P){return typeof P=="number"&&!isNaN(P)}function oe(P){return P===!0||P===!1}function X(P){return typeof P=="undefined"}function fe(P){return!he(P)}function he(P){return X(P)||P===null}function o(P,H){if(!P)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function V(P){if(he(P))throw new Error("Assertion Failed: argument is undefined or null");return P}function F(P){return typeof P=="function"}function g(P,H){const ae=Math.min(P.length,H.length);for(let E=0;E<ae;E++)c(P[E],H[E])}function c(P,H){if(J(H)){if(typeof P!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(F(H)){try{if(P instanceof H)return}catch(ae){}if(!he(P)&&P.constructor===H||H.length===1&&H.call(void 0,P)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function w(P){let H=[],ae=Object.getPrototypeOf(P);for(;Object.prototype!==ae;)H=H.concat(Object.getOwnPropertyNames(ae)),ae=Object.getPrototypeOf(ae);return H}function b(P){const H=[];for(const ae of w(P))typeof P[ae]=="function"&&H.push(ae);return H}function z(P,H){const ae=W=>function(){const ne=Array.prototype.slice.call(arguments,0);return H(W,ne)};let E={};for(const W of P)E[W]=ae(W);return E}function te(P){return P===null?void 0:P}function k(P,H="Unreachable"){throw new Error(H)}},13268:function(Ut,qe,y){"use strict";y.d(qe,{N:function(){return J}});function A(ye,Le){let oe;return Le.length===0?oe=ye:oe=ye.replace(/\{(\d+)\}/g,function(X,fe){const he=fe[0];return typeof Le[he]!="undefined"?Le[he]:X}),oe}function J(ye,Le,...oe){return A(Le,oe)}},96236:function(Ut,qe,y){"use strict";y.d(qe,{BH:function(){return z},NZ:function(){return te},U8:function(){return k},co:function(){return b},eH:function(){return w},vr:function(){return c}});var A=y(75918),J=y(52615),ye=y(4348),Le=y(88226),oe=y(69323),X=y(34502),fe=y(35884),he=y(90689),o=y(16925),V=y(49055),F=function(P,H,ae,E){var W=arguments.length,ne=W<3?H:E===null?E=Object.getOwnPropertyDescriptor(H,ae):E,q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(P,H,ae,E);else for(var ge=P.length-1;ge>=0;ge--)(q=P[ge])&&(ne=(W<3?q(ne):W>3?q(H,ae,ne):q(H,ae))||ne);return W>3&&ne&&Object.defineProperty(H,ae,ne),ne},g=function(P,H){return function(ae,E){H(ae,E,P)}};function c(P){return P.command!==void 0}class w{constructor(H){this.id=w._idPool++,this._debugName=H}}w._idPool=0,w.CommandPalette=new w("CommandPalette"),w.EditorContext=new w("EditorContext"),w.SimpleEditorContext=new w("SimpleEditorContext"),w.EditorContextCopy=new w("EditorContextCopy"),w.EditorContextPeek=new w("EditorContextPeek"),w.MenubarEditMenu=new w("MenubarEditMenu"),w.MenubarCopy=new w("MenubarCopy"),w.MenubarGoMenu=new w("MenubarGoMenu"),w.MenubarSelectionMenu=new w("MenubarSelectionMenu"),w.InlineCompletionsActions=new w("InlineCompletionsActions");const b=(0,o.yh)("menuService"),z=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ye.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:P=>P===w.CommandPalette}}addCommand(P){return this.addCommands(Le.$.single(P))}addCommands(P){for(const H of P)this._commands.set(H.id,H);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,oe.OF)(()=>{let H=!1;for(const ae of P)H=this._commands.delete(ae.id)||H;H&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(P){return this._commands.get(P)}getCommands(){const P=new Map;return this._commands.forEach((H,ae)=>P.set(ae,H)),P}appendMenuItem(P,H){return this.appendMenuItems(Le.$.single({id:P,item:H}))}appendMenuItems(P){const H=new Set,ae=new X.S;for(const{id:E,item:W}of P){let ne=this._menuItems.get(E);ne||(ne=new X.S,this._menuItems.set(E,ne)),ae.push(ne.push(W)),H.add(E)}return this._onDidChangeMenu.fire(H),(0,oe.OF)(()=>{if(ae.size>0){for(let E of ae)E();this._onDidChangeMenu.fire(H),ae.clear()}})}getMenuItems(P){let H;return this._menuItems.has(P)?H=[...this._menuItems.get(P)]:H=[],P===w.CommandPalette&&this._appendImplicitItems(H),H}_appendImplicitItems(P){const H=new Set;for(const ae of P)c(ae)&&(H.add(ae.command.id),ae.alt&&H.add(ae.alt.id));this._commands.forEach((ae,E)=>{H.has(E)||P.push({command:ae})})}};class te extends A.wY{constructor(H,ae,E,W){super(`submenuitem.${H.submenu.id}`,typeof H.title=="string"?H.title:H.title.value,[],"submenu"),this.item=H,this._menuService=ae,this._contextKeyService=E,this._options=W}get actions(){const H=[],ae=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=ae.getActions(this._options);ae.dispose();for(const[,W]of E)W.length>0&&(H.push(...W),H.push(new A.Z0));return H.length&&H.pop(),H}}let k=class Qo{constructor(H,ae,E,W,ne){var q,ge;if(this._commandService=ne,this.id=H.id,this.label=E!=null&&E.renderShortTitle&&H.shortTitle?typeof H.shortTitle=="string"?H.shortTitle:H.shortTitle.value:typeof H.title=="string"?H.title:H.title.value,this.tooltip=(ge=typeof H.tooltip=="string"?H.tooltip:(q=H.tooltip)===null||q===void 0?void 0:q.value)!==null&&ge!==void 0?ge:"",this.enabled=!H.precondition||W.contextMatchesRules(H.precondition),this.checked=void 0,H.toggled){const Te=H.toggled.condition?H.toggled:{condition:H.toggled};this.checked=W.contextMatchesRules(Te.condition),this.checked&&Te.tooltip&&(this.tooltip=typeof Te.tooltip=="string"?Te.tooltip:Te.tooltip.value),Te.title&&(this.label=typeof Te.title=="string"?Te.title:Te.title.value)}this.item=H,this.alt=ae?new Qo(ae,void 0,E,W,ne):void 0,this._options=E,V.kS.isThemeIcon(H.icon)&&(this.class=J.dT.asClassName(H.icon))}dispose(){}run(...H){var ae,E;let W=[];return!((ae=this._options)===null||ae===void 0)&&ae.arg&&(W=[...W,this._options.arg]),!((E=this._options)===null||E===void 0)&&E.shouldForwardArgs&&(W=[...W,...H]),this._commandService.executeCommand(this.id,...W)}};k=F([g(3,he.i6),g(4,fe.H)],k)},35884:function(Ut,qe,y){"use strict";y.d(qe,{H:function(){return fe},P:function(){return he}});var A=y(4348),J=y(88226),ye=y(69323),Le=y(34502),oe=y(72999),X=y(16925);const fe=(0,X.yh)("commandService"),he=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new A.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,V){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!V)throw new Error("invalid command");return this.registerCommand({id:o,handler:V})}if(o.description){const b=[];for(let te of o.description.args)b.push(te.constraint);const z=o.handler;o.handler=function(te,...k){return(0,oe.D8)(k,b),z(te,...k)}}const{id:F}=o;let g=this._commands.get(F);g||(g=new Le.S,this._commands.set(F,g));let c=g.unshift(o),w=(0,ye.OF)(()=>{c();const b=this._commands.get(F);b!=null&&b.isEmpty()&&this._commands.delete(F)});return this._onDidRegisterCommand.fire(F),w}registerCommandAlias(o,V){return he.registerCommand(o,(F,...g)=>F.get(fe).executeCommand(V,...g))}getCommand(o){const V=this._commands.get(o);if(!(!V||V.isEmpty()))return J.$.first(V)}getCommands(){const o=new Map;for(const V of this._commands.keys()){const F=this.getCommand(V);F&&o.set(V,F)}return o}};he.registerCommand("noop",()=>{})},90689:function(Ut,qe,y){"use strict";y.d(qe,{Ao:function(){return fe},Eq:function(){return G},Fb:function(){return he},K8:function(){return R},i6:function(){return Fe},uy:function(){return Se}});var A=y(23345),J=y(82983),ye=y(16925);let Le=A.WE||"";const oe=new Map;oe.set("false",!1),oe.set("true",!0),oe.set("isMac",A.dz),oe.set("isLinux",A.IJ),oe.set("isWindows",A.ED),oe.set("isWeb",A.$L),oe.set("isMacNative",A.dz&&!A.$L),oe.set("isEdge",Le.indexOf("Edg/")>=0),oe.set("isFirefox",Le.indexOf("Firefox")>=0),oe.set("isChrome",Le.indexOf("Chrome")>=0),oe.set("isSafari",Le.indexOf("Safari")>=0);const X=Object.prototype.hasOwnProperty;class fe{static has(m){return g.create(m)}static equals(m,_){return c.create(m,_)}static regex(m,_){return W.create(m,_)}static not(m){return te.create(m)}static and(...m){return ge.create(m,null)}static or(...m){return Te.create(m,null,!0)}static deserialize(m,_=!1){if(m)return this._deserializeOrExpression(m,_)}static _deserializeOrExpression(m,_){let O=m.split("||");return Te.create(O.map(M=>this._deserializeAndExpression(M,_)),null,!0)}static _deserializeAndExpression(m,_){let O=m.split("&&");return ge.create(O.map(M=>this._deserializeOne(M,_)),null)}static _deserializeOne(m,_){if(m=m.trim(),m.indexOf("!=")>=0){let O=m.split("!=");return z.create(O[0].trim(),this._deserializeValue(O[1],_))}if(m.indexOf("==")>=0){let O=m.split("==");return c.create(O[0].trim(),this._deserializeValue(O[1],_))}if(m.indexOf("=~")>=0){let O=m.split("=~");return W.create(O[0].trim(),this._deserializeRegexValue(O[1],_))}if(m.indexOf(" in ")>=0){let O=m.split(" in ");return w.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(m)){const O=m.split(">=");return H.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(m)){const O=m.split(">");return P.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(m)){const O=m.split("<=");return E.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(m)){const O=m.split("<");return ae.create(O[0].trim(),O[1].trim())}return/^\!\s*/.test(m)?te.create(m.substr(1).trim()):g.create(m)}static _deserializeValue(m,_){if(m=m.trim(),m==="true")return!0;if(m==="false")return!1;let O=/^'([^']*)'$/.exec(m);return O?O[1].trim():m}static _deserializeRegexValue(m,_){if((0,J.m5)(m)){if(_)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let O=m.indexOf("/"),M=m.lastIndexOf("/");if(O===M||O<0){if(_)throw new Error(`bad regexp-value '${m}', missing /-enclosure`);return console.warn(`bad regexp-value '${m}', missing /-enclosure`),null}let we=m.slice(O+1,M),Ee=m[M+1]==="i"?"i":"";try{return new RegExp(we,Ee)}catch(De){if(_)throw new Error(`bad regexp-value '${m}', parse error: ${De}`);return console.warn(`bad regexp-value '${m}', parse error: ${De}`),null}}}function he(B,m){const _=B?B.substituteConstants():void 0,O=m?m.substituteConstants():void 0;return!_&&!O?!0:!_||!O?!1:_.equals(O)}function o(B,m){return B.cmp(m)}class V{constructor(){this.type=0}cmp(m){return this.type-m.type}equals(m){return m.type===this.type}substituteConstants(){return this}evaluate(m){return!1}serialize(){return"false"}keys(){return[]}negate(){return F.INSTANCE}}V.INSTANCE=new V;class F{constructor(){this.type=1}cmp(m){return this.type-m.type}equals(m){return m.type===this.type}substituteConstants(){return this}evaluate(m){return!0}serialize(){return"true"}keys(){return[]}negate(){return V.INSTANCE}}F.INSTANCE=new F;class g{constructor(m,_){this.key=m,this.negated=_,this.type=2}static create(m,_=null){const O=oe.get(m);return typeof O=="boolean"?O?F.INSTANCE:V.INSTANCE:new g(m,_)}cmp(m){return m.type!==this.type?this.type-m.type:I(this.key,m.key)}equals(m){return m.type===this.type?this.key===m.key:!1}substituteConstants(){const m=oe.get(this.key);return typeof m=="boolean"?m?F.INSTANCE:V.INSTANCE:this}evaluate(m){return!!m.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=te.create(this.key,this)),this.negated}}class c{constructor(m,_,O){this.key=m,this.value=_,this.negated=O,this.type=4}static create(m,_,O=null){if(typeof _=="boolean")return _?g.create(m,O):te.create(m,O);const M=oe.get(m);return typeof M=="boolean"?_===(M?"true":"false")?F.INSTANCE:V.INSTANCE:new c(m,_,O)}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.value,m.key,m.value)}equals(m){return m.type===this.type?this.key===m.key&&this.value===m.value:!1}substituteConstants(){const m=oe.get(this.key);if(typeof m=="boolean"){const _=m?"true":"false";return this.value===_?F.INSTANCE:V.INSTANCE}return this}evaluate(m){return m.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 w{constructor(m,_){this.key=m,this.valueKey=_,this.type=10,this.negated=null}static create(m,_){return new w(m,_)}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.valueKey,m.key,m.valueKey)}equals(m){return m.type===this.type?this.key===m.key&&this.valueKey===m.valueKey:!1}substituteConstants(){return this}evaluate(m){const _=m.getValue(this.valueKey),O=m.getValue(this.key);return Array.isArray(_)?_.indexOf(O)>=0:typeof O=="string"&&typeof _=="object"&&_!==null?X.call(_,O):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=b.create(this)),this.negated}}class b{constructor(m){this._actual=m,this.type=11}static create(m){return new b(m)}cmp(m){return m.type!==this.type?this.type-m.type:this._actual.cmp(m._actual)}equals(m){return m.type===this.type?this._actual.equals(m._actual):!1}substituteConstants(){return this}evaluate(m){return!this._actual.evaluate(m)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class z{constructor(m,_,O){this.key=m,this.value=_,this.negated=O,this.type=5}static create(m,_,O=null){if(typeof _=="boolean")return _?te.create(m,O):g.create(m,O);const M=oe.get(m);return typeof M=="boolean"?_===(M?"true":"false")?V.INSTANCE:F.INSTANCE:new z(m,_,O)}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.value,m.key,m.value)}equals(m){return m.type===this.type?this.key===m.key&&this.value===m.value:!1}substituteConstants(){const m=oe.get(this.key);if(typeof m=="boolean"){const _=m?"true":"false";return this.value===_?V.INSTANCE:F.INSTANCE}return this}evaluate(m){return m.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class te{constructor(m,_){this.key=m,this.negated=_,this.type=3}static create(m,_=null){const O=oe.get(m);return typeof O=="boolean"?O?V.INSTANCE:F.INSTANCE:new te(m,_)}cmp(m){return m.type!==this.type?this.type-m.type:I(this.key,m.key)}equals(m){return m.type===this.type?this.key===m.key:!1}substituteConstants(){const m=oe.get(this.key);return typeof m=="boolean"?m?V.INSTANCE:F.INSTANCE:this}evaluate(m){return!m.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}function k(B,m){if(typeof B=="string"){const _=parseFloat(B);isNaN(_)||(B=_)}return typeof B=="string"||typeof B=="number"?m(B):V.INSTANCE}class P{constructor(m,_,O){this.key=m,this.value=_,this.negated=O,this.type=12}static create(m,_,O=null){return k(_,M=>new P(m,M,O))}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.value,m.key,m.value)}equals(m){return m.type===this.type?this.key===m.key&&this.value===m.value:!1}substituteConstants(){return this}evaluate(m){return typeof this.value=="string"?!1:parseFloat(m.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class H{constructor(m,_,O){this.key=m,this.value=_,this.negated=O,this.type=13}static create(m,_,O=null){return k(_,M=>new H(m,M,O))}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.value,m.key,m.value)}equals(m){return m.type===this.type?this.key===m.key&&this.value===m.value:!1}substituteConstants(){return this}evaluate(m){return typeof this.value=="string"?!1:parseFloat(m.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ae.create(this.key,this.value,this)),this.negated}}class ae{constructor(m,_,O){this.key=m,this.value=_,this.negated=O,this.type=14}static create(m,_,O=null){return k(_,M=>new ae(m,M,O))}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.value,m.key,m.value)}equals(m){return m.type===this.type?this.key===m.key&&this.value===m.value:!1}substituteConstants(){return this}evaluate(m){return typeof this.value=="string"?!1:parseFloat(m.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class E{constructor(m,_,O){this.key=m,this.value=_,this.negated=O,this.type=15}static create(m,_,O=null){return k(_,M=>new E(m,M,O))}cmp(m){return m.type!==this.type?this.type-m.type:$(this.key,this.value,m.key,m.value)}equals(m){return m.type===this.type?this.key===m.key&&this.value===m.value:!1}substituteConstants(){return this}evaluate(m){return typeof this.value=="string"?!1:parseFloat(m.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this.value,this)),this.negated}}class W{constructor(m,_){this.key=m,this.regexp=_,this.type=7,this.negated=null}static create(m,_){return new W(m,_)}cmp(m){if(m.type!==this.type)return this.type-m.type;if(this.key<m.key)return-1;if(this.key>m.key)return 1;const _=this.regexp?this.regexp.source:"",O=m.regexp?m.regexp.source:"";return _<O?-1:_>O?1:0}equals(m){if(m.type===this.type){const _=this.regexp?this.regexp.source:"",O=m.regexp?m.regexp.source:"";return this.key===m.key&&_===O}return!1}substituteConstants(){return this}evaluate(m){let _=m.getValue(this.key);return this.regexp?this.regexp.test(_):!1}serialize(){const m=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${m}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ne.create(this)),this.negated}}class ne{constructor(m){this._actual=m,this.type=8}static create(m){return new ne(m)}cmp(m){return m.type!==this.type?this.type-m.type:this._actual.cmp(m._actual)}equals(m){return m.type===this.type?this._actual.equals(m._actual):!1}substituteConstants(){return this}evaluate(m){return!this._actual.evaluate(m)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function q(B){let m=null;for(let _=0,O=B.length;_<O;_++){const M=B[_].substituteConstants();if(B[_]!==M&&m===null){m=[];for(let we=0;we<_;we++)m[we]=B[we]}m!==null&&(m[_]=M)}return m===null?B:m}class ge{constructor(m,_){this.expr=m,this.negated=_,this.type=6}static create(m,_){return ge._normalizeArr(m,_)}cmp(m){if(m.type!==this.type)return this.type-m.type;if(this.expr.length<m.expr.length)return-1;if(this.expr.length>m.expr.length)return 1;for(let _=0,O=this.expr.length;_<O;_++){const M=o(this.expr[_],m.expr[_]);if(M!==0)return M}return 0}equals(m){if(m.type===this.type){if(this.expr.length!==m.expr.length)return!1;for(let _=0,O=this.expr.length;_<O;_++)if(!this.expr[_].equals(m.expr[_]))return!1;return!0}return!1}substituteConstants(){const m=q(this.expr);return m===this.expr?this:ge.create(m,this.negated)}evaluate(m){for(let _=0,O=this.expr.length;_<O;_++)if(!this.expr[_].evaluate(m))return!1;return!0}static _normalizeArr(m,_){const O=[];let M=!1;for(const we of m)if(we){if(we.type===1){M=!0;continue}if(we.type===0)return V.INSTANCE;if(we.type===6){O.push(...we.expr);continue}O.push(we)}if(O.length===0&&M)return F.INSTANCE;if(O.length!==0){if(O.length===1)return O[0];O.sort(o);for(let we=1;we<O.length;we++)O[we-1].equals(O[we])&&(O.splice(we,1),we--);if(O.length===1)return O[0];for(;O.length>1;){const we=O[O.length-1];if(we.type!==9)break;O.pop();const Ee=O.pop(),De=O.length===0,$e=Te.create(we.expr.map(Je=>ge.create([Je,Ee],null)),null,De);$e&&(O.push($e),O.sort(o))}return O.length===1?O[0]:new ge(O,_)}}serialize(){return this.expr.map(m=>m.serialize()).join(" && ")}keys(){const m=[];for(let _ of this.expr)m.push(..._.keys());return m}negate(){if(!this.negated){const m=[];for(let _ of this.expr)m.push(_.negate());this.negated=Te.create(m,this,!0)}return this.negated}}class Te{constructor(m,_){this.expr=m,this.negated=_,this.type=9}static create(m,_,O){return Te._normalizeArr(m,_,O)}cmp(m){if(m.type!==this.type)return this.type-m.type;if(this.expr.length<m.expr.length)return-1;if(this.expr.length>m.expr.length)return 1;for(let _=0,O=this.expr.length;_<O;_++){const M=o(this.expr[_],m.expr[_]);if(M!==0)return M}return 0}equals(m){if(m.type===this.type){if(this.expr.length!==m.expr.length)return!1;for(let _=0,O=this.expr.length;_<O;_++)if(!this.expr[_].equals(m.expr[_]))return!1;return!0}return!1}substituteConstants(){const m=q(this.expr);return m===this.expr?this:Te.create(m,this.negated,!1)}evaluate(m){for(let _=0,O=this.expr.length;_<O;_++)if(this.expr[_].evaluate(m))return!0;return!1}static _normalizeArr(m,_,O){let M=[],we=!1;if(m){for(let Ee=0,De=m.length;Ee<De;Ee++){const $e=m[Ee];if($e){if($e.type===0){we=!0;continue}if($e.type===1)return F.INSTANCE;if($e.type===9){M=M.concat($e.expr);continue}M.push($e)}}if(M.length===0&&we)return V.INSTANCE;M.sort(o)}if(M.length!==0){if(M.length===1)return M[0];for(let Ee=1;Ee<M.length;Ee++)M[Ee-1].equals(M[Ee])&&(M.splice(Ee,1),Ee--);if(M.length===1)return M[0];if(O){for(let Ee=0;Ee<M.length;Ee++)for(let De=Ee+1;De<M.length;De++)R(M[Ee],M[De])&&(M.splice(De,1),De--);if(M.length===1)return M[0]}return new Te(M,_)}}serialize(){return this.expr.map(m=>m.serialize()).join(" || ")}keys(){const m=[];for(let _ of this.expr)m.push(..._.keys());return m}negate(){if(!this.negated){let m=[];for(let _ of this.expr)m.push(_.negate());for(;m.length>1;){const _=m.shift(),O=m.shift(),M=[];for(const Ee of Z(_))for(const De of Z(O))M.push(ge.create([Ee,De],null));const we=m.length===0;m.unshift(Te.create(M,null,we))}this.negated=m[0]}return this.negated}}class Se extends g{constructor(m,_,O){super(m,null),this._defaultValue=_,typeof O=="object"?Se._info.push(Object.assign(Object.assign({},O),{key:m})):O!==!0&&Se._info.push({key:m,description:O,type:_!=null?typeof _:void 0})}static all(){return Se._info.values()}bindTo(m){return m.createKey(this.key,this._defaultValue)}getValue(m){return m.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(m){return c.create(this.key,m)}}Se._info=[];const Fe=(0,ye.yh)("contextKeyService"),G="setContext";function I(B,m){return B<m?-1:B>m?1:0}function $(B,m,_,O){return B<_?-1:B>_?1:m<O?-1:m>O?1:0}function R(B,m){if(m.type===6&&B.type!==9&&B.type!==6){for(const M of m.expr)if(B.equals(M))return!0}const _=B.negate(),O=Z(_).concat(Z(m));O.sort(o);for(let M=0;M<O.length;M++){const Ee=O[M].negate();for(let De=M+1;De<O.length;De++){const $e=O[De];if(Ee.equals($e))return!0}}return!1}function Z(B){return B.type===9?B.expr:[B]}},16925:function(Ut,qe,y){"use strict";y.d(qe,{I8:function(){return A},TG:function(){return J},jt:function(){return oe},yh:function(){return Le}});var A;(function(X){X.serviceIds=new Map,X.DI_TARGET="$di$target",X.DI_DEPENDENCIES="$di$dependencies";function fe(he){return he[X.DI_DEPENDENCIES]||[]}X.getServiceDependencies=fe})(A||(A={}));const J=Le("instantiationService");function ye(X,fe,he,o){fe[A.DI_TARGET]===fe?fe[A.DI_DEPENDENCIES].push({id:X,index:he,optional:o}):(fe[A.DI_DEPENDENCIES]=[{id:X,index:he,optional:o}],fe[A.DI_TARGET]=fe)}function Le(X){if(A.serviceIds.has(X))return A.serviceIds.get(X);const fe=function(he,o,V){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ye(fe,he,V,!1)};return fe.toString=()=>X,A.serviceIds.set(X,fe),fe}function oe(X){return function(fe,he,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ye(X,fe,o,!0)}}},44650:function(Ut,qe,y){"use strict";y.d(qe,{B:function(){return Le}});var A=y(76068),J=y(72999);class ye{constructor(){this.data=new Map}add(X,fe){A.ok(J.HD(X)),A.ok(J.Kn(fe)),A.ok(!this.data.has(X),"There is already an extension with this id"),this.data.set(X,fe)}as(X){return this.data.get(X)||null}}const Le=new ye},66213:function(Ut,qe,y){"use strict";y.d(qe,{e:function(){return A}});var A;(function(J){J.DARK="dark",J.LIGHT="light",J.HIGH_CONTRAST="hc"})(A||(A={}))},49055:function(Ut,qe,y){"use strict";y.d(qe,{EN:function(){return o},IP:function(){return g},Ic:function(){return b},XE:function(){return fe},bB:function(){return z},kS:function(){return V},m6:function(){return F}});var A=y(52615),J=y(4348),ye=y(69323),Le=y(16925),oe=y(44650),X=y(66213);const fe=(0,Le.yh)("themeService");var he;(function(te){function k(P){return P&&typeof P=="object"&&typeof P.id=="string"}te.isThemeColor=k})(he||(he={}));function o(te){return{id:te}}var V;(function(te){function k(ne){return ne&&typeof ne=="object"&&typeof ne.id=="string"&&(typeof ne.color=="undefined"||he.isThemeColor(ne.color))}te.isThemeIcon=k;const P=new RegExp(`^\\$\\((${A.dT.iconNameExpression}(?:${A.dT.iconModifierExpression})?)\\)$`);function H(ne){const q=P.exec(ne);if(!q)return;let[,ge]=q;return{id:ge}}te.fromString=H;function ae(ne,q){let ge=ne.id;const Te=ge.lastIndexOf("~");return Te!==-1&&(ge=ge.substring(0,Te)),q&&(ge=`${ge}~${q}`),{id:ge}}te.modify=ae;function E(ne,q){var ge,Te;return ne.id===q.id&&((ge=ne.color)===null||ge===void 0?void 0:ge.id)===((Te=q.color)===null||Te===void 0?void 0:Te.id)}te.isEqual=E;function W(ne,q){return{id:ne.id,color:q?o(q):void 0}}te.asThemeIcon=W,te.asClassNameArray=A.dT.asClassNameArray,te.asClassName=A.dT.asClassName,te.asCSSSelector=A.dT.asCSSSelector})(V||(V={}));function F(te){switch(te){case X.e.DARK:return"vs-dark";case X.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new J.Q5}onColorThemeChange(k){return this.themingParticipants.push(k),this.onThemingParticipantAddedEmitter.fire(k),(0,ye.OF)(()=>{const P=this.themingParticipants.indexOf(k);this.themingParticipants.splice(P,1)})}getThemingParticipants(){return this.themingParticipants}}let w=new c;oe.B.add(g.ThemingContribution,w);function b(te){return w.onColorThemeChange(te)}class z extends ye.JT{constructor(k){super(),this.themeService=k,this.theme=k.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(P=>this.onThemeChange(P)))}onThemeChange(k){this.theme=k,this.updateStyles()}updateStyles(){}}},5630:function(Ut,qe,y){"use strict";var A=y(96663),J=y(44127),ye=y(90493),Le=y(72071),oe=y(6620),X=y(92310),fe=y.n(X),he=y(18929),o=y(59301),V=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],F=(0,o.forwardRef)(function(g,c){var w,b=g.prefixCls,z=b===void 0?"rc-checkbox":b,te=g.className,k=g.style,P=g.checked,H=g.disabled,ae=g.defaultChecked,E=ae===void 0?!1:ae,W=g.type,ne=W===void 0?"checkbox":W,q=g.title,ge=g.onChange,Te=(0,oe.Z)(g,V),Se=(0,o.useRef)(null),Fe=(0,he.Z)(E,{value:P}),G=(0,Le.Z)(Fe,2),I=G[0],$=G[1];(0,o.useImperativeHandle)(c,function(){return{focus:function(){var m;(m=Se.current)===null||m===void 0||m.focus()},blur:function(){var m;(m=Se.current)===null||m===void 0||m.blur()},input:Se.current}});var R=fe()(z,te,(w={},(0,ye.Z)(w,"".concat(z,"-checked"),I),(0,ye.Z)(w,"".concat(z,"-disabled"),H),w)),Z=function(m){H||("checked"in g||$(m.target.checked),ge==null||ge({target:(0,J.Z)((0,J.Z)({},g),{},{type:ne,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return o.createElement("span",{className:R,title:q,style:k},o.createElement("input",(0,A.Z)({},Te,{className:"".concat(z,"-input"),ref:Se,onChange:Z,disabled:H,checked:!!I,type:ne})),o.createElement("span",{className:"".concat(z,"-inner")}))});qe.Z=F},31561:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return ne}});var A=y(96663),J=y(90493),ye=y(72071),Le=y(6620),oe=y(35593),X=y(92310),fe=y.n(X),he=y(8654),o=y(59301),V=y(10228),F=y(16089),g=V.Z.ESC,c=V.Z.TAB;function w(q){var ge=q.visible,Te=q.triggerRef,Se=q.onVisibleChange,Fe=q.autoFocus,G=q.overlayRef,I=o.useRef(!1),$=function(){if(ge){var m,_;(m=Te.current)===null||m===void 0||(_=m.focus)===null||_===void 0||_.call(m),Se==null||Se(!1)}},R=function(){var m;return(m=G.current)!==null&&m!==void 0&&m.focus?(G.current.focus(),I.current=!0,!0):!1},Z=function(m){switch(m.keyCode){case g:$();break;case c:{var _=!1;I.current||(_=R()),_?m.preventDefault():$();break}}};o.useEffect(function(){return ge?(window.addEventListener("keydown",Z),Fe&&(0,F.Z)(R,3),function(){window.removeEventListener("keydown",Z),I.current=!1}):function(){I.current=!1}},[ge])}var b=(0,o.forwardRef)(function(q,ge){var Te=q.overlay,Se=q.arrow,Fe=q.prefixCls,G=(0,o.useMemo)(function(){var $;return typeof Te=="function"?$=Te():$=Te,$},[Te]),I=(0,he.sQ)(ge,G==null?void 0:G.ref);return o.createElement(o.Fragment,null,Se&&o.createElement("div",{className:"".concat(Fe,"-arrow")}),o.cloneElement(G,{ref:(0,he.Yr)(G)?I:void 0}))}),z=b,te={adjustX:1,adjustY:1},k=[0,0],P={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:k},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:k},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:k},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:k},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:k},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:k}},H=P,ae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function E(q,ge){var Te,Se=q.arrow,Fe=Se===void 0?!1:Se,G=q.prefixCls,I=G===void 0?"rc-dropdown":G,$=q.transitionName,R=q.animation,Z=q.align,B=q.placement,m=B===void 0?"bottomLeft":B,_=q.placements,O=_===void 0?H:_,M=q.getPopupContainer,we=q.showAction,Ee=q.hideAction,De=q.overlayClassName,$e=q.overlayStyle,Je=q.visible,Qe=q.trigger,et=Qe===void 0?["hover"]:Qe,St=q.autoFocus,Et=q.overlay,Bt=q.children,ht=q.onVisibleChange,Rt=(0,Le.Z)(q,ae),It=o.useState(),le=(0,ye.Z)(It,2),ve=le[0],N=le[1],ce="visible"in q?Je:ve,Ae=o.useRef(null),L=o.useRef(null),ee=o.useRef(null);o.useImperativeHandle(ge,function(){return Ae.current});var ue=function(At){N(At),ht==null||ht(At)};w({visible:ce,triggerRef:ee,onVisibleChange:ue,autoFocus:St,overlayRef:L});var _e=function(At){var _t=q.onOverlayClick;N(!1),_t&&_t(At)},ke=function(){return o.createElement(z,{ref:L,overlay:Et,prefixCls:I,arrow:Fe})},Pe=function(){return typeof Et=="function"?ke:ke()},We=function(){var At=q.minOverlayWidthMatchTrigger,_t=q.alignPoint;return"minOverlayWidthMatchTrigger"in q?At:!_t},rt=function(){var At=q.openClassName;return At!==void 0?At:"".concat(I,"-open")},Ze=o.cloneElement(Bt,{className:fe()((Te=Bt.props)===null||Te===void 0?void 0:Te.className,ce&&rt()),ref:(0,he.Yr)(Bt)?(0,he.sQ)(ee,Bt.ref):void 0}),Ge=Ee;return!Ge&&et.indexOf("contextMenu")!==-1&&(Ge=["click"]),o.createElement(oe.Z,(0,A.Z)({builtinPlacements:O},Rt,{prefixCls:I,ref:Ae,popupClassName:fe()(De,(0,J.Z)({},"".concat(I,"-show-arrow"),Fe)),popupStyle:$e,action:et,showAction:we,hideAction:Ge,popupPlacement:m,popupAlign:Z,popupTransitionName:$,popupAnimation:R,popupVisible:ce,stretch:We()?"minWidth":"",popup:Pe(),onPopupVisibleChange:ue,onPopupClick:_e,getPopupContainer:M}),Ze)}var W=o.forwardRef(E),ne=W},93681:function(Ut,qe,y){"use strict";y.r(qe),y.d(qe,{BaseInput:function(){return V},default:function(){return P}});var A=y(96663),J=y(44127),ye=y(90493),Le=y(20135),oe=y(92310),X=y.n(oe),fe=y(59301),he=y(5643),o=function(ae){var E,W,ne=ae.inputElement,q=ae.prefixCls,ge=ae.prefix,Te=ae.suffix,Se=ae.addonBefore,Fe=ae.addonAfter,G=ae.className,I=ae.style,$=ae.disabled,R=ae.readOnly,Z=ae.focused,B=ae.triggerFocus,m=ae.allowClear,_=ae.value,O=ae.handleReset,M=ae.hidden,we=ae.classes,Ee=ae.classNames,De=ae.dataAttrs,$e=ae.styles,Je=ae.components,Qe=(Je==null?void 0:Je.affixWrapper)||"span",et=(Je==null?void 0:Je.groupWrapper)||"span",St=(Je==null?void 0:Je.wrapper)||"span",Et=(Je==null?void 0:Je.groupAddon)||"span",Bt=(0,fe.useRef)(null),ht=function(ke){var Pe;(Pe=Bt.current)!==null&&Pe!==void 0&&Pe.contains(ke.target)&&(B==null||B())},Rt=function(){var ke;if(!m)return null;var Pe=!$&&!R&&_,We="".concat(q,"-clear-icon"),rt=(0,Le.Z)(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"\u2716";return fe.createElement("span",{onClick:O,onMouseDown:function(Ge){return Ge.preventDefault()},className:X()(We,(ke={},(0,ye.Z)(ke,"".concat(We,"-hidden"),!Pe),(0,ye.Z)(ke,"".concat(We,"-has-suffix"),!!Te),ke)),role:"button",tabIndex:-1},rt)},It=(0,fe.cloneElement)(ne,{value:_,hidden:M,className:X()((E=ne.props)===null||E===void 0?void 0:E.className,!(0,he.X3)(ae)&&!(0,he.He)(ae)&&G)||null,style:(0,J.Z)((0,J.Z)({},(W=ne.props)===null||W===void 0?void 0:W.style),!(0,he.X3)(ae)&&!(0,he.He)(ae)?I:{})});if((0,he.X3)(ae)){var le,ve="".concat(q,"-affix-wrapper"),N=X()(ve,(le={},(0,ye.Z)(le,"".concat(ve,"-disabled"),$),(0,ye.Z)(le,"".concat(ve,"-focused"),Z),(0,ye.Z)(le,"".concat(ve,"-readonly"),R),(0,ye.Z)(le,"".concat(ve,"-input-with-clear-btn"),Te&&m&&_),le),!(0,he.He)(ae)&&G,we==null?void 0:we.affixWrapper,Ee==null?void 0:Ee.affixWrapper),ce=(Te||m)&&fe.createElement("span",{className:X()("".concat(q,"-suffix"),Ee==null?void 0:Ee.suffix),style:$e==null?void 0:$e.suffix},Rt(),Te);It=fe.createElement(Qe,(0,A.Z)({className:N,style:(0,J.Z)((0,J.Z)({},(0,he.He)(ae)?void 0:I),$e==null?void 0:$e.affixWrapper),hidden:!(0,he.He)(ae)&&M,onClick:ht},De==null?void 0:De.affixWrapper,{ref:Bt}),ge&&fe.createElement("span",{className:X()("".concat(q,"-prefix"),Ee==null?void 0:Ee.prefix),style:$e==null?void 0:$e.prefix},ge),(0,fe.cloneElement)(ne,{value:_,hidden:null}),ce)}if((0,he.He)(ae)){var Ae="".concat(q,"-group"),L="".concat(Ae,"-addon"),ee=X()("".concat(q,"-wrapper"),Ae,we==null?void 0:we.wrapper),ue=X()("".concat(q,"-group-wrapper"),G,we==null?void 0:we.group);return fe.createElement(et,{className:ue,style:I,hidden:M},fe.createElement(St,{className:ee},Se&&fe.createElement(Et,{className:L},Se),(0,fe.cloneElement)(It,{hidden:null}),Fe&&fe.createElement(Et,{className:L},Fe)))}return It},V=o,F=y(19127),g=y(72071),c=y(6620),w=y(18929),b=y(2738),z=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],te=(0,fe.forwardRef)(function(H,ae){var E=H.autoComplete,W=H.onChange,ne=H.onFocus,q=H.onBlur,ge=H.onPressEnter,Te=H.onKeyDown,Se=H.prefixCls,Fe=Se===void 0?"rc-input":Se,G=H.disabled,I=H.htmlSize,$=H.className,R=H.maxLength,Z=H.suffix,B=H.showCount,m=H.type,_=m===void 0?"text":m,O=H.classes,M=H.classNames,we=H.styles,Ee=(0,c.Z)(H,z),De=(0,w.Z)(H.defaultValue,{value:H.value}),$e=(0,g.Z)(De,2),Je=$e[0],Qe=$e[1],et=(0,fe.useState)(!1),St=(0,g.Z)(et,2),Et=St[0],Bt=St[1],ht=(0,fe.useRef)(null),Rt=function(ue){ht.current&&(0,he.nH)(ht.current,ue)};(0,fe.useImperativeHandle)(ae,function(){return{focus:Rt,blur:function(){var ue;(ue=ht.current)===null||ue===void 0||ue.blur()},setSelectionRange:function(ue,_e,ke){var Pe;(Pe=ht.current)===null||Pe===void 0||Pe.setSelectionRange(ue,_e,ke)},select:function(){var ue;(ue=ht.current)===null||ue===void 0||ue.select()},input:ht.current}}),(0,fe.useEffect)(function(){Bt(function(ee){return ee&&G?!1:ee})},[G]);var It=function(ue){H.value===void 0&&Qe(ue.target.value),ht.current&&(0,he.rJ)(ht.current,ue,W)},le=function(ue){ge&&ue.key==="Enter"&&ge(ue),Te==null||Te(ue)},ve=function(ue){Bt(!0),ne==null||ne(ue)},N=function(ue){Bt(!1),q==null||q(ue)},ce=function(ue){Qe(""),Rt(),ht.current&&(0,he.rJ)(ht.current,ue,W)},Ae=function(){var ue=(0,b.Z)(H,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return fe.createElement("input",(0,A.Z)({autoComplete:E},ue,{onChange:It,onFocus:ve,onBlur:N,onKeyDown:le,className:X()(Fe,(0,ye.Z)({},"".concat(Fe,"-disabled"),G),M==null?void 0:M.input),style:we==null?void 0:we.input,ref:ht,size:I,type:_}))},L=function(){var ue=Number(R)>0;if(Z||B){var _e=(0,he.D7)(Je),ke=(0,F.Z)(_e).length,Pe=(0,Le.Z)(B)==="object"?B.formatter({value:_e,count:ke,maxLength:R}):"".concat(ke).concat(ue?" / ".concat(R):"");return fe.createElement(fe.Fragment,null,!!B&&fe.createElement("span",{className:X()("".concat(Fe,"-show-count-suffix"),(0,ye.Z)({},"".concat(Fe,"-show-count-has-suffix"),!!Z),M==null?void 0:M.count),style:(0,J.Z)({},we==null?void 0:we.count)},Pe),Z)}return null};return fe.createElement(V,(0,A.Z)({},Ee,{prefixCls:Fe,className:$,inputElement:Ae(),handleReset:ce,value:(0,he.D7)(Je),focused:Et,triggerFocus:Rt,suffix:L(),disabled:G,classes:O,classNames:M,styles:we}))}),k=te,P=k},5643:function(Ut,qe,y){"use strict";y.d(qe,{D7:function(){return oe},He:function(){return A},X3:function(){return J},nH:function(){return Le},rJ:function(){return ye}});function A(X){return!!(X.addonBefore||X.addonAfter)}function J(X){return!!(X.prefix||X.suffix||X.allowClear)}function ye(X,fe,he,o){if(he){var V=fe;if(fe.type==="click"){var F=X.cloneNode(!0);V=Object.create(fe,{target:{value:F},currentTarget:{value:F}}),F.value="",he(V);return}if(o!==void 0){V=Object.create(fe,{target:{value:X},currentTarget:{value:X}}),X.value=o,he(V);return}he(V)}}function Le(X,fe){if(X){X.focus(fe);var he=fe||{},o=he.cursor;if(o){var V=X.value.length;switch(o){case"start":X.setSelectionRange(0,0);break;case"end":X.setSelectionRange(V,V);break;default:X.setSelectionRange(0,V)}}}}function oe(X){return typeof X=="undefined"||X===null?"":String(X)}},15285:function(Ut,qe,y){"use strict";y.d(qe,{iz:function(){return sr},ck:function(){return Ve},BW:function(){return gr},sN:function(){return Ve},Wd:function(){return ft},ZP:function(){return nr},Xl:function(){return Te}});var A=y(96663),J=y(90493),ye=y(44127),Le=y(19127),oe=y(72071),X=y(6620),fe=y(92310),he=y.n(fe),o=y(11780),V=y(18929),F=y(13697),g=y(48736),c=y(59301),w=y(4676),b=c.createContext(null);function z(tt,Ye){return tt===void 0?null:"".concat(tt,"-").concat(Ye)}function te(tt){var Ye=c.useContext(b);return z(Ye,tt)}var k=y(80547),P=["children","locked"],H=c.createContext(null);function ae(tt,Ye){var gt=(0,ye.Z)({},tt);return Object.keys(Ye).forEach(function(Tt){var at=Ye[Tt];at!==void 0&&(gt[Tt]=at)}),gt}function E(tt){var Ye=tt.children,gt=tt.locked,Tt=(0,X.Z)(tt,P),at=c.useContext(H),Ct=(0,k.Z)(function(){return ae(at,Tt)},[at,Tt],function(xt,zt){return!gt&&(xt[0]!==zt[0]||!(0,F.Z)(xt[1],zt[1],!0))});return c.createElement(H.Provider,{value:Ct},Ye)}var W=[],ne=c.createContext(null);function q(){return c.useContext(ne)}var ge=c.createContext(W);function Te(tt){var Ye=c.useContext(ge);return c.useMemo(function(){return tt!==void 0?[].concat((0,Le.Z)(Ye),[tt]):Ye},[Ye,tt])}var Se=c.createContext(null),Fe=c.createContext({}),G=Fe,I=y(29194);function $(tt){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,I.Z)(tt)){var gt=tt.nodeName.toLowerCase(),Tt=["input","select","textarea","button"].includes(gt)||tt.isContentEditable||gt==="a"&&!!tt.getAttribute("href"),at=tt.getAttribute("tabindex"),Ct=Number(at),xt=null;return at&&!Number.isNaN(Ct)?xt=Ct:Tt&&xt===null&&(xt=0),Tt&&tt.disabled&&(xt=null),xt!==null&&(xt>=0||Ye&&xt<0)}return!1}function R(tt){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=(0,Le.Z)(tt.querySelectorAll("*")).filter(function(Tt){return $(Tt,Ye)});return $(tt,Ye)&&gt.unshift(tt),gt}var Z=null;function B(){Z=document.activeElement}function m(){Z=null}function _(){if(Z)try{Z.focus()}catch(tt){}}function O(tt,Ye){if(Ye.keyCode===9){var gt=R(tt),Tt=gt[Ye.shiftKey?0:gt.length-1],at=Tt===document.activeElement||tt===document.activeElement;if(at){var Ct=gt[Ye.shiftKey?gt.length-1:0];Ct.focus(),Ye.preventDefault()}}}var M=y(10228),we=y(16089),Ee=M.Z.LEFT,De=M.Z.RIGHT,$e=M.Z.UP,Je=M.Z.DOWN,Qe=M.Z.ENTER,et=M.Z.ESC,St=M.Z.HOME,Et=M.Z.END,Bt=[$e,Je,Ee,De];function ht(tt,Ye,gt,Tt){var at,Ct,xt,zt,rr="prev",qt="next",br="children",Mr="parent";if(tt==="inline"&&Tt===Qe)return{inlineTrigger:!0};var Fr=(at={},(0,J.Z)(at,$e,rr),(0,J.Z)(at,Je,qt),at),vr=(Ct={},(0,J.Z)(Ct,Ee,gt?qt:rr),(0,J.Z)(Ct,De,gt?rr:qt),(0,J.Z)(Ct,Je,br),(0,J.Z)(Ct,Qe,br),Ct),dr=(xt={},(0,J.Z)(xt,$e,rr),(0,J.Z)(xt,Je,qt),(0,J.Z)(xt,Qe,br),(0,J.Z)(xt,et,Mr),(0,J.Z)(xt,Ee,gt?br:Mr),(0,J.Z)(xt,De,gt?Mr:br),xt),Yr={inline:Fr,horizontal:vr,vertical:dr,inlineSub:Fr,horizontalSub:dr,verticalSub:dr},Nr=(zt=Yr["".concat(tt).concat(Ye?"":"Sub")])===null||zt===void 0?void 0:zt[Tt];switch(Nr){case rr:return{offset:-1,sibling:!0};case qt:return{offset:1,sibling:!0};case Mr:return{offset:-1,sibling:!1};case br:return{offset:1,sibling:!1};default:return null}}function Rt(tt){for(var Ye=tt;Ye;){if(Ye.getAttribute("data-menu-list"))return Ye;Ye=Ye.parentElement}return null}function It(tt,Ye){for(var gt=tt||document.activeElement;gt;){if(Ye.has(gt))return gt;gt=gt.parentElement}return null}function le(tt,Ye){var gt=R(tt,!0);return gt.filter(function(Tt){return Ye.has(Tt)})}function ve(tt,Ye,gt){var Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!tt)return null;var at=le(tt,Ye),Ct=at.length,xt=at.findIndex(function(zt){return gt===zt});return Tt<0?xt===-1?xt=Ct-1:xt-=1:Tt>0&&(xt+=1),xt=(xt+Ct)%Ct,at[xt]}var N=function(Ye,gt){var Tt=new Set,at=new Map,Ct=new Map;return Ye.forEach(function(xt){var zt=document.querySelector("[data-menu-id='".concat(z(gt,xt),"']"));zt&&(Tt.add(zt),Ct.set(zt,xt),at.set(xt,zt))}),{elements:Tt,key2element:at,element2key:Ct}};function ce(tt,Ye,gt,Tt,at,Ct,xt,zt,rr,qt){var br=c.useRef(),Mr=c.useRef();Mr.current=Ye;var Fr=function(){we.Z.cancel(br.current)};return c.useEffect(function(){return function(){Fr()}},[]),function(vr){var dr=vr.which;if([].concat(Bt,[Qe,et,St,Et]).includes(dr)){var Yr=Ct(),Nr=N(Yr,Tt),Cr=Nr,Rr=Cr.elements,Br=Cr.key2element,Pr=Cr.element2key,kr=Br.get(Ye),zr=It(kr,Rr),sn=Pr.get(zr),Qr=ht(tt,xt(sn,!0).length===1,gt,dr);if(!Qr&&dr!==St&&dr!==Et)return;(Bt.includes(dr)||[St,Et].includes(dr))&&vr.preventDefault();var Tr=function(Or){if(Or){var yn=Or,Rn=Or.querySelector("a");Rn!=null&&Rn.getAttribute("href")&&(yn=Rn);var rn=Pr.get(Or);zt(rn),Fr(),br.current=(0,we.Z)(function(){Mr.current===rn&&yn.focus()})}};if([St,Et].includes(dr)||Qr.sibling||!zr){var Xe;!zr||tt==="inline"?Xe=at.current:Xe=Rt(zr);var xr,$r=le(Xe,Rr);dr===St?xr=$r[0]:dr===Et?xr=$r[$r.length-1]:xr=ve(Xe,Rr,zr,Qr.offset),Tr(xr)}else if(Qr.inlineTrigger)rr(sn);else if(Qr.offset>0)rr(sn,!0),Fr(),br.current=(0,we.Z)(function(){Nr=N(Yr,Tt);var hn=zr.getAttribute("aria-controls"),Or=document.getElementById(hn),yn=ve(Or,Nr.elements);Tr(yn)},5);else if(Qr.offset<0){var dn=xt(sn,!0),kn=dn[dn.length-2],jr=Br.get(kn);rr(kn,!1),Tr(jr)}}qt==null||qt(vr)}}function Ae(tt){Promise.resolve().then(tt)}var L="__RC_UTIL_PATH_SPLIT__",ee=function(Ye){return Ye.join(L)},ue=function(Ye){return Ye.split(L)},_e="rc-menu-more";function ke(){var tt=c.useState({}),Ye=(0,oe.Z)(tt,2),gt=Ye[1],Tt=(0,c.useRef)(new Map),at=(0,c.useRef)(new Map),Ct=c.useState([]),xt=(0,oe.Z)(Ct,2),zt=xt[0],rr=xt[1],qt=(0,c.useRef)(0),br=(0,c.useRef)(!1),Mr=function(){br.current||gt({})},Fr=(0,c.useCallback)(function(Br,Pr){var kr=ee(Pr);at.current.set(kr,Br),Tt.current.set(Br,kr),qt.current+=1;var zr=qt.current;Ae(function(){zr===qt.current&&Mr()})},[]),vr=(0,c.useCallback)(function(Br,Pr){var kr=ee(Pr);at.current.delete(kr),Tt.current.delete(Br)},[]),dr=(0,c.useCallback)(function(Br){rr(Br)},[]),Yr=(0,c.useCallback)(function(Br,Pr){var kr=Tt.current.get(Br)||"",zr=ue(kr);return Pr&&zt.includes(zr[0])&&zr.unshift(_e),zr},[zt]),Nr=(0,c.useCallback)(function(Br,Pr){return Br.some(function(kr){var zr=Yr(kr,!0);return zr.includes(Pr)})},[Yr]),Cr=function(){var Pr=(0,Le.Z)(Tt.current.keys());return zt.length&&Pr.push(_e),Pr},Rr=(0,c.useCallback)(function(Br){var Pr="".concat(Tt.current.get(Br)).concat(L),kr=new Set;return(0,Le.Z)(at.current.keys()).forEach(function(zr){zr.startsWith(Pr)&&kr.add(at.current.get(zr))}),kr},[]);return c.useEffect(function(){return function(){br.current=!0}},[]),{registerPath:Fr,unregisterPath:vr,refreshOverflowKeys:dr,isSubPathKey:Nr,getKeyPath:Yr,getKeys:Cr,getSubPathKeys:Rr}}function Pe(tt){var Ye=c.useRef(tt);Ye.current=tt;var gt=c.useCallback(function(){for(var Tt,at=arguments.length,Ct=new Array(at),xt=0;xt<at;xt++)Ct[xt]=arguments[xt];return(Tt=Ye.current)===null||Tt===void 0?void 0:Tt.call.apply(Tt,[Ye].concat(Ct))},[]);return tt?gt:void 0}var We=Math.random().toFixed(5).toString().slice(2),rt=0;function Ze(tt){var Ye=(0,V.Z)(tt,{value:tt}),gt=(0,oe.Z)(Ye,2),Tt=gt[0],at=gt[1];return c.useEffect(function(){rt+=1;var Ct="".concat(We,"-").concat(rt);at("rc-menu-uuid-".concat(Ct))},[]),Tt}var Ge=y(52884),mt=y(95727),At=y(65711),_t=y(85745),Lt=y(2738),Ht=y(8654);function Pt(tt,Ye,gt,Tt){var at=c.useContext(H),Ct=at.activeKey,xt=at.onActive,zt=at.onInactive,rr={active:Ct===tt};return Ye||(rr.onMouseEnter=function(qt){gt==null||gt({key:tt,domEvent:qt}),xt(tt)},rr.onMouseLeave=function(qt){Tt==null||Tt({key:tt,domEvent:qt}),zt(tt)}),rr}function Yt(tt){var Ye=c.useContext(H),gt=Ye.mode,Tt=Ye.rtl,at=Ye.inlineIndent;if(gt!=="inline")return null;var Ct=tt;return Tt?{paddingRight:Ct*at}:{paddingLeft:Ct*at}}function $t(tt){var Ye=tt.icon,gt=tt.props,Tt=tt.children,at;return Ye===null||Ye===!1?null:(typeof Ye=="function"?at=c.createElement(Ye,(0,ye.Z)({},gt)):typeof Ye!="boolean"&&(at=Ye),at||Tt||null)}var S=["item"];function C(tt){var Ye=tt.item,gt=(0,X.Z)(tt,S);return Object.defineProperty(gt,"item",{get:function(){return(0,g.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ye}}),gt}var ot=["title","attribute","elementRef"],Q=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Re=["active"],pr=function(tt){(0,At.Z)(gt,tt);var Ye=(0,_t.Z)(gt);function gt(){return(0,Ge.Z)(this,gt),Ye.apply(this,arguments)}return(0,mt.Z)(gt,[{key:"render",value:function(){var at=this.props,Ct=at.title,xt=at.attribute,zt=at.elementRef,rr=(0,X.Z)(at,ot),qt=(0,Lt.Z)(rr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,g.ZP)(!xt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(o.Z.Item,(0,A.Z)({},xt,{title:typeof Ct=="string"?Ct:void 0},qt,{ref:zt}))}}]),gt}(c.Component),Be=c.forwardRef(function(tt,Ye){var gt,Tt=tt.style,at=tt.className,Ct=tt.eventKey,xt=tt.warnKey,zt=tt.disabled,rr=tt.itemIcon,qt=tt.children,br=tt.role,Mr=tt.onMouseEnter,Fr=tt.onMouseLeave,vr=tt.onClick,dr=tt.onKeyDown,Yr=tt.onFocus,Nr=(0,X.Z)(tt,Q),Cr=te(Ct),Rr=c.useContext(H),Br=Rr.prefixCls,Pr=Rr.onItemClick,kr=Rr.disabled,zr=Rr.overflowDisabled,sn=Rr.itemIcon,Qr=Rr.selectedKeys,Tr=Rr.onActive,Xe=c.useContext(G),xr=Xe._internalRenderMenuItem,$r="".concat(Br,"-item"),dn=c.useRef(),kn=c.useRef(),jr=kr||zt,hn=(0,Ht.x1)(Ye,kn),Or=Te(Ct),yn=function(vn){return{key:Ct,keyPath:(0,Le.Z)(Or).reverse(),item:dn.current,domEvent:vn}},Rn=rr||sn,rn=Pt(Ct,jr,Mr,Fr),Cn=rn.active,ni=(0,X.Z)(rn,Re),Un=Qr.includes(Ct),ei=Yt(Or.length),cr=function(vn){if(!jr){var Nn=yn(vn);vr==null||vr(C(Nn)),Pr(Nn)}},tn=function(vn){if(dr==null||dr(vn),vn.which===M.Z.ENTER){var Nn=yn(vn);vr==null||vr(C(Nn)),Pr(Nn)}},an=function(vn){Tr(Ct),Yr==null||Yr(vn)},mn={};tt.role==="option"&&(mn["aria-selected"]=Un);var Zn=c.createElement(pr,(0,A.Z)({ref:dn,elementRef:hn,role:br===null?"none":br||"menuitem",tabIndex:zt?null:-1,"data-menu-id":zr&&Cr?null:Cr},Nr,ni,mn,{component:"li","aria-disabled":zt,style:(0,ye.Z)((0,ye.Z)({},ei),Tt),className:he()($r,(gt={},(0,J.Z)(gt,"".concat($r,"-active"),Cn),(0,J.Z)(gt,"".concat($r,"-selected"),Un),(0,J.Z)(gt,"".concat($r,"-disabled"),jr),gt),at),onClick:cr,onKeyDown:tn,onFocus:an}),qt,c.createElement($t,{props:(0,ye.Z)((0,ye.Z)({},tt),{},{isSelected:Un}),icon:Rn}));return xr&&(Zn=xr(Zn,tt,{selected:Un})),Zn});function He(tt,Ye){var gt=tt.eventKey,Tt=q(),at=Te(gt);return c.useEffect(function(){if(Tt)return Tt.registerPath(gt,at),function(){Tt.unregisterPath(gt,at)}},[at]),Tt?null:c.createElement(Be,(0,A.Z)({},tt,{ref:Ye}))}var Ve=c.forwardRef(He),re=["className","children"],me=function(Ye,gt){var Tt=Ye.className,at=Ye.children,Ct=(0,X.Z)(Ye,re),xt=c.useContext(H),zt=xt.prefixCls,rr=xt.mode,qt=xt.rtl;return c.createElement("ul",(0,A.Z)({className:he()(zt,qt&&"".concat(zt,"-rtl"),"".concat(zt,"-sub"),"".concat(zt,"-").concat(rr==="inline"?"inline":"vertical"),Tt),role:"menu"},Ct,{"data-menu-list":!0,ref:gt}),at)},Me=c.forwardRef(me);Me.displayName="SubMenuList";var Ue=Me,Y=y(11592);function Ft(tt,Ye){return(0,Y.Z)(tt).map(function(gt,Tt){if(c.isValidElement(gt)){var at,Ct,xt=gt.key,zt=(at=(Ct=gt.props)===null||Ct===void 0?void 0:Ct.eventKey)!==null&&at!==void 0?at:xt,rr=zt==null;rr&&(zt="tmp_key-".concat([].concat((0,Le.Z)(Ye),[Tt]).join("-")));var qt={key:zt,eventKey:zt};return c.cloneElement(gt,qt)}return gt})}var Oe=y(35593),Wt={adjustX:1,adjustY:1},ir={topLeft:{points:["bl","tl"],overflow:Wt},topRight:{points:["br","tr"],overflow:Wt},bottomLeft:{points:["tl","bl"],overflow:Wt},bottomRight:{points:["tr","br"],overflow:Wt},leftTop:{points:["tr","tl"],overflow:Wt},leftBottom:{points:["br","bl"],overflow:Wt},rightTop:{points:["tl","tr"],overflow:Wt},rightBottom:{points:["bl","br"],overflow:Wt}},bt={topLeft:{points:["bl","tl"],overflow:Wt},topRight:{points:["br","tr"],overflow:Wt},bottomLeft:{points:["tl","bl"],overflow:Wt},bottomRight:{points:["tr","br"],overflow:Wt},rightTop:{points:["tr","tl"],overflow:Wt},rightBottom:{points:["br","bl"],overflow:Wt},leftTop:{points:["tl","tr"],overflow:Wt},leftBottom:{points:["bl","br"],overflow:Wt}},kt=null;function lt(tt,Ye,gt){if(Ye)return Ye;if(gt)return gt[tt]||gt.other}var pt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function tr(tt){var Ye=tt.prefixCls,gt=tt.visible,Tt=tt.children,at=tt.popup,Ct=tt.popupStyle,xt=tt.popupClassName,zt=tt.popupOffset,rr=tt.disabled,qt=tt.mode,br=tt.onVisibleChange,Mr=c.useContext(H),Fr=Mr.getPopupContainer,vr=Mr.rtl,dr=Mr.subMenuOpenDelay,Yr=Mr.subMenuCloseDelay,Nr=Mr.builtinPlacements,Cr=Mr.triggerSubMenuAction,Rr=Mr.forceSubMenuRender,Br=Mr.rootClassName,Pr=Mr.motion,kr=Mr.defaultMotions,zr=c.useState(!1),sn=(0,oe.Z)(zr,2),Qr=sn[0],Tr=sn[1],Xe=vr?(0,ye.Z)((0,ye.Z)({},bt),Nr):(0,ye.Z)((0,ye.Z)({},ir),Nr),xr=pt[qt],$r=lt(qt,Pr,kr),dn=c.useRef($r);qt!=="inline"&&(dn.current=$r);var kn=(0,ye.Z)((0,ye.Z)({},dn.current),{},{leavedClassName:"".concat(Ye,"-hidden"),removeOnLeave:!1,motionAppear:!0}),jr=c.useRef();return c.useEffect(function(){return jr.current=(0,we.Z)(function(){Tr(gt)}),function(){we.Z.cancel(jr.current)}},[gt]),c.createElement(Oe.Z,{prefixCls:Ye,popupClassName:he()("".concat(Ye,"-popup"),(0,J.Z)({},"".concat(Ye,"-rtl"),vr),xt,Br),stretch:qt==="horizontal"?"minWidth":null,getPopupContainer:Fr,builtinPlacements:Xe,popupPlacement:xr,popupVisible:Qr,popup:at,popupStyle:Ct,popupAlign:zt&&{offset:zt},action:rr?[]:[Cr],mouseEnterDelay:dr,mouseLeaveDelay:Yr,onPopupVisibleChange:br,forceRender:Rr,popupMotion:kn,fresh:!0},Tt)}var pe=y(77900);function Ce(tt){var Ye=tt.id,gt=tt.open,Tt=tt.keyPath,at=tt.children,Ct="inline",xt=c.useContext(H),zt=xt.prefixCls,rr=xt.forceSubMenuRender,qt=xt.motion,br=xt.defaultMotions,Mr=xt.mode,Fr=c.useRef(!1);Fr.current=Mr===Ct;var vr=c.useState(!Fr.current),dr=(0,oe.Z)(vr,2),Yr=dr[0],Nr=dr[1],Cr=Fr.current?gt:!1;c.useEffect(function(){Fr.current&&Nr(!1)},[Mr]);var Rr=(0,ye.Z)({},lt(Ct,qt,br));Tt.length>1&&(Rr.motionAppear=!1);var Br=Rr.onVisibleChanged;return Rr.onVisibleChanged=function(Pr){return!Fr.current&&!Pr&&Nr(!0),Br==null?void 0:Br(Pr)},Yr?null:c.createElement(E,{mode:Ct,locked:!Fr.current},c.createElement(pe.default,(0,A.Z)({visible:Cr},Rr,{forceRender:rr,removeOnLeave:!1,leavedClassName:"".concat(zt,"-hidden")}),function(Pr){var kr=Pr.className,zr=Pr.style;return c.createElement(Ue,{id:Ye,className:kr,style:zr},at)}))}var it=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ke=["active"],st=function(Ye){var gt,Tt=Ye.style,at=Ye.className,Ct=Ye.title,xt=Ye.eventKey,zt=Ye.warnKey,rr=Ye.disabled,qt=Ye.internalPopupClose,br=Ye.children,Mr=Ye.itemIcon,Fr=Ye.expandIcon,vr=Ye.popupClassName,dr=Ye.popupOffset,Yr=Ye.popupStyle,Nr=Ye.onClick,Cr=Ye.onMouseEnter,Rr=Ye.onMouseLeave,Br=Ye.onTitleClick,Pr=Ye.onTitleMouseEnter,kr=Ye.onTitleMouseLeave,zr=(0,X.Z)(Ye,it),sn=te(xt),Qr=c.useContext(H),Tr=Qr.prefixCls,Xe=Qr.mode,xr=Qr.openKeys,$r=Qr.disabled,dn=Qr.overflowDisabled,kn=Qr.activeKey,jr=Qr.selectedKeys,hn=Qr.itemIcon,Or=Qr.expandIcon,yn=Qr.onItemClick,Rn=Qr.onOpenChange,rn=Qr.onActive,Cn=c.useContext(G),ni=Cn._internalRenderSubMenuItem,Un=c.useContext(Se),ei=Un.isSubPathKey,cr=Te(),tn="".concat(Tr,"-submenu"),an=$r||rr,mn=c.useRef(),Zn=c.useRef(),Vn=Mr!=null?Mr:hn,vn=Fr!=null?Fr:Or,Nn=xr.includes(xt),un=!dn&&Nn,Yn=ei(jr,xt),Gn=Pt(xt,an,Pr,kr),si=Gn.active,jn=(0,X.Z)(Gn,Ke),ii=c.useState(!1),Gr=(0,oe.Z)(ii,2),di=Gr[0],wi=Gr[1],yi=function(Kn){an||wi(Kn)},pn=function(Kn){yi(!0),Cr==null||Cr({key:xt,domEvent:Kn})},fi=function(Kn){yi(!1),Rr==null||Rr({key:xt,domEvent:Kn})},xi=c.useMemo(function(){return si||(Xe!=="inline"?di||ei([kn],xt):!1)},[Xe,si,kn,di,xt,ei]),Jt=Yt(cr.length),Xn=function(Kn){an||(Br==null||Br({key:xt,domEvent:Kn}),Xe==="inline"&&Rn(xt,!Nn))},mi=Pe(function(In){Nr==null||Nr(C(In)),yn(In)}),li=function(Kn){Xe!=="inline"&&Rn(xt,Kn)},On=function(){rn(xt)},xn=sn&&"".concat(sn,"-popup"),Jr=c.createElement("div",(0,A.Z)({role:"menuitem",style:Jt,className:"".concat(tn,"-title"),tabIndex:an?null:-1,ref:mn,title:typeof Ct=="string"?Ct:null,"data-menu-id":dn&&sn?null:sn,"aria-expanded":un,"aria-haspopup":!0,"aria-controls":xn,"aria-disabled":an,onClick:Xn,onFocus:On},jn),Ct,c.createElement($t,{icon:Xe!=="horizontal"?vn:void 0,props:(0,ye.Z)((0,ye.Z)({},Ye),{},{isOpen:un,isSubMenu:!0})},c.createElement("i",{className:"".concat(tn,"-arrow")}))),En=c.useRef(Xe);if(Xe!=="inline"&&cr.length>1?En.current="vertical":En.current=Xe,!dn){var Fn=En.current;Jr=c.createElement(tr,{mode:Fn,prefixCls:tn,visible:!qt&&un&&Xe!=="inline",popupClassName:vr,popupOffset:dr,popupStyle:Yr,popup:c.createElement(E,{mode:Fn==="horizontal"?"vertical":Fn},c.createElement(Ue,{id:xn,ref:Zn},br)),disabled:an,onVisibleChange:li},Jr)}var Qn=c.createElement(o.Z.Item,(0,A.Z)({role:"none"},zr,{component:"li",style:Tt,className:he()(tn,"".concat(tn,"-").concat(Xe),at,(gt={},(0,J.Z)(gt,"".concat(tn,"-open"),un),(0,J.Z)(gt,"".concat(tn,"-active"),xi),(0,J.Z)(gt,"".concat(tn,"-selected"),Yn),(0,J.Z)(gt,"".concat(tn,"-disabled"),an),gt)),onMouseEnter:pn,onMouseLeave:fi}),Jr,!dn&&c.createElement(Ce,{id:xn,open:un,keyPath:cr},br));return ni&&(Qn=ni(Qn,Ye,{selected:Yn,active:xi,open:un,disabled:an})),c.createElement(E,{onItemClick:mi,mode:Xe==="horizontal"?"vertical":Xe,itemIcon:Vn,expandIcon:vn},Qn)};function ft(tt){var Ye=tt.eventKey,gt=tt.children,Tt=Te(Ye),at=Ft(gt,Tt),Ct=q();c.useEffect(function(){if(Ct)return Ct.registerPath(Ye,Tt),function(){Ct.unregisterPath(Ye,Tt)}},[Tt]);var xt;return Ct?xt=at:xt=c.createElement(st,tt,at),c.createElement(ge.Provider,{value:Tt},xt)}var wt=y(20135),Xt=["className","title","eventKey","children"],ar=["children"],jt=function(Ye){var gt=Ye.className,Tt=Ye.title,at=Ye.eventKey,Ct=Ye.children,xt=(0,X.Z)(Ye,Xt),zt=c.useContext(H),rr=zt.prefixCls,qt="".concat(rr,"-item-group");return c.createElement("li",(0,A.Z)({role:"presentation"},xt,{onClick:function(Mr){return Mr.stopPropagation()},className:he()(qt,gt)}),c.createElement("div",{role:"presentation",className:"".concat(qt,"-title"),title:typeof Tt=="string"?Tt:void 0},Tt),c.createElement("ul",{role:"group",className:"".concat(qt,"-list")},Ct))};function gr(tt){var Ye=tt.children,gt=(0,X.Z)(tt,ar),Tt=Te(gt.eventKey),at=Ft(Ye,Tt),Ct=q();return Ct?at:c.createElement(jt,(0,Lt.Z)(gt,["warnKey"]),at)}function sr(tt){var Ye=tt.className,gt=tt.style,Tt=c.useContext(H),at=Tt.prefixCls,Ct=q();return Ct?null:c.createElement("li",{role:"separator",className:he()("".concat(at,"-item-divider"),Ye),style:gt})}var Gt=["label","children","key","type"];function Ot(tt){return(tt||[]).map(function(Ye,gt){if(Ye&&(0,wt.Z)(Ye)==="object"){var Tt=Ye,at=Tt.label,Ct=Tt.children,xt=Tt.key,zt=Tt.type,rr=(0,X.Z)(Tt,Gt),qt=xt!=null?xt:"tmp-".concat(gt);return Ct||zt==="group"?zt==="group"?c.createElement(gr,(0,A.Z)({key:qt},rr,{title:at}),Ot(Ct)):c.createElement(ft,(0,A.Z)({key:qt},rr,{title:at}),Ot(Ct)):zt==="divider"?c.createElement(sr,(0,A.Z)({key:qt},rr)):c.createElement(Ve,(0,A.Z)({key:qt},rr),at)}return null}).filter(function(Ye){return Ye})}function ur(tt,Ye,gt){var Tt=tt;return Ye&&(Tt=Ot(Ye)),Ft(Tt,gt)}var Dr=["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"],yr=[],Lr=c.forwardRef(function(tt,Ye){var gt,Tt,at=tt,Ct=at.prefixCls,xt=Ct===void 0?"rc-menu":Ct,zt=at.rootClassName,rr=at.style,qt=at.className,br=at.tabIndex,Mr=br===void 0?0:br,Fr=at.items,vr=at.children,dr=at.direction,Yr=at.id,Nr=at.mode,Cr=Nr===void 0?"vertical":Nr,Rr=at.inlineCollapsed,Br=at.disabled,Pr=at.disabledOverflow,kr=at.subMenuOpenDelay,zr=kr===void 0?.1:kr,sn=at.subMenuCloseDelay,Qr=sn===void 0?.1:sn,Tr=at.forceSubMenuRender,Xe=at.defaultOpenKeys,xr=at.openKeys,$r=at.activeKey,dn=at.defaultActiveFirst,kn=at.selectable,jr=kn===void 0?!0:kn,hn=at.multiple,Or=hn===void 0?!1:hn,yn=at.defaultSelectedKeys,Rn=at.selectedKeys,rn=at.onSelect,Cn=at.onDeselect,ni=at.inlineIndent,Un=ni===void 0?24:ni,ei=at.motion,cr=at.defaultMotions,tn=at.triggerSubMenuAction,an=tn===void 0?"hover":tn,mn=at.builtinPlacements,Zn=at.itemIcon,Vn=at.expandIcon,vn=at.overflowedIndicator,Nn=vn===void 0?"...":vn,un=at.overflowedIndicatorPopupClassName,Yn=at.getPopupContainer,Gn=at.onClick,si=at.onOpenChange,jn=at.onKeyDown,ii=at.openAnimation,Gr=at.openTransitionName,di=at._internalRenderMenuItem,wi=at._internalRenderSubMenuItem,yi=(0,X.Z)(at,Dr),pn=c.useMemo(function(){return ur(vr,Fr,yr)},[vr,Fr]),fi=c.useState(!1),xi=(0,oe.Z)(fi,2),Jt=xi[0],Xn=xi[1],mi=c.useRef(),li=Ze(Yr),On=dr==="rtl",xn=(0,V.Z)(Xe,{value:xr,postState:function(fn){return fn||yr}}),Jr=(0,oe.Z)(xn,2),En=Jr[0],Fn=Jr[1],Qn=function(fn){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wn(){Fn(fn),si==null||si(fn)}cn?(0,w.flushSync)(Wn):Wn()},In=c.useState(En),Kn=(0,oe.Z)(In,2),Ri=Kn[0],gn=Kn[1],Hr=c.useRef(!1),Pn=c.useMemo(function(){return(Cr==="inline"||Cr==="vertical")&&Rr?["vertical",Rr]:[Cr,!1]},[Cr,Rr]),Mn=(0,oe.Z)(Pn,2),ai=Mn[0],fr=Mn[1],mr=ai==="inline",nn=c.useState(ai),zn=(0,oe.Z)(nn,2),ln=zn[0],pi=zn[1],Ki=c.useState(fr),zi=(0,oe.Z)(Ki,2),Ti=zi[0],vs=zi[1];c.useEffect(function(){pi(ai),vs(fr),Hr.current&&(mr?Fn(Ri):Qn(yr))},[ai,fr]);var Ds=c.useState(0),Rs=(0,oe.Z)(Ds,2),ns=Rs[0],Is=Rs[1],Ii=ns>=pn.length-1||ln!=="horizontal"||Pr;c.useEffect(function(){mr&&gn(En)},[En]),c.useEffect(function(){return Hr.current=!0,function(){Hr.current=!1}},[]);var ti=ke(),_s=ti.registerPath,is=ti.unregisterPath,Si=ti.refreshOverflowKeys,Li=ti.isSubPathKey,Qs=ti.getKeyPath,Oi=ti.getKeys,Js=ti.getSubPathKeys,bs=c.useMemo(function(){return{registerPath:_s,unregisterPath:is}},[_s,is]),ss=c.useMemo(function(){return{isSubPathKey:Li}},[Li]);c.useEffect(function(){Si(Ii?yr:pn.slice(ns+1).map(function(_n){return _n.key}))},[ns,Ii]);var qs=(0,V.Z)($r||dn&&((gt=pn[0])===null||gt===void 0?void 0:gt.key),{value:$r}),ri=(0,oe.Z)(qs,2),Xi=ri[0],$i=ri[1],Wi=Pe(function(_n){$i(_n)}),Ls=Pe(function(){$i(void 0)});(0,c.useImperativeHandle)(Ye,function(){return{list:mi.current,focus:function(fn){var cn,Wn=Oi(),Jn=N(Wn,li),Ji=Jn.elements,Es=Jn.key2element,Os=Jn.element2key,Ps=le(mi.current,Ji),qi=Xi!=null?Xi:Ps[0]?Os.get(Ps[0]):(cn=pn.find(function(cs){return!cs.props.disabled}))===null||cn===void 0?void 0:cn.key,Zi=Es.get(qi);if(qi&&Zi){var Kt;Zi==null||(Kt=Zi.focus)===null||Kt===void 0||Kt.call(Zi,fn)}}}});var wn=(0,V.Z)(yn||[],{value:Rn,postState:function(fn){return Array.isArray(fn)?fn:fn==null?yr:[fn]}}),as=(0,oe.Z)(wn,2),gi=as[0],Qi=as[1],ea=function(fn){if(jr){var cn=fn.key,Wn=gi.includes(cn),Jn;Or?Wn?Jn=gi.filter(function(Es){return Es!==cn}):Jn=[].concat((0,Le.Z)(gi),[cn]):Jn=[cn],Qi(Jn);var Ji=(0,ye.Z)((0,ye.Z)({},fn),{},{selectedKeys:Jn});Wn?Cn==null||Cn(Ji):rn==null||rn(Ji)}!Or&&En.length&&ln!=="inline"&&Qn(yr)},os=Pe(function(_n){Gn==null||Gn(C(_n)),ea(_n)}),ls=Pe(function(_n,fn){var cn=En.filter(function(Jn){return Jn!==_n});if(fn)cn.push(_n);else if(ln!=="inline"){var Wn=Js(_n);cn=cn.filter(function(Jn){return!Wn.has(Jn)})}(0,F.Z)(En,cn,!0)||Qn(cn,!0)}),us=function(fn,cn){var Wn=cn!=null?cn:!En.includes(fn);ls(fn,Wn)},ys=ce(ln,Xi,On,li,mi,Oi,Qs,$i,us,jn);c.useEffect(function(){Xn(!0)},[]);var ks=c.useMemo(function(){return{_internalRenderMenuItem:di,_internalRenderSubMenuItem:wi}},[di,wi]),Di=ln!=="horizontal"||Pr?pn:pn.map(function(_n,fn){return c.createElement(E,{key:_n.key,overflowDisabled:fn>ns},_n)}),xs=c.createElement(o.Z,(0,A.Z)({id:Yr,ref:mi,prefixCls:"".concat(xt,"-overflow"),component:"ul",itemComponent:Ve,className:he()(xt,"".concat(xt,"-root"),"".concat(xt,"-").concat(ln),qt,(Tt={},(0,J.Z)(Tt,"".concat(xt,"-inline-collapsed"),Ti),(0,J.Z)(Tt,"".concat(xt,"-rtl"),On),Tt),zt),dir:dr,style:rr,role:"menu",tabIndex:Mr,data:Di,renderRawItem:function(fn){return fn},renderRawRest:function(fn){var cn=fn.length,Wn=cn?pn.slice(-cn):null;return c.createElement(ft,{eventKey:_e,title:Nn,disabled:Ii,internalPopupClose:cn===0,popupClassName:un},Wn)},maxCount:ln!=="horizontal"||Pr?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(fn){Is(fn)},onKeyDown:ys},yi));return c.createElement(G.Provider,{value:ks},c.createElement(b.Provider,{value:li},c.createElement(E,{prefixCls:xt,rootClassName:zt,mode:ln,openKeys:En,rtl:On,disabled:Br,motion:Jt?ei:null,defaultMotions:Jt?cr:null,activeKey:Xi,onActive:Wi,onInactive:Ls,selectedKeys:gi,inlineIndent:Un,subMenuOpenDelay:zr,subMenuCloseDelay:Qr,forceSubMenuRender:Tr,builtinPlacements:mn,triggerSubMenuAction:an,getPopupContainer:Yn,itemIcon:Zn,expandIcon:Vn,onItemClick:os,onOpenChange:ls},c.createElement(Se.Provider,{value:ss},xs),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(ne.Provider,{value:bs},pn)))))}),en=Lr,Ar=en;Ar.Item=Ve,Ar.SubMenu=ft,Ar.ItemGroup=gr,Ar.Divider=sr;var nr=Ar},11780:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return B}});var A=y(96663),J=y(44127),ye=y(72071),Le=y(6620),oe=y(59301),X=y(92310),fe=y.n(X),he=y(29301),o=y(34280),V=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],F=void 0;function g(m,_){var O=m.prefixCls,M=m.invalidate,we=m.item,Ee=m.renderItem,De=m.responsive,$e=m.responsiveDisabled,Je=m.registerSize,Qe=m.itemKey,et=m.className,St=m.style,Et=m.children,Bt=m.display,ht=m.order,Rt=m.component,It=Rt===void 0?"div":Rt,le=(0,Le.Z)(m,V),ve=De&&!Bt;function N(ue){Je(Qe,ue)}oe.useEffect(function(){return function(){N(null)}},[]);var ce=Ee&&we!==F?Ee(we,{index:ht}):Et,Ae;M||(Ae={opacity:ve?0:1,height:ve?0:F,overflowY:ve?"hidden":F,order:De?ht:F,pointerEvents:ve?"none":F,position:ve?"absolute":F});var L={};ve&&(L["aria-hidden"]=!0);var ee=oe.createElement(It,(0,A.Z)({className:fe()(!M&&O,et),style:(0,J.Z)((0,J.Z)({},Ae),St)},L,le,{ref:_}),ce);return De&&(ee=oe.createElement(he.Z,{onResize:function(_e){var ke=_e.offsetWidth;N(ke)},disabled:$e},ee)),ee}var c=oe.forwardRef(g);c.displayName="Item";var w=c,b=y(6089),z=y(4676),te=y(16089);function k(m){if(typeof MessageChannel=="undefined")(0,te.Z)(m);else{var _=new MessageChannel;_.port1.onmessage=function(){return m()},_.port2.postMessage(void 0)}}function P(){var m=oe.useRef(null),_=function(M){m.current||(m.current=[],k(function(){(0,z.unstable_batchedUpdates)(function(){m.current.forEach(function(we){we()}),m.current=null})})),m.current.push(M)};return _}function H(m,_){var O=oe.useState(_),M=(0,ye.Z)(O,2),we=M[0],Ee=M[1],De=(0,b.Z)(function($e){m(function(){Ee($e)})});return[we,De]}var ae=oe.createContext(null),E=["component"],W=["className"],ne=["className"],q=function(_,O){var M=oe.useContext(ae);if(!M){var we=_.component,Ee=we===void 0?"div":we,De=(0,Le.Z)(_,E);return oe.createElement(Ee,(0,A.Z)({},De,{ref:O}))}var $e=M.className,Je=(0,Le.Z)(M,W),Qe=_.className,et=(0,Le.Z)(_,ne);return oe.createElement(ae.Provider,{value:null},oe.createElement(w,(0,A.Z)({ref:O,className:fe()($e,Qe)},Je,et)))},ge=oe.forwardRef(q);ge.displayName="RawItem";var Te=ge,Se=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fe="responsive",G="invalidate";function I(m){return"+ ".concat(m.length," ...")}function $(m,_){var O=m.prefixCls,M=O===void 0?"rc-overflow":O,we=m.data,Ee=we===void 0?[]:we,De=m.renderItem,$e=m.renderRawItem,Je=m.itemKey,Qe=m.itemWidth,et=Qe===void 0?10:Qe,St=m.ssr,Et=m.style,Bt=m.className,ht=m.maxCount,Rt=m.renderRest,It=m.renderRawRest,le=m.suffix,ve=m.component,N=ve===void 0?"div":ve,ce=m.itemComponent,Ae=m.onVisibleChange,L=(0,Le.Z)(m,Se),ee=St==="full",ue=P(),_e=H(ue,null),ke=(0,ye.Z)(_e,2),Pe=ke[0],We=ke[1],rt=Pe||0,Ze=H(ue,new Map),Ge=(0,ye.Z)(Ze,2),mt=Ge[0],At=Ge[1],_t=H(ue,0),Lt=(0,ye.Z)(_t,2),Ht=Lt[0],Pt=Lt[1],Yt=H(ue,0),$t=(0,ye.Z)(Yt,2),S=$t[0],C=$t[1],ot=H(ue,0),Q=(0,ye.Z)(ot,2),Re=Q[0],pr=Q[1],Be=(0,oe.useState)(null),He=(0,ye.Z)(Be,2),Ve=He[0],re=He[1],me=(0,oe.useState)(null),Me=(0,ye.Z)(me,2),Ue=Me[0],Y=Me[1],Ft=oe.useMemo(function(){return Ue===null&&ee?Number.MAX_SAFE_INTEGER:Ue||0},[Ue,Pe]),Oe=(0,oe.useState)(!1),Wt=(0,ye.Z)(Oe,2),ir=Wt[0],bt=Wt[1],kt="".concat(M,"-item"),lt=Math.max(Ht,S),pt=ht===Fe,tr=Ee.length&&pt,pe=ht===G,Ce=tr||typeof ht=="number"&&Ee.length>ht,it=(0,oe.useMemo)(function(){var nr=Ee;return tr?Pe===null&&ee?nr=Ee:nr=Ee.slice(0,Math.min(Ee.length,rt/et)):typeof ht=="number"&&(nr=Ee.slice(0,ht)),nr},[Ee,et,Pe,ht,tr]),Ke=(0,oe.useMemo)(function(){return tr?Ee.slice(Ft+1):Ee.slice(it.length)},[Ee,it,tr,Ft]),st=(0,oe.useCallback)(function(nr,tt){var Ye;return typeof Je=="function"?Je(nr):(Ye=Je&&(nr==null?void 0:nr[Je]))!==null&&Ye!==void 0?Ye:tt},[Je]),ft=(0,oe.useCallback)(De||function(nr){return nr},[De]);function wt(nr,tt,Ye){Ue===nr&&(tt===void 0||tt===Ve)||(Y(nr),Ye||(bt(nr<Ee.length-1),Ae==null||Ae(nr)),tt!==void 0&&re(tt))}function Xt(nr,tt){We(tt.clientWidth)}function ar(nr,tt){At(function(Ye){var gt=new Map(Ye);return tt===null?gt.delete(nr):gt.set(nr,tt),gt})}function jt(nr,tt){C(tt),Pt(S)}function gr(nr,tt){pr(tt)}function sr(nr){return mt.get(st(it[nr],nr))}(0,o.Z)(function(){if(rt&&typeof lt=="number"&&it){var nr=Re,tt=it.length,Ye=tt-1;if(!tt){wt(0,null);return}for(var gt=0;gt<tt;gt+=1){var Tt=sr(gt);if(ee&&(Tt=Tt||0),Tt===void 0){wt(gt-1,void 0,!0);break}if(nr+=Tt,Ye===0&&nr<=rt||gt===Ye-1&&nr+sr(Ye)<=rt){wt(Ye,null);break}else if(nr+lt>rt){wt(gt-1,nr-Tt-Re+S);break}}le&&sr(0)+Re>rt&&re(null)}},[rt,mt,S,Re,st,it]);var Gt=ir&&!!Ke.length,Ot={};Ve!==null&&tr&&(Ot={position:"absolute",left:Ve,top:0});var ur={prefixCls:kt,responsive:tr,component:ce,invalidate:pe},Dr=$e?function(nr,tt){var Ye=st(nr,tt);return oe.createElement(ae.Provider,{key:Ye,value:(0,J.Z)((0,J.Z)({},ur),{},{order:tt,item:nr,itemKey:Ye,registerSize:ar,display:tt<=Ft})},$e(nr,tt))}:function(nr,tt){var Ye=st(nr,tt);return oe.createElement(w,(0,A.Z)({},ur,{order:tt,key:Ye,item:nr,renderItem:ft,itemKey:Ye,registerSize:ar,display:tt<=Ft}))},yr={order:Gt?Ft:Number.MAX_SAFE_INTEGER,className:"".concat(kt,"-rest"),registerSize:jt,display:Gt},Lr=Rt||I,en=It?oe.createElement(ae.Provider,{value:(0,J.Z)((0,J.Z)({},ur),yr)},It(Ke)):oe.createElement(w,(0,A.Z)({},ur,yr),typeof Lr=="function"?Lr(Ke):Lr),Ar=oe.createElement(N,(0,A.Z)({className:fe()(!pe&&M,Bt),style:Et,ref:_},L),it.map(Dr),Ce?en:null,le&&oe.createElement(w,(0,A.Z)({},ur,{responsive:pt,responsiveDisabled:!tr,order:Ft,className:"".concat(kt,"-suffix"),registerSize:gr,display:!0,style:Ot}),le));return pt?oe.createElement(he.Z,{onResize:Xt,disabled:!tr},Ar):Ar}var R=oe.forwardRef($);R.displayName="Overflow",R.Item=Te,R.RESPONSIVE=Fe,R.INVALIDATE=G;var Z=R,B=Z},29301:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return G}});var A=y(96663),J=y(59301),ye=y(11592),Le=y(48736),oe=y(44127),X=y(20135),fe=y(76846),he=y(8654),o=J.createContext(null);function V(I){var $=I.children,R=I.onBatchResize,Z=J.useRef(0),B=J.useRef([]),m=J.useContext(o),_=J.useCallback(function(O,M,we){Z.current+=1;var Ee=Z.current;B.current.push({size:O,element:M,data:we}),Promise.resolve().then(function(){Ee===Z.current&&(R==null||R(B.current),B.current=[])}),m==null||m(O,M,we)},[R,m]);return J.createElement(o.Provider,{value:_},$)}var F=y(76374),g=new Map;function c(I){I.forEach(function($){var R,Z=$.target;(R=g.get(Z))===null||R===void 0||R.forEach(function(B){return B(Z)})})}var w=new F.Z(c),b=null,z=null;function te(I,$){g.has(I)||(g.set(I,new Set),w.observe(I)),g.get(I).add($)}function k(I,$){g.has(I)&&(g.get(I).delete($),g.get(I).size||(w.unobserve(I),g.delete(I)))}var P=y(52884),H=y(95727),ae=y(65711),E=y(85745),W=function(I){(0,ae.Z)(R,I);var $=(0,E.Z)(R);function R(){return(0,P.Z)(this,R),$.apply(this,arguments)}return(0,H.Z)(R,[{key:"render",value:function(){return this.props.children}}]),R}(J.Component);function ne(I,$){var R=I.children,Z=I.disabled,B=J.useRef(null),m=J.useRef(null),_=J.useContext(o),O=typeof R=="function",M=O?R(B):R,we=J.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ee=!O&&J.isValidElement(M)&&(0,he.Yr)(M),De=Ee?(0,he.C4)(M):null,$e=(0,he.x1)(De,B),Je=function(){var Et;return(0,fe.ZP)(B.current)||(B.current&&(0,X.Z)(B.current)==="object"?(0,fe.ZP)((Et=B.current)===null||Et===void 0?void 0:Et.nativeElement):null)||(0,fe.ZP)(m.current)};J.useImperativeHandle($,function(){return Je()});var Qe=J.useRef(I);Qe.current=I;var et=J.useCallback(function(St){var Et=Qe.current,Bt=Et.onResize,ht=Et.data,Rt=St.getBoundingClientRect(),It=Rt.width,le=Rt.height,ve=St.offsetWidth,N=St.offsetHeight,ce=Math.floor(It),Ae=Math.floor(le);if(we.current.width!==ce||we.current.height!==Ae||we.current.offsetWidth!==ve||we.current.offsetHeight!==N){var L={width:ce,height:Ae,offsetWidth:ve,offsetHeight:N};we.current=L;var ee=ve===Math.round(It)?It:ve,ue=N===Math.round(le)?le:N,_e=(0,oe.Z)((0,oe.Z)({},L),{},{offsetWidth:ee,offsetHeight:ue});_==null||_(_e,St,ht),Bt&&Promise.resolve().then(function(){Bt(_e,St)})}},[]);return J.useEffect(function(){var St=Je();return St&&!Z&&te(St,et),function(){return k(St,et)}},[B.current,Z]),J.createElement(W,{ref:m},Ee?J.cloneElement(M,{ref:$e}):M)}var q=J.forwardRef(ne),ge=q,Te="rc-observer-key";function Se(I,$){var R=I.children,Z=typeof R=="function"?[R]:(0,ye.Z)(R);return Z.map(function(B,m){var _=(B==null?void 0:B.key)||"".concat(Te,"-").concat(m);return J.createElement(ge,(0,A.Z)({},I,{key:_,ref:m===0?$:void 0}),B)})}var Fe=J.forwardRef(Se);Fe.Collection=V;var G=Fe},9296:function(Ut,qe,y){"use strict";y.r(qe),y.d(qe,{ResizableTextArea:function(){return Se},default:function(){return Z}});var A=y(96663),J=y(44127),ye=y(90493),Le=y(20135),oe=y(72071),X=y(6620),fe=y(19127),he=y(92310),o=y.n(he),V=y(93681),F=y(5643),g=y(18929),c=y(59301),w=y(29301),b=y(34280),z=y(16089),te=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,k=["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"],P={},H;function ae(B){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(m&&P[_])return P[_];var O=window.getComputedStyle(B),M=O.getPropertyValue("box-sizing")||O.getPropertyValue("-moz-box-sizing")||O.getPropertyValue("-webkit-box-sizing"),we=parseFloat(O.getPropertyValue("padding-bottom"))+parseFloat(O.getPropertyValue("padding-top")),Ee=parseFloat(O.getPropertyValue("border-bottom-width"))+parseFloat(O.getPropertyValue("border-top-width")),De=k.map(function(Je){return"".concat(Je,":").concat(O.getPropertyValue(Je))}).join(";"),$e={sizingStyle:De,paddingSize:we,borderSize:Ee,boxSizing:M};return m&&_&&(P[_]=$e),$e}function E(B){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),B.getAttribute("wrap")?H.setAttribute("wrap",B.getAttribute("wrap")):H.removeAttribute("wrap");var M=ae(B,m),we=M.paddingSize,Ee=M.borderSize,De=M.boxSizing,$e=M.sizingStyle;H.setAttribute("style","".concat($e,";").concat(te)),H.value=B.value||B.placeholder||"";var Je=void 0,Qe=void 0,et,St=H.scrollHeight;if(De==="border-box"?St+=Ee:De==="content-box"&&(St-=we),_!==null||O!==null){H.value=" ";var Et=H.scrollHeight-we;_!==null&&(Je=Et*_,De==="border-box"&&(Je=Je+we+Ee),St=Math.max(Je,St)),O!==null&&(Qe=Et*O,De==="border-box"&&(Qe=Qe+we+Ee),et=St>Qe?"":"hidden",St=Math.min(Qe,St))}var Bt={height:St,overflowY:et,resize:"none"};return Je&&(Bt.minHeight=Je),Qe&&(Bt.maxHeight=Qe),Bt}var W=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ne=0,q=1,ge=2,Te=c.forwardRef(function(B,m){var _=B,O=_.prefixCls,M=_.onPressEnter,we=_.defaultValue,Ee=_.value,De=_.autoSize,$e=_.onResize,Je=_.className,Qe=_.style,et=_.disabled,St=_.onChange,Et=_.onInternalAutoSize,Bt=(0,X.Z)(_,W),ht=(0,g.Z)(we,{value:Ee,postState:function(C){return C!=null?C:""}}),Rt=(0,oe.Z)(ht,2),It=Rt[0],le=Rt[1],ve=function(C){le(C.target.value),St==null||St(C)},N=c.useRef();c.useImperativeHandle(m,function(){return{textArea:N.current}});var ce=c.useMemo(function(){return De&&(0,Le.Z)(De)==="object"?[De.minRows,De.maxRows]:[]},[De]),Ae=(0,oe.Z)(ce,2),L=Ae[0],ee=Ae[1],ue=!!De,_e=function(){try{if(document.activeElement===N.current){var C=N.current,ot=C.selectionStart,Q=C.selectionEnd,Re=C.scrollTop;N.current.setSelectionRange(ot,Q),N.current.scrollTop=Re}}catch(pr){}},ke=c.useState(ge),Pe=(0,oe.Z)(ke,2),We=Pe[0],rt=Pe[1],Ze=c.useState(),Ge=(0,oe.Z)(Ze,2),mt=Ge[0],At=Ge[1],_t=function(){rt(ne)};(0,b.Z)(function(){ue&&_t()},[Ee,L,ee,ue]),(0,b.Z)(function(){if(We===ne)rt(q);else if(We===q){var S=E(N.current,!1,L,ee);rt(ge),At(S)}else _e()},[We]);var Lt=c.useRef(),Ht=function(){z.Z.cancel(Lt.current)},Pt=function(C){We===ge&&($e==null||$e(C),De&&(Ht(),Lt.current=(0,z.Z)(function(){_t()})))};c.useEffect(function(){return Ht},[]);var Yt=ue?mt:null,$t=(0,J.Z)((0,J.Z)({},Qe),Yt);return(We===ne||We===q)&&($t.overflowY="hidden",$t.overflowX="hidden"),c.createElement(w.Z,{onResize:Pt,disabled:!(De||$e)},c.createElement("textarea",(0,A.Z)({},Bt,{ref:N,style:$t,className:o()(O,Je,(0,ye.Z)({},"".concat(O,"-disabled"),et)),disabled:et,value:It,onChange:ve})))}),Se=Te,Fe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function G(B,m){return(0,fe.Z)(B||"").slice(0,m).join("")}function I(B,m,_,O){var M=_;return B?M=G(_,O):(0,fe.Z)(m||"").length<_.length&&(0,fe.Z)(_||"").length>O&&(M=m),M}var $=c.forwardRef(function(B,m){var _,O=B.defaultValue,M=B.value,we=B.onFocus,Ee=B.onBlur,De=B.onChange,$e=B.allowClear,Je=B.maxLength,Qe=B.onCompositionStart,et=B.onCompositionEnd,St=B.suffix,Et=B.prefixCls,Bt=Et===void 0?"rc-textarea":Et,ht=B.classes,Rt=B.showCount,It=B.className,le=B.style,ve=B.disabled,N=B.hidden,ce=B.classNames,Ae=B.styles,L=B.onResize,ee=(0,X.Z)(B,Fe),ue=(0,g.Z)(O,{value:M,defaultValue:O}),_e=(0,oe.Z)(ue,2),ke=_e[0],Pe=_e[1],We=(0,c.useRef)(null),rt=c.useState(!1),Ze=(0,oe.Z)(rt,2),Ge=Ze[0],mt=Ze[1],At=c.useState(!1),_t=(0,oe.Z)(At,2),Lt=_t[0],Ht=_t[1],Pt=c.useRef(),Yt=c.useRef(0),$t=c.useState(null),S=(0,oe.Z)($t,2),C=S[0],ot=S[1],Q=function(){var lt;(lt=We.current)===null||lt===void 0||lt.textArea.focus()};(0,c.useImperativeHandle)(m,function(){return{resizableTextArea:We.current,focus:Q,blur:function(){var lt;(lt=We.current)===null||lt===void 0||lt.textArea.blur()}}}),(0,c.useEffect)(function(){mt(function(kt){return!ve&&kt})},[ve]);var Re=Number(Je)>0,pr=function(lt){Ht(!0),Pt.current=ke,Yt.current=lt.currentTarget.selectionStart,Qe==null||Qe(lt)},Be=function(lt){Ht(!1);var pt=lt.currentTarget.value;if(Re){var tr,pe=Yt.current>=Je+1||Yt.current===((tr=Pt.current)===null||tr===void 0?void 0:tr.length);pt=I(pe,Pt.current,pt,Je)}pt!==ke&&(Pe(pt),(0,F.rJ)(lt.currentTarget,lt,De,pt)),et==null||et(lt)},He=function(lt){var pt=lt.target.value;if(!Lt&&Re){var tr=lt.target.selectionStart>=Je+1||lt.target.selectionStart===pt.length||!lt.target.selectionStart;pt=I(tr,ke,pt,Je)}Pe(pt),(0,F.rJ)(lt.currentTarget,lt,De,pt)},Ve=function(lt){var pt=ee.onPressEnter,tr=ee.onKeyDown;lt.key==="Enter"&&pt&&pt(lt),tr==null||tr(lt)},re=function(lt){mt(!0),we==null||we(lt)},me=function(lt){mt(!1),Ee==null||Ee(lt)},Me=function(lt){var pt;Pe(""),Q(),(0,F.rJ)((pt=We.current)===null||pt===void 0?void 0:pt.textArea,lt,De)},Ue=(0,F.D7)(ke);!Lt&&Re&&M==null&&(Ue=G(Ue,Je));var Y=St,Ft;if(Rt){var Oe=(0,fe.Z)(Ue).length;(0,Le.Z)(Rt)==="object"?Ft=Rt.formatter({value:Ue,count:Oe,maxLength:Je}):Ft="".concat(Oe).concat(Re?" / ".concat(Je):""),Y=c.createElement(c.Fragment,null,Y,c.createElement("span",{className:o()("".concat(Bt,"-data-count"),ce==null?void 0:ce.count),style:Ae==null?void 0:Ae.count},Ft))}var Wt=function(lt){var pt;L==null||L(lt),(pt=We.current)!==null&&pt!==void 0&&pt.textArea.style.height&&ot(!0)},ir=!ee.autoSize&&!Rt&&!$e,bt=c.createElement(V.BaseInput,{value:Ue,allowClear:$e,handleReset:Me,suffix:Y,prefixCls:Bt,classes:{affixWrapper:o()(ht==null?void 0:ht.affixWrapper,(_={},(0,ye.Z)(_,"".concat(Bt,"-show-count"),Rt),(0,ye.Z)(_,"".concat(Bt,"-textarea-allow-clear"),$e),_))},disabled:ve,focused:Ge,className:It,style:(0,J.Z)((0,J.Z)({},le),C&&!ir?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ft=="string"?Ft:void 0}},hidden:N,inputElement:c.createElement(Se,(0,A.Z)({},ee,{onKeyDown:Ve,onChange:He,onFocus:re,onBlur:me,onCompositionStart:pr,onCompositionEnd:Be,className:ce==null?void 0:ce.textarea,style:(0,J.Z)((0,J.Z)({},Ae==null?void 0:Ae.textarea),{},{resize:le==null?void 0:le.resize}),disabled:ve,prefixCls:Bt,onResize:Wt,ref:We}))});return bt}),R=$,Z=R},55477:function(Ut,qe,y){"use strict";y.d(qe,{G:function(){return c},Z:function(){return te}});var A=y(96663),J=y(44127),ye=y(6620),Le=y(35593),oe=y(59301),X={shiftX:64,adjustY:1},fe={adjustX:1,shiftY:!0},he=[0,0],o={left:{points:["cr","cl"],overflow:fe,offset:[-4,0],targetOffset:he},right:{points:["cl","cr"],overflow:fe,offset:[4,0],targetOffset:he},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:he},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:he},topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:he},leftTop:{points:["tr","tl"],overflow:fe,offset:[-4,0],targetOffset:he},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:he},rightTop:{points:["tl","tr"],overflow:fe,offset:[4,0],targetOffset:he},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:he},rightBottom:{points:["bl","br"],overflow:fe,offset:[4,0],targetOffset:he},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:he},leftBottom:{points:["br","bl"],overflow:fe,offset:[-4,0],targetOffset:he}},V=null,F=y(92310),g=y.n(F);function c(k){var P=k.children,H=k.prefixCls,ae=k.id,E=k.overlayInnerStyle,W=k.className,ne=k.style;return oe.createElement("div",{className:g()("".concat(H,"-content"),W),style:ne},oe.createElement("div",{className:"".concat(H,"-inner"),id:ae,role:"tooltip",style:E},typeof P=="function"?P():P))}var w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],b=function(P,H){var ae=P.overlayClassName,E=P.trigger,W=E===void 0?["hover"]:E,ne=P.mouseEnterDelay,q=ne===void 0?0:ne,ge=P.mouseLeaveDelay,Te=ge===void 0?.1:ge,Se=P.overlayStyle,Fe=P.prefixCls,G=Fe===void 0?"rc-tooltip":Fe,I=P.children,$=P.onVisibleChange,R=P.afterVisibleChange,Z=P.transitionName,B=P.animation,m=P.motion,_=P.placement,O=_===void 0?"right":_,M=P.align,we=M===void 0?{}:M,Ee=P.destroyTooltipOnHide,De=Ee===void 0?!1:Ee,$e=P.defaultVisible,Je=P.getTooltipContainer,Qe=P.overlayInnerStyle,et=P.arrowContent,St=P.overlay,Et=P.id,Bt=P.showArrow,ht=Bt===void 0?!0:Bt,Rt=(0,ye.Z)(P,w),It=(0,oe.useRef)(null);(0,oe.useImperativeHandle)(H,function(){return It.current});var le=(0,J.Z)({},Rt);"visible"in P&&(le.popupVisible=P.visible);var ve=function(){return oe.createElement(c,{key:"content",prefixCls:G,id:Et,overlayInnerStyle:Qe},St)};return oe.createElement(Le.Z,(0,A.Z)({popupClassName:ae,prefixCls:G,popup:ve,action:W,builtinPlacements:o,popupPlacement:O,ref:It,popupAlign:we,getPopupContainer:Je,onPopupVisibleChange:$,afterPopupVisibleChange:R,popupTransitionName:Z,popupAnimation:B,popupMotion:m,defaultPopupVisible:$e,autoDestroy:De,mouseLeaveDelay:Te,popupStyle:Se,mouseEnterDelay:q,arrow:ht},le),I)},z=(0,oe.forwardRef)(b),te=z},49658:function(Ut,qe){"use strict";qe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var y=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(y)||/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(y==null?void 0:y.substr(0,4))}},83145:function(Ut,qe,y){"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.CopyToClipboard=void 0;var A=ye(y(59301)),J=ye(y(25769));function ye(P){return P&&P.__esModule?P:{default:P}}function Le(P){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Le=function(ae){return typeof ae}:Le=function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},Le(P)}function oe(P,H){var ae=Object.keys(P);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(P);H&&(E=E.filter(function(W){return Object.getOwnPropertyDescriptor(P,W).enumerable})),ae.push.apply(ae,E)}return ae}function X(P){for(var H=1;H<arguments.length;H++){var ae=arguments[H]!=null?arguments[H]:{};H%2?oe(ae,!0).forEach(function(E){te(P,E,ae[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(ae)):oe(ae).forEach(function(E){Object.defineProperty(P,E,Object.getOwnPropertyDescriptor(ae,E))})}return P}function fe(P,H){if(P==null)return{};var ae=he(P,H),E,W;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(P);for(W=0;W<ne.length;W++)E=ne[W],!(H.indexOf(E)>=0)&&Object.prototype.propertyIsEnumerable.call(P,E)&&(ae[E]=P[E])}return ae}function he(P,H){if(P==null)return{};var ae={},E=Object.keys(P),W,ne;for(ne=0;ne<E.length;ne++)W=E[ne],!(H.indexOf(W)>=0)&&(ae[W]=P[W]);return ae}function o(P,H){if(!(P instanceof H))throw new TypeError("Cannot call a class as a function")}function V(P,H){for(var ae=0;ae<H.length;ae++){var E=H[ae];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(P,E.key,E)}}function F(P,H,ae){return H&&V(P.prototype,H),ae&&V(P,ae),P}function g(P,H){return H&&(Le(H)==="object"||typeof H=="function")?H:w(P)}function c(P){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)},c(P)}function w(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function b(P,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(H&&H.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),H&&z(P,H)}function z(P,H){return z=Object.setPrototypeOf||function(E,W){return E.__proto__=W,E},z(P,H)}function te(P,H,ae){return H in P?Object.defineProperty(P,H,{value:ae,enumerable:!0,configurable:!0,writable:!0}):P[H]=ae,P}var k=function(P){b(H,P);function H(){var ae,E;o(this,H);for(var W=arguments.length,ne=new Array(W),q=0;q<W;q++)ne[q]=arguments[q];return E=g(this,(ae=c(H)).call.apply(ae,[this].concat(ne))),te(w(E),"onClick",function(ge){var Te=E.props,Se=Te.text,Fe=Te.onCopy,G=Te.children,I=Te.options,$=A.default.Children.only(G),R=(0,J.default)(Se,I);Fe&&Fe(Se,R),$&&$.props&&typeof $.props.onClick=="function"&&$.props.onClick(ge)}),E}return F(H,[{key:"render",value:function(){var E=this.props,W=E.text,ne=E.onCopy,q=E.options,ge=E.children,Te=fe(E,["text","onCopy","options","children"]),Se=A.default.Children.only(ge);return A.default.cloneElement(Se,X({},Te,{onClick:this.onClick}))}}]),H}(A.default.PureComponent);qe.CopyToClipboard=k,te(k,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Ut,qe,y){"use strict";var A=y(83145),J=A.CopyToClipboard;J.CopyToClipboard=J,Ut.exports=J},51581:function(Ut,qe,y){"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var A=function(){function g(c,w){for(var b=0;b<w.length;b++){var z=w[b];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(c,z.key,z)}}return function(c,w,b){return w&&g(c.prototype,w),b&&g(c,b),c}}(),J=y(59301),ye=X(J),Le=y(12708),oe=X(Le);function X(g){return g&&g.__esModule?g:{default:g}}function fe(g,c){var w={};for(var b in g)c.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(g,b)&&(w[b]=g[b]);return w}function he(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}function o(g,c){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:g}function V(g,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);g.prototype=Object.create(c&&c.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(g,c):g.__proto__=c)}var F=function(g){V(c,g);function c(w){he(this,c);var b=o(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,w));return b.scrollListener=b.scrollListener.bind(b),b.eventListenerOptions=b.eventListenerOptions.bind(b),b.mousewheelListener=b.mousewheelListener.bind(b),b}return A(c,[{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 b=this.getParentElement(this.scrollComponent);b.scrollTop=b.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var b=!1,z={get passive(){b=!0}};try{document.addEventListener("test",null,z),document.removeEventListener("test",null,z)}catch(te){}return b}},{key:"eventListenerOptions",value:function(){var b=this.props.useCapture;return this.isPassiveSupported()&&(b={useCapture:this.props.useCapture,passive:!0}),b}},{key:"setDefaultLoader",value:function(b){this.defaultLoader=b}},{key:"detachMousewheelListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.scrollComponent.parentNode),b.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var b=window;this.props.useWindow===!1&&(b=this.getParentElement(this.scrollComponent)),b.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),b.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(b){var z=this.props.getScrollParent&&this.props.getScrollParent();return z!=null?z:b&&b.parentNode}},{key:"filterProps",value:function(b){return b}},{key:"attachScrollListener",value:function(){var b=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!b)){var z=window;this.props.useWindow===!1&&(z=b),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(b){b.deltaY===1&&!this.isPassiveSupported()&&b.preventDefault()}},{key:"scrollListener",value:function(){var b=this.scrollComponent,z=window,te=this.getParentElement(b),k=void 0;if(this.props.useWindow){var P=document.documentElement||document.body.parentNode||document.body,H=z.pageYOffset!==void 0?z.pageYOffset:P.scrollTop;this.props.isReverse?k=H:k=this.calculateOffset(b,H)}else this.props.isReverse?k=te.scrollTop:k=b.scrollHeight-te.scrollTop-te.clientHeight;k<Number(this.props.threshold)&&b&&b.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=te.scrollHeight,this.beforeScrollTop=te.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(b,z){return b?this.calculateTopPosition(b)+(b.offsetHeight-z-window.innerHeight):0}},{key:"calculateTopPosition",value:function(b){return b?b.offsetTop+this.calculateTopPosition(b.offsetParent):0}},{key:"render",value:function(){var b=this,z=this.filterProps(this.props),te=z.children,k=z.element,P=z.hasMore,H=z.initialLoad,ae=z.isReverse,E=z.loader,W=z.loadMore,ne=z.pageStart,q=z.ref,ge=z.threshold,Te=z.useCapture,Se=z.useWindow,Fe=z.getScrollParent,G=fe(z,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);G.ref=function($){b.scrollComponent=$,q&&q($)};var I=[te];return P&&(E?ae?I.unshift(E):I.push(E):this.defaultLoader&&(ae?I.unshift(this.defaultLoader):I.push(this.defaultLoader))),ye.default.createElement(k,G,I)}}]),c}(J.Component);F.propTypes={children:oe.default.node.isRequired,element:oe.default.node,hasMore:oe.default.bool,initialLoad:oe.default.bool,isReverse:oe.default.bool,loader:oe.default.node,loadMore:oe.default.func.isRequired,pageStart:oe.default.number,ref:oe.default.func,getScrollParent:oe.default.func,threshold:oe.default.number,useCapture:oe.default.bool,useWindow:oe.default.bool},F.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},qe.default=F,Ut.exports=qe.default},26724:function(Ut,qe,y){Ut.exports=y(51581)},76374:function(Ut,qe,y){"use strict";var A=function(){if(typeof Map!="undefined")return Map;function G(I,$){var R=-1;return I.some(function(Z,B){return Z[0]===$?(R=B,!0):!1}),R}return function(){function I(){this.__entries__=[]}return Object.defineProperty(I.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),I.prototype.get=function($){var R=G(this.__entries__,$),Z=this.__entries__[R];return Z&&Z[1]},I.prototype.set=function($,R){var Z=G(this.__entries__,$);~Z?this.__entries__[Z][1]=R:this.__entries__.push([$,R])},I.prototype.delete=function($){var R=this.__entries__,Z=G(R,$);~Z&&R.splice(Z,1)},I.prototype.has=function($){return!!~G(this.__entries__,$)},I.prototype.clear=function(){this.__entries__.splice(0)},I.prototype.forEach=function($,R){R===void 0&&(R=null);for(var Z=0,B=this.__entries__;Z<B.length;Z++){var m=B[Z];$.call(R,m[1],m[0])}},I}()}(),J=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ye=function(){return typeof y.g!="undefined"&&y.g.Math===Math?y.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Le=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ye):function(G){return setTimeout(function(){return G(Date.now())},1e3/60)}}(),oe=2;function X(G,I){var $=!1,R=!1,Z=0;function B(){$&&($=!1,G()),R&&_()}function m(){Le(B)}function _(){var O=Date.now();if($){if(O-Z<oe)return;R=!0}else $=!0,R=!1,setTimeout(m,I);Z=O}return _}var fe=20,he=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",V=function(){function G(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=X(this.refresh.bind(this),fe)}return G.prototype.addObserver=function(I){~this.observers_.indexOf(I)||this.observers_.push(I),this.connected_||this.connect_()},G.prototype.removeObserver=function(I){var $=this.observers_,R=$.indexOf(I);~R&&$.splice(R,1),!$.length&&this.connected_&&this.disconnect_()},G.prototype.refresh=function(){var I=this.updateObservers_();I&&this.refresh()},G.prototype.updateObservers_=function(){var I=this.observers_.filter(function($){return $.gatherActive(),$.hasActive()});return I.forEach(function($){return $.broadcastActive()}),I.length>0},G.prototype.connect_=function(){!J||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},G.prototype.disconnect_=function(){!J||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},G.prototype.onTransitionEnd_=function(I){var $=I.propertyName,R=$===void 0?"":$,Z=he.some(function(B){return!!~R.indexOf(B)});Z&&this.refresh()},G.getInstance=function(){return this.instance_||(this.instance_=new G),this.instance_},G.instance_=null,G}(),F=function(G,I){for(var $=0,R=Object.keys(I);$<R.length;$++){var Z=R[$];Object.defineProperty(G,Z,{value:I[Z],enumerable:!1,writable:!1,configurable:!0})}return G},g=function(G){var I=G&&G.ownerDocument&&G.ownerDocument.defaultView;return I||ye},c=W(0,0,0,0);function w(G){return parseFloat(G)||0}function b(G){for(var I=[],$=1;$<arguments.length;$++)I[$-1]=arguments[$];return I.reduce(function(R,Z){var B=G["border-"+Z+"-width"];return R+w(B)},0)}function z(G){for(var I=["top","right","bottom","left"],$={},R=0,Z=I;R<Z.length;R++){var B=Z[R],m=G["padding-"+B];$[B]=w(m)}return $}function te(G){var I=G.getBBox();return W(0,0,I.width,I.height)}function k(G){var I=G.clientWidth,$=G.clientHeight;if(!I&&!$)return c;var R=g(G).getComputedStyle(G),Z=z(R),B=Z.left+Z.right,m=Z.top+Z.bottom,_=w(R.width),O=w(R.height);if(R.boxSizing==="border-box"&&(Math.round(_+B)!==I&&(_-=b(R,"left","right")+B),Math.round(O+m)!==$&&(O-=b(R,"top","bottom")+m)),!H(G)){var M=Math.round(_+B)-I,we=Math.round(O+m)-$;Math.abs(M)!==1&&(_-=M),Math.abs(we)!==1&&(O-=we)}return W(Z.left,Z.top,_,O)}var P=function(){return typeof SVGGraphicsElement!="undefined"?function(G){return G instanceof g(G).SVGGraphicsElement}:function(G){return G instanceof g(G).SVGElement&&typeof G.getBBox=="function"}}();function H(G){return G===g(G).document.documentElement}function ae(G){return J?P(G)?te(G):k(G):c}function E(G){var I=G.x,$=G.y,R=G.width,Z=G.height,B=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,m=Object.create(B.prototype);return F(m,{x:I,y:$,width:R,height:Z,top:$,right:I+R,bottom:Z+$,left:I}),m}function W(G,I,$,R){return{x:G,y:I,width:$,height:R}}var ne=function(){function G(I){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=W(0,0,0,0),this.target=I}return G.prototype.isActive=function(){var I=ae(this.target);return this.contentRect_=I,I.width!==this.broadcastWidth||I.height!==this.broadcastHeight},G.prototype.broadcastRect=function(){var I=this.contentRect_;return this.broadcastWidth=I.width,this.broadcastHeight=I.height,I},G}(),q=function(){function G(I,$){var R=E($);F(this,{target:I,contentRect:R})}return G}(),ge=function(){function G(I,$,R){if(this.activeObservations_=[],this.observations_=new A,typeof I!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=I,this.controller_=$,this.callbackCtx_=R}return G.prototype.observe=function(I){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(I instanceof g(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(I)||($.set(I,new ne(I)),this.controller_.addObserver(this),this.controller_.refresh())}},G.prototype.unobserve=function(I){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(I instanceof g(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(I)&&($.delete(I),$.size||this.controller_.removeObserver(this))}},G.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},G.prototype.gatherActive=function(){var I=this;this.clearActive(),this.observations_.forEach(function($){$.isActive()&&I.activeObservations_.push($)})},G.prototype.broadcastActive=function(){if(this.hasActive()){var I=this.callbackCtx_,$=this.activeObservations_.map(function(R){return new q(R.target,R.broadcastRect())});this.callback_.call(I,$,I),this.clearActive()}},G.prototype.clearActive=function(){this.activeObservations_.splice(0)},G.prototype.hasActive=function(){return this.activeObservations_.length>0},G}(),Te=typeof WeakMap!="undefined"?new WeakMap:new A,Se=function(){function G(I){if(!(this instanceof G))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var $=V.getInstance(),R=new ge(I,$,this);Te.set(this,R)}return G}();["observe","unobserve","disconnect"].forEach(function(G){Se.prototype[G]=function(){var I;return(I=Te.get(this))[G].apply(I,arguments)}});var Fe=function(){return typeof ye.ResizeObserver!="undefined"?ye.ResizeObserver:Se}();qe.Z=Fe},98040:function(Ut){Ut.exports=function(){var qe=document.getSelection();if(!qe.rangeCount)return function(){};for(var y=document.activeElement,A=[],J=0;J<qe.rangeCount;J++)A.push(qe.getRangeAt(J));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return qe.removeAllRanges(),function(){qe.type==="Caret"&&qe.removeAllRanges(),qe.rangeCount||A.forEach(function(ye){qe.addRange(ye)}),y&&y.focus()}}},1012:function(Ut,qe,y){"use strict";y.d(qe,{Z:function(){return g}});var A=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),J=new Uint8Array(16);function ye(){if(!A)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return A(J)}var Le=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function oe(c){return typeof c=="string"&&Le.test(c)}for(var X=oe,fe=[],he=0;he<256;++he)fe.push((he+256).toString(16).substr(1));function o(c){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=(fe[c[w+0]]+fe[c[w+1]]+fe[c[w+2]]+fe[c[w+3]]+"-"+fe[c[w+4]]+fe[c[w+5]]+"-"+fe[c[w+6]]+fe[c[w+7]]+"-"+fe[c[w+8]]+fe[c[w+9]]+"-"+fe[c[w+10]]+fe[c[w+11]]+fe[c[w+12]]+fe[c[w+13]]+fe[c[w+14]]+fe[c[w+15]]).toLowerCase();if(!X(b))throw TypeError("Stringified UUID is invalid");return b}var V=o;function F(c,w,b){c=c||{};var z=c.random||(c.rng||ye)();if(z[6]=z[6]&15|64,z[8]=z[8]&63|128,w){b=b||0;for(var te=0;te<16;++te)w[b+te]=z[te];return w}return V(z)}var g=F},93314:function(Ut){"use strict";Ut.exports="data:image/png;base64,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"},96908:function(Ut){"use strict";Ut.exports="data:image/png;base64,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"},57177:function(Ut){"use strict";Ut.exports="data:image/png;base64,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"},81378:function(Ut){"use strict";Ut.exports="data:image/png;base64,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"},40846:function(Ut,qe,y){"use strict";y.d(qe,{ZP:function(){return Ts}});function A(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var J={exports:{}};(function(a,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,v,x){if(x=x||{},f=f.trim(),v=v.trim(),!v){if(!x.alwaysNormalize)return f;var T=u.parseURL(f);if(!T)throw new Error("Error trying to parse base URL.");return T.path=u.normalizePath(T.path),u.buildURLFromParts(T)}var K=u.parseURL(v);if(!K)throw new Error("Error trying to parse relative URL.");if(K.scheme)return x.alwaysNormalize?(K.path=u.normalizePath(K.path),u.buildURLFromParts(K)):v;var se=u.parseURL(f);if(!se)throw new Error("Error trying to parse base URL.");if(!se.netLoc&&se.path&&se.path[0]!=="/"){var ie=n.exec(se.path);se.netLoc=ie[1],se.path=ie[2]}se.netLoc&&!se.path&&(se.path="/");var de={scheme:se.scheme,netLoc:K.netLoc,path:null,params:K.params,query:K.query,fragment:K.fragment};if(!K.netLoc&&(de.netLoc=se.netLoc,K.path[0]!=="/"))if(!K.path)de.path=se.path,K.params||(de.params=se.params,K.query||(de.query=se.query));else{var xe=se.path,je=xe.substring(0,xe.lastIndexOf("/")+1)+K.path;de.path=u.normalizePath(je)}return de.path===null&&(de.path=x.alwaysNormalize?u.normalizePath(K.path):K.path),u.buildURLFromParts(de)},parseURL:function(f){var v=r.exec(f);return v?{scheme:v[1]||"",netLoc:v[2]||"",path:v[3]||"",params:v[4]||"",query:v[5]||"",fragment:v[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(i,"");f.length!==(f=f.replace(s,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};a.exports=u})()})(J);var ye=J.exports;function Le(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,r)}return t}function oe(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Le(Object(t),!0).forEach(function(r){he(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function X(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function fe(a){var e=X(a,"string");return typeof e=="symbol"?e:String(e)}function he(a,e,t){return e=fe(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function o(){return o=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(a[r]=t[r])}return a},o.apply(this,arguments)}const V=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},F=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=g},g=Number.MAX_SAFE_INTEGER||9007199254740991;let c=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",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.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.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_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}({}),w=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),b=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.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.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.UNKNOWN="unknown",a}({});const z=function(){},te={trace:z,debug:z,log:z,warn:z,info:z,error:z};let k=te;function P(a){const e=self.console[a];return e?e.bind(self.console,`[${a}] >`):z}function H(a,...e){e.forEach(function(t){k[t]=a[t]?a[t].bind(a):P(t)})}function ae(a,e){if(typeof console=="object"&&a===!0||typeof a=="object"){H(a,"debug","log","info","warn","error");try{k.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){k=te}}else k=te}const E=k,W=/^(\d+)x(\d+)$/,ne=/(.+?)=(".*?"|.*?)(?:,|$)/g;class q{constructor(e){typeof e=="string"&&(e=q.parseAttrList(e)),o(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 r=new Uint8Array(t.length/2);for(let n=0;n<t.length/2;n++)r[n]=parseInt(t.slice(n*2,n*2+2),16);return r}else 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 r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=W.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const r={},n='"';for(ne.lastIndex=0;(t=ne.exec(e))!==null;){let i=t[2];i.indexOf(n)===0&&i.lastIndexOf(n)===i.length-1&&(i=i.slice(1,-1));const s=t[1].trim();r[s]=i}return r}}function ge(a){return a!=="ID"&&a!=="CLASS"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Te(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"}class Se{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const r=t.attr;for(const n in r)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==r[n]){E.warn(`DATERANGE tag attribute: "${n}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=n;break}e=o(new q({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);V(r.getTime())&&(this._endDate=r)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(V(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 isValid(){return!!this.id&&!this._badValueForSameId&&V(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Fe{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var G={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class I{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[G.AUDIO]:null,[G.VIDEO]:null,[G.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const r=e.split("@",2);let n;r.length===1?n=(t==null?void 0:t.byteRangeEndOffset)||0:n=parseInt(r[1]),this._byteRange=[n,parseInt(r[0])+n]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=ye.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class $ extends I{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=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.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new Fe,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 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 r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!V(this.programDateTime))return null;const e=V(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),r=t.length;if(r>1||r===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}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,r,n,i,s=!1){const{elementaryStreams:u}=this,f=u[e];if(!f){u[e]={startPTS:t,endPTS:r,startDTS:n,endDTS:i,partial:s};return}f.startPTS=Math.min(f.startPTS,t),f.endPTS=Math.max(f.endPTS,r),f.startDTS=Math.min(f.startDTS,n),f.endDTS=Math.max(f.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[G.AUDIO]=null,e[G.VIDEO]=null,e[G.AUDIOVIDEO]=null}}class R extends I{constructor(e,t,r,n,i){super(r),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.stats=new Fe,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=n;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)}}const Z=10;class B{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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.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,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?V(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Z}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 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 lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function m(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function _(a){const e=we(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function O(a){const e=function(r,n,i){const s=r[n];r[n]=r[i],r[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function M(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),n=r[r.length-1].split(",");if(n.length===2){const i=n[0]==="base64",s=n[1];i?(r.splice(-1,1),t=m(s)):t=_(s)}}return t}function we(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}const Ee=typeof self!="undefined"?self:void 0;var De={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},$e={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Je(a){switch(a){case $e.FAIRPLAY:return De.FAIRPLAY;case $e.PLAYREADY:return De.PLAYREADY;case $e.WIDEVINE:return De.WIDEVINE;case $e.CLEARKEY:return De.CLEARKEY}}var Qe={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function et(a){if(a===Qe.WIDEVINE)return De.WIDEVINE;if(a===Qe.PLAYREADY)return De.PLAYREADY;if(a===Qe.CENC||a===Qe.CLEARKEY)return De.CLEARKEY}function St(a){switch(a){case De.FAIRPLAY:return $e.FAIRPLAY;case De.PLAYREADY:return $e.PLAYREADY;case De.WIDEVINE:return $e.WIDEVINE;case De.CLEARKEY:return $e.CLEARKEY}}function Et(a){const{drmSystems:e,widevineLicenseUrl:t}=a,r=e?[De.FAIRPLAY,De.WIDEVINE,De.PLAYREADY,De.CLEARKEY].filter(n=>!!e[n]):[];return!r[De.WIDEVINE]&&t&&r.push(De.WIDEVINE),r}const Bt=function(a){return Ee!=null&&(a=Ee.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function ht(a,e,t,r){let n;switch(a){case De.FAIRPLAY:n=["cenc","sinf"];break;case De.WIDEVINE:case De.PLAYREADY:n=["cenc"];break;case De.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return Rt(n,e,t,r)}function Rt(a,e,t,r){return[{initDataTypes:a,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs="${i}"`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs="${i}"`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function It(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(s){const u=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(u){const f=m(u).subarray(0,16);return O(f),f}}return null}function le(a,e,t){return Uint8Array.prototype.slice?a.slice(e,t):new Uint8Array(Array.prototype.slice.call(a,e,t))}const ve=(a,e)=>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,N=(a,e)=>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,ce=(a,e)=>{const t=e;let r=0;for(;ve(a,e);){r+=10;const n=Ae(a,e+6);r+=n,N(a,e+10)&&(r+=10),e+=r}if(r>0)return a.subarray(t,t+r)},Ae=(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},L=(a,e)=>ve(a,e)&&Ae(a,e+6)+10<=a.length-e,ee=a=>{const e=ke(a);for(let t=0;t<e.length;t++){const r=e[t];if(ue(r))return Ge(r)}},ue=a=>a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp",_e=a=>{const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Ae(a,4),r=10;return{type:e,size:t,data:a.subarray(r,r+t)}},ke=a=>{let e=0;const t=[];for(;ve(a,e);){const r=Ae(a,e+6);e+=10;const n=e+r;for(;e+8<n;){const i=_e(a.subarray(e)),s=Pe(i);s&&t.push(s),e+=i.size+10}N(a,e)&&(e+=10)}return t},Pe=a=>a.type==="PRIV"?We(a):a.type[0]==="W"?Ze(a):rt(a),We=a=>{if(a.size<2)return;const e=mt(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}},rt=a=>{if(a.size<2)return;if(a.type==="TXXX"){let t=1;const r=mt(a.data.subarray(t),!0);t+=r.length+1;const n=mt(a.data.subarray(t));return{key:a.type,info:r,data:n}}const e=mt(a.data.subarray(1));return{key:a.type,data:e}},Ze=a=>{if(a.type==="WXXX"){if(a.size<2)return;let t=1;const r=mt(a.data.subarray(t),!0);t+=r.length+1;const n=mt(a.data.subarray(t));return{key:a.type,info:r,data:n}}const e=mt(a.data);return{key:a.type,data:e}},Ge=a=>{if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}},mt=(a,e=!1)=>{const t=_t();if(t){const v=t.decode(a);if(e){const x=v.indexOf("\0");return x!==-1?v.substring(0,x):v}return v.replace(/\0/g,"")}const r=a.length;let n,i,s,u="",f=0;for(;f<r;){if(n=a[f++],n===0&&e)return u;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:u+=String.fromCharCode(n);break;case 12:case 13:i=a[f++],u+=String.fromCharCode((n&31)<<6|i&63);break;case 14:i=a[f++],s=a[f++],u+=String.fromCharCode((n&15)<<12|(i&63)<<6|(s&63)<<0);break}}return u};let At;function _t(){if(!navigator.userAgent.includes("PlayStation 4"))return!At&&typeof self.TextDecoder!="undefined"&&(At=new self.TextDecoder("utf-8")),At}const Lt={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let r=a[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}},Ht=Math.pow(2,32)-1,Pt=[].push,Yt={video:1,audio:2,id3:3,text:4};function $t(a){return String.fromCharCode.apply(null,a)}function S(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function C(a,e){const t=Q(a,e);return t<0?4294967296+t:t}function ot(a,e){let t=C(a,e);return t*=Math.pow(2,32),t+=C(a,e+4),t}function Q(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Re(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 pr(a){const e=a.byteLength;for(let t=0;t<e;){const r=C(a,t);if(r>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=r>1?t+r:e}return!1}function Be(a,e){const t=[];if(!e.length)return t;const r=a.byteLength;for(let n=0;n<r;){const i=C(a,n),s=$t(a.subarray(n+4,n+8)),u=i>1?n+i:r;if(s===e[0])if(e.length===1)t.push(a.subarray(n+8,u));else{const f=Be(a.subarray(n+8,u),e.slice(1));f.length&&Pt.apply(t,f)}n=u}return t}function He(a){const e=[],t=a[0];let r=8;const n=C(a,r);r+=4;let i=0,s=0;t===0?(i=C(a,r),s=C(a,r+4),r+=8):(i=ot(a,r),s=ot(a,r+8),r+=16),r+=2;let u=a.length+s;const f=S(a,r);r+=2;for(let v=0;v<f;v++){let x=r;const T=C(a,x);x+=4;const K=T&2147483647;if((T&2147483648)>>>31===1)return E.warn("SIDX has hierarchical references (not supported)"),null;const ie=C(a,x);x+=4,e.push({referenceSize:K,subsegmentDuration:ie,info:{duration:ie/n,start:u,end:u+K-1}}),u+=K,x+=4,r=x}return{earliestPresentationTime:i,timescale:n,version:t,referencesCount:f,references:e}}function Ve(a){const e=[],t=Be(a,["moov","trak"]);for(let n=0;n<t.length;n++){const i=t[n],s=Be(i,["tkhd"])[0];if(s){let u=s[0];const f=C(s,u===0?12:20),v=Be(i,["mdia","mdhd"])[0];if(v){u=v[0];const x=C(v,u===0?12:20),T=Be(i,["mdia","hdlr"])[0];if(T){const K=$t(T.subarray(8,12)),se={soun:G.AUDIO,vide:G.VIDEO}[K];if(se){const ie=Be(i,["mdia","minf","stbl","stsd"])[0],de=re(ie);e[f]={timescale:x,type:se},e[se]=oe({timescale:x,id:f},de)}}}}}return Be(a,["moov","mvex","trex"]).forEach(n=>{const i=C(n,4),s=e[i];s&&(s.default={duration:C(n,12),flags:C(n,20)})}),e}function re(a){const e=a.subarray(8),t=e.subarray(86),r=$t(e.subarray(4,8));let n=r;const i=r==="enca"||r==="encv";if(i){const u=Be(e,[r])[0].subarray(r==="enca"?28:78);Be(u,["sinf"]).forEach(v=>{const x=Be(v,["schm"])[0];if(x){const T=$t(x.subarray(4,8));if(T==="cbcs"||T==="cenc"){const K=Be(v,["frma"])[0];K&&(n=$t(K))}}})}switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const s=Be(t,["avcC"])[0];n+="."+Me(s[1])+Me(s[2])+Me(s[3]);break}case"mp4a":{const s=Be(e,[r])[0],u=Be(s.subarray(28),["esds"])[0];if(u&&u.length>12){let f=4;if(u[f++]!==3)break;f=me(u,f),f+=2;const v=u[f++];if(v&128&&(f+=2),v&64&&(f+=u[f++]),u[f++]!==4)break;f=me(u,f);const x=u[f++];if(x===64)n+="."+Me(x);else break;if(f+=12,u[f++]!==5)break;f=me(u,f);const T=u[f++];let K=(T&248)>>3;K===31&&(K+=1+((T&7)<<3)+((u[f]&224)>>5)),n+="."+K}break}case"hvc1":case"hev1":{const s=Be(t,["hvcC"])[0],u=s[1],f=["","A","B","C"][u>>6],v=u&31,x=C(s,2),T=(u&32)>>5?"H":"L",K=s[12],se=s.subarray(6,12);n+="."+f+v,n+="."+x.toString(16).toUpperCase(),n+="."+T+K;let ie="";for(let de=se.length;de--;){const xe=se[de];(xe||ie)&&(ie="."+xe.toString(16).toUpperCase()+ie)}n+=ie;break}case"dvh1":case"dvhe":{const s=Be(t,["dvcC"])[0],u=s[2]>>1&127,f=s[2]<<5&32|s[3]>>3&31;n+="."+Ue(u)+"."+Ue(f);break}case"vp09":{const s=Be(t,["vpcC"])[0],u=s[4],f=s[5],v=s[6]>>4&15;n+="."+Ue(u)+"."+Ue(f)+"."+Ue(v);break}case"av01":{const s=Be(t,["av1C"])[0],u=s[1]>>>5,f=s[1]&31,v=s[2]>>>7?"H":"M",x=(s[2]&64)>>6,T=(s[2]&32)>>5,K=u===2&&x?T?12:10:x?10:8,se=(s[2]&16)>>4,ie=(s[2]&8)>>3,de=(s[2]&4)>>2,xe=s[2]&3;n+="."+u+"."+Ue(f)+v+"."+Ue(K)+"."+se+"."+ie+de+xe+"."+Ue(1)+"."+Ue(1)+"."+Ue(1)+"."+0;break}}return{codec:n,encrypted:i}}function me(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function Me(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function Ue(a){return(a<10?"0":"")+a}function Y(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&Be(a,["moov","trak"]).forEach(n=>{const s=Be(n,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=Be(s,["enca"]);const f=u.length>0;f||(u=Be(s,["encv"])),u.forEach(v=>{const x=f?v.subarray(28):v.subarray(78);Be(x,["sinf"]).forEach(K=>{const se=Ft(K);if(se){const ie=se.subarray(8,24);ie.some(de=>de!==0)||(E.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${Lt.hexDump(ie)} -> ${Lt.hexDump(t)}`),se.set(t,8))}})})}),a}function Ft(a){const e=Be(a,["schm"])[0];if(e){const t=$t(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return Be(a,["schi","tenc"])[0]}return null}function Oe(a,e){return Be(e,["moof","traf"]).reduce((t,r)=>{const n=Be(r,["tfdt"])[0],i=n[0],s=Be(r,["tfhd"]).reduce((u,f)=>{const v=C(f,4),x=a[v];if(x){let T=C(n,4);if(i===1){if(T===Ht)return E.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;T*=Ht+1,T+=C(n,8)}const K=x.timescale||9e4,se=T/K;if(V(se)&&(u===null||se<u))return se}return u},null);return s!==null&&V(s)&&(t===null||s<t)?s:t},null)}function Wt(a,e){let t=0,r=0,n=0;const i=Be(a,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=Be(u,["tfhd"])[0],v=C(f,4),x=e[v];if(!x)continue;const T=x.default,K=C(f,0)|(T==null?void 0:T.flags);let se=T==null?void 0:T.duration;K&8&&(K&2?se=C(f,12):se=C(f,8));const ie=x.timescale||9e4,de=Be(u,["trun"]);for(let xe=0;xe<de.length;xe++){if(t=ir(de[xe]),!t&&se){const je=C(de[xe],4);t=se*je}x.type===G.VIDEO?r+=t/ie:x.type===G.AUDIO&&(n+=t/ie)}}if(r===0&&n===0){let s=1/0,u=0,f=0;const v=Be(a,["sidx"]);for(let x=0;x<v.length;x++){const T=He(v[x]);if(T!=null&&T.references){s=Math.min(s,T.earliestPresentationTime/T.timescale);const K=T.references.reduce((se,ie)=>se+ie.info.duration||0,0);u=Math.max(u,K+T.earliestPresentationTime/T.timescale),f=u-s}}if(f&&V(f))return f}return r||n}function ir(a){const e=C(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const n=C(a,4);for(let i=0;i<n;i++){if(e&256){const s=C(a,t);r+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function bt(a,e,t){Be(e,["moof","traf"]).forEach(r=>{Be(r,["tfhd"]).forEach(n=>{const i=C(n,4),s=a[i];if(!s)return;const u=s.timescale||9e4;Be(r,["tfdt"]).forEach(f=>{const v=f[0],x=t*u;if(x){let T=C(f,4);if(v===0)T-=x,T=Math.max(T,0),Re(f,4,T);else{T*=Math.pow(2,32),T+=C(f,8),T-=x,T=Math.max(T,0);const K=Math.floor(T/(Ht+1)),se=Math.floor(T%(Ht+1));Re(f,4,K),Re(f,8,se)}}})})})}function kt(a){const e={valid:null,remainder:null},t=Be(a,["moof"]);if(t.length<2)return e.remainder=a,e;const r=t[t.length-1];return e.valid=le(a,0,r.byteOffset-8),e.remainder=le(a,r.byteOffset-8),e}function lt(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function pt(a,e){const t=[],r=e.samples,n=e.timescale,i=e.id;let s=!1;return Be(r,["moof"]).map(f=>{const v=f.byteOffset-8;Be(f,["traf"]).map(T=>{const K=Be(T,["tfdt"]).map(se=>{const ie=se[0];let de=C(se,4);return ie===1&&(de*=Math.pow(2,32),de+=C(se,8)),de/n})[0];return K!==void 0&&(a=K),Be(T,["tfhd"]).map(se=>{const ie=C(se,4),de=C(se,0)&16777215,xe=(de&1)!==0,je=(de&2)!==0,ct=(de&8)!==0;let ut=0;const Nt=(de&16)!==0;let vt=0;const Qt=(de&32)!==0;let Mt=8;ie===i&&(xe&&(Mt+=8),je&&(Mt+=4),ct&&(ut=C(se,Mt),Mt+=4),Nt&&(vt=C(se,Mt),Mt+=4),Qt&&(Mt+=4),e.type==="video"&&(s=tr(e.codec)),Be(T,["trun"]).map(or=>{const _r=or[0],Vt=C(or,0)&16777215,lr=(Vt&1)!==0;let qr=0;const Er=(Vt&4)!==0,Xr=(Vt&256)!==0;let Vr=0;const Ur=(Vt&512)!==0;let bn=0;const Bn=(Vt&1024)!==0,Ir=(Vt&2048)!==0;let wr=0;const An=C(or,4);let on=8;lr&&(qr=C(or,on),on+=4),Er&&(on+=4);let Ln=qr+v;for(let ci=0;ci<An;ci++){if(Xr?(Vr=C(or,on),on+=4):Vr=ut,Ur?(bn=C(or,on),on+=4):bn=vt,Bn&&(on+=4),Ir&&(_r===0?wr=C(or,on):wr=Q(or,on),on+=4),e.type===G.VIDEO){let bi=0;for(;bi<bn;){const Ei=C(r,Ln);if(Ln+=4,pe(s,r[Ln])){const Fi=r.subarray(Ln,Ln+Ei);Ce(Fi,s?2:1,a+wr/n,t)}Ln+=Ei,bi+=Ei+4}}a+=Vr/n}}))})})}),t}function tr(a){if(!a)return!1;const e=a.indexOf("."),t=e<0?a:a.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function pe(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Ce(a,e,t,r){const n=it(a);let i=0;i+=e;let s=0,u=0,f=0;for(;i<n.length;){s=0;do{if(i>=n.length)break;f=n[i++],s+=f}while(f===255);u=0;do{if(i>=n.length)break;f=n[i++],u+=f}while(f===255);const v=n.length-i;let x=i;if(u<v)i+=u;else if(u>v){E.error(`Malformed SEI payload. ${u} is too small, only ${v} bytes left to parse.`);break}if(s===4){if(n[x++]===181){const K=S(n,x);if(x+=2,K===49){const se=C(n,x);if(x+=4,se===1195456820){const ie=n[x++];if(ie===3){const de=n[x++],xe=31&de,je=64&de,ct=je?2+xe*3:0,ut=new Uint8Array(ct);if(je){ut[0]=de;for(let Nt=1;Nt<ct;Nt++)ut[Nt]=n[x++]}r.push({type:ie,payloadType:s,pts:t,bytes:ut})}}}}}else if(s===5&&u>16){const T=[];for(let ie=0;ie<16;ie++){const de=n[x++].toString(16);T.push(de.length==1?"0"+de:de),(ie===3||ie===5||ie===7||ie===9)&&T.push("-")}const K=u-16,se=new Uint8Array(K);for(let ie=0;ie<K;ie++)se[ie]=n[x++];r.push({payloadType:s,pts:t,uuid:T.join(""),userData:mt(se),userDataBytes:se})}}}function it(a){const e=a.byteLength,t=[];let r=1;for(;r<e-2;)a[r]===0&&a[r+1]===0&&a[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return a;const n=e-t.length,i=new Uint8Array(n);let s=0;for(r=0;r<n;s++,r++)s===t[0]&&(s++,t.shift()),i[r]=a[s];return i}function Ke(a){const e=a[0];let t="",r="",n=0,i=0,s=0,u=0,f=0,v=0;if(e===0){for(;$t(a.subarray(v,v+1))!=="\0";)t+=$t(a.subarray(v,v+1)),v+=1;for(t+=$t(a.subarray(v,v+1)),v+=1;$t(a.subarray(v,v+1))!=="\0";)r+=$t(a.subarray(v,v+1)),v+=1;r+=$t(a.subarray(v,v+1)),v+=1,n=C(a,12),i=C(a,16),u=C(a,20),f=C(a,24),v=28}else if(e===1){v+=4,n=C(a,v),v+=4;const T=C(a,v);v+=4;const K=C(a,v);for(v+=4,s=Yo(2,32)*T+K,F(s)||(s=Number.MAX_SAFE_INTEGER,E.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=C(a,v),v+=4,f=C(a,v),v+=4;$t(a.subarray(v,v+1))!=="\0";)t+=$t(a.subarray(v,v+1)),v+=1;for(t+=$t(a.subarray(v,v+1)),v+=1;$t(a.subarray(v,v+1))!=="\0";)r+=$t(a.subarray(v,v+1)),v+=1;r+=$t(a.subarray(v,v+1)),v+=1}const x=a.subarray(v,a.byteLength);return{schemeIdUri:t,value:r,timeScale:n,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:x}}function st(a,...e){const t=e.length;let r=8,n=t;for(;n--;)r+=e[n].byteLength;const i=new Uint8Array(r);for(i[0]=r>>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=r&255,i.set(a,4),n=0,r=8;n<t;n++)i.set(e[n],r),r+=e[n].byteLength;return i}function ft(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let r,n;if(e){r=1,n=new Uint8Array(e.length*16);for(let u=0;u<e.length;u++){const f=e[u];if(f.byteLength!==16)throw new RangeError("Invalid key");n.set(f,u*16)}}else r=0,n=new Uint8Array;let i;r>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),st([112,115,115,104],new Uint8Array([r,0,0,0]),a,i,n,s,t||new Uint8Array)}function wt(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let r=0;for(;r+32<t;){const n=new DataView(a,r),i=Xt(n);e.push(i),r+=i.size}}return e}function Xt(a){const e=a.getUint32(0),t=a.byteOffset,r=a.byteLength;if(r<e)return{offset:t,size:r};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,u=Lt.hexDump(new Uint8Array(s,t+12,16)),f=a.getUint32(28);let v=null,x=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};x=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||r<t+32+f*16+16)return{offset:t,size:e};v=[];for(let T=0;T<f;T++)v.push(new Uint8Array(s,t+32+T*16,16))}return{version:i,systemId:u,kids:v,data:x,offset:t,size:e}}let ar={};class jt{static clearKeyUriToKeyIdMap(){ar={}}constructor(e,t,r,n=[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=r,this.keyFormatVersions=n,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case $e.FAIRPLAY:case $e.WIDEVINE:case $e.PLAYREADY:case $e.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(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&E.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=gr(e);return new jt(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=M(this.uri);if(t)switch(this.keyFormat){case $e.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case $e.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ft(r,null,t),this.keyId=It(t);break}default:{let r=t.subarray(0,16);if(r.length!==16){const n=new Uint8Array(16);n.set(r,16-r.length),r=n}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=ar[this.uri];if(!r){const n=Object.keys(ar).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,n),ar[this.uri]=r}this.keyId=r}return this}}function gr(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const sr=/\{\$([a-zA-Z0-9-_]+)\}/g;function Gt(a){return sr.test(a)}function Ot(a,e,t){if(a.variableList!==null||a.hasVariableRefs)for(let r=t.length;r--;){const n=t[r],i=e[n];i&&(e[n]=ur(a,i))}}function ur(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(sr,r=>{const n=r.substring(2,r.length-1),i=t==null?void 0:t[n];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${n}"`)),r):i})}return e}function Dr(a,e,t){let r=a.variableList;r||(a.variableList=r={});let n,i;if("QUERYPARAM"in e){n=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(n))i=s.get(n);else throw new Error(`"${n}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else n=e.NAME,i=e.VALUE;n in r?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${n}"`)):r[n]=i||""}function yr(a,e,t){const r=e.IMPORT;if(t&&r in t){let n=a.variableList;n||(a.variableList=n={}),n[r]=t[r]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function Lr(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function en(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}const Ar={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,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 nr(a,e){const t=Ar[e];return!!t&&!!t[a.slice(0,4)]}function tt(a,e,t=!0){return!a.split(",").some(r=>!Ye(r,e,t))}function Ye(a,e,t=!0){var r;const n=Lr(t);return(r=n==null?void 0:n.isTypeSupported(gt(a,e)))!=null?r:!1}function gt(a,e){return`${e}/mp4;codecs="${a}"`}function Tt(a){if(a){const e=a.substring(0,4);return Ar.video[e]}return 2}function at(a){return a.split(",").reduce((e,t)=>{const r=Ar.video[t];return r?(r*2+e)/(e?3:2):(Ar.audio[t]+e)/(e?2:1)},0)}const Ct={};function xt(a,e=!0){if(Ct[a])return Ct[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[a];for(let r=0;r<t.length;r++)if(Ye(t[r],"audio",e))return Ct[a]=t[r],t[r];return a}const zt=/flac|opus/i;function rr(a,e=!0){return a.replace(zt,t=>xt(t.toLowerCase(),e))}function qt(a,e){return a&&a!=="mp4a"?a:e&&e.split(",")[0]}function br(a){const e=a.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");if(r.length>2){let n=r.shift()+".";n+=parseInt(r.shift()).toString(16),n+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[t]=n}}return e.join(",")}const Mr=/#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,Fr=/#EXT-X-MEDIA:(.*)/g,vr=/^#EXT(?:INF|-X-TARGETDURATION):/m,dr=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Yr=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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 Nr{static findGroup(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(n.id===t)return n}}static resolve(e,t){return ye.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return vr.test(e)}static parseMasterPlaylist(e,t){const r=Gt(e),n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},i=[];Mr.lastIndex=0;let s;for(;(s=Mr.exec(e))!=null;)if(s[1]){var u;const v=new q(s[1]);Ot(n,v,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const x=ur(n,s[2]),T={attrs:v,bitrate:v.decimalInteger("BANDWIDTH")||v.decimalInteger("AVERAGE-BANDWIDTH"),name:v.NAME,url:Nr.resolve(x,t)},K=v.decimalResolution("RESOLUTION");K&&(T.width=K.width,T.height=K.height),Br(v.CODECS,T),(u=T.unknownCodecs)!=null&&u.length||i.push(T),n.levels.push(T)}else if(s[3]){const v=s[3],x=s[4];switch(v){case"SESSION-DATA":{const T=new q(x);Ot(n,T,["DATA-ID","LANGUAGE","VALUE","URI"]);const K=T["DATA-ID"];K&&(n.sessionData===null&&(n.sessionData={}),n.sessionData[K]=T);break}case"SESSION-KEY":{const T=Cr(x,t,n);T.encrypted&&T.isSupported()?(n.sessionKeys===null&&(n.sessionKeys=[]),n.sessionKeys.push(T)):E.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${x}"`);break}case"DEFINE":{{const T=new q(x);Ot(n,T,["NAME","VALUE","QUERYPARAM"]),Dr(n,T,t)}break}case"CONTENT-STEERING":{const T=new q(x);Ot(n,T,["SERVER-URI","PATHWAY-ID"]),n.contentSteering={uri:Nr.resolve(T["SERVER-URI"],t),pathwayId:T["PATHWAY-ID"]||"."};break}case"START":{n.startTimeOffset=Rr(x);break}}}const f=i.length>0&&i.length<n.levels.length;return n.levels=f?i:n.levels,n.levels.length===0&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,r){let n;const i={},s=r.levels,u={AUDIO:s.map(v=>({id:v.attrs.AUDIO,audioCodec:v.audioCodec})),SUBTITLES:s.map(v=>({id:v.attrs.SUBTITLES,textCodec:v.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(Fr.lastIndex=0;(n=Fr.exec(e))!==null;){const v=new q(n[1]),x=v.TYPE;if(x){const T=u[x],K=i[x]||[];i[x]=K,Ot(r,v,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const se=v.LANGUAGE,ie=v["ASSOC-LANGUAGE"],de=v.CHANNELS,xe=v.CHARACTERISTICS,je=v["INSTREAM-ID"],ct={attrs:v,bitrate:0,id:f++,groupId:v["GROUP-ID"]||"",name:v.NAME||se||"",type:x,default:v.bool("DEFAULT"),autoselect:v.bool("AUTOSELECT"),forced:v.bool("FORCED"),lang:se,url:v.URI?Nr.resolve(v.URI,t):""};if(ie&&(ct.assocLang=ie),de&&(ct.channels=de),xe&&(ct.characteristics=xe),je&&(ct.instreamId=je),T!=null&&T.length){const ut=Nr.findGroup(T,ct.groupId)||T[0];Pr(ct,ut,"audioCodec"),Pr(ct,ut,"textCodec")}K.push(ct)}}return i}static parseLevelPlaylist(e,t,r,n,i,s){const u=new B(t),f=u.fragments;let v=null,x=0,T=0,K=0,se=0,ie=null,de=new $(n,t),xe,je,ct,ut=-1,Nt=!1,vt=null;for(dr.lastIndex=0,u.m3u8=e,u.hasVariableRefs=Gt(e);(xe=dr.exec(e))!==null;){Nt&&(Nt=!1,de=new $(n,t),de.start=K,de.sn=x,de.cc=se,de.level=r,v&&(de.initSegment=v,de.rawProgramDateTime=v.rawProgramDateTime,v.rawProgramDateTime=null,vt&&(de.setByteRange(vt),vt=null)));const _r=xe[1];if(_r){de.duration=parseFloat(_r);const Vt=(" "+xe[2]).slice(1);de.title=Vt||null,de.tagList.push(Vt?["INF",_r,Vt]:["INF",_r])}else if(xe[3]){if(V(de.duration)){de.start=K,ct&&Qr(de,ct,u),de.sn=x,de.level=r,de.cc=se,f.push(de);const Vt=(" "+xe[3]).slice(1);de.relurl=ur(u,Vt),zr(de,ie),ie=de,K+=de.duration,x++,T=0,Nt=!0}}else if(xe[4]){const Vt=(" "+xe[4]).slice(1);ie?de.setByteRange(Vt,ie):de.setByteRange(Vt)}else if(xe[5])de.rawProgramDateTime=(" "+xe[5]).slice(1),de.tagList.push(["PROGRAM-DATE-TIME",de.rawProgramDateTime]),ut===-1&&(ut=f.length);else{if(xe=xe[0].match(Yr),!xe){E.warn("No matches on slow regex match for level playlist!");continue}for(je=1;je<xe.length&&typeof xe[je]=="undefined";je++);const Vt=(" "+xe[je]).slice(1),lr=(" "+xe[je+1]).slice(1),qr=xe[je+2]?(" "+xe[je+2]).slice(1):"";switch(Vt){case"PLAYLIST-TYPE":u.type=lr.toUpperCase();break;case"MEDIA-SEQUENCE":x=u.startSN=parseInt(lr);break;case"SKIP":{const Er=new q(lr);Ot(u,Er,["RECENTLY-REMOVED-DATERANGES"]);const Xr=Er.decimalInteger("SKIPPED-SEGMENTS");if(V(Xr)){u.skippedSegments=Xr;for(let Ur=Xr;Ur--;)f.unshift(null);x+=Xr}const Vr=Er.enumeratedString("RECENTLY-REMOVED-DATERANGES");Vr&&(u.recentlyRemovedDateranges=Vr.split(" "));break}case"TARGETDURATION":u.targetduration=Math.max(parseInt(lr),1);break;case"VERSION":u.version=parseInt(lr);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":u.live=!1;break;case"#":(lr||qr)&&de.tagList.push(qr?[lr,qr]:[lr]);break;case"DISCONTINUITY":se++,de.tagList.push(["DIS"]);break;case"GAP":de.gap=!0,de.tagList.push([Vt]);break;case"BITRATE":de.tagList.push([Vt,lr]);break;case"DATERANGE":{const Er=new q(lr);Ot(u,Er,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ot(u,Er,Er.clientAttrs);const Xr=new Se(Er,u.dateRanges[Er.ID]);Xr.isValid||u.skippedSegments?u.dateRanges[Xr.id]=Xr:E.warn(`Ignoring invalid DATERANGE tag: "${lr}"`),de.tagList.push(["EXT-X-DATERANGE",lr]);break}case"DEFINE":{{const Er=new q(lr);Ot(u,Er,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Er?yr(u,Er,s):Dr(u,Er,t)}break}case"DISCONTINUITY-SEQUENCE":se=parseInt(lr);break;case"KEY":{const Er=Cr(lr,t,u);if(Er.isSupported()){if(Er.method==="NONE"){ct=void 0;break}ct||(ct={}),ct[Er.keyFormat]&&(ct=o({},ct)),ct[Er.keyFormat]=Er}else E.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${lr}"`);break}case"START":u.startTimeOffset=Rr(lr);break;case"MAP":{const Er=new q(lr);if(Ot(u,Er,["BYTERANGE","URI"]),de.duration){const Xr=new $(n,t);sn(Xr,Er,r,ct),v=Xr,de.initSegment=v,v.rawProgramDateTime&&!de.rawProgramDateTime&&(de.rawProgramDateTime=v.rawProgramDateTime)}else{const Xr=de.byteRangeEndOffset;if(Xr){const Vr=de.byteRangeStartOffset;vt=`${Xr-Vr}@${Vr}`}else vt=null;sn(de,Er,r,ct),v=de,Nt=!0}break}case"SERVER-CONTROL":{const Er=new q(lr);u.canBlockReload=Er.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Er.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Er.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Er.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Er.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Er=new q(lr);u.partTarget=Er.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Er=u.partList;Er||(Er=u.partList=[]);const Xr=T>0?Er[Er.length-1]:void 0,Vr=T++,Ur=new q(lr);Ot(u,Ur,["BYTERANGE","URI"]);const bn=new R(Ur,de,t,Vr,Xr);Er.push(bn),de.duration+=bn.duration;break}case"PRELOAD-HINT":{const Er=new q(lr);Ot(u,Er,["URI"]),u.preloadHint=Er;break}case"RENDITION-REPORT":{const Er=new q(lr);Ot(u,Er,["URI"]),u.renditionReports=u.renditionReports||[],u.renditionReports.push(Er);break}default:E.warn(`line parsed but not handled: ${xe}`);break}}}ie&&!ie.relurl?(f.pop(),K-=ie.duration,u.partList&&(u.fragmentHint=ie)):u.partList&&(zr(de,ie),de.cc=se,u.fragmentHint=de,ct&&Qr(de,ct,u));const Qt=f.length,Mt=f[0],or=f[Qt-1];if(K+=u.skippedSegments*u.targetduration,K>0&&Qt&&or){u.averagetargetduration=K/Qt;const _r=or.sn;u.endSN=_r!=="initSegment"?_r:0,u.live||(or.endList=!0),Mt&&(u.startCC=Mt.cc)}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(K+=u.fragmentHint.duration),u.totalduration=K,u.endCC=se,ut>0&&kr(f,ut),u}}function Cr(a,e,t){var r,n;const i=new q(a);Ot(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(r=i.METHOD)!=null?r:"",u=i.URI,f=i.hexadecimalInteger("IV"),v=i.KEYFORMATVERSIONS,x=(n=i.KEYFORMAT)!=null?n:"identity";u&&i.IV&&!f&&E.error(`Invalid IV: ${i.IV}`);const T=u?Nr.resolve(u,e):"",K=(v||"1").split("/").map(Number).filter(Number.isFinite);return new jt(s,T,x,K,f)}function Rr(a){const t=new q(a).decimalFloatingPoint("TIME-OFFSET");return V(t)?t:null}function Br(a,e){let t=(a||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const n=t.filter(i=>nr(i,r));n.length&&(e[`${r}Codec`]=n.join(","),t=t.filter(i=>n.indexOf(i)===-1))}),e.unknownCodecs=t}function Pr(a,e,t){const r=e[t];r&&(a[t]=r)}function kr(a,e){let t=a[e];for(let r=e;r--;){const n=a[r];if(!n)return;n.programDateTime=t.programDateTime-n.duration*1e3,t=n}}function zr(a,e){a.rawProgramDateTime?a.programDateTime=Date.parse(a.rawProgramDateTime):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime),V(a.programDateTime)||(a.programDateTime=null,a.rawProgramDateTime=null)}function sn(a,e,t,r){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",r&&(a.levelkeys=r),a.initSegment=null}function Qr(a,e,t){a.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(n=>e[n].isCommonEncryption)&&r.push(a)}var Tr={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Xe={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function xr(a){const{type:e}=a;switch(e){case Tr.AUDIO_TRACK:return Xe.AUDIO;case Tr.SUBTITLE_TRACK:return Xe.SUBTITLE;default:return Xe.MAIN}}function $r(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class dn{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(c.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(c.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,n=t.loader,i=r||n,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:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Tr.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(e,t){const{id:r,level:n,pathwayId:i,url:s,deliveryDirectives:u}=t;this.load({id:r,level:n,pathwayId:i,responseType:"text",type:Tr.LEVEL,url:s,deliveryDirectives:u})}onAudioTrackLoading(e,t){const{id:r,groupId:n,url:i,deliveryDirectives:s}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:Tr.AUDIO_TRACK,url:i,deliveryDirectives:s})}onSubtitleTrackLoading(e,t){const{id:r,groupId:n,url:i,deliveryDirectives:s}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:Tr.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const r=this.hls.config;let n=this.getInternalLoader(e);if(n){const v=n.context;if(v&&v.url===e.url&&v.level===e.level){E.trace("[playlist-loader]: playlist request ongoing");return}E.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),n.abort()}let i;if(e.type===Tr.MANIFEST?i=r.manifestLoadPolicy.default:i=o({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),n=this.createInternalLoader(e),V((t=e.deliveryDirectives)==null?void 0:t.part)){let v;if(e.type===Tr.LEVEL&&e.level!==null?v=this.hls.levels[e.level].details:e.type===Tr.AUDIO_TRACK&&e.id!==null?v=this.hls.audioTracks[e.id].details:e.type===Tr.SUBTITLE_TRACK&&e.id!==null&&(v=this.hls.subtitleTracks[e.id].details),v){const x=v.partTarget,T=v.targetduration;if(x&&T){const K=Math.max(x*3,T*.8)*1e3;i=o({},i,{maxTimeToFirstByteMs:Math.min(K,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(K,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},u={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},f={onSuccess:(v,x,T,K)=>{const se=this.getInternalLoader(T);this.resetInternalLoader(T.type);const ie=v.data;if(ie.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(v,T,new Error("no EXTM3U delimiter"),K||null,x);return}x.parsing.start=performance.now(),Nr.isMediaPlaylist(ie)?this.handleTrackOrLevelPlaylist(v,x,T,K||null,se):this.handleMasterPlaylist(v,x,T,K)},onError:(v,x,T,K)=>{this.handleNetworkError(x,T,!1,v,K)},onTimeout:(v,x,T)=>{this.handleNetworkError(x,T,!0,void 0,v)}};n.load(e,u,f)}handleMasterPlaylist(e,t,r,n){const i=this.hls,s=e.data,u=$r(e,r),f=Nr.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,r,f.playlistParsingError,n,t);return}const{contentSteering:v,levels:x,sessionData:T,sessionKeys:K,startTimeOffset:se,variableList:ie}=f;this.variableList=ie;const{AUDIO:de=[],SUBTITLES:xe,"CLOSED-CAPTIONS":je}=Nr.parseMasterPlaylistMedia(s,u,f);de.length&&!de.some(ut=>!ut.url)&&x[0].audioCodec&&!x[0].attrs.AUDIO&&(E.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 q({}),bitrate:0,url:""})),i.trigger(c.MANIFEST_LOADED,{levels:x,audioTracks:de,subtitles:xe,captions:je,contentSteering:v,url:u,stats:t,networkDetails:n,sessionData:T,sessionKeys:K,startTimeOffset:se,variableList:ie})}handleTrackOrLevelPlaylist(e,t,r,n,i){const s=this.hls,{id:u,level:f,type:v}=r,x=$r(e,r),T=0,K=V(f)?f:V(u)?u:0,se=xr(r),ie=Nr.parseLevelPlaylist(e.data,x,K,se,T,this.variableList);if(v===Tr.MANIFEST){const de={attrs:new q({}),bitrate:0,details:ie,name:"",url:x};s.trigger(c.MANIFEST_LOADED,{levels:[de],audioTracks:[],url:x,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=ie,this.handlePlaylistLoaded(ie,e,t,r,n,i)}handleManifestParsingError(e,t,r,n,i){this.hls.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:b.MANIFEST_PARSING_ERROR,fatal:t.type===Tr.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:n,stats:i})}handleNetworkError(e,t,r=!1,n,i){let s=`A network ${r?"timeout":"error"+(n?" (status "+n.code+")":"")} occurred while loading ${e.type}`;e.type===Tr.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===Tr.AUDIO_TRACK||e.type===Tr.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);E.warn(`[playlist-loader]: ${s}`);let f=b.UNKNOWN,v=!1;const x=this.getInternalLoader(e);switch(e.type){case Tr.MANIFEST:f=r?b.MANIFEST_LOAD_TIMEOUT:b.MANIFEST_LOAD_ERROR,v=!0;break;case Tr.LEVEL:f=r?b.LEVEL_LOAD_TIMEOUT:b.LEVEL_LOAD_ERROR,v=!1;break;case Tr.AUDIO_TRACK:f=r?b.AUDIO_TRACK_LOAD_TIMEOUT:b.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case Tr.SUBTITLE_TRACK:f=r?b.SUBTITLE_TRACK_LOAD_TIMEOUT:b.SUBTITLE_LOAD_ERROR,v=!1;break}x&&this.resetInternalLoader(e.type);const T={type:w.NETWORK_ERROR,details:f,fatal:v,url:e.url,loader:x,context:e,error:u,networkDetails:t,stats:i};if(n){const K=(t==null?void 0:t.url)||e.url;T.response=oe({url:K,data:void 0},n)}this.hls.trigger(c.ERROR,T)}handlePlaylistLoaded(e,t,r,n,i,s){const u=this.hls,{type:f,level:v,id:x,groupId:T,deliveryDirectives:K}=n,se=$r(t,n),ie=xr(n),de=typeof n.level=="number"&&ie===Xe.MAIN?v:void 0;if(!e.fragments.length){const je=new Error("No Segments found in Playlist");u.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:b.LEVEL_EMPTY_ERROR,fatal:!1,url:se,error:je,reason:je.message,response:t,context:n,level:de,parent:ie,networkDetails:i,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const xe=e.playlistParsingError;if(xe){u.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:b.LEVEL_PARSING_ERROR,fatal:!1,url:se,error:xe,reason:xe.message,response:t,context:n,level:de,parent:ie,networkDetails:i,stats:r});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),f){case Tr.MANIFEST:case Tr.LEVEL:u.trigger(c.LEVEL_LOADED,{details:e,level:de||0,id:x||0,stats:r,networkDetails:i,deliveryDirectives:K});break;case Tr.AUDIO_TRACK:u.trigger(c.AUDIO_TRACK_LOADED,{details:e,id:x||0,groupId:T||"",stats:r,networkDetails:i,deliveryDirectives:K});break;case Tr.SUBTITLE_TRACK:u.trigger(c.SUBTITLE_TRACK_LOADED,{details:e,id:x||0,groupId:T||"",stats:r,networkDetails:i,deliveryDirectives:K});break}}}function kn(a,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function jr(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(r){E.debug(`[texttrack-utils]: ${r}`);try{const n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,a.addCue(n)}catch(n){E.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${n}`)}}t==="disabled"&&(a.mode=t)}function hn(a){const e=a.mode;if(e==="disabled"&&(a.mode="hidden"),a.cues)for(let t=a.cues.length;t--;)a.removeCue(a.cues[t]);e==="disabled"&&(a.mode=e)}function Or(a,e,t,r){const n=a.mode;if(n==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Rn(a.cues,e,t);for(let s=0;s<i.length;s++)(!r||r(i[s]))&&a.removeCue(i[s])}n==="disabled"&&(a.mode=n)}function yn(a,e){if(e<a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let r=0,n=t;for(;r<=n;){const i=Math.floor((n+r)/2);if(e<a[i].startTime)n=i-1;else if(e>a[i].startTime&&r<t)r=i+1;else return i}return a[r].startTime-e<e-a[n].startTime?r:n}function Rn(a,e,t){const r=[],n=yn(a,e);if(n>-1)for(let i=n,s=a.length;i<s;i++){const u=a[i];if(u.startTime>=e&&u.endTime<=t)r.push(u);else if(u.startTime>t)return r}return r}function rn(a){const e=[];for(let t=0;t<a.length;t++){const r=a[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(a[t])}return e}var Cn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const ni=.25;function Un(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function ei(a,e,t,r,n){let i=new a(e,t,"");try{i.value=r,n&&(i.type=n)}catch(s){i=new a(e,t,JSON.stringify(n?oe({type:n},r):r))}return i}const cr=(()=>{const a=Un();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function tn(a,e){return a.getTime()/1e3-e}function an(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class mn{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(hn(this.id3Track),this.id3Track=null,this.media=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 r=e[t];if(r.kind==="metadata"&&r.label==="id3")return kn(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:n}}}=this;if(!r&&!n)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Un();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===Cn.emsg&&!r||!n)continue;const v=ke(i[u].data);if(v){const x=i[u].pts;let T=x+i[u].duration;T>cr&&(T=cr),T-x<=0&&(T=x+ni);for(let se=0;se<v.length;se++){const ie=v[se];if(!ue(ie)){this.updateId3CueEnds(x,f);const de=ei(s,x,T,ie,f);de&&this.id3Track.addCue(de)}}}}}updateId3CueEnds(e,t){var r;const n=(r=this.id3Track)==null?void 0:r.cues;if(n)for(let i=n.length;i--;){const s=n[i];s.type===t&&s.startTime<e&&s.endTime===cr&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:n}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:u,enableID3MetadataCues:f}}=s;if(i&&(u||f)){let v;n==="audio"?v=x=>x.type===Cn.audioId3&&f:n==="video"?v=x=>x.type===Cn.emsg&&u:v=x=>x.type===Cn.audioId3&&f||x.type===Cn.emsg&&u,Or(i,t,r,v)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:n}=this,{dateRanges:i}=t,s=Object.keys(i);if(n){const x=Object.keys(r).filter(T=>!s.includes(T));for(let T=x.length;T--;){const K=x[T];Object.keys(r[K].cues).forEach(se=>{n.removeCue(r[K].cues[se])}),delete r[K]}}const u=t.fragments[t.fragments.length-1];if(s.length===0||!V(u==null?void 0:u.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=u.programDateTime/1e3-u.start,v=Un();for(let x=0;x<s.length;x++){const T=s[x],K=i[T],se=tn(K.startDate,f),ie=r[T],de=(ie==null?void 0:ie.cues)||{};let xe=(ie==null?void 0:ie.durationKnown)||!1,je=cr;const ct=K.endDate;if(ct)je=tn(ct,f),xe=!0;else if(K.endOnNext&&!xe){const Nt=s.reduce((vt,Qt)=>{if(Qt!==K.id){const Mt=i[Qt];if(Mt.class===K.class&&Mt.startDate>K.startDate&&(!vt||K.startDate<vt.startDate))return Mt}return vt},null);Nt&&(je=tn(Nt.startDate,f),xe=!0)}const ut=Object.keys(K.attr);for(let Nt=0;Nt<ut.length;Nt++){const vt=ut[Nt];if(!ge(vt))continue;const Qt=de[vt];if(Qt)xe&&!ie.durationKnown&&(Qt.endTime=je);else if(v){let Mt=K.attr[vt];Te(vt)&&(Mt=an(Mt));const or=ei(v,se,je,{key:vt,data:Mt},Cn.dateRange);or&&(or.id=T,this.id3Track.addCue(or),de[vt]=or)}}r[T]={cues:de,dateRange:K,durationKnown:xe}}}}class Zn{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:r,targetduration:n}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:u}=this.config,f=this.hls.userConfig;let v=u&&r||t;(f.liveSyncDuration||f.liveSyncDurationCount||v===0)&&(v=i!==void 0?i:s*n);const x=n;return v+Math.min(this.stallCount*1,x)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(e===null||t===null||r===null)return null;const n=r.edge,i=e-t-this.edgeStalled,s=n-r.totalduration,u=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,i),u)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;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,levelDetails:t}=this;if(!e||!t)return 0;const r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(c.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(c.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(c.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(c.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var r;t.details===b.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&E.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:n,maxLiveSyncPlaybackRate:i}=this.config;if(!n||i===1||!t.live)return;const s=this.targetLatency;if(s===null)return;const u=r-s,f=Math.min(this.maxLatency,s+t.targetduration);if(u<f&&u>.05&&this.forwardBufferLength>1){const x=Math.min(2,Math.max(1,i)),T=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;e.playbackRate=Math.min(x,Math.max(1,T))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const Vn=["NONE","TYPE-0","TYPE-1",null];function vn(a){return Vn.indexOf(a)>-1}const Nn=["SDR","PQ","HLG"];function un(a){return!!a&&Nn.indexOf(a)>-1}var Yn={No:"",Yes:"YES",v2:"v2"};function Gn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=a,n=r<e/2;return e&&n?t?Yn.v2:Yn.Yes:Yn.No}class si{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}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 jn{constructor(e){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.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(t=>!!t).map(t=>t.substring(0,4)).join(","),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 ii(this._audioGroups,e)}hasSubtitleGroup(e){return ii(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.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 ii(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Gr(a,e){const t=e.startPTS;if(V(t)){let r=0,n;e.sn>a.sn?(r=t-a.start,n=a):(r=a.start-t,n=e),n.duration!==r&&(n.duration=r)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.start=a.start+(a.minEndPTS-a.start):e.start=a.start+a.duration:e.start=Math.max(a.start-e.duration,0)}function di(a,e,t,r,n,i){r-t<=0&&(E.warn("Fragment should have a positive duration",e),r=t+e.duration,i=n+e.duration);let u=t,f=r;const v=e.startPTS,x=e.endPTS;if(V(v)){const xe=Math.abs(v-t);V(e.deltaPTS)?e.deltaPTS=Math.max(xe,e.deltaPTS):e.deltaPTS=xe,u=Math.max(t,v),t=Math.min(t,v),n=Math.min(n,e.startDTS),f=Math.min(r,x),r=Math.max(r,x),i=Math.max(i,e.endDTS)}const T=t-e.start;e.start!==0&&(e.start=t),e.duration=r-e.start,e.startPTS=t,e.maxStartPTS=u,e.startDTS=n,e.endPTS=r,e.minEndPTS=f,e.endDTS=i;const K=e.sn;if(!a||K<a.startSN||K>a.endSN)return 0;let se;const ie=K-a.startSN,de=a.fragments;for(de[ie]=e,se=ie;se>0;se--)Gr(de[se],de[se-1]);for(se=ie;se<de.length-1;se++)Gr(de[se],de[se+1]);return a.fragmentHint&&Gr(de[de.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,T}function wi(a,e){let t=null;const r=a.fragments;for(let u=r.length-1;u>=0;u--){const f=r[u].initSegment;if(f){t=f;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let n;fi(a,e,(u,f,v,x)=>{if(e.skippedSegments&&f.cc!==u.cc){const T=u.cc-f.cc;for(let K=v;K<x.length;K++)x[K].cc+=T}V(u.startPTS)&&V(u.endPTS)&&(f.start=f.startPTS=u.startPTS,f.startDTS=u.startDTS,f.maxStartPTS=u.maxStartPTS,f.endPTS=u.endPTS,f.endDTS=u.endDTS,f.minEndPTS=u.minEndPTS,f.duration=u.endPTS-u.startPTS,f.duration&&(n=f),e.PTSKnown=e.alignedSliding=!0),f.elementaryStreams=u.elementaryStreams,f.loader=u.loader,f.stats=u.stats,u.initSegment&&(f.initSegment=u.initSegment,t=u.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(f=>{var v;f&&(!f.initSegment||f.initSegment.relurl===((v=t)==null?void 0:v.relurl))&&(f.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){E.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let u=e.skippedSegments;u--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=yi(a.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}pn(a.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),n?di(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):xi(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const s=e.advancedDateTime;if(e.advanced&&s){const u=e.edge;e.driftStart||(e.driftStartTime=s,e.driftStart=u),e.driftEndTime=s,e.driftEnd=u}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime}function yi(a,e,t){const r=o({},a);return t&&t.forEach(n=>{delete r[n]}),Object.keys(e).forEach(n=>{const i=new Se(e[n].attr,r[n]);i.isValid?r[n]=i:E.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[n].attr)}"`)}),r}function pn(a,e,t){if(a&&e){let r=0;for(let n=0,i=a.length;n<=i;n++){const s=a[n],u=e[n+r];s&&u&&s.index===u.index&&s.fragment.sn===u.fragment.sn?t(s,u):r--}}}function fi(a,e,t){const r=e.skippedSegments,n=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(r?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,f=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let v=n;v<=i;v++){const x=f[s+v];let T=u[v];r&&!T&&v<r&&(T=e.fragments[v]=x),x&&T&&t(x,T,v,u)}}function xi(a,e){const t=e.startSN+e.skippedSegments-a.startSN,r=a.fragments;t<0||t>=r.length||Jt(e,r[t].start)}function Jt(a,e){if(e){const t=a.fragments;for(let r=a.skippedSegments;r<t.length;r++)t[r].start+=e;a.fragmentHint&&(a.fragmentHint.start+=e)}}function Xn(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const r=a.fragments;if(r.length&&t*4>e){const i=r[r.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function mi(a,e,t){if(!(a!=null&&a.details))return null;const r=a.details;let n=r.fragments[e-r.startSN];return n||(n=r.fragmentHint,n&&n.sn===e)?n:e<r.startSN&&t&&t.sn===e?t:null}function li(a,e,t){var r;return a!=null&&a.details?On((r=a.details)==null?void 0:r.partList,e,t):null}function On(a,e,t){if(a)for(let r=a.length;r--;){const n=a[r];if(n.index===t&&n.fragment.sn===e)return n}return null}function xn(a){a.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(n=>{n.level=t})})}function Jr(a){switch(a.details){case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_TIMEOUT:case b.LEVEL_LOAD_TIMEOUT:case b.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function En(a,e){const t=Jr(e);return a.default[`${t?"timeout":"error"}Retry`]}function Fn(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Qn(a){return oe(oe({},a),{errorRetry:null,timeoutRetry:null})}function In(a,e,t,r){if(!a)return!1;const n=r==null?void 0:r.code,i=e<a.maxNumRetry&&(Kn(n)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,r,i):i}function Kn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}const Ri={search:function(a,e){let t=0,r=a.length-1,n=null,i=null;for(;t<=r;){n=(t+r)/2|0,i=a[n];const s=e(i);if(s>0)t=n+1;else if(s<0)r=n-1;else return i}return null}};function gn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!V(e))return null;const r=a[0].programDateTime;if(e<(r||0))return null;const n=a[a.length-1].endProgramDateTime;if(e>=(n||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if(ai(e,t,s))return s}return null}function Hr(a,e,t=0,r=0,n=.005){let i=null;if(a){i=e[a.sn-e[0].sn+1]||null;const u=a.endDTS-t;u>0&&u<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&Mn(t,r,i)===0||Pn(i,a,Math.min(n,r))))return i;const s=Ri.search(e,Mn.bind(null,t,r));return s&&(s!==a||!i)?s:i}function Pn(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((n,i)=>(i[0]==="INF"&&(n+=parseFloat(i[1])),n),t);return a.start<=r}return!1}function Mn(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=a?1:t.start-r>a&&t.start?-1:0}function ai(a,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>a}function fr(a,e){return Ri.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}var mr={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},nn={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class zn{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=E.log.bind(E,"[info]:"),this.warn=E.warn.bind(E,"[warning]:"),this.error=E.error.bind(E,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(c.ERROR,this.onError,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(c.ERROR,this.onError,this),e.off(c.ERROR,this.onErrorOut,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.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)===Xe.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r,n;if(t.fatal)return;const i=this.hls,s=t.context;switch(t.details){case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case b.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:mr.DoNothing,flags:nn.None};return}case b.FRAG_GAP:case b.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=mr.SendAlternateToPenaltyBox;return}case b.LEVEL_EMPTY_ERROR:case b.LEVEL_PARSING_ERROR:{var u,f;const v=t.parent===Xe.MAIN?t.level:i.loadLevel;t.details===b.LEVEL_EMPTY_ERROR&&((u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,v):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,v))}return;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.SUBTITLE_LOAD_ERROR:case b.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const v=i.levels[i.loadLevel];if(v&&(s.type===Tr.AUDIO_TRACK&&v.hasAudioGroup(s.groupId)||s.type===Tr.SUBTITLE_TRACK&&v.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=mr.SendAlternateToPenaltyBox,t.errorAction.flags=nn.MoveAllAlternatesMatchingHost;return}}return;case b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const v=i.levels[i.loadLevel],x=v==null?void 0:v.attrs["HDCP-LEVEL"];x?t.errorAction={action:mr.SendAlternateToPenaltyBox,flags:nn.MoveAllAlternatesMatchingHDCP,hdcpLevel:x}:this.keySystemError(t)}return;case b.BUFFER_ADD_CODEC_ERROR:case b.REMUX_ALLOC_ERROR:case b.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(n=t.level)!=null?n:i.loadLevel);return;case b.INTERNAL_EXCEPTION:case b.BUFFER_APPENDING_ERROR:case b.BUFFER_FULL_ERROR:case b.LEVEL_SWITCH_ERROR:case b.BUFFER_STALLED_ERROR:case b.BUFFER_SEEK_OVER_HOLE:case b.BUFFER_NUDGE_ON_STALL:t.errorAction={action:mr.DoNothing,flags:nn.None};return}t.type===w.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 r=this.hls,n=En(r.config.playlistLoadPolicy,e),i=this.playlistError++;if(In(n,i,Jr(e),e.response))return{action:mr.RetryRequest,flags:nn.None,retryConfig:n,retryCount:i};const u=this.getLevelSwitchAction(e,t);return n&&(u.retryConfig=n,u.retryCount=i),u}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),n=t.levels[r],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,u=En(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((x,T)=>x+T.fragmentError,0);if(n&&(e.details!==b.FRAG_GAP&&n.fragmentError++,In(u,f,Jr(e),e.response)))return{action:mr.RetryRequest,flags:nn.None,retryConfig:u,retryCount:f};const v=this.getLevelSwitchAction(e,r);return u&&(v.retryConfig=u,v.retryCount=f),v}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const n=this.hls.levels[t];if(n){var i,s;const v=e.details;n.loadError++,v===b.BUFFER_APPEND_ERROR&&n.fragmentError++;let x=-1;const{levels:T,loadLevel:K,minAutoLevel:se,maxAutoLevel:ie}=r;r.autoLevelEnabled||(r.loadLevel=-1);const de=(i=e.frag)==null?void 0:i.type,je=(de===Xe.AUDIO&&v===b.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(v===b.BUFFER_ADD_CODEC_ERROR||v===b.BUFFER_APPEND_ERROR))&&T.some(({audioCodec:Qt})=>n.audioCodec!==Qt),ut=e.sourceBufferName==="video"&&(v===b.BUFFER_ADD_CODEC_ERROR||v===b.BUFFER_APPEND_ERROR)&&T.some(({codecSet:Qt,audioCodec:Mt})=>n.codecSet!==Qt&&n.audioCodec===Mt),{type:Nt,groupId:vt}=(s=e.context)!=null?s:{};for(let Qt=T.length;Qt--;){const Mt=(Qt+K)%T.length;if(Mt!==K&&Mt>=se&&Mt<=ie&&T[Mt].loadError===0){var u,f;const or=T[Mt];if(v===b.FRAG_GAP&&de===Xe.MAIN&&e.frag){const _r=T[Mt].details;if(_r){const Vt=Hr(e.frag,_r.fragments,e.frag.start);if(Vt!=null&&Vt.gap)continue}}else{if(Nt===Tr.AUDIO_TRACK&&or.hasAudioGroup(vt)||Nt===Tr.SUBTITLE_TRACK&&or.hasSubtitleGroup(vt))continue;if(de===Xe.AUDIO&&(u=n.audioGroups)!=null&&u.some(_r=>or.hasAudioGroup(_r))||de===Xe.SUBTITLE&&(f=n.subtitleGroups)!=null&&f.some(_r=>or.hasSubtitleGroup(_r))||je&&n.audioCodec===or.audioCodec||!je&&n.audioCodec!==or.audioCodec||ut&&n.codecSet===or.codecSet)continue}x=Mt;break}}if(x>-1&&r.loadLevel!==x)return e.levelRetry=!0,this.playlistError=0,{action:mr.SendAlternateToPenaltyBox,flags:nn.None,nextAutoLevel:x}}return{action:mr.SendAlternateToPenaltyBox,flags:nn.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case mr.DoNothing:break;case mr.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==b.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case mr.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:n,hdcpLevel:i,nextAutoLevel:s}=r;switch(n){case nn.None:this.switchLevel(e,s);break;case nn.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Vn[Vn.indexOf(i)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(e,s)}switchLevel(e,t){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)}}class ln{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=E.log.bind(E,`${t}:`),this.warn=E.warn.bind(E,`${t}:`),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.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,r){const n=t==null?void 0:t.renditionReports;if(n){let i=-1;for(let s=0;s<n.length;s++){const u=n[s];let f;try{f=new self.URL(u.URI,t.url).href}catch(v){E.warn(`Could not construct new URL for Rendition Report: ${v}`),f=u.URI||""}if(f===e){i=s;break}else f===e.substring(0,f.length)&&(i=s)}if(i!==-1){const s=n[i],u=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let f=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const x=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&x>t.partTarget&&(f+=1)}const v=r&&Gn(r);return new si(u,f>=0?f:void 0,v)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,r){const{details:n,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;if(n.advancedDateTime=Date.now()-u,n.live||r!=null&&r.live){if(n.reloaded(r),r&&this.log(`live playlist ${e} ${n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED"}`),r&&n.fragments.length>0&&wi(r,n),!this.canLoad||!n.live)return;let f,v,x;if(n.canBlockReload&&n.endSN&&n.advanced){const xe=this.hls.config.lowLatencyMode,je=n.lastPartSn,ct=n.endSN,ut=n.lastPartIndex,Nt=ut!==-1,vt=je===ct,Qt=xe?0:ut;Nt?(v=vt?ct+1:je,x=vt?Qt:ut+1):v=ct+1;const Mt=n.age,or=Mt+n.ageHeader;let _r=Math.min(or-n.partTarget,n.targetduration*1.5);if(_r>0){if(r&&_r>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${_r} with playlist age: ${n.age}`),_r=0;else{const Vt=Math.floor(_r/n.targetduration);if(v+=Vt,x!==void 0){const lr=Math.round(_r%n.targetduration/n.partTarget);x+=lr}this.log(`CDN Tune-in age: ${n.ageHeader}s last advanced ${Mt.toFixed(2)}s goal: ${_r} skip sn ${Vt} to part ${x}`)}n.tuneInGoal=_r}if(f=this.getDeliveryDirectives(n,t.deliveryDirectives,v,x),xe||!vt){this.loadPlaylist(f);return}}else(n.canBlockReload||n.canSkipUntil)&&(f=this.getDeliveryDirectives(n,t.deliveryDirectives,v,x));const T=this.hls.mainForwardBufferInfo,K=T?T.end-T.len:0,se=(n.edge-K)*1e3,ie=Xn(n,se);n.updated&&s>this.requestScheduled+ie&&(this.requestScheduled=i.loading.start),v!==void 0&&n.canBlockReload?this.requestScheduled=i.loading.first+ie-(n.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+ie<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=ie);let de=this.requestScheduled-s;de=Math.max(0,de),this.log(`reload live playlist ${e} in ${Math.round(de)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(f),de)}else this.clearTimer()}getDeliveryDirectives(e,t,r,n){let i=Gn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,i=Yn.No),new si(r,n,i)}checkRetry(e){const t=e.details,r=Jr(e),n=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=n||{},f=!!n&&!!u&&(i===mr.RetryRequest||!n.resolved&&i===mr.SendAlternateToPenaltyBox);if(f){var v;if(this.requestScheduled=-1,s>=u.maxNumRetry)return!1;if(r&&(v=e.context)!=null&&v.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const x=Fn(u,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),x),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${x}ms`)}e.levelRetry=!0,n.resolved=!0}return f}}class pi{constructor(e,t=0,r=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_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*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 Ki{constructor(e,t,r,n=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_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new pi(e),this.fast_=new pi(t),this.defaultTTFB_=n,this.ttfb_=new pi(e)}update(e,t){const{slow_:r,fast_:n,ttfb_:i}=this;r.halfLife!==e&&(this.slow_=new pi(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new pi(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new pi(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,n=e/1e3,i=r/n;this.fast_.sample(n,i),this.slow_.sample(n,i)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,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_}destroy(){}}const zi={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ti={};function vs(a,e,t,r,n,i){const s=a.audioCodec?a.audioGroups:null,u=i==null?void 0:i.audioCodec,f=i==null?void 0:i.channels,v=f?parseInt(f):u?1/0:2;let x=null;if(s!=null&&s.length)try{s.length===1&&s[0]?x=e.groups[s[0]].channels:x=s.reduce((T,K)=>{if(K){const se=e.groups[K];if(!se)throw new Error(`Audio track group ${K} not found`);Object.keys(se.channels).forEach(ie=>{T[ie]=(T[ie]||0)+se.channels[ie]})}return T},{2:0})}catch(T){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(r,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(n,8e6))||!!x&&V(v)&&Object.keys(x).some(T=>parseInt(T)>v)}function Ds(a,e,t){const r=a.videoCodec,n=a.audioCodec;if(!r||!n||!t)return Promise.resolve(zi);const i={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},s=a.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const u=r.split(",").map(f=>({type:"media-source",video:oe(oe({},i),{},{contentType:gt(f,"video")})}));return n&&a.audioGroups&&a.audioGroups.forEach(f=>{var v;f&&((v=e.groups[f])==null||v.tracks.forEach(x=>{if(x.groupId===f){const T=x.channels||"",K=parseFloat(T);V(K)&&K>2&&u.push.apply(u,n.split(",").map(se=>({type:"media-source",audio:{contentType:gt(se,"audio"),channels:""+K}})))}}))}),Promise.all(u.map(f=>{const v=Rs(f);return Ti[v]||(Ti[v]=t.decodingInfo(f))})).then(f=>({supported:!f.some(v=>!v.supported),configurations:u,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:u,decodingInfoResults:[],error:f}))}function Rs(a){const{audio:e,video:t}=a,r=t||e;if(r){const n=r.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${n}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${n}`}return""}function ns(){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 Is(a,e){let t=!1,r=[];return a&&(t=a!=="SDR",r=[a]),e&&(r=e.allowedVideoRanges||Nn.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ns(),t?r=r.filter(n=>n!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ii(a,e,t,r,n){const i=Object.keys(a),s=r==null?void 0:r.channels,u=r==null?void 0:r.audioCodec,f=s&&parseInt(s)===2;let v=!0,x=!1,T=1/0,K=1/0,se=1/0,ie=0,de=[];const{preferHDR:xe,allowedVideoRanges:je}=Is(e,n);for(let vt=i.length;vt--;){const Qt=a[i[vt]];v=Qt.channels[2]>0,T=Math.min(T,Qt.minHeight),K=Math.min(K,Qt.minFramerate),se=Math.min(se,Qt.minBitrate);const Mt=je.filter(or=>Qt.videoRanges[or]>0);Mt.length>0&&(x=!0,de=Mt)}T=V(T)?T:0,K=V(K)?K:0;const ct=Math.max(1080,T),ut=Math.max(30,K);return se=V(se)?se:t,t=Math.max(se,t),x||(e=void 0,de=[]),{codecSet:i.reduce((vt,Qt)=>{const Mt=a[Qt];if(Qt===vt)return vt;if(Mt.minBitrate>t)return ti(Qt,`min bitrate of ${Mt.minBitrate} > current estimate of ${t}`),vt;if(!Mt.hasDefaultAudio)return ti(Qt,"no renditions with default or auto-select sound found"),vt;if(u&&Qt.indexOf(u.substring(0,4))%5!==0)return ti(Qt,`audio codec preference "${u}" not found`),vt;if(s&&!f){if(!Mt.channels[s])return ti(Qt,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Mt.channels)})`),vt}else if((!u||f)&&v&&Mt.channels[2]===0)return ti(Qt,"no renditions with stereo sound found"),vt;return Mt.minHeight>ct?(ti(Qt,`min resolution of ${Mt.minHeight} > maximum of ${ct}`),vt):Mt.minFramerate>ut?(ti(Qt,`min framerate of ${Mt.minFramerate} > maximum of ${ut}`),vt):de.some(or=>Mt.videoRanges[or]>0)?Mt.maxScore<ie?(ti(Qt,`max score of ${Mt.maxScore} < selected max of ${ie}`),vt):vt&&(at(Qt)>=at(vt)||Mt.fragmentError>a[vt].fragmentError)?vt:(ie=Mt.maxScore,Qt):(ti(Qt,`no variants with VIDEO-RANGE of ${JSON.stringify(de)} found`),vt)},void 0),videoRanges:de,preferHDR:xe,minFramerate:K,minBitrate:se}}function ti(a,e){E.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function _s(a){return a.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const n=t.channels||"2";return r.channels[n]=(r.channels[n]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function is(a,e,t,r){return a.slice(t,r+1).reduce((n,i)=>{if(!i.codecSet)return n;const s=i.audioGroups;let u=n[i.codecSet];u||(n[i.codecSet]=u={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),u.minBitrate=Math.min(u.minBitrate,i.bitrate);const f=Math.min(i.height,i.width);return u.minHeight=Math.min(u.minHeight,f),u.minFramerate=Math.min(u.minFramerate,i.frameRate),u.maxScore=Math.max(u.maxScore,i.score),u.fragmentError+=i.fragmentError,u.videoRanges[i.videoRange]=(u.videoRanges[i.videoRange]||0)+1,s&&s.forEach(v=>{if(!v)return;const x=e.groups[v];x&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?x.hasDefault:x.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(x.channels).forEach(T=>{u.channels[T]=(u.channels[T]||0)+x.channels[T]}))}),n},{})}function Si(a,e,t){if("attrs"in a){const r=e.indexOf(a);if(r!==-1)return r}for(let r=0;r<e.length;r++){const n=e[r];if(Li(a,n,t))return r}return-1}function Li(a,e,t){const{groupId:r,name:n,lang:i,assocLang:s,default:u}=a,f=a.forced;return(r===void 0||e.groupId===r)&&(n===void 0||e.name===n)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===s)&&(u===void 0||e.default===u)&&(f===void 0||e.forced===f)&&(!("characteristics"in a)||Qs(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function Qs(a,e=""){const t=a.split(","),r=e.split(",");return t.length===r.length&&!t.some(n=>r.indexOf(n)===-1)}function Oi(a,e){const{audioCodec:t,channels:r}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function Js(a,e,t,r,n){const i=e[r],u=e.reduce((K,se,ie)=>{const de=se.uri;return(K[de]||(K[de]=[])).push(ie),K},{})[i.uri];u.length>1&&(r=Math.max.apply(Math,u));const f=i.videoRange,v=i.frameRate,x=i.codecSet.substring(0,4),T=bs(e,r,K=>{if(K.videoRange!==f||K.frameRate!==v||K.codecSet.substring(0,4)!==x)return!1;const se=K.audioGroups,ie=t.filter(de=>!se||se.indexOf(de.groupId)!==-1);return Si(a,ie,n)>-1});return T>-1?T:bs(e,r,K=>{const se=K.audioGroups,ie=t.filter(de=>!se||se.indexOf(de.groupId)!==-1);return Si(a,ie,n)>-1})}function bs(a,e,t){for(let r=e;r>-1;r--)if(t(a[r]))return r;for(let r=e+1;r<a.length;r++)if(t(a[r]))return r;return-1}class ss{constructor(e){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.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:r,hls:n}=this,{autoLevelEnabled:i,media:s}=n;if(!t||!s)return;const u=performance.now(),f=r?r.stats:t.stats,v=r?r.duration:t.duration,x=u-f.loading.start,T=n.minAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||t.level<=T){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const K=n.mainForwardBufferInfo;if(K===null)return;const se=this.bwEstimator.getEstimateTTFB(),ie=Math.abs(s.playbackRate);if(x<=Math.max(se,1e3*(v/(ie*2))))return;const de=K.len/ie,xe=f.loading.first?f.loading.first-f.loading.start:-1,je=f.loaded&&xe>-1,ct=this.getBwEstimate(),ut=n.levels,Nt=ut[t.level],vt=f.total||Math.max(f.loaded,Math.round(v*Nt.averageBitrate/8));let Qt=je?x-xe:x;Qt<1&&je&&(Qt=Math.min(x,f.loaded*8/ct));const Mt=je?f.loaded*1e3/Qt:0,or=Mt?(vt-f.loaded)/Mt:vt*8/ct+se/1e3;if(or<=de)return;const _r=Mt?Mt*8:ct;let Vt=Number.POSITIVE_INFINITY,lr;for(lr=t.level-1;lr>T;lr--){const Er=ut[lr].maxBitrate;if(Vt=this.getTimeToLoadFrag(se/1e3,_r,v*Er,!ut[lr].details),Vt<de)break}if(Vt>=or||Vt>v*10)return;n.nextLoadLevel=n.nextAutoLevel=lr,je?this.bwEstimator.sample(x-Math.min(se,xe),f.loaded):this.bwEstimator.sampleTTFB(x);const qr=ut[lr].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>qr&&this.resetEstimator(qr),this.clearTimer(),E.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
Time to underbuffer: ${de.toFixed(3)} s
Estimated load time for current fragment: ${or.toFixed(3)} s
Estimated load time for down switch fragment: ${Vt.toFixed(3)} s
TTFB estimate: ${xe|0} ms
Current BW estimate: ${V(ct)?ct|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${lr} @ ${qr|0} bps`),n.trigger(c.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(E.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 Ki(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(c.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 r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var n;this.fragCurrent=r,this.partCurrent=(n=t.part)!=null?n:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case b.BUFFER_ADD_CODEC_ERROR:case b.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case b.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:n,partCurrent:i}=this;if(r&&n&&r.sn===n.sn&&r.level===n.level){const s=performance.now(),u=i?i.stats:r.stats,f=s-u.loading.start,v=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&v>-1){const T=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(T,v),u.loaded)}else this.bwEstimator.sampleTTFB(f)}break}}}getTimeToLoadFrag(e,t,r,n){const i=e+r/t,s=n?this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const r=this.hls.config,{loading:n}=t.stats,i=n.end-n.start;V(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:r}){const n=r?r.stats:t.stats;if(t.type===Xe.MAIN&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=r?r.duration:t.duration,s=this.hls.levels[t.level],u=(s.loaded?s.loaded.bytes:0)+n.loaded,f=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:u,duration:f},s.realBitrate=Math.round(8*u/f)}if(t.bitrateTest){const i={stats:n,frag:t,part:r,id:t.type};this.onFragBuffered(c.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:n}=t,i=n!=null&&n.stats.loaded?n.stats:r.stats;if(i.aborted||this.ignoreFragment(r))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(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Xe.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,r=this.getBwEstimate(),n=this.hls.config.maxStarvationDelay,i=this.findBestLevel(r,t,e,0,n,1,1);if(i>-1)return i;const s=this.hls.firstLevel,u=Math.min(Math.max(s,t),e);return E.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${u}`),u}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!n||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=r&&n?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:r}=this,{maxAutoLevel:n,config:i,minAutoLevel:s}=r,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),v=this.getStarvationDelay();let x=i.abrBandWidthFactor,T=i.abrBandWidthUpFactor;if(v){const xe=this.findBestLevel(f,s,n,v,0,x,T);if(xe>=0)return xe}let K=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!v){const xe=this.bitrateTestDelay;xe&&(K=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-xe,E.info(`[abr] bitrate test took ${Math.round(1e3*xe)}ms, set first fragment max fetchDuration to ${Math.round(1e3*K)} ms`),x=T=1)}const se=this.findBestLevel(f,s,n,v,K,x,T);if(E.info(`[abr] ${v?"rebuffering expected":"buffer is empty"}, optimal quality level ${se}`),se>-1)return se;const ie=r.levels[s],de=r.levels[r.loadLevel];return(ie==null?void 0:ie.bitrate)<(de==null?void 0:de.bitrate)?s:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,n=e.mainForwardBufferInfo;return(n?n.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,n,i,s,u){var f;const v=n+i,x=this.lastLoadedFragLevel,T=x===-1?this.hls.firstLevel:x,{fragCurrent:K,partCurrent:se}=this,{levels:ie,allAudioTracks:de,loadLevel:xe,config:je}=this.hls;if(ie.length===1)return 0;const ct=ie[T],ut=!!(ct!=null&&(f=ct.details)!=null&&f.live),Nt=xe===-1||x===-1;let vt,Qt="SDR",Mt=(ct==null?void 0:ct.frameRate)||0;const{audioPreference:or,videoPreference:_r}=je,Vt=this.audioTracksByGroup||(this.audioTracksByGroup=_s(de));if(Nt){if(this.firstSelection!==-1)return this.firstSelection;const Vr=this.codecTiers||(this.codecTiers=is(ie,Vt,t,r)),Ur=Ii(Vr,Qt,e,or,_r),{codecSet:bn,videoRanges:Bn,minFramerate:Ir,minBitrate:wr,preferHDR:An}=Ur;vt=bn,Qt=An?Bn[Bn.length-1]:Bn[0],Mt=Ir,e=Math.max(e,wr),E.log(`[abr] picked start tier ${JSON.stringify(Ur)}`)}else vt=ct==null?void 0:ct.codecSet,Qt=ct==null?void 0:ct.videoRange;const lr=se?se.duration:K?K.duration:0,qr=this.bwEstimator.getEstimateTTFB()/1e3,Er=[];for(let Vr=r;Vr>=t;Vr--){var Xr;const Ur=ie[Vr],bn=Vr>T;if(!Ur)continue;if(je.useMediaCapabilities&&!Ur.supportedResult&&!Ur.supportedPromise){const ci=navigator.mediaCapabilities;typeof(ci==null?void 0:ci.decodingInfo)=="function"&&vs(Ur,Vt,Qt,Mt,e,or)?(Ur.supportedPromise=Ds(Ur,Vt,ci),Ur.supportedPromise.then(bi=>{if(!this.hls)return;Ur.supportedResult=bi;const Ei=this.hls.levels,Fi=Ei.indexOf(Ur);bi.error?E.warn(`[abr] MediaCapabilities decodingInfo error: "${bi.error}" for level ${Fi} ${JSON.stringify(bi)}`):bi.supported||(E.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Fi} ${JSON.stringify(bi)}`),Fi>-1&&Ei.length>1&&(E.log(`[abr] Removing unsupported level ${Fi}`),this.hls.removeLevel(Fi)))})):Ur.supportedResult=zi}if(vt&&Ur.codecSet!==vt||Qt&&Ur.videoRange!==Qt||bn&&Mt>Ur.frameRate||!bn&&Mt>0&&Mt<Ur.frameRate||Ur.supportedResult&&!((Xr=Ur.supportedResult.decodingInfoResults)!=null&&Xr[0].smooth)){Er.push(Vr);continue}const Bn=Ur.details,Ir=(se?Bn==null?void 0:Bn.partTarget:Bn==null?void 0:Bn.averagetargetduration)||lr;let wr;bn?wr=u*e:wr=s*e;const An=lr&&n>=lr*2&&i===0?ie[Vr].averageBitrate:ie[Vr].maxBitrate,on=this.getTimeToLoadFrag(qr,wr,An*Ir,Bn===void 0);if(wr>=An&&(Vr===x||Ur.loadError===0&&Ur.fragmentError===0)&&(on<=qr||!V(on)||ut&&!this.bitrateTestDelay||on<v)){const ci=this.forcedAutoLevel;return Vr!==xe&&(ci===-1||ci!==xe)&&(Er.length&&E.trace(`[abr] Skipped level(s) ${Er.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${ie[Er[0]].codecs}" ${ie[Er[0]].videoRange}; not compatible with "${ct.codecs}" ${Qt}`),E.info(`[abr] switch candidate:${T}->${Vr} adjustedbw(${Math.round(wr)})-bitrate=${Math.round(wr-An)} ttfb:${qr.toFixed(1)} avgDuration:${Ir.toFixed(1)} maxFetchDuration:${v.toFixed(1)} fetchDuration:${on.toFixed(1)} firstSelection:${Nt} codecSet:${vt} videoRange:${Qt} hls.loadLevel:${xe}`)),Nt&&(this.firstSelection=Vr),Vr}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls,n=Math.min(Math.max(e,r),t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}}class qs{constructor(){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(){}}var ri={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Xi{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(c.BUFFER_APPENDED,this.onBufferAppended,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.BUFFER_APPENDED,this.onBufferAppended,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let n=r.length;n--;){const i=r[n];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){const{fragments:r}=this,n=Object.keys(r);for(let i=n.length;i--;){const s=r[n[i]];if((s==null?void 0:s.body.type)===t&&s.buffered){const u=s.body;if(u.start<=e&&e<=u.end)return u}}return null}detectEvictedFragments(e,t,r,n){this.timeRanges&&(this.timeRanges[e]=t);const i=(n==null?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u||i>=u.body.sn)return;if(!u.buffered&&!u.loaded){u.body.type===r&&this.removeFragment(u.body);return}const f=u.range[e];f&&f.time.some(v=>{const x=!this.isTimeBuffered(v.startPTS,v.endPTS,t);return x&&this.removeFragment(u.body),x})})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:n}=e;if(!t||r.sn==="initSegment")return;const i=Wi(r),s=this.fragments[i];if(!s||s.buffered&&r.gap)return;const u=!r.relurl;Object.keys(t).forEach(f=>{const v=r.elementaryStreams[f];if(!v)return;const x=t[f],T=u||v.partial===!0;s.range[f]=this.getBufferedTimes(r,n,T,x)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=r.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),$i(s)||this.removeParts(r.sn-1,r.type)):this.removeFragment(s.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter(n=>n.fragment.sn>=e))}fragBuffered(e,t){const r=Wi(e);let n=this.fragments[r];!n&&t&&(n=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),n&&(n.loaded=null,n.buffered=!0)}getBufferedTimes(e,t,r,n){const i={time:[],partial:r},s=e.start,u=e.end,f=e.minEndPTS||u,v=e.maxStartPTS||s;for(let x=0;x<n.length;x++){const T=n.start(x)-this.bufferPadding,K=n.end(x)+this.bufferPadding;if(v>=T&&f<=K){i.time.push({startPTS:Math.max(s,n.start(x)),endPTS:Math.min(u,n.end(x))});break}else if(s<K&&u>T){const se=Math.max(s,n.start(x)),ie=Math.min(u,n.end(x));ie>se&&(i.partial=!0,i.time.push({startPTS:se,endPTS:ie}))}else if(u<=T)break}return i}getPartialFragment(e){let t=null,r,n,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(v=>{const x=f[v];x&&$i(x)&&(n=x.body.start-u,i=x.body.end+u,e>=n&&e<=i&&(r=Math.min(e-n,i-e),s<=r&&(t=x.body,s=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||$i(t))}getState(e){const t=Wi(e),r=this.fragments[t];return r?r.buffered?$i(r)?ri.PARTIAL:ri.OK:ri.APPENDING:ri.NOT_LOADED}isTimeBuffered(e,t,r){let n,i;for(let s=0;s<r.length;s++){if(n=r.start(s)-this.bufferPadding,i=r.end(s)+this.bufferPadding,e>=n&&t<=i)return!0;if(t<=n)return!1}return!1}onFragLoaded(e,t){const{frag:r,part:n}=t;if(r.sn==="initSegment"||r.bitrateTest)return;const i=n?null:t,s=Wi(r);this.fragments[s]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:n,timeRanges:i}=t;if(r.sn==="initSegment")return;const s=r.type;if(n){let u=this.activePartLists[s];u||(this.activePartLists[s]=u=[]),u.push(n)}this.timeRanges=i,Object.keys(i).forEach(u=>{const f=i[u];this.detectEvictedFragments(u,f,s,n)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Wi(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,r,n,i){n&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u)return;const f=u.body;f.type!==r||n&&!f.gap||f.start<t&&f.end>e&&(u.buffered||i)&&this.removeFragment(f)})}removeFragment(e){const t=Wi(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const n=e.sn;this.activePartLists[e.type]=r.filter(i=>i.fragment.sn!==n)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function $i(a){var e,t,r;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((r=a.range.audiovideo)==null?void 0:r.partial))}function Wi(a){return`${a.type}_${a.level}_${a.sn}`}const Ls={length:0,start:()=>0,end:()=>0};class wn{static isBuffered(e,t){try{if(e){const r=wn.getBuffered(e);for(let n=0;n<r.length;n++)if(t>=r.start(n)&&t<=r.end(n))return!0}}catch(r){}return!1}static bufferInfo(e,t,r){try{if(e){const n=wn.getBuffered(e),i=[];let s;for(s=0;s<n.length;s++)i.push({start:n.start(s),end:n.end(s)});return this.bufferedInfo(i,t,r)}}catch(n){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.sort(function(v,x){const T=v.start-x.start;return T||x.end-v.end});let n=[];if(r)for(let v=0;v<e.length;v++){const x=n.length;if(x){const T=n[x-1].end;e[v].start-T<r?e[v].end>T&&(n[x-1].end=e[v].end):n.push(e[v])}else n.push(e[v])}else n=e;let i=0,s,u=t,f=t;for(let v=0;v<n.length;v++){const x=n[v].start,T=n[v].end;if(t+r>=x&&t<T)u=x,f=T,i=f-t;else if(t+r<x){s=x;break}}return{len:i,start:u||0,end:f||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return E.log("failed to get media.buffered",t),Ls}}}class as{constructor(e,t,r,n=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=gi(),this.buffering={audio:gi(),video:gi(),audiovideo:gi()},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=s}}function gi(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Qi(a,e){for(let r=0,n=a.length;r<n;r++){var t;if(((t=a[r])==null?void 0:t.cc)===e)return a[r]}return null}function ea(a,e,t){return!!(e&&(t.endCC>t.startCC||a&&a.cc<t.startCC))}function os(a,e){const t=a.fragments,r=e.fragments;if(!r.length||!t.length){E.log("No fragments to align");return}const n=Qi(t,r[0].cc);if(!n||n&&!n.startPTS){E.log("No frag in previous level to align on");return}return n}function ls(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function us(a,e){const t=e.fragments;for(let r=0,n=t.length;r<n;r++)ls(t[r],a);e.fragmentHint&&ls(e.fragmentHint,a),e.alignedSliding=!0}function ys(a,e,t){e&&(ks(a,t,e),!t.alignedSliding&&e&&Di(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&xi(e,t))}function ks(a,e,t){if(ea(a,t,e)){const r=os(t,e);r&&V(r.start)&&(E.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),us(r.start,e))}}function Di(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,r=e.fragments;if(!t.length||!r.length)return;let n,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(n=Qi(r,s),i=Qi(t,s)),(!n||!i)&&(n=r[Math.floor(r.length/2)],i=Qi(t,n.cc)||t[Math.floor(t.length/2)]);const u=n.programDateTime,f=i.programDateTime;if(!u||!f)return;const v=(f-u)/1e3-(i.start-n.start);us(v,a)}const xs=Math.pow(2,17);class _n{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 r=e.url;if(!r)return Promise.reject(new Wn({type:w.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const n=this.config,i=n.fLoader,s=n.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(se=>se[0]==="GAP")){f(cn(e));return}else e.gap=!1;const v=this.loader=e.loader=i?new i(n):new s(n),x=fn(e),T=Qn(n.fragLoadPolicy.default),K={loadPolicy:T,timeout:T.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:xs};e.stats=v.stats,v.load(x,K,{onSuccess:(se,ie,de,xe)=>{this.resetLoader(e,v);let je=se.data;de.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(je.slice(0,16)),je=je.slice(16)),u({frag:e,part:null,payload:je,networkDetails:xe})},onError:(se,ie,de,xe)=>{this.resetLoader(e,v),f(new Wn({type:w.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:oe({url:r,data:void 0},se),error:new Error(`HTTP Error ${se.code} ${se.text}`),networkDetails:de,stats:xe}))},onAbort:(se,ie,de)=>{this.resetLoader(e,v),f(new Wn({type:w.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:de,stats:se}))},onTimeout:(se,ie,de)=>{this.resetLoader(e,v),f(new Wn({type:w.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${K.timeout}ms`),networkDetails:de,stats:se}))},onProgress:(se,ie,de,xe)=>{t&&t({frag:e,part:null,payload:de,networkDetails:xe})}})})}loadPart(e,t,r){this.abort();const n=this.config,i=n.fLoader,s=n.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){f(cn(e,t));return}const v=this.loader=e.loader=i?new i(n):new s(n),x=fn(e,t),T=Qn(n.fragLoadPolicy.default),K={loadPolicy:T,timeout:T.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:xs};t.stats=v.stats,v.load(x,K,{onSuccess:(se,ie,de,xe)=>{this.resetLoader(e,v),this.updateStatsFromPart(e,t);const je={frag:e,part:t,payload:se.data,networkDetails:xe};r(je),u(je)},onError:(se,ie,de,xe)=>{this.resetLoader(e,v),f(new Wn({type:w.NETWORK_ERROR,details:b.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:oe({url:x.url,data:void 0},se),error:new Error(`HTTP Error ${se.code} ${se.text}`),networkDetails:de,stats:xe}))},onAbort:(se,ie,de)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,v),f(new Wn({type:w.NETWORK_ERROR,details:b.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:de,stats:se}))},onTimeout:(se,ie,de)=>{this.resetLoader(e,v),f(new Wn({type:w.NETWORK_ERROR,details:b.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${K.timeout}ms`),networkDetails:de,stats:se}))}})})}updateStatsFromPart(e,t){const r=e.stats,n=t.stats,i=n.total;if(r.loaded+=n.loaded,i){const f=Math.round(e.duration/t.duration),v=Math.min(Math.round(r.loaded/i),f),T=(f-v)*Math.round(r.loaded/v);r.total=r.loaded+T}else r.total=Math.max(r.loaded,r.total);const s=r.loading,u=n.loading;s.start?s.first+=u.first-u.start:(s.start=u.start,s.first=u.first),s.end=u.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function fn(a,e=null){const t=e||a,r={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},n=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(V(n)&&V(i)){var s;let u=n,f=i;if(a.sn==="initSegment"&&((s=a.decryptdata)==null?void 0:s.method)==="AES-128"){const v=i-n;v%16&&(f=i+(16-v%16)),n!==0&&(r.resetIV=!0,u=n-16)}r.rangeStart=u,r.rangeEnd=f}return r}function cn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),r={type:w.MEDIA_ERROR,details:b.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(r.part=e),(e||a).stats.aborted=!0,new Wn(r)}class Wn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Jn{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class Ji{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Es(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?le(a,0,e-t):a}class Os{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),r=new Uint32Array(4);for(let n=0;n<4;n++)r[n]=t.getUint32(n*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,n=r[0],i=r[1],s=r[2],u=r[3],f=this.invSubMix,v=f[0],x=f[1],T=f[2],K=f[3],se=new Uint32Array(256);let ie=0,de=0,xe=0;for(xe=0;xe<256;xe++)xe<128?se[xe]=xe<<1:se[xe]=xe<<1^283;for(xe=0;xe<256;xe++){let je=de^de<<1^de<<2^de<<3^de<<4;je=je>>>8^je&255^99,e[ie]=je,t[je]=ie;const ct=se[ie],ut=se[ct],Nt=se[ut];let vt=se[je]*257^je*16843008;n[ie]=vt<<24|vt>>>8,i[ie]=vt<<16|vt>>>16,s[ie]=vt<<8|vt>>>24,u[ie]=vt,vt=Nt*16843009^ut*65537^ct*257^ie*16843008,v[je]=vt<<24|vt>>>8,x[je]=vt<<16|vt>>>16,T[je]=vt<<8|vt>>>24,K[je]=vt,ie?(ie=ct^se[se[se[Nt^ct]]],de^=se[se[de]]):ie=de=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,n=0;for(;n<t.length&&r;)r=t[n]===this.key[n],n++;if(r)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 u,f;const v=this.keySchedule=new Uint32Array(s),x=this.invKeySchedule=new Uint32Array(s),T=this.sBox,K=this.rcon,se=this.invSubMix,ie=se[0],de=se[1],xe=se[2],je=se[3];let ct,ut;for(u=0;u<s;u++){if(u<i){ct=v[u]=t[u];continue}ut=ct,u%i===0?(ut=ut<<8|ut>>>24,ut=T[ut>>>24]<<24|T[ut>>>16&255]<<16|T[ut>>>8&255]<<8|T[ut&255],ut^=K[u/i|0]<<24):i>6&&u%i===4&&(ut=T[ut>>>24]<<24|T[ut>>>16&255]<<16|T[ut>>>8&255]<<8|T[ut&255]),v[u]=ct=(v[u-i]^ut)>>>0}for(f=0;f<s;f++)u=s-f,f&3?ut=v[u]:ut=v[u-4],f<4||u<=4?x[f]=ut:x[f]=ie[T[ut>>>24]]^de[T[ut>>>16&255]]^xe[T[ut>>>8&255]]^je[T[ut&255]],x[f]=x[f]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const n=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,u=this.invSubMix,f=u[0],v=u[1],x=u[2],T=u[3],K=this.uint8ArrayToUint32Array_(r);let se=K[0],ie=K[1],de=K[2],xe=K[3];const je=new Int32Array(e),ct=new Int32Array(je.length);let ut,Nt,vt,Qt,Mt,or,_r,Vt,lr,qr,Er,Xr,Vr,Ur;const bn=this.networkToHostOrderSwap;for(;t<je.length;){for(lr=bn(je[t]),qr=bn(je[t+1]),Er=bn(je[t+2]),Xr=bn(je[t+3]),Mt=lr^i[0],or=Xr^i[1],_r=Er^i[2],Vt=qr^i[3],Vr=4,Ur=1;Ur<n;Ur++)ut=f[Mt>>>24]^v[or>>16&255]^x[_r>>8&255]^T[Vt&255]^i[Vr],Nt=f[or>>>24]^v[_r>>16&255]^x[Vt>>8&255]^T[Mt&255]^i[Vr+1],vt=f[_r>>>24]^v[Vt>>16&255]^x[Mt>>8&255]^T[or&255]^i[Vr+2],Qt=f[Vt>>>24]^v[Mt>>16&255]^x[or>>8&255]^T[_r&255]^i[Vr+3],Mt=ut,or=Nt,_r=vt,Vt=Qt,Vr=Vr+4;ut=s[Mt>>>24]<<24^s[or>>16&255]<<16^s[_r>>8&255]<<8^s[Vt&255]^i[Vr],Nt=s[or>>>24]<<24^s[_r>>16&255]<<16^s[Vt>>8&255]<<8^s[Mt&255]^i[Vr+1],vt=s[_r>>>24]<<24^s[Vt>>16&255]<<16^s[Mt>>8&255]<<8^s[or&255]^i[Vr+2],Qt=s[Vt>>>24]<<24^s[Mt>>16&255]<<16^s[or>>8&255]<<8^s[_r&255]^i[Vr+3],ct[t]=bn(ut^se),ct[t+1]=bn(Qt^ie),ct[t+2]=bn(vt^de),ct[t+3]=bn(Nt^xe),se=lr,ie=qr,de=Er,xe=Xr,t=t+4}return ct.buffer}}const Ps=16;class qi{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.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}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 r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Es(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r){return this.useSoftware?new Promise((n,i)=>{this.softwareDecrypt(new Uint8Array(e),t,r);const s=this.flush();s?n(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r)}softwareDecrypt(e,t,r){const{currentIV:n,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=lt(s,e),this.remainderData=null);const u=this.getValidChunk(e);if(!u.length)return null;n&&(r=n);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new Os),f.expandKey(t);const v=i;return this.currentResult=f.decrypt(u.buffer,0,r),this.currentIV=le(u,-16).buffer,v||null}webCryptoDecrypt(e,t,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r));this.key=t,this.fastAesKey=new Ji(this.subtle,t)}return this.fastAesKey.expandKey().then(n=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Jn(this.subtle,new Uint8Array(r)).decrypt(e.buffer,n)):Promise.reject(new Error("web crypto not initialized"))).catch(n=>(E.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${n.name}: ${n.message}`),this.onWebCryptoError(e,t,r)))}onWebCryptoError(e,t,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r);const n=this.flush();if(n)return n.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%Ps;return r!==e.length&&(t=le(e,0,r),this.remainderData=le(e,r)),t}logOnce(e){this.logEnabled&&(E.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Zi={toString:function(a){let e="";const t=a.length;for(let r=0;r<t;r++)e+=`[${a.start(r).toFixed(3)}-${a.end(r).toFixed(3)}]`;return e}},Kt={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 cs extends qs{constructor(e,t,r,n,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Kt.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.loadedmetadata=!1,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.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=i,this.logPrefix=n,this.log=E.log.bind(E,`${n}:`),this.warn=E.warn.bind(E,`${n}:`),this.hls=e,this.fragmentLoader=new _n(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new qi(e.config),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){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=Kt.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const r=t.partList;if(r!=null&&r.length){const i=r[r.length-1];return wn.isBuffered(this.media,i.start+i.duration/2)}const n=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(n)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const n=this.config;this.levels&&n.autoStartLoad&&this.state===Kt.STOPPED&&this.startLoad(n.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:r,mediaBuffer:n,state:i}=this,s=r?r.currentTime:0,u=wn.bufferInfo(n||r,s,e.maxBufferHole);if(this.log(`media seeking to ${V(s)?s.toFixed(3):s}, state: ${i}`),this.state===Kt.ENDED)this.resetLoadingState();else if(t){const f=e.maxFragLookUpTolerance,v=t.start-f,x=t.start+t.duration+f;if(!u.len||x<u.start||v>u.end){const T=s>x;(s<v||T)&&(T&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!u.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=Kt.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,r){this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const n=i=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${i.part?" p: "+i.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,r,n).then(i=>{if(!i)return;const s=this.state;if(this.fragContextChanged(e)){(s===Kt.FRAG_LOADING||!this.fragCurrent&&s===Kt.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=Kt.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(c.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Kt.STOPPED||this.state===Kt.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===ri.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),u=Math.max(e.duration,s?s.len:this.config.maxBufferLength),f=this.backtrackFragment;((f?e.sn-f.sn:0)===1||this.reduceMaxBufferLength(u,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===ri.PARTIAL&&r.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)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const n={startOffset:e,endOffset:t,type:r};this.hls.trigger(c.BUFFER_FLUSHING,n)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:n}=this,{payload:i}=r,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const u=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(f=>{throw n.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:e}),f}).then(f=>{const v=self.performance.now();return n.trigger(c.FRAG_DECRYPTED,{frag:e,payload:f,stats:{tstart:u,tdecrypt:v}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Kt.STOPPED||this.state===Kt.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state=Kt.IDLE,e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.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){var r,n,i,s;const u=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===Xe.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((n=e.endPTS)!=null?n:NaN).toFixed(3)}] > buffer:${u?Zi.toString(wn.getBuffered(u)):"(detached)"})`),e.sn!=="initSegment"){var f;if(e.type!==Xe.SUBTITLE){const x=e.elementaryStreams;if(!Object.keys(x).some(T=>!!x[T])){this.state=Kt.IDLE;return}}const v=(f=this.levels)==null?void 0:f[e.level];v!=null&&v.fragmentError&&(this.log(`Resetting level fragment error count of ${v.fragmentError} on frag buffered`),v.fragmentError=0)}this.state=Kt.IDLE,u&&(!this.loadedmetadata&&e.type==Xe.MAIN&&u.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:n,partsLoaded:i}=e,s=!i||i.length===0||i.some(f=>!f),u=new as(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!s);t.flush(u)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,n){var i;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let u=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=Kt.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(x=>{if(!this.fragContextChanged(x.frag))return this.hls.trigger(c.KEY_LOADED,x),this.state===Kt.KEY_LOADING&&(this.state=Kt.IDLE),x}),this.hls.trigger(c.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(u=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const x=s.partList;if(x&&n){r>e.end&&s.fragmentHint&&(e=s.fragmentHint);const T=this.getNextPart(x,e,r);if(T>-1){const K=x[T];this.log(`Loading part sn: ${e.sn} p: ${K.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${T}-${x.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=K.start+K.duration,this.state=Kt.FRAG_LOADING;let se;return u?se=u.then(ie=>!ie||this.fragContextChanged(ie.frag)?null:this.doFragPartsLoad(e,K,t,n)).catch(ie=>this.handleFragLoadError(ie)):se=this.doFragPartsLoad(e,K,t,n).catch(ie=>this.handleFragLoadError(ie)),this.hls.trigger(c.FRAG_LOADING,{frag:e,part:K,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):se}else if(!e.url||this.loadedEndOfParts(x,r))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),V(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Kt.FRAG_LOADING;const f=this.config.progressive;let v;return f&&u?v=u.then(x=>!x||this.fragContextChanged(x==null?void 0:x.frag)?null:this.fragmentLoader.load(e,n)).catch(x=>this.handleFragLoadError(x)):v=Promise.all([this.fragmentLoader.load(e,f?n:void 0),u]).then(([x])=>(!f&&x&&n&&n(x),x)).catch(x=>this.handleFragLoadError(x)),this.hls.trigger(c.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):v}doFragPartsLoad(e,t,r,n){return new Promise((i,s)=>{var u;const f=[],v=(u=r.details)==null?void 0:u.partList,x=T=>{this.fragmentLoader.loadPart(e,T,n).then(K=>{f[T.index]=K;const se=K.part;this.hls.trigger(c.FRAG_LOADED,K);const ie=li(r,e.sn,T.index+1)||On(v,e.sn,T.index+1);if(ie)x(ie);else return i({frag:e,part:se,partsLoaded:f})}).catch(s)};x(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===b.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(c.ERROR,t)}else this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Kt.PARSING){!this.fragCurrent&&this.state!==Kt.STOPPED&&this.state!==Kt.ERROR&&(this.state=Kt.IDLE);return}const{frag:r,part:n,level:i}=t,s=self.performance.now();r.stats.parsing.end=s,n&&(n.stats.parsing.end=s),this.updateLevelTiming(r,n,i,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:n,sn:i,part:s}=e;if(!(t!=null&&t[n]))return this.warn(`Levels object was unset while buffering fragment ${i} of level ${n}. The current chunk will not be buffered.`),null;const u=t[n],f=s>-1?li(u,i,s):null,v=f?f.fragment:mi(u,i,r);return v?(r&&r!==v&&(v.stats=r.stats),{frag:v,part:f,level:u}):null}bufferFragmentData(e,t,r,n,i){var s;if(!e||this.state!==Kt.PARSING)return;const{data1:u,data2:f}=e;let v=u;if(u&&f&&(v=lt(u,f)),!((s=v)!=null&&s.length))return;const x={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:v};if(this.hls.trigger(c.BUFFER_APPENDING,x),e.dropped&&e.independent&&!r){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!wn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,n=wn.bufferInfo(t,r,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),u=Math.max(Math.min(e.start-s,n.end-s),r+s);e.start-u>s&&this.flushMainBuffer(u,e.start)}getFwdBufferInfo(e,t){const r=this.getLoadPosition();return V(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:n}}=this,i=wn.bufferInfo(e,t,n);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,r);if(s&&i.nextStart<s.end)return wn.bufferInfo(e,t,Math.max(i.nextStart,n))}return i}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const r=this.config,n=Math.max(Math.min(e-t,r.maxBufferLength),t),i=Math.max(e-t*3,r.maxMaxBufferLength/2,n);return i>=n?(r.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=Xe.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,Xe.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const r=t.fragments,n=r.length;if(!n)return null;const{config:i}=this,s=r[0].start;let u;if(t.live){const f=i.initialLiveManifestSize;if(n<f)return this.warn(`Not enough fragments to start playback (have: ${n}, need: ${f})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s)&&(u=this.getInitialLiveFragment(t,r),this.startPosition=this.nextLoadPosition=u?this.hls.liveSyncPosition||u.start:e)}else e<=s&&(u=r[0]);if(!u){const f=i.lowLatencyMode?t.partEnd:t.fragmentEnd;u=this.getFragmentAtPosition(e,f,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===ri.OK||r===ri.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,n,i){const s=e.gap,u=this.getNextFragment(this.nextLoadPosition,t);if(u===null)return u;if(e=u,s&&e&&!e.gap&&r.nextStart){const f=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n);if(f!==null&&r.len+f.len>=i)return this.log(`buffer full after gaps in "${n}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,r){let n=-1,i=!1,s=!0;for(let u=0,f=e.length;u<f;u++){const v=e[u];if(s=s&&!v.independent,n>-1&&r<v.start)break;const x=v.loaded;x?n=-1:(i||v.independent||s)&&v.fragment===t&&(n=u),i=x}return n}loadedEndOfParts(e,t){const r=e[e.length-1];return r&&t>r.start&&r.loaded}getInitialLiveFragment(e,t){const r=this.fragPrevious;let n=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),n=gn(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){const i=r.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];r.cc===s.cc&&(n=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${n.sn}`))}n||(n=fr(t,r.cc),n&&this.log(`Live playlist, switching playlist, load frag with same CC: ${n.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(n=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return n}getFragmentAtPosition(e,t,r){const{config:n}=this;let{fragPrevious:i}=this,{fragments:s,endSN:u}=r;const{fragmentHint:f}=r,{maxFragLookUpTolerance:v}=n,x=r.partList,T=!!(n.lowLatencyMode&&x!=null&&x.length&&f);T&&f&&!this.bitrateTest&&(s=s.concat(f),u=f.sn);let K;if(e<t){const se=e>t-v?0:v;K=Hr(i,s,e,se)}else K=s[s.length-1];if(K){const se=K.sn-r.startSN,ie=this.fragmentTracker.getState(K);if((ie===ri.OK||ie===ri.PARTIAL&&K.gap)&&(i=K),i&&K.sn===i.sn&&(!T||x[0].fragment.sn>K.sn)&&i&&K.level===i.level){const xe=s[se+1];K.sn<u&&this.fragmentTracker.getState(xe)!==ri.OK?K=xe:K=null}}return K}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const n=this.hls.liveSyncPosition,i=r.currentTime,s=e.fragments[0].start,u=e.edge,f=i>=s-t.maxFragLookUpTolerance&&i<=u;if(n!==null&&r.duration>n&&(i<n||!f)){const v=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&r.readyState<4||i<u-v)&&(this.loadedmetadata||(this.nextLoadPosition=n),r.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${u}, reset currentTime to : ${n.toFixed(3)}`),r.currentTime=n))}}alignPlaylists(e,t,r){const n=e.fragments.length;if(!n)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,s=!t,u=e.alignedSliding&&V(i);if(s||!u&&!i){const{fragPrevious:f}=this;ys(f,r,e);const v=e.fragments[0].start;return this.log(`Live playlist sliding: ${v.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${f?f.sn:"na"} fragments: ${n}`),v}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;if(r<t&&(r=-1),r===-1||this.lastCurrentTime===-1){const n=this.startTimeOffset!==null,i=n?this.startTimeOffset:e.startTimeOffset;i!==null&&V(i)?(r=t+i,i<0&&(r+=e.totalduration),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Start time offset ${i} found in ${n?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||t:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Kt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Kt.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const x=this.getCurrentContext(t.chunkMeta);x&&(t.frag=x.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var n;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(n=this.fragCurrent)==null?void 0:n.url}`);return}const i=t.details===b.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(r,!0);const s=t.errorAction,{action:u,retryCount:f=0,retryConfig:v}=s||{};if(s&&u===mr.RetryRequest&&v){this.resetStartWhenNotLoaded(this.levelLastLoaded);const x=Fn(v,f);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${v.maxNumRetry} in ${x}ms`),s.resolved=!0,this.retryDate=self.performance.now()+x,this.state=Kt.FRAG_LOADING_WAITING_RETRY}else if(v&&s)if(this.resetFragmentErrors(e),f<v.maxNumRetry)!i&&u!==mr.RemoveAlternatePermanently&&(s.resolved=!0);else{E.warn(`${t.details} reached or exceeded max retry (${f})`);return}else(s==null?void 0:s.action)===mr.SendAlternateToPenaltyBox?this.state=Kt.WAITING_LEVEL:this.state=Kt.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Kt.PARSING||this.state===Kt.PARSED){const t=e.frag,r=e.parent,n=this.getFwdBufferInfo(this.mediaBuffer,r),i=n&&n.len>.5;i&&this.reduceMaxBufferLength(n.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 ${r} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===Xe.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Kt.STOPPED&&(this.state=Kt.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const n=wn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===Kt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Kt.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${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,r,n){var i;const s=r.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((f,v)=>{const x=e.elementaryStreams[v];if(x){const T=x.endPTS-x.startPTS;if(T<=0)return this.warn(`Could not parse fragment ${e.sn} ${v} duration reliably (${T})`),f||!1;const K=n?0:di(s,e,x.startPTS,x.endPTS,x.startDTS,x.endDTS);return this.hls.trigger(c.LEVEL_PTS_UPDATED,{details:s,level:r,drift:K,type:v,frag:e,start:x.startPTS,end:x.endPTS}),!0}return f},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const f=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(f.message),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:f,frag:e,reason:`Found no media in msn ${e.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Kt.PARSED,this.hls.trigger(c.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),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}}class ta{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=ba(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function ba(a,e){const t=new Uint8Array(e);let r=0;for(let n=0;n<a.length;n++){const i=a[n];t.set(i,r),r+=i.length}return t}function ya(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ra(){const a=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(a);return{worker:new self.Worker(e),objectURL:e}}function na(a){const e=new self.URL(a,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Pi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ms{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,r,n){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,r){}demux(e,t){this.cachedData&&(e=lt(this.cachedData,e),this.cachedData=null);let r=ce(e,0),n=r?r.length:0,i;const s=this._audioTrack,u=this._id3Track,f=r?ee(r):void 0,v=e.length;for((this.basePTS===null||this.frameIndex===0&&V(f))&&(this.basePTS=xa(f,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Cn.audioId3,duration:Number.POSITIVE_INFINITY});n<v;){if(this.canParse(e,n)){const x=this.appendFrame(s,e,n);x?(this.frameIndex++,this.lastPTS=x.sample.pts,n+=x.length,i=n):n=v}else L(e,n)?(r=ce(e,n),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Cn.audioId3,duration:Number.POSITIVE_INFINITY}),n+=r.length,i=n):n++;if(n===v&&i!==v){const x=le(e,i);this.cachedData?this.cachedData=lt(this.cachedData,x):this.cachedData=x}}return{audioTrack:s,videoTrack:Pi(),id3Track:u,textTrack:Pi()}}demuxSampleAes(e,t,r){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:Pi(),id3Track:this._id3Track,textTrack:Pi()}}destroy(){}}const xa=(a,e,t)=>{if(V(a))return a*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function Ha(a,e,t,r){let n,i,s,u;const f=navigator.userAgent.toLowerCase(),v=r,x=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=((e[t+2]&192)>>>6)+1;const T=(e[t+2]&60)>>>2;if(T>x.length-1){const K=new Error(`invalid ADTS sampling index:${T}`);a.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!0,error:K,reason:K.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,E.log(`manifest codec:${r}, ADTS type:${n}, samplingIndex:${T}`),/firefox/i.test(f)?T>=6?(n=5,u=new Array(4),i=T-3):(n=2,u=new Array(2),i=T):f.indexOf("android")!==-1?(n=2,u=new Array(2),i=T):(n=5,u=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&T>=6?i=T-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(T>=6&&s===1||/vivaldi/i.test(f))||!r&&s===1)&&(n=2,u=new Array(2)),i=T)),u[0]=n<<3,u[0]|=(T&14)>>1,u[1]|=(T&1)<<7,u[1]|=s<<3,n===5&&(u[1]|=(i&14)>>1,u[2]=(i&1)<<7,u[2]|=8,u[3]=0),{config:u,samplerate:x[T],channelCount:s,codec:"mp4a.40."+n,manifestCodec:v}}function Bs(a,e){return a[e]===255&&(a[e+1]&246)===240}function ia(a,e){return a[e+1]&1?7:9}function Ns(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Ea(a,e){return e+5<a.length}function Ui(a,e){return e+1<a.length&&Bs(a,e)}function ws(a,e){return Ea(a,e)&&Bs(a,e)&&Ns(a,e)<=a.length-e}function Ga(a,e){if(Ui(a,e)){const t=ia(a,e);if(e+t>=a.length)return!1;const r=Ns(a,e);if(r<=t)return!1;const n=e+r;return n===a.length||Ui(a,n)}return!1}function wa(a,e,t,r,n){if(!a.samplerate){const i=Ha(e,t,r,n);if(!i)return;a.config=i.config,a.samplerate=i.samplerate,a.channelCount=i.channelCount,a.codec=i.codec,a.manifestCodec=i.manifestCodec,E.log(`parsed codec:${a.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function sa(a){return 1024*9e4/a}function Ka(a,e){const t=ia(a,e);if(e+t<=a.length){const r=Ns(a,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function aa(a,e,t,r,n){const i=sa(a.samplerate),s=r+n*i,u=Ka(e,t);let f;if(u){const{frameLength:T,headerLength:K}=u,se=K+T,ie=Math.max(0,t+se-e.length);ie?(f=new Uint8Array(se-K),f.set(e.subarray(t+K,e.length),0)):f=e.subarray(t+K,t+se);const de={unit:f,pts:s};return ie||a.samples.push(de),{sample:de,length:se,missing:ie}}const v=e.length-t;return f=new Uint8Array(v),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:v,missing:-1}}let Ss=null;const Wa=[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],Sa=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Za=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Aa=[0,1,1,4];function Fs(a,e,t,r,n){if(t+24>e.length)return;const i=zs(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,u=r+n*s,f={unit:e.subarray(t,t+i.frameLength),pts:u,dts:u};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(f),{sample:f,length:i.frameLength,missing:0}}}function zs(a,e){const t=a[e+1]>>3&3,r=a[e+1]>>1&3,n=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&n!==0&&n!==15&&i!==3){const s=a[e+2]>>1&1,u=a[e+3]>>6,f=t===3?3-r:r===3?3:4,v=Wa[f*14+n-1]*1e3,T=Sa[(t===3?0:t===2?1:2)*3+i],K=u===3?1:2,se=Za[t][r],ie=Aa[r],de=se*8*ie,xe=Math.floor(se*v/T+s)*ie;if(Ss===null){const ut=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ss=ut?parseInt(ut[1]):0}return!!Ss&&Ss<=87&&r===2&&v>=224e3&&u===0&&(a[e+3]=a[e+3]|128),{sampleRate:T,channelCount:K,frameLength:xe,samplesPerFrame:de}}}function $s(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function oa(a,e){return e+1<a.length&&$s(a,e)}function Ca(a,e){return $s(a,e)&&4<=a.length-e}function Ta(a,e){if(e+1<a.length&&$s(a,e)){const r=zs(a,e);let n=4;r!=null&&r.frameLength&&(n=r.frameLength);const i=e+n;return i===a.length||oa(a,i)}return!1}class Da extends Ms{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=ce(e,0);let r=(t==null?void 0:t.length)||0;if(Ta(e,r))return!1;for(let n=e.length;r<n;r++)if(Ga(e,r))return E.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return ws(e,t)}appendFrame(e,t,r){wa(e,this.observer,t,r,e.manifestCodec);const n=aa(e,t,r,this.basePTS,this.frameIndex);if(n&&n.missing===0)return n}}const Ra=/\/emsg[-/]ID3/i;class Va{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,r,n){const i=this.videoTrack=Pi("video",1),s=this.audioTrack=Pi("audio",1),u=this.txtTrack=Pi("text",1);if(this.id3Track=Pi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=Ve(e);if(f.video){const{id:v,timescale:x,codec:T}=f.video;i.id=v,i.timescale=u.timescale=x,i.codec=T}if(f.audio){const{id:v,timescale:x,codec:T}=f.audio;s.id=v,s.timescale=x,s.codec=T}u.id=Yt.text,i.sampleDuration=0,i.duration=s.duration=n}resetContiguity(){this.remainderData=null}static probe(e){return pr(e)}demux(e,t){this.timeOffset=t;let r=e;const n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=lt(this.remainderData,e));const u=kt(r);this.remainderData=u.remainder,n.samples=u.valid||new Uint8Array}else n.samples=r;const s=this.extractID3Track(n,t);return i.samples=pt(t,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const n=this.extractID3Track(t,this.timeOffset);return r.samples=pt(e,t),{videoTrack:t,audioTrack:Pi(),id3Track:n,textTrack:Pi()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const n=Be(e.samples,["emsg"]);n&&n.forEach(i=>{const s=Ke(i);if(Ra.test(s.schemeIdUri)){const u=V(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let f=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);const v=s.payload;r.samples.push({data:v,len:v.byteLength,dts:u,pts:u,type:Cn.emsg,duration:f})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const ds=(a,e)=>{let t=0,r=5;e+=r;const n=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=a[e];const u=Math.min(r,8),f=8-u;i[0]=4278190080>>>24+f<<f,n[0]=(s[0]&i[0])>>f,t=t?t<<u|n[0]:n[0],e+=1,r-=u}return t};class la extends Ms{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const n=ua(e,t,r,this.basePTS,this.frameIndex);if(n!==-1)return{sample:e.samples[e.samples.length-1],length:n,missing:0}}static probe(e){if(!e)return!1;const t=ce(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&ee(t)!==void 0&&ds(e,r)<16}}function ua(a,e,t,r,n){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 u=[48e3,44100,32e3][i],f=e[t+4]&63,x=[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][f*3+i]*2;if(t+x>e.length)return-1;const T=e[t+6]>>5;let K=0;T===2?K+=2:(T&1&&T!==1&&(K+=2),T&4&&(K+=2));const se=(e[t+6]<<8|e[t+7])>>12-K&1,de=[2,1,2,3,3,4,4,5][T]+se,xe=e[t+5]>>3,je=e[t+5]&7,ct=new Uint8Array([i<<6|xe<<1|je>>2,(je&3)<<6|T<<3|se<<2|f>>4,f<<4&224]),ut=1536/u*9e4,Nt=r+n*ut,vt=e.subarray(t,t+x);return a.config=ct,a.channelCount=de,a.samplerate=u,a.samples.push({unit:vt,pts:Nt}),x}class Ya{constructor(){this.VideoSample=null}createVideoSample(e,t,r,n){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:n,length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,n;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const i=r.units;n=i[i.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,n=r.length;if(n){const i=r[n-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&E.log(e.pts+"/"+e.dts+":"+e.debug)}}class Ia{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,r=e.byteLength-t,n=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");n.set(e.subarray(r,r+i)),this.word=new DataView(n.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 r=this.word>>>32-t;if(e>32&&E.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?r<<t|this.readBits(t):r}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)}skipScalingList(e){let t=8,r=8,n;for(let i=0;i<e;i++)r!==0&&(n=this.readEG(),r=(t+n+256)%256),t=r===0?t:r}readSPS(){let e=0,t=0,r=0,n=0,i,s,u;const f=this.readUByte.bind(this),v=this.readBits.bind(this),x=this.readUEG.bind(this),T=this.readBoolean.bind(this),K=this.skipBits.bind(this),se=this.skipEG.bind(this),ie=this.skipUEG.bind(this),de=this.skipScalingList.bind(this);f();const xe=f();if(v(5),K(3),f(),ie(),xe===100||xe===110||xe===122||xe===244||xe===44||xe===83||xe===86||xe===118||xe===128){const Qt=x();if(Qt===3&&K(1),ie(),ie(),K(1),T())for(s=Qt!==3?8:12,u=0;u<s;u++)T()&&(u<6?de(16):de(64))}ie();const je=x();if(je===0)x();else if(je===1)for(K(1),se(),se(),i=x(),u=0;u<i;u++)se();ie(),K(1);const ct=x(),ut=x(),Nt=v(1);Nt===0&&K(1),K(1),T()&&(e=x(),t=x(),r=x(),n=x());let vt=[1,1];if(T()&&T())switch(f()){case 1:vt=[1,1];break;case 2:vt=[12,11];break;case 3:vt=[10,11];break;case 4:vt=[16,11];break;case 5:vt=[40,33];break;case 6:vt=[24,11];break;case 7:vt=[20,11];break;case 8:vt=[32,11];break;case 9:vt=[80,33];break;case 10:vt=[18,11];break;case 11:vt=[15,11];break;case 12:vt=[64,33];break;case 13:vt=[160,99];break;case 14:vt=[4,3];break;case 15:vt=[3,2];break;case 16:vt=[2,1];break;case 255:{vt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((ct+1)*16-e*2-t*2),height:(2-Nt)*(ut+1)*16-(Nt?2:4)*(r+n),pixelRatio:vt}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xa extends Ya{parseAVCPES(e,t,r,n,i){const s=this.parseAVCNALu(e,r.data);let u=this.VideoSample,f,v=!1;r.data=null,u&&s.length&&!e.audFound&&(this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),s.forEach(x=>{var T;switch(x.type){case 1:{let de=!1;f=!0;const xe=x.data;if(v&&xe.length>4){const je=new Ia(xe).readSliceType();(je===2||je===4||je===7||je===9)&&(de=!0)}if(de){var K;(K=u)!=null&&K.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null)}u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),u.frame=!0,u.key=de;break}case 5:f=!0,(T=u)!=null&&T.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null),u||(u=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),u.key=!0,u.frame=!0;break;case 6:{f=!0,Ce(x.data,1,r.pts,t.samples);break}case 7:{var se,ie;f=!0,v=!0;const de=x.data,je=new Ia(de).readSPS();if(!e.sps||e.width!==je.width||e.height!==je.height||((se=e.pixelRatio)==null?void 0:se[0])!==je.pixelRatio[0]||((ie=e.pixelRatio)==null?void 0:ie[1])!==je.pixelRatio[1]){e.width=je.width,e.height=je.height,e.pixelRatio=je.pixelRatio,e.sps=[de],e.duration=i;const ct=de.subarray(1,4);let ut="avc1.";for(let Nt=0;Nt<3;Nt++){let vt=ct[Nt].toString(16);vt.length<2&&(vt="0"+vt),ut+=vt}e.codec=ut}break}case 8:f=!0,e.pps=[x.data];break;case 9:f=!0,e.audFound=!0,u&&this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:f=!0;break;default:f=!1,u&&(u.debug+="unknown NAL "+x.type+" ");break}u&&f&&u.units.push(x)}),n&&u&&(this.pushAccessUnit(u,e),this.VideoSample=null)}parseAVCNALu(e,t){const r=t.byteLength;let n=e.naluState||0;const i=n,s=[];let u=0,f,v,x,T=-1,K=0;for(n===-1&&(T=0,K=t[0]&31,n=0,u=1);u<r;){if(f=t[u++],!n){n=f?0:1;continue}if(n===1){n=f?0:2;continue}if(!f)n=3;else if(f===1){if(v=u-n-1,T>=0){const se={data:t.subarray(T,v),type:K};s.push(se)}else{const se=this.getLastNalUnit(e.samples);se&&(i&&u<=4-i&&se.state&&(se.data=se.data.subarray(0,se.data.byteLength-i)),v>0&&(se.data=lt(se.data,t.subarray(0,v)),se.state=0))}u<r?(x=t[u]&31,T=u,K=x,n=0):n=-1}else n=0}if(T>=0&&n>=0){const se={data:t.subarray(T,r),type:K,state:n};s.push(se)}if(s.length===0){const se=this.getLastNalUnit(e.samples);se&&(se.data=lt(se.data,t))}return e.naluState=n,s}}class ca{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new qi(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,r){const n=e[t].unit;if(n.length<=16)return;const i=n.subarray(16,n.length-n.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(u=>{const f=new Uint8Array(u);n.set(f,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)})}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let n=0;for(let i=32;i<e.length-16;i+=160,n+=16)r.set(e.subarray(i,i+16),n);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let n=0;for(let i=32;i<e.length-16;i+=160,n+=16)e.set(r.subarray(n,n+16),i);return e}decryptAvcSample(e,t,r,n,i){const s=it(i.data),u=this.getAvcEncryptedData(s);this.decryptBuffer(u.buffer).then(f=>{i.data=this.getAvcDecryptedUnit(s,f),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,n)})}decryptAvcSamples(e,t,r,n){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){n();return}const i=e[t].units;for(;!(r>=i.length);r++){const s=i[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,r,n,s),!this.decrypter.isSync()))return}}}}const ui=188;class Vi{constructor(e,t,r){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._duration=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=r,this.videoParser=new Xa}static probe(e){const t=Vi.syncOffset(e);return t>0&&E.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(ui*5,t-ui)+1,n=0;for(;n<r;){let i=!1,s=-1,u=0;for(let f=n;f<t;f+=ui)if(e[f]===71&&(t-f===ui||e[f+ui]===71)){if(u++,s===-1&&(s=f,s!==0&&(r=Math.min(s+ui*99,e.length-ui)+1)),i||(i=Us(e,f)===0),i&&u>1&&(s===0&&u>2||f+ui>r))return s}else{if(u)return-1;break}n++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Yt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,n){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Vi.createTrack("video"),this._audioTrack=Vi.createTrack("audio",n),this._id3Track=Vi.createTrack("id3"),this._txtTrack=Vi.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r,this._duration=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r=!1,n=!1){r||(this.sampleAes=null);let i;const s=this._videoTrack,u=this._audioTrack,f=this._id3Track,v=this._txtTrack;let x=s.pid,T=s.pesData,K=u.pid,se=f.pid,ie=u.pesData,de=f.pesData,xe=null,je=this.pmtParsed,ct=this._pmtId,ut=e.length;if(this.remainderData&&(e=lt(this.remainderData,e),ut=e.length,this.remainderData=null),ut<ui&&!n)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:v};const Nt=Math.max(0,Vi.syncOffset(e));ut-=(ut-Nt)%ui,ut<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,ut,e.buffer.byteLength-ut));let vt=0;for(let Mt=Nt;Mt<ut;Mt+=ui)if(e[Mt]===71){const or=!!(e[Mt+1]&64),_r=Us(e,Mt),Vt=(e[Mt+3]&48)>>4;let lr;if(Vt>1){if(lr=Mt+5+e[Mt+4],lr===Mt+ui)continue}else lr=Mt+4;switch(_r){case x:or&&(T&&(i=es(T))&&this.videoParser.parseAVCPES(s,v,i,!1,this._duration),T={data:[],size:0}),T&&(T.data.push(e.subarray(lr,Mt+ui)),T.size+=Mt+ui-lr);break;case K:if(or){if(ie&&(i=es(ie)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}ie={data:[],size:0}}ie&&(ie.data.push(e.subarray(lr,Mt+ui)),ie.size+=Mt+ui-lr);break;case se:or&&(de&&(i=es(de))&&this.parseID3PES(f,i),de={data:[],size:0}),de&&(de.data.push(e.subarray(lr,Mt+ui)),de.size+=Mt+ui-lr);break;case 0:or&&(lr+=e[lr]+1),ct=this._pmtId=Qa(e,lr);break;case ct:{or&&(lr+=e[lr]+1);const qr=La(e,lr,this.typeSupported,r,this.observer);x=qr.videoPid,x>0&&(s.pid=x,s.segmentCodec=qr.segmentVideoCodec),K=qr.audioPid,K>0&&(u.pid=K,u.segmentCodec=qr.segmentAudioCodec),se=qr.id3Pid,se>0&&(f.pid=se),xe!==null&&!je&&(E.warn(`MPEG-TS PMT found at ${Mt} after unknown PID '${xe}'. Backtracking to sync byte @${Nt} to parse all TS packets.`),xe=null,Mt=Nt-188),je=this.pmtParsed=!0;break}case 17:case 8191:break;default:xe=_r;break}}else vt++;vt>0&&js(this.observer,new Error(`Found ${vt} TS packet/s that do not start with 0x47`)),s.pesData=T,u.pesData=ie,f.pesData=de;const Qt={audioTrack:u,videoTrack:s,id3Track:f,textTrack:v};return n&&this.extractRemainingSamples(Qt),Qt}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:r,id3Track:n,textTrack:i}=e,s=r.pesData,u=t.pesData,f=n.pesData;let v;if(s&&(v=es(s))?(this.videoParser.parseAVCPES(r,i,v,!0,this._duration),r.pesData=null):r.pesData=s,u&&(v=es(u))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,v);break;case"mp3":this.parseMPEGPES(t,v);break;case"ac3":this.parseAC3PES(t,v);break}t.pesData=null}else u!=null&&u.size&&E.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(v=es(f))?(this.parseID3PES(n,v),n.pesData=null):n.pesData=f}demuxSampleAes(e,t,r){const n=this.demux(e,r,!0,!this.config.progressive),i=this.sampleAes=new ca(this.observer,this.config,t);return this.decrypt(n,i)}decrypt(e,t){return new Promise(r=>{const{audioTrack:n,videoTrack:i}=e;n.samples&&n.segmentCodec==="aac"?t.decryptAacSamples(n.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{r(e)}):r(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{r(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let r=0;const n=this.aacOverFlow;let i=t.data;if(n){this.aacOverFlow=null;const T=n.missing,K=n.sample.unit.byteLength;if(T===-1)i=lt(n.sample.unit,i);else{const se=K-T;n.sample.unit.set(i.subarray(0,T),se),e.samples.push(n.sample),r=n.missing}}let s,u;for(s=r,u=i.length;s<u-1&&!Ui(i,s);s++);if(s!==r){let T;const K=s<u-1;if(K?T=`AAC PES did not start with ADTS header,offset:${s}`:T="No ADTS header found in AAC PES",js(this.observer,new Error(T),K),!K)return}wa(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(n){const T=sa(e.samplerate);f=n.sample.pts+T}else{E.warn("[tsdemuxer]: AAC PES unknown PTS");return}let v=0,x;for(;s<u;)if(x=aa(e,i,s,f,v),s+=x.length,x.missing){this.aacOverFlow=x;break}else for(v++;s<u-1&&!Ui(i,s);s++);}parseMPEGPES(e,t){const r=t.data,n=r.length;let i=0,s=0;const u=t.pts;if(u===void 0){E.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<n;)if(oa(r,s)){const f=Fs(e,r,s,u,i);if(f)s+=f.length,i++;else break}else s++}parseAC3PES(e,t){{const r=t.data,n=t.pts;if(n===void 0){E.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=r.length;let s=0,u=0,f;for(;u<i&&(f=ua(e,r,u,n,s++))>0;)u+=f}}parseID3PES(e,t){if(t.pts===void 0){E.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=o({},t,{type:this._videoTrack?Cn.emsg:Cn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function Us(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Qa(a,e){return(a[e+10]&31)<<8|a[e+11]}function La(a,e,t,r,n){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(a[e+1]&15)<<8|a[e+2],u=e+3+s-4,f=(a[e+10]&15)<<8|a[e+11];for(e+=12+f;e<u;){const v=Us(a,e),x=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!r){Ne("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=v);break;case 21:i.id3Pid===-1&&(i.id3Pid=v);break;case 219:if(!r){Ne("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=v,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?E.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=v,i.segmentAudioCodec="mp3");break;case 193:if(!r){Ne("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=v,i.segmentAudioCodec="ac3"):E.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&x>0){let T=e+5,K=x;for(;K>2;){switch(a[T]){case 106:t.ac3!==!0?E.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=v,i.segmentAudioCodec="ac3");break}const ie=a[T+1]+2;T+=ie,K-=ie}}break;case 194:case 135:return js(n,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return js(n,new Error("Unsupported HEVC in M2TS found")),i}e+=x+5}return i}function js(a,e,t){E.warn(`parsing error: ${e.message}`),a.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Ne(a){E.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function es(a){let e=0,t,r,n,i,s;const u=a.data;if(!a||a.size===0)return null;for(;u[0].length<19&&u.length>1;)u[0]=lt(u[0],u[1]),u.splice(1,1);if(t=u[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(r=(t[4]<<8)+t[5],r&&r>a.size-6)return null;const v=t[7];v&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,v&64?(s=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-s>60*9e4&&(E.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),n=t[8];let x=n+9;if(a.size<=x)return null;a.size-=x;const T=new Uint8Array(a.size);for(let K=0,se=u.length;K<se;K++){t=u[K];let ie=t.byteLength;if(x)if(x>ie){x-=ie;continue}else t=t.subarray(x),ie-=x,x=0;T.set(t,e),e+=ie}return r&&(r-=n+3),{data:T,pts:i,dts:s,len:r}}return null}class da extends Ms{resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=ce(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&ee(t)!==void 0&&ds(e,r)<=16)return!1;for(let n=e.length;r<n;r++)if(Ta(e,r))return E.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ca(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Fs(e,t,r,this.basePTS,this.frameIndex)}}class Hs{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 ji=Math.pow(2,32)-1;class yt{static init(){yt.types={avc1:[],avcC:[],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 yt.types)yt.types.hasOwnProperty(e)&&(yt.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]),r=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]);yt.HDLR_TYPES={video:t,audio:r};const n=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]);yt.STTS=yt.STSC=yt.STCO=i,yt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),yt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),yt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),yt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);yt.FTYP=yt.box(yt.types.ftyp,s,f,s,u),yt.DINF=yt.box(yt.types.dinf,yt.box(yt.types.dref,n))}static box(e,...t){let r=8,n=t.length;const i=n;for(;n--;)r+=t[n].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(e,4),n=0,r=8;n<i;n++)s.set(t[n],r),r+=t[n].byteLength;return s}static hdlr(e){return yt.box(yt.types.hdlr,yt.HDLR_TYPES[e])}static mdat(e){return yt.box(yt.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(ji+1)),n=Math.floor(t%(ji+1));return yt.box(yt.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,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))}static mdia(e){return yt.box(yt.types.mdia,yt.mdhd(e.timescale,e.duration),yt.hdlr(e.type),yt.minf(e))}static mfhd(e){return yt.box(yt.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"?yt.box(yt.types.minf,yt.box(yt.types.smhd,yt.SMHD),yt.DINF,yt.stbl(e)):yt.box(yt.types.minf,yt.box(yt.types.vmhd,yt.VMHD),yt.DINF,yt.stbl(e))}static moof(e,t,r){return yt.box(yt.types.moof,yt.mfhd(e),yt.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=yt.trak(e[t]);return yt.box.apply(null,[yt.types.moov,yt.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(yt.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=yt.trex(e[t]);return yt.box.apply(null,[yt.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(ji+1)),n=Math.floor(t%(ji+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,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&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 yt.box(yt.types.mvhd,i)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let n,i;for(n=0;n<t.length;n++)i=t[n].flags,r[n+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return yt.box(yt.types.sdtp,r)}static stbl(e){return yt.box(yt.types.stbl,yt.stsd(e),yt.box(yt.types.stts,yt.STTS),yt.box(yt.types.stsc,yt.STSC),yt.box(yt.types.stsz,yt.STSZ),yt.box(yt.types.stco,yt.STCO))}static avc1(e){let t=[],r=[],n,i,s;for(n=0;n<e.sps.length;n++)i=e.sps[n],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(n=0;n<e.pps.length;n++)i=e.pps[n],s=i.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(i));const u=yt.box(yt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),f=e.width,v=e.height,x=e.pixelRatio[0],T=e.pixelRatio[1];return yt.box(yt.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,f>>8&255,f&255,v>>8&255,v&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,yt.box(yt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),yt.box(yt.types.pasp,new Uint8Array([x>>24,x>>16&255,x>>8&255,x&255,T>>24,T>>16&255,T>>8&255,T&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return yt.box(yt.types.mp4a,yt.audioStsd(e),yt.box(yt.types.esds,yt.esds(e)))}static mp3(e){return yt.box(yt.types[".mp3"],yt.audioStsd(e))}static ac3(e){return yt.box(yt.types["ac-3"],yt.audioStsd(e),yt.box(yt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?yt.box(yt.types.stsd,yt.STSD,yt.mp3(e)):e.segmentCodec==="ac3"?yt.box(yt.types.stsd,yt.STSD,yt.ac3(e)):yt.box(yt.types.stsd,yt.STSD,yt.mp4a(e)):yt.box(yt.types.stsd,yt.STSD,yt.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,n=e.width,i=e.height,s=Math.floor(r/(ji+1)),u=Math.floor(r%(ji+1));return yt.box(yt.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,u>>24,u>>16&255,u>>8&255,u&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,n>>8&255,n&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const r=yt.sdtp(e),n=e.id,i=Math.floor(t/(ji+1)),s=Math.floor(t%(ji+1));return yt.box(yt.types.traf,yt.box(yt.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),yt.box(yt.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])),yt.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,yt.box(yt.types.trak,yt.tkhd(e),yt.mdia(e))}static trex(e){const t=e.id;return yt.box(yt.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 r=e.samples||[],n=r.length,i=12+16*n,s=new Uint8Array(i);let u,f,v,x,T,K;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),u=0;u<n;u++)f=r[u],v=f.duration,x=f.size,T=f.flags,K=f.cts,s.set([v>>>24&255,v>>>16&255,v>>>8&255,v&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255,T.isLeading<<2|T.dependsOn,T.isDependedOn<<6|T.hasRedundancy<<4|T.paddingValue<<1|T.isNonSync,T.degradPrio&61440,T.degradPrio&15,K>>>24&255,K>>>16&255,K>>>8&255,K&255],12+16*u);return yt.box(yt.types.trun,s)}static initSegment(e){yt.types||yt.init();const t=yt.moov(e);return lt(yt.FTYP,t)}}yt.types=void 0,yt.HDLR_TYPES=void 0,yt.STTS=void 0,yt.STSC=void 0,yt.STCO=void 0,yt.STSZ=void 0,yt.VMHD=void 0,yt.SMHD=void 0,yt.STSD=void 0,yt.FTYP=void 0,yt.DINF=void 0;const ha=9e4;function Gs(a,e,t=1,r=!1){const n=a*e*t;return r?Math.round(n):n}function Ja(a,e,t=1,r=!1){return Gs(a,e,1/t,r)}function hs(a,e=!1){return Gs(a,1e3,1/ha,e)}function ka(a,e=1){return Gs(a,ha,1/e)}const Ks=10*1e3,Oa=1024,fa=1152,Pa=1536;let fs=null,ma=null;class As{constructor(e,t,r,n=""){if(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=r,this.ISGenerated=!1,fs===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);fs=s?parseInt(s[1]):0}if(ma===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ma=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){E.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){E.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){E.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,n=e.reduce((i,s)=>{let u=s.pts,f=u-i;return f<-4294967296&&(t=!0,u=Ai(u,r),f=u-i),f>0?i:u},r);return t&&E.debug("PTS rollover detected"),n}remux(e,t,r,n,i,s,u,f){let v,x,T,K,se,ie,de=i,xe=i;const je=e.pid>-1,ct=t.pid>-1,ut=t.samples.length,Nt=e.samples.length>0,vt=u&&ut>0||ut>1;if((!je||Nt)&&(!ct||vt)||this.ISGenerated||u){if(this.ISGenerated){var Mt,or,_r,Vt;const Xr=this.videoTrackConfig;Xr&&(t.width!==Xr.width||t.height!==Xr.height||((Mt=t.pixelRatio)==null?void 0:Mt[0])!==((or=Xr.pixelRatio)==null?void 0:or[0])||((_r=t.pixelRatio)==null?void 0:_r[1])!==((Vt=Xr.pixelRatio)==null?void 0:Vt[1]))&&this.resetInitSegment()}else T=this.generateIS(e,t,i,s);const lr=this.isVideoContiguous;let qr=-1,Er;if(vt&&(qr=qa(t.samples),!lr&&this.config.forceKeyFrameOnDiscontinuity))if(ie=!0,qr>0){E.warn(`[mp4-remuxer]: Dropped ${qr} out of ${ut} video samples due to a missing keyframe`);const Xr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(qr),t.dropped+=qr,xe+=(t.samples[0].pts-Xr)/t.inputTimeScale,Er=xe}else qr===-1&&(E.warn(`[mp4-remuxer]: No keyframe found out of ${ut} video samples`),ie=!1);if(this.ISGenerated){if(Nt&&vt){const Xr=this.getVideoStartPts(t.samples),Ur=(Ai(e.samples[0].pts,Xr)-Xr)/t.inputTimeScale;de+=Math.max(0,Ur),xe+=Math.max(0,-Ur)}if(Nt){if(e.samplerate||(E.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),T=this.generateIS(e,t,i,s)),x=this.remuxAudio(e,de,this.isAudioContiguous,s,ct||vt||f===Xe.AUDIO?xe:void 0),vt){const Xr=x?x.endPTS-x.startPTS:0;t.inputTimeScale||(E.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),T=this.generateIS(e,t,i,s)),v=this.remuxVideo(t,xe,lr,Xr)}}else vt&&(v=this.remuxVideo(t,xe,lr,0));v&&(v.firstKeyFrame=qr,v.independent=qr!==-1,v.firstKeyFramePTS=Er)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(se=Ma(r,i,this._initPTS,this._initDTS)),n.samples.length&&(K=eo(n,i,this._initPTS))),{audio:x,video:v,initSegment:T,independent:ie,text:K,id3:se}}generateIS(e,t,r,n){const i=e.samples,s=t.samples,u=this.typeSupported,f={},v=this._initPTS;let x=!v||n,T="audio/mp4",K,se,ie;if(x&&(K=se=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(T="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:T,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):yt.initSegment([e]),metadata:{channelCount:e.channelCount}},x&&(ie=e.inputTimeScale,!v||ie!==v.timescale?K=se=i[0].pts-Math.round(ie*r):x=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:yt.initSegment([t]),metadata:{width:t.width,height:t.height}},x)if(ie=t.inputTimeScale,!v||ie!==v.timescale){const de=this.getVideoStartPts(s),xe=Math.round(ie*r);se=Math.min(se,Ai(s[0].dts,de)-xe),K=Math.min(K,de-xe)}else x=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,x?(this._initPTS={baseTime:K,timescale:ie},this._initDTS={baseTime:se,timescale:ie}):K=ie=void 0,{tracks:f,initPTS:K,timescale:ie}}remuxVideo(e,t,r,n){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,v=this._initPTS;let x=this.nextAvcDts,T=8,K=this.videoSampleDuration,se,ie,de=Number.POSITIVE_INFINITY,xe=Number.NEGATIVE_INFINITY,je=!1;if(!r||x===null){const Ir=t*i,wr=s[0].pts-Ai(s[0].dts,s[0].pts);fs&&x!==null&&Math.abs(Ir-wr-x)<15e3?r=!0:x=Ir-wr}const ct=v.baseTime*i/v.timescale;for(let Ir=0;Ir<f;Ir++){const wr=s[Ir];wr.pts=Ai(wr.pts-ct,x),wr.dts=Ai(wr.dts-ct,x),wr.dts<s[Ir>0?Ir-1:Ir].dts&&(je=!0)}je&&s.sort(function(Ir,wr){const An=Ir.dts-wr.dts,on=Ir.pts-wr.pts;return An||on}),se=s[0].dts,ie=s[s.length-1].dts;const ut=ie-se,Nt=ut?Math.round(ut/(f-1)):K||e.inputTimeScale/30;if(r){const Ir=se-x,wr=Ir>Nt,An=Ir<-1;if((wr||An)&&(wr?E.warn(`AVC: ${hs(Ir,!0)} ms (${Ir}dts) hole between fragments detected at ${t.toFixed(3)}`):E.warn(`AVC: ${hs(-Ir,!0)} ms (${Ir}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!An||x>=s[0].pts||fs)){se=x;const on=s[0].pts-Ir;if(wr)s[0].dts=se,s[0].pts=on;else for(let Ln=0;Ln<s.length&&!(s[Ln].dts>on);Ln++)s[Ln].dts-=Ir,s[Ln].pts-=Ir;E.log(`Video: Initial PTS/DTS adjusted: ${hs(on,!0)}/${hs(se,!0)}, delta: ${hs(Ir,!0)} ms`)}}se=Math.max(0,se);let vt=0,Qt=0,Mt=se;for(let Ir=0;Ir<f;Ir++){const wr=s[Ir],An=wr.units,on=An.length;let Ln=0;for(let ci=0;ci<on;ci++)Ln+=An[ci].data.length;Qt+=Ln,vt+=on,wr.length=Ln,wr.dts<Mt?(wr.dts=Mt,Mt+=Nt/4|0||1):Mt=wr.dts,de=Math.min(wr.pts,de),xe=Math.max(wr.pts,xe)}ie=s[f-1].dts;const or=Qt+4*vt+8;let _r;try{_r=new Uint8Array(or)}catch(Ir){this.observer.emit(c.ERROR,c.ERROR,{type:w.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:Ir,bytes:or,reason:`fail allocating video mdat ${or}`});return}const Vt=new DataView(_r.buffer);Vt.setUint32(0,or),_r.set(yt.types.mdat,4);let lr=!1,qr=Number.POSITIVE_INFINITY,Er=Number.POSITIVE_INFINITY,Xr=Number.NEGATIVE_INFINITY,Vr=Number.NEGATIVE_INFINITY;for(let Ir=0;Ir<f;Ir++){const wr=s[Ir],An=wr.units;let on=0;for(let bi=0,Ei=An.length;bi<Ei;bi++){const Fi=An[bi],_a=Fi.data,yo=Fi.data.byteLength;Vt.setUint32(T,yo),T+=4,_r.set(_a,T),T+=yo,on+=4+yo}let Ln;if(Ir<f-1)K=s[Ir+1].dts-wr.dts,Ln=s[Ir+1].pts-wr.pts;else{const bi=this.config,Ei=Ir>0?wr.dts-s[Ir-1].dts:Nt;if(Ln=Ir>0?wr.pts-s[Ir-1].pts:Nt,bi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Fi=Math.floor(bi.maxBufferHole*i),_a=(n?de+n*i:this.nextAudioPts)-wr.pts;_a>Fi?(K=_a-Ei,K<0?K=Ei:lr=!0,E.log(`[mp4-remuxer]: It is approximately ${_a/90} ms to the next segment; using duration ${K/90} ms for the last video frame.`)):K=Ei}else K=Ei}const ci=Math.round(wr.pts-wr.dts);qr=Math.min(qr,K),Xr=Math.max(Xr,K),Er=Math.min(Er,Ln),Vr=Math.max(Vr,Ln),u.push(new j(wr.key,K,on,ci))}if(u.length){if(fs){if(fs<70){const Ir=u[0].flags;Ir.dependsOn=2,Ir.isNonSync=0}}else if(ma&&Vr-Er<Xr-qr&&Nt/Xr<.025&&u[0].cts===0){E.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Ir=se;for(let wr=0,An=u.length;wr<An;wr++){const on=Ir+u[wr].duration,Ln=Ir+u[wr].cts;if(wr<An-1){const ci=on+u[wr+1].cts;u[wr].duration=ci-Ln}else u[wr].duration=wr?u[wr-1].duration:Nt;u[wr].cts=0,Ir=on}}}K=lr||!K?Nt:K,this.nextAvcDts=x=ie+K,this.videoSampleDuration=K,this.isVideoContiguous=!0;const Bn={data1:yt.moof(e.sequenceNumber++,se,o({},e,{samples:u})),data2:_r,startPTS:de/i,endPTS:(xe+K)/i,startDTS:se/i,endDTS:x/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Bn}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return fa;case"ac3":return Pa;default:return Oa}}remuxAudio(e,t,r,n,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,v=this.getSamplesPerFrame(e),x=v*f,T=this._initPTS,K=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,se=[],ie=i!==void 0;let de=e.samples,xe=K?0:8,je=this.nextAudioPts||-1;const ct=t*s,ut=T.baseTime*s/T.timescale;if(this.isAudioContiguous=r=r||de.length&&je>0&&(n&&Math.abs(ct-je)<9e3||Math.abs(Ai(de[0].pts-ut,ct)-je)<20*x),de.forEach(function(Ur){Ur.pts=Ai(Ur.pts-ut,ct)}),!r||je<0){if(de=de.filter(Ur=>Ur.pts>=0),!de.length)return;i===0?je=0:n&&!ie?je=Math.max(0,ct):je=de[0].pts}if(e.segmentCodec==="aac"){const Ur=this.config.maxAudioFramesDrift;for(let bn=0,Bn=je;bn<de.length;bn++){const Ir=de[bn],wr=Ir.pts,An=wr-Bn,on=Math.abs(1e3*An/s);if(An<=-Ur*x&&ie)bn===0&&(E.warn(`Audio frame @ ${(wr/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*An/s)} ms.`),this.nextAudioPts=je=Bn=wr);else if(An>=Ur*x&&on<Ks&&ie){let Ln=Math.round(An/x);Bn=wr-Ln*x,Bn<0&&(Ln--,Bn+=x),bn===0&&(this.nextAudioPts=je=Bn),E.warn(`[mp4-remuxer]: Injecting ${Ln} audio frame @ ${(Bn/s).toFixed(3)}s due to ${Math.round(1e3*An/s)} ms gap.`);for(let ci=0;ci<Ln;ci++){const bi=Math.max(Bn,0);let Ei=Hs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Ei||(E.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Ei=Ir.unit.subarray()),de.splice(bn,0,{unit:Ei,pts:bi}),Bn+=x,bn++}}Ir.pts=Bn,Bn+=x}}let Nt=null,vt=null,Qt,Mt=0,or=de.length;for(;or--;)Mt+=de[or].unit.byteLength;for(let Ur=0,bn=de.length;Ur<bn;Ur++){const Bn=de[Ur],Ir=Bn.unit;let wr=Bn.pts;if(vt!==null){const on=se[Ur-1];on.duration=Math.round((wr-vt)/f)}else if(r&&e.segmentCodec==="aac"&&(wr=je),Nt=wr,Mt>0){Mt+=xe;try{Qt=new Uint8Array(Mt)}catch(on){this.observer.emit(c.ERROR,c.ERROR,{type:w.MUX_ERROR,details:b.REMUX_ALLOC_ERROR,fatal:!1,error:on,bytes:Mt,reason:`fail allocating audio mdat ${Mt}`});return}K||(new DataView(Qt.buffer).setUint32(0,Mt),Qt.set(yt.types.mdat,4))}else return;Qt.set(Ir,xe);const An=Ir.byteLength;xe+=An,se.push(new j(!0,v,An,0)),vt=wr}const _r=se.length;if(!_r)return;const Vt=se[se.length-1];this.nextAudioPts=je=vt+f*Vt.duration;const lr=K?new Uint8Array(0):yt.moof(e.sequenceNumber++,Nt/f,o({},e,{samples:se}));e.samples=[];const qr=Nt/s,Er=je/s,Vr={data1:lr,data2:Qt,startPTS:qr,endPTS:Er,startDTS:qr,endDTS:Er,type:"audio",hasAudio:!0,hasVideo:!1,nb:_r};return this.isAudioContiguous=!0,Vr}remuxEmptyAudio(e,t,r,n){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,u=i/s,f=this.nextAudioPts,v=this._initDTS,x=v.baseTime*9e4/v.timescale,T=(f!==null?f:n.startDTS*i)+x,K=n.endDTS*i+x,se=u*Oa,ie=Math.ceil((K-T)/se),de=Hs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(E.warn("[mp4-remuxer]: remux empty Audio"),!de){E.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const xe=[];for(let je=0;je<ie;je++){const ct=T+je*se;xe.push({unit:de,pts:ct,dts:ct})}return e.samples=xe,this.remuxAudio(e,t,r,!1)}}function Ai(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 qa(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Ma(a,e,t,r){const n=a.samples.length;if(!n)return;const i=a.inputTimeScale;for(let u=0;u<n;u++){const f=a.samples[u];f.pts=Ai(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=Ai(f.dts-r.baseTime*i/r.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function eo(a,e,t){const r=a.samples.length;if(!r)return;const n=a.inputTimeScale;for(let s=0;s<r;s++){const u=a.samples[s];u.pts=Ai(u.pts-t.baseTime*n/t.timescale,e*n)/n}a.samples.sort((s,u)=>s.pts-u.pts);const i=a.samples;return a.samples=[],{samples:i}}class j{constructor(e,t,r,n){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=r,this.cts=n,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class l{constructor(){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}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,r,n){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(Y(e,n)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const n=this.initData=Ve(e);n.audio&&(t=h(n.audio,G.AUDIO)),n.video&&(r=h(n.video,G.VIDEO));const i={};n.audio&&n.video?i.audiovideo={container:"video/mp4",codec:t+","+r,initSegment:e,id:"main"}:n.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:n.video?i.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:E.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,r,n,i,s){var u,f;let{initPTS:v,lastEndTime:x}=this;const T={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};V(x)||(x=this.lastEndTime=i||0);const K=t.samples;if(!(K!=null&&K.length))return T;const se={initPTS:void 0,timescale:1};let ie=this.initData;if((u=ie)!=null&&u.length||(this.generateInitSegment(K),ie=this.initData),!((f=ie)!=null&&f.length))return E.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),T;this.emitInitSegment&&(se.tracks=this.initTracks,this.emitInitSegment=!1);const de=Wt(K,ie),xe=Oe(ie,K),je=xe===null?i:xe;(d(v,je,i,de)||se.timescale!==v.timescale&&s)&&(se.initPTS=je-i,v&&v.timescale===1&&E.warn(`Adjusting initPTS by ${se.initPTS-v.baseTime}`),this.initPTS=v={baseTime:se.initPTS,timescale:1});const ct=e?je-v.baseTime/v.timescale:x,ut=ct+de;bt(ie,K,v.baseTime/v.timescale),de>0?this.lastEndTime=ut:(E.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Nt=!!ie.audio,vt=!!ie.video;let Qt="";Nt&&(Qt+="audio"),vt&&(Qt+="video");const Mt={data1:K,startPTS:ct,startDTS:ct,endPTS:ut,endDTS:ut,type:Qt,hasAudio:Nt,hasVideo:vt,nb:1,dropped:0};return T.audio=Mt.type==="audio"?Mt:void 0,T.video=Mt.type!=="audio"?Mt:void 0,T.initSegment=se,T.id3=Ma(r,i,v,v),n.samples.length&&(T.text=eo(n,i,v)),T}}function d(a,e,t,r){if(a===null)return!0;const n=Math.max(r,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>n}function h(a,e){const t=a==null?void 0:a.codec;if(t&&t.length>4)return t;if(e===G.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return rr(t,!1);const r="mp4a.40.5";return E.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return E.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let p;try{p=self.performance.now.bind(self.performance)}catch(a){E.debug("Unable to use Performance API on this environment"),p=Ee==null?void 0:Ee.Date.now}const D=[{demux:Va,remux:l},{demux:Vi,remux:As},{demux:Da,remux:As},{demux:da,remux:As}];D.splice(2,0,{demux:la,remux:As});class U{constructor(e,t,r,n,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=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=r,this.vendor=n,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,n){const i=r.transmuxing;i.executeStart=p();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;n&&(this.currentTransmuxState=n);const{contiguous:v,discontinuity:x,trackSwitch:T,accurateTimeOffset:K,timeOffset:se,initSegmentChange:ie}=n||u,{audioCodec:de,videoCodec:xe,defaultInitPts:je,duration:ct,initSegmentData:ut}=f,Nt=be(s,t);if(Nt&&Nt.method==="AES-128"){const or=this.getDecrypter();if(or.isSync()){let _r=or.softwareDecrypt(s,Nt.key.buffer,Nt.iv.buffer);if(r.part>-1&&(_r=or.flush()),!_r)return i.executeEnd=p(),Ie(r);s=new Uint8Array(_r)}else return this.decryptionPromise=or.webCryptoDecrypt(s,Nt.key.buffer,Nt.iv.buffer).then(_r=>{const Vt=this.push(_r,null,r);return this.decryptionPromise=null,Vt}),this.decryptionPromise}const vt=this.needsProbing(x,T);if(vt){const or=this.configureTransmuxer(s);if(or)return E.warn(`[transmuxer] ${or.message}`),this.observer.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,fatal:!1,error:or,reason:or.message}),i.executeEnd=p(),Ie(r)}(x||T||ie||vt)&&this.resetInitSegment(ut,de,xe,ct,t),(x||ie||vt)&&this.resetInitialTimestamp(je),v||this.resetContiguity();const Qt=this.transmux(s,Nt,se,K,r),Mt=this.currentTransmuxState;return Mt.contiguous=!0,Mt.discontinuity=!1,Mt.trackSwitch=!1,i.executeEnd=p(),Qt}flush(e){const t=e.transmuxing;t.executeStart=p();const{decrypter:r,currentTransmuxState:n,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:u}=n;if(r){const T=r.flush();T&&s.push(this.push(T,null,e))}const{demuxer:f,remuxer:v}=this;if(!f||!v)return t.executeEnd=p(),[Ie(e)];const x=f.flush(u);return ze(x)?x.then(T=>(this.flushRemux(s,T,e),s)):(this.flushRemux(s,x,e),s)}flushRemux(e,t,r){const{audioTrack:n,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:v}=this.currentTransmuxState;E.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const x=this.remuxer.remux(n,i,s,u,v,f,!0,this.id);e.push({remuxResult:x,chunkMeta:r}),r.transmuxing.executeEnd=p()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,n,i){const{demuxer:s,remuxer:u}=this;!s||!u||(s.resetInitSegment(e,t,r,n),u.resetInitSegment(e,t,r,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,r,n,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,r,n,i):s=this.transmuxUnencrypted(e,r,n,i),s}transmuxUnencrypted(e,t,r,n){const{audioTrack:i,videoTrack:s,id3Track:u,textTrack:f}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,u,f,t,r,!1,this.id),chunkMeta:n}}transmuxSampleAes(e,t,r,n,i){return this.demuxer.demuxSampleAes(e,t,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,n,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:n,vendor:i}=this;let s;for(let K=0,se=D.length;K<se;K++){var u;if((u=D[K].demux)!=null&&u.probe(e)){s=D[K];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const f=this.demuxer,v=this.remuxer,x=s.remux,T=s.demux;(!v||!(v instanceof x))&&(this.remuxer=new x(r,t,n,i)),(!f||!(f instanceof T))&&(this.demuxer=new T(r,t,n),this.probe=T.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new qi(this.config)),e}}function be(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 Ie=a=>({remuxResult:{},chunkMeta:a});function ze(a){return"then"in a&&a.then instanceof Function}class nt{constructor(e,t,r,n,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=r,this.duration=n,this.defaultInitPts=i||null}}class dt{constructor(e,t,r,n,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=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=s}}var Dt={exports:{}};(function(a){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function n(f,v,x){this.fn=f,this.context=v,this.once=x||!1}function i(f,v,x,T,K){if(typeof x!="function")throw new TypeError("The listener must be a function");var se=new n(x,T||f,K),ie=t?t+v:v;return f._events[ie]?f._events[ie].fn?f._events[ie]=[f._events[ie],se]:f._events[ie].push(se):(f._events[ie]=se,f._eventsCount++),f}function s(f,v){--f._eventsCount===0?f._events=new r:delete f._events[v]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var v=[],x,T;if(this._eventsCount===0)return v;for(T in x=this._events)e.call(x,T)&&v.push(t?T.slice(1):T);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(x)):v},u.prototype.listeners=function(v){var x=t?t+v:v,T=this._events[x];if(!T)return[];if(T.fn)return[T.fn];for(var K=0,se=T.length,ie=new Array(se);K<se;K++)ie[K]=T[K].fn;return ie},u.prototype.listenerCount=function(v){var x=t?t+v:v,T=this._events[x];return T?T.fn?1:T.length:0},u.prototype.emit=function(v,x,T,K,se,ie){var de=t?t+v:v;if(!this._events[de])return!1;var xe=this._events[de],je=arguments.length,ct,ut;if(xe.fn){switch(xe.once&&this.removeListener(v,xe.fn,void 0,!0),je){case 1:return xe.fn.call(xe.context),!0;case 2:return xe.fn.call(xe.context,x),!0;case 3:return xe.fn.call(xe.context,x,T),!0;case 4:return xe.fn.call(xe.context,x,T,K),!0;case 5:return xe.fn.call(xe.context,x,T,K,se),!0;case 6:return xe.fn.call(xe.context,x,T,K,se,ie),!0}for(ut=1,ct=new Array(je-1);ut<je;ut++)ct[ut-1]=arguments[ut];xe.fn.apply(xe.context,ct)}else{var Nt=xe.length,vt;for(ut=0;ut<Nt;ut++)switch(xe[ut].once&&this.removeListener(v,xe[ut].fn,void 0,!0),je){case 1:xe[ut].fn.call(xe[ut].context);break;case 2:xe[ut].fn.call(xe[ut].context,x);break;case 3:xe[ut].fn.call(xe[ut].context,x,T);break;case 4:xe[ut].fn.call(xe[ut].context,x,T,K);break;default:if(!ct)for(vt=1,ct=new Array(je-1);vt<je;vt++)ct[vt-1]=arguments[vt];xe[ut].fn.apply(xe[ut].context,ct)}}return!0},u.prototype.on=function(v,x,T){return i(this,v,x,T,!1)},u.prototype.once=function(v,x,T){return i(this,v,x,T,!0)},u.prototype.removeListener=function(v,x,T,K){var se=t?t+v:v;if(!this._events[se])return this;if(!x)return s(this,se),this;var ie=this._events[se];if(ie.fn)ie.fn===x&&(!K||ie.once)&&(!T||ie.context===T)&&s(this,se);else{for(var de=0,xe=[],je=ie.length;de<je;de++)(ie[de].fn!==x||K&&!ie[de].once||T&&ie[de].context!==T)&&xe.push(ie[de]);xe.length?this._events[se]=xe.length===1?xe[0]:xe:s(this,se)}return this},u.prototype.removeAllListeners=function(v){var x;return v?(x=t?t+v:v,this._events[x]&&s(this,x)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=t,u.EventEmitter=u,a.exports=u})(Dt);var Zt=Dt.exports,er=A(Zt);class hr{constructor(e,t,r,n){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;const s=(v,x)=>{x=x||{},x.frag=this.frag,x.id=this.id,v===c.ERROR&&(this.error=x.error),this.hls.trigger(v,x)};this.observer=new er,this.observer.on(c.FRAG_DECRYPTED,s),this.observer.on(c.ERROR,s);const u=Lr(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},f={mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:u.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||ya())){try{i.workerPath?(E.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=na(i.workerPath)):(E.log(`injecting Web Worker for "${t}"`),this.workerContext=ra()),this.onwmsg=T=>this.onWorkerMessage(T);const{worker:x}=this.workerContext;x.addEventListener("message",this.onwmsg),x.onerror=T=>{const K=new Error(`${T.message} (${T.filename}:${T.lineno})`);i.enableWorker=!1,E.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:K})},x.postMessage({cmd:"init",typeSupported:f,vendor:"",id:t,config:JSON.stringify(i)})}catch(x){E.warn(`Error setting up "${t}" Web Worker, fallback to inline`,x),this.resetWorker(),this.error=null,this.transmuxer=new U(this.observer,f,i,"",t)}return}this.transmuxer=new U(this.observer,f,i,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,r,n,i,s,u,f,v,x){var T,K;v.transmuxing.start=self.performance.now();const{transmuxer:se}=this,ie=s?s.start:i.start,de=i.decryptdata,xe=this.frag,je=!(xe&&i.cc===xe.cc),ct=!(xe&&v.level===xe.level),ut=xe?v.sn-xe.sn:-1,Nt=this.part?v.part-this.part.index:-1,vt=ut===0&&v.id>1&&v.id===(xe==null?void 0:xe.stats.chunkCount),Qt=!ct&&(ut===1||ut===0&&(Nt===1||vt&&Nt<=0)),Mt=self.performance.now();(ct||ut||i.stats.parsing.start===0)&&(i.stats.parsing.start=Mt),s&&(Nt||!Qt)&&(s.stats.parsing.start=Mt);const or=!(xe&&((T=i.initSegment)==null?void 0:T.url)===((K=xe.initSegment)==null?void 0:K.url)),_r=new dt(je,Qt,f,ct,ie,or);if(!Qt||je||or){E.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${v.sn} p: ${v.part} level: ${v.level} id: ${v.id}
discontinuity: ${je}
trackSwitch: ${ct}
contiguous: ${Qt}
accurateTimeOffset: ${f}
timeOffset: ${ie}
initSegmentChange: ${or}`);const Vt=new nt(r,n,t,u,x);this.configureTransmuxer(Vt)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:de,chunkMeta:v,state:_r},e instanceof ArrayBuffer?[e]:[]);else if(se){const Vt=se.push(e,de,v,_r);ze(Vt)?(se.async=!0,Vt.then(lr=>{this.handleTransmuxComplete(lr)}).catch(lr=>{this.transmuxerError(lr,v,"transmuxer-interface push error")})):(se.async=!1,this.handleTransmuxComplete(Vt))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let r=t.flush(e);ze(r)||t.async?(ze(r)||(r=Promise.resolve(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,r){this.hls&&(this.error=e,this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){E.warn(`worker message received with no ${t?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(t.event){case"init":{var n;const i=(n=this.workerContext)==null?void 0:n.objectURL;i&&self.URL.revokeObjectURL(i);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":E[t.data.logType]&&E[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Sr=100;class Kr extends cs{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",Xe.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-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.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(c.ERROR,this.onError,this),e.on(c.BUFFER_RESET,this.onBufferReset,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(c.ERROR,this.onError,this),e.off(c.BUFFER_RESET,this.onBufferReset,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){if(r==="main"){const s=t.cc;this.initPTS[t.cc]={baseTime:n,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${n}`),this.videoTrackCC=s,this.state===Kt.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=Kt.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Sr),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=Kt.IDLE):(this.loadedmetadata=!1,this.state=Kt.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case Kt.IDLE:this.doTickIdle();break;case Kt.WAITING_TRACK:{var e;const{levels:r,trackId:n}=this,i=r==null||(e=r[n])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=Kt.WAITING_INIT_PTS}break}case Kt.FRAG_LOADING_WAITING_RETRY:{var t;const r=performance.now(),n=this.retryDate;if(!n||r>=n||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[s])||null),this.state=Kt.IDLE}break}case Kt.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:n,part:i,cache:s,complete:u}=r;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Kt.FRAG_LOADING;const f=s.flush(),v={frag:n,part:i,payload:f,networkDetails:null};this._handleFragmentLoadProgress(v),u&&super._handleFragmentLoadComplete(v)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const f=this.getLoadPosition(),v=wn.bufferInfo(this.mediaBuffer,f,this.config.maxBufferHole);Mn(v.end,this.config.maxFragLookUpTolerance,n)<0&&(this.log(`Waiting fragment cc (${n.cc}) @ ${n.start} cancelled because another fragment at ${v.end} is needed`),this.clearWaitingFragment())}}else this.state=Kt.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Kt.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:r,trackId:n}=this,i=e.config;if(!this.buffering||!r&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[n]))return;const s=t[n],u=s.details;if(!u||u.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(u)){this.state=Kt.WAITING_TRACK;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,G.AUDIO,Xe.AUDIO));const v=this.getFwdBufferInfo(f,Xe.AUDIO);if(v===null)return;if(!this.switchingTrack&&this._streamEnded(v,u)){e.trigger(c.BUFFER_EOS,{type:"audio"}),this.state=Kt.ENDED;return}const x=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Xe.MAIN),T=v.len,K=this.getMaxBufferLength(x==null?void 0:x.len),se=u.fragments,ie=se[0].start,de=this.getLoadPosition(),xe=this.flushing?de:v.end;if(this.switchingTrack&&r){const Nt=de;u.PTSKnown&&Nt<ie&&(v.end>ie||v.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=ie+.05)}if(T>=K&&!this.switchingTrack&&xe<se[se.length-1].start)return;let je=this.getNextFragment(xe,u),ct=!1;if(je&&this.isLoopLoading(je,xe)&&(ct=!!je.gap,je=this.getNextFragmentLoopLoading(je,u,v,Xe.MAIN,K)),!je){this.bufferFlushed=!0;return}const ut=x&&je.start>x.end+u.targetduration;if(ut||!(x!=null&&x.len)&&v.len){const Nt=this.getAppendedFrag(je.start,Xe.MAIN);if(Nt===null||(ct||(ct=!!Nt.gap||!!ut&&x.len===0),ut&&!ct||ct&&v.nextStart&&v.nextStart<Nt.end))return}this.loadFragment(je,s,xe)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new jn(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:n}=this;n&&(n.abortRequests(),this.removeUnbufferedFrags(n.start)),this.resetLoadingState(),r?this.setInterval(Sr):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=Kt.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=Kt.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(c.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:n}=this,{details:i,id:s}=t;if(!n){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const u=n[s];let f=0;if(i.live||(r=u.details)!=null&&r.live){this.checkLiveUpdate(i);const x=this.mainDetails;if(i.deltaUpdateFailed||!x)return;if(!u.details&&i.hasProgramDateTime&&x.hasProgramDateTime)Di(i,x),f=i.fragments[0].start;else{var v;f=this.alignPlaylists(i,u.details,(v=this.levelLastLoaded)==null?void 0:v.details)}}u.details=i,this.levelLastLoaded=u,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,f),this.state===Kt.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Kt.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:n,payload:i}=e,{config:s,trackId:u,levels:f}=this;if(!f){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const v=f[u];if(!v){this.warn("Audio track is undefined on fragment load progress");return}const x=v.details;if(!x){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const T=s.defaultAudioCodec||v.audioCodec||"mp4a.40.2";let K=this.transmuxer;K||(K=this.transmuxer=new hr(this.hls,Xe.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const se=this.initPTS[r.cc],ie=(t=r.initSegment)==null?void 0:t.data;if(se!==void 0){const xe=n?n.index:-1,je=xe!==-1,ct=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,xe,je);K.push(i,ie,T,"",r,n,x.totalduration,!1,ct,se)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${x.startSN} ,${x.endSN}],track ${u}`);const{cache:de}=this.waitingData=this.waitingData||{frag:r,part:n,cache:new ta,complete:!1};de.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=Kt.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:r,part:n}=t;if(r.type!==Xe.AUDIO){if(!this.loadedmetadata&&r.type===Xe.MAIN){const i=this.videoBuffer||this.media;i&&wn.getBuffered(i).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${n?" p: "+n.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(r.sn!=="initSegment"){this.fragPrevious=r;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(c.AUDIO_TRACK_SWITCHED,oe({},i)))}this.fragBufferedComplete(r,n)}onError(e,t){var r;if(t.fatal){this.state=Kt.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Xe.AUDIO,t);break;case b.AUDIO_TRACK_LOAD_ERROR:case b.AUDIO_TRACK_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Kt.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===Tr.AUDIO_TRACK&&(this.state=Kt.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==G.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==G.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Kt.ENDED&&(this.state=Kt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,Xe.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:n}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:v,level:x}=u,{details:T}=x,{audio:K,text:se,id3:ie,initSegment:de}=i;if(this.fragContextChanged(f)||!T){this.fragmentTracker.removeFragment(f);return}if(this.state=Kt.PARSING,this.switchingTrack&&K&&this.completeAudioSwitch(this.switchingTrack),de!=null&&de.tracks){const xe=f.initSegment||f;this._bufferInitSegment(x,de.tracks,xe,s),n.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:xe,id:r,tracks:de.tracks})}if(K){const{startPTS:xe,endPTS:je,startDTS:ct,endDTS:ut}=K;v&&(v.elementaryStreams[G.AUDIO]={startPTS:xe,endPTS:je,startDTS:ct,endDTS:ut}),f.setElementaryStreamInfo(G.AUDIO,xe,je,ct,ut),this.bufferFragmentData(K,f,v,s)}if(ie!=null&&(t=ie.samples)!=null&&t.length){const xe=o({id:r,frag:f,details:T},ie);n.trigger(c.FRAG_PARSING_METADATA,xe)}if(se){const xe=o({id:r,frag:f,details:T},se);n.trigger(c.FRAG_PARSING_USERDATA,xe)}}_bufferInitSegment(e,t,r,n){if(this.state!==Kt.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="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(c.BUFFER_CODECS,t);const u=i.initSegment;if(u!=null&&u.byteLength){const f={type:"audio",frag:r,part:null,chunkMeta:n,parent:r.type,data:u};this.hls.trigger(c.BUFFER_APPENDING,f)}this.tickImmediate()}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||n===ri.NOT_LOADED||n===ri.PARTIAL){var i;if(e.sn==="initSegment")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=Kt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&Di(t.details,s)}else this.startFragRequested=!0,super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:r,assocLang:n,characteristics:i,audioCodec:s,channels:u}=this.bufferedTrack;Li({name:t,lang:r,assocLang:n,characteristics:i,audioCodec:s,channels:u},e,Oi)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(c.AUDIO_TRACK_SWITCHED,oe({},e))}}function Zr(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Wr(a[t].attrs,e[t].attrs))return!1;return!0}function Wr(a,e,t){const r=a["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>a[n]!==e[n])}function Tn(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Dn extends ln{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(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(c.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:r,groupId:n,details:i}=t,s=this.tracksInGroup[r];if(!s||s.groupId!==n){this.warn(`Audio track with id:${r} and group:${n} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${n} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,u)}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 r=t.audioGroups||null,n=this.groupIds;let i=this.currentTrack;if(!r||(n==null?void 0:n.length)!==(r==null?void 0:r.length)||r!=null&&r.some(u=>(n==null?void 0:n.indexOf(u))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const u=this.tracks.filter(K=>!r||r.indexOf(K.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(K=>K.default)&&(this.selectDefaultTrack=!1),u.forEach((K,se)=>{K.id=se});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const K=Si(f,u,Oi);if(K>-1)i=u[K];else{const se=Si(f,this.tracks);i=this.tracks[se]}}let v=this.findTrackId(i);v===-1&&i&&(v=this.findTrackId(null));const x={audioTracks:u};this.log(`Updating audio tracks, ${u.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(c.AUDIO_TRACKS_UPDATED,x);const T=this.trackId;if(v!==-1&&T===-1)this.setAudioTrack(v);else if(u.length&&T===-1){var s;const K=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${u.length}`);this.warn(K.message),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:K})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===Tr.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-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 r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const n=this.currentTrack;if(n&&Li(e,n,Oi))return n;const i=Si(e,this.tracksInGroup,Oi);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(n){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const u=Js(e,t.levels,r,s,Oi);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=Si(e,r);if(s>-1)return r[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,n=t[e],i=n.details&&!n.details.live;if(e===this.trackId&&n===r&&i||(this.log(`Switching to audio-track ${e} "${n.name}" lang:${n.lang} group:${n.groupId} channels:${n.channels}`),this.trackId=e,this.currentTrack=n,this.hls.trigger(c.AUDIO_TRACK_SWITCHING,oe({},n)),i))return;const s=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const n=t[r];if(!(this.selectDefaultTrack&&!n.default)&&(!e||Li(e,n,Oi)))return r}if(e){const{name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let v=0;v<t.length;v++){const x=t[v];if(Li({name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f},x,Oi))return v}for(let v=0;v<t.length;v++){const x=t[v];if(Wr(e.attrs,x.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return v}for(let v=0;v<t.length;v++){const x=t[v];if(Wr(e.attrs,x.attrs,["LANGUAGE"]))return v}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const r=t.id,n=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${r} "${t.name}" lang:${t.lang} group:${n}`),this.clearTimer(),this.hls.trigger(c.AUDIO_TRACK_LOADING,{url:i,id:r,groupId:n,deliveryDirectives:e||null})}}}const $n=500;class Hn extends cs{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",Xe.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.ERROR,this.onError,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(c.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.ERROR,this.onError,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(c.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=Kt.IDLE,this.setInterval($n),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,success:n}=t;if(this.fragPrevious=r,this.state=Kt.IDLE,!n)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=r.start;for(let v=0;v<i.length;v++)if(u>=i[v].start&&u<=i[v].end){s=i[v];break}const f=r.start+r.duration;s?s.end=f:(s={start:u,end:f},i.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}onBufferFlushing(e,t){const{startOffset:r,endOffset:n}=t;if(r===0&&n!==Number.POSITIVE_INFINITY){const i=n-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let u=0;u<s.length;){if(s[u].end<=i){s.shift();continue}else if(s[u].start<i)s[u].start=i;else break;u++}}),this.fragmentTracker.removeFragmentsInRange(r,i,Xe.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Xe.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===Xe.SUBTITLE&&(t.details===b.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Kt.STOPPED&&(this.state=Kt.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Zr(this.levels,t)){this.levels=t.map(r=>new jn(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const n=new jn(r);return this.tracksBuffered[n.id]=[],n}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Xe.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const n=this.levels[this.currentTrackId];n!=null&&n.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,n&&this.setInterval($n)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:n,levels:i}=this,{details:s,id:u}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${u}`);return}const f=i[u];if(u>=i.length||!f)return;this.log(`Subtitle track ${u} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let v=0;if(s.live||(r=f.details)!=null&&r.live){const T=this.mainDetails;if(s.deltaUpdateFailed||!T)return;const K=T.fragments[0];if(!f.details)s.hasProgramDateTime&&T.hasProgramDateTime?(Di(s,T),v=s.fragments[0].start):K&&(v=K.start,Jt(s,v));else{var x;v=this.alignPlaylists(s,f.details,(x=this.levelLastLoaded)==null?void 0:x.details),v===0&&K&&(v=K.start,Jt(s,v))}}f.details=s,this.levelLastLoaded=f,u===n&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,v),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Kt.IDLE&&(Hr(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),f.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,n=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&n!=null&&n.key&&n.iv&&n.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),n.key.buffer,n.iv.buffer).catch(u=>{throw i.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:t}),u}).then(u=>{const f=performance.now();i.trigger(c.FRAG_DECRYPTED,{frag:t,payload:u,stats:{tstart:s,tdecrypt:f}})}).catch(u=>{this.warn(`${u.name}: ${u.message}`),this.state=Kt.IDLE})}}doTick(){if(!this.media){this.state=Kt.IDLE;return}if(this.state===Kt.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details)return;const{config:n}=this,i=this.getLoadPosition(),s=wn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),{end:u,len:f}=s,v=this.getFwdBufferInfo(this.media,Xe.MAIN),x=r.details,T=this.getMaxBufferLength(v==null?void 0:v.len)+x.levelTargetDuration;if(f>T)return;const K=x.fragments,se=K.length,ie=x.edge;let de=null;const xe=this.fragPrevious;if(u<ie){const je=n.maxFragLookUpTolerance,ct=u>ie-je?0:je;de=Hr(xe,K,Math.max(K[0].start,u),ct),!de&&xe&&xe.start<K[0].start&&(de=K[0])}else de=K[se-1];if(!de)return;if(de=this.mapToInitFragWhenRequired(de),de.sn!=="initSegment"){const je=de.sn-x.startSN,ct=K[je-1];ct&&ct.cc===de.cc&&this.fragmentTracker.getState(ct)===ri.NOT_LOADED&&(de=ct)}this.fragmentTracker.getState(de)===ri.NOT_LOADED&&this.loadFragment(de,r,u)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,r){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,r))}get mediaBufferTimeRanges(){return new qn(this.tracksBuffered[this.currentTrackId]||[])}}class qn{constructor(e){this.buffered=void 0;const t=(r,n,i)=>{if(n=n>>>0,n>i-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return e[n][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}class vi extends ln{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.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const r=rn(this.media.textTracks);for(let i=0;i<r.length;i++)if(r[i].mode==="hidden")t=r[i];else if(r[i].mode==="showing"){t=r[i];break}const n=this.findTrackForTextTrack(t);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(c.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(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),rn(this.media.textTracks).forEach(t=>{hn(t)}),this.subtitleTrack=-1,this.media=null}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:r,groupId:n,details:i}=t,s=this.tracksInGroup[r];if(!s||s.groupId!==n){this.warn(`Subtitle track with id:${r} and group:${n} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${n} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,u)}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 r=t.subtitleGroups||null,n=this.groupIds;let i=this.currentTrack;if(!r||(n==null?void 0:n.length)!==(r==null?void 0:r.length)||r!=null&&r.some(s=>(n==null?void 0:n.indexOf(s))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(x=>!r||r.indexOf(x.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(x=>x.default)&&(this.selectDefaultTrack=!1),s.forEach((x,T)=>{x.id=T});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const x=Si(u,s);if(x>-1)i=s[x];else{const T=Si(u,this.tracks);i=this.tracks[T]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const v={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(c.SUBTITLE_TRACKS_UPDATED,v),f!==-1&&this.trackId===-1&&this.setSubtitleTrack(f)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let n=0;n<t.length;n++){const i=t[n];if(!(r&&!i.default||!r&&!e)&&(!e||Li(i,e)))return n}if(e){for(let n=0;n<t.length;n++){const i=t[n];if(Wr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(Wr(e.attrs,i.attrs,["LANGUAGE"]))return n}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const n=t[r];if(Tn(n,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===Tr.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){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&Li(e,r))return r;const n=Si(e,this.tracksInGroup);if(n>-1){const i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}else{if(r)return null;{const i=Si(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const r=t.id,n=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(c.SUBTITLE_TRACK_LOADING,{url:i,id:r,groupId:n,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=rn(e.textTracks),r=this.currentTrack;let n;if(r&&(n=t.filter(i=>Tn(r,i))[0],n||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==n&&(i.mode="disabled")}),n){const i=this.subtitleDisplay?"showing":"hidden";n.mode!==i&&(n.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!V(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,n=t[e]||null;if(this.trackId=e,this.currentTrack=n,this.toggleTrackModes(),!n){this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!n.details&&!n.details.live;if(e===this.trackId&&n===r&&i)return;this.log(`Switching to subtitle-track ${e}`+(n?` "${n.name}" lang:${n.lang} group:${n.groupId}`:""));const{id:s,groupId:u="",name:f,type:v,url:x}=n;this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:v,url:x});const T=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(T)}}class hi{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,r){const n=this.queues[t];n.push(e),n.length===1&&!r&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const r=new Promise(i=>{t=i}),n={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(n,e),r}executeNext(e){const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(n){E.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${n}`),r.onError(n);const i=this.buffers[e];i!=null&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const Sn=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class ki{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:n}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(c.MEDIA_ATTACHED,{media:r,mediaSource:n})),n&&n.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:n}=this;r!==n&&E.error(`Media element src was set while attaching MediaSource (${n} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=en(Lr(e.config.preferManagedMediaSource)),this.log=E.log.bind(E,t),this.warn=E.warn.bind(E,t),this.error=E.error.bind(E,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.BUFFER_RESET,this.onBufferReset,this),e.on(c.BUFFER_APPENDING,this.onBufferAppending,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.BUFFER_EOS,this.onBufferEos,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(c.FRAG_PARSED,this.onFragParsed,this),e.on(c.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.BUFFER_RESET,this.onBufferReset,this),e.off(c.BUFFER_APPENDING,this.onBufferAppending,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.BUFFER_EOS,this.onBufferEos,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(c.FRAG_PARSED,this.onFragParsed,this),e.off(c.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new hi(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const r=this.media=t.media,n=Lr(this.appendSource);if(r&&n){var i;const s=this.mediaSource=new n;this.log(`created media source: ${(i=s.constructor)==null?void 0:i.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));const u=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const f=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||f&&s instanceof f,Hi(r),Mi(r,u),r.load()}catch(f){r.src=u}else r.src=u;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:r}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(n){this.warn(`onMediaDetaching: ${n.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&Hi(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(c.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var r;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(n){this.warn(`onBufferReset ${e}`,n)}}onBufferCodecs(e,t){const r=this.getSourceBufferTypes().length,n=Object.keys(t);if(n.forEach(s=>{if(r){const f=this.tracks[s];if(f&&typeof f.buffer.changeType=="function"){var u;const{id:v,codec:x,levelCodec:T,container:K,metadata:se}=t[s],ie=qt(f.codec,f.levelCodec),de=ie==null?void 0:ie.replace(Sn,"$1");let xe=qt(x,T);const je=(u=xe)==null?void 0:u.replace(Sn,"$1");if(xe&&de!==je){s.slice(0,5)==="audio"&&(xe=rr(xe,this.appendSource));const ct=`${K};codecs=${xe}`;this.appendChangeType(s,ct),this.log(`switching codec ${ie} to ${xe}`),this.tracks[s]={buffer:f.buffer,codec:x,container:K,levelCodec:T,metadata:se,id:v}}}}else this.pendingTracks[s]=t[s]}),r)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${n.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:r}=this,n={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),r.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};r.append(n,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:r,operationQueue:n,tracks:i}=this,{data:s,type:u,frag:f,part:v,chunkMeta:x}=t,T=x.buffering[u],K=self.performance.now();T.start=K;const se=f.stats.buffering,ie=v?v.stats.buffering:null;se.start===0&&(se.start=K),ie&&ie.start===0&&(ie.start=K);const de=i.audio;let xe=!1;u==="audio"&&(de==null?void 0:de.container)==="audio/mpeg"&&(xe=!this.lastMpegAudioChunk||x.id===1||this.lastMpegAudioChunk.sn!==x.sn,this.lastMpegAudioChunk=x);const je=f.start,ct={execute:()=>{if(T.executeStart=self.performance.now(),xe){const ut=this.sourceBuffer[u];if(ut){const Nt=je-ut.timestampOffset;Math.abs(Nt)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${je} (delta: ${Nt}) sn: ${f.sn})`),ut.timestampOffset=je)}}this.appendExecutor(s,u)},onStart:()=>{},onComplete:()=>{const ut=self.performance.now();T.executeEnd=T.end=ut,se.first===0&&(se.first=ut),ie&&ie.first===0&&(ie.first=ut);const{sourceBuffer:Nt}=this,vt={};for(const Qt in Nt)vt[Qt]=wn.getBuffered(Nt[Qt]);this.appendErrors[u]=0,u==="audio"||u==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(c.BUFFER_APPENDED,{type:u,frag:f,part:v,chunkMeta:x,parent:f.type,timeRanges:vt})},onError:ut=>{const Nt={type:w.MEDIA_ERROR,parent:f.type,details:b.BUFFER_APPEND_ERROR,sourceBufferName:u,frag:f,part:v,chunkMeta:x,error:ut,err:ut,fatal:!1};if(ut.code===DOMException.QUOTA_EXCEEDED_ERR)Nt.details=b.BUFFER_FULL_ERROR;else{const vt=++this.appendErrors[u];Nt.details=b.BUFFER_APPEND_ERROR,this.warn(`Failed ${vt}/${r.config.appendErrorMaxRetry} times to append segment in "${u}" sourceBuffer`),vt>=r.config.appendErrorMaxRetry&&(Nt.fatal=!0)}r.trigger(c.ERROR,Nt)}};n.append(ct,u,!!this.pendingTracks[u])}onBufferFlushing(e,t){const{operationQueue:r}=this,n=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(c.BUFFER_FLUSHED,{type:i})},onError:s=>{this.warn(`Failed to remove from ${i} SourceBuffer`,s)}});t.type?r.append(n(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{r.append(n(i),i)})}onFragParsed(e,t){const{frag:r,part:n}=t,i=[],s=n?n.elementaryStreams:r.elementaryStreams;s[G.AUDIOVIDEO]?i.push("audiovideo"):(s[G.AUDIO]&&i.push("audio"),s[G.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();r.stats.buffering.end=f,n&&(n.stats.buffering.end=f);const v=n?n.stats:r.stats;this.hls.trigger(c.FRAG_BUFFERED,{frag:r,part:n,stats:v,id:r.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(u,i)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((n,i)=>{const s=this.sourceBuffer[i];return s&&(!t.type||t.type===i)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${i} sourceBuffer now EOS`))),n&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const s=this.sourceBuffer[i];s&&(s.ending=!1)});const{mediaSource:n}=this;if(!n||n.readyState!=="open"){n&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${n.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),n.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,s=r.currentTime,u=t.levelTargetDuration,f=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(V(f)&&f>0){const v=Math.max(f,u),x=Math.floor(s/u)*u-v;this.flushBackBuffer(s,u,x)}if(V(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const v=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),x=Math.max(v,u),T=Math.floor(s/u)*u+x;this.flushFrontBuffer(s,u,T)}}flushBackBuffer(e,t,r){const{details:n,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(u=>{const f=i[u];if(f){const v=wn.getBuffered(f);if(v.length>0&&r>v.start(0)){if(this.hls.trigger(c.BACK_BUFFER_REACHED,{bufferEnd:r}),n!=null&&n.live)this.hls.trigger(c.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(f.ended&&v.end(v.length-1)-e<t*2){this.log(`Cannot flush ${u} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:u})}}})}flushFrontBuffer(e,t,r){const{sourceBuffer:n}=this;this.getSourceBufferTypes().forEach(s=>{const u=n[s];if(u){const f=wn.getBuffered(u),v=f.length;if(v<2)return;const x=f.start(v-1),T=f.end(v-1);if(r>x||e>=x&&e<=T)return;if(u.ended&&e-T<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:x,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:r,mediaSource:n}=this,i=e.fragments[0].start+e.totalduration,s=r.duration,u=V(n.duration)?n.duration:0;e.live&&t.config.liveDurationInfinity?(n.duration=1/0,this.updateSeekableRange(e)):(i>u&&i>s||!V(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),n.duration=i)}updateSeekableRange(e){const t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,r[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:r}=this,n=Object.keys(r).length;if(n&&(!e||n===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(c.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var n;const s=e[i];if(!s)throw Error(`source buffer exists for track ${i}, however track does not`);let u=((n=s.levelCodec)==null?void 0:n.indexOf(","))===-1?s.levelCodec:s.codec;u&&i.slice(0,5)==="audio"&&(u=rr(u,this.appendSource));const f=`${s.container};codecs=${u}`;this.log(`creating sourceBuffer(${f})`);try{const v=t[i]=r.addSourceBuffer(f),x=i;this.addBufferListener(x,"updatestart",this._onSBUpdateStart),this.addBufferListener(x,"updateend",this._onSBUpdateEnd),this.addBufferListener(x,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(x,"bufferedchange",(T,K)=>{const se=K.removedRanges;se!=null&&se.length&&this.hls.trigger(c.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:v,codec:u,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(v){this.error(`error while trying to add sourceBuffer: ${v.message}`),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,sourceBufferName:i,mimeType:f})}}}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.src}_onSBUpdateStart(e){const{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var r;const n=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${n}`,t),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:n,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(n)}removeExecutor(e,t,r){const{media:n,mediaSource:i,operationQueue:s,sourceBuffer:u}=this,f=u[e];if(!n||!i||!f){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const v=V(n.duration)?n.duration:1/0,x=V(i.duration)?i.duration:1/0,T=Math.max(0,t),K=Math.min(r,v,x);K>T&&(!f.ending||f.ended)?(f.ended=!1,this.log(`Removing [${T},${K}] from the ${e} SourceBuffer`),f.remove(T,K)):s.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.sourceBuffer[t];if(!r){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,n=t.map(i=>r.appendBlocker(i));Promise.all(n).then(()=>{e(),t.forEach(i=>{const s=this.sourceBuffer[i];s!=null&&s.updating||r.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,r){const n=this.sourceBuffer[e];if(!n)return;const i=r.bind(this,e);this.listeners[e].push({event:t,listener:i}),n.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(r=>{t.removeEventListener(r.event,r.listener)})}}function Hi(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function Mi(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}const _i={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},Gi=a=>String.fromCharCode(_i[a]||a),oi=15,Bi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ms={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ps={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},gs={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ws=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Zs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;E.log(`${this.time} [${e}] ${r}`)}}}const ts=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class Ba{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 r=0;r<t.length;r++){const n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}}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 ro{constructor(){this.uchar=" ",this.penState=new Ba}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 pa{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ba,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Bi;t++)this.chars.push(new ro);this.logger=e}equals(e){for(let t=0;t<Bi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Bi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Bi;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>Bi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Bi)}moveCursor(e){const t=this.pos+e;if(e>1)for(let r=this.pos+1;r<t+1;r++)this.chars[r].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=Gi(e);if(this.pos>=Bi){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<Bi;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 r=0;r<Bi;r++){const n=this.chars[r].uchar;n!==" "&&(t=!1),e.push(n)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Vs{constructor(e){this.rows=[],this.currRow=oi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<oi;t++)this.rows.push(new pa(e));this.logger=e}reset(){for(let e=0;e<oi;e++)this.rows[e].clear();this.currRow=oi-1}equals(e){let t=!0;for(let r=0;r<oi;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<oi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<oi;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 = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let u=0;u<oi;u++)this.rows[u].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const u=s.rows[i].cueStartTime,f=this.logger.time;if(u!==null&&f!==null&&u<f)for(let v=0;v<this.nrRollUpRows;v++)this.rows[t-this.nrRollUpRows+v+1].copy(s.rows[i+v])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);r.setCursor(e.indent),e.color=r.chars[s].penState.foreground}const n={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(n)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(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 r="",n=-1;for(let i=0;i<oi;i++){const s=this.rows[i].getTextString();s&&(n=i+1,e?t.push("Row "+n+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
`)),r}getTextAndFormat(){return this.rows}}class ga{constructor(e,t,r){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 Vs(r),this.nonDisplayedMemory=new Vs(r),this.lastOutputScreen=new Vs(r),this.currRollUpRow=this.displayedMemory.rows[oi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[oi-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 r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);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 r=Math.floor(e/2)-16,n=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=n[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(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 va{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=qo(),this.logger=void 0;const n=this.logger=new Zs;this.channels=[null,new ga(e,t,n),new ga(e+1,r,n)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let r=0;r<t.length;r+=2){const n=t[r]&127,i=t[r+1]&127;let s=!1,u=null;if(n===0&&i===0)continue;this.logger.log(3,()=>"["+ts([t[r],t[r+1]])+"] -> ("+ts([n,i])+")");const f=this.cmdHistory;if(n>=16&&n<=31){if(Jo(n,i,f)){rs(null,null,f),this.logger.log(3,()=>"Repeated command ("+ts([n,i])+") is dropped");continue}rs(n,i,this.cmdHistory),s=this.parseCmd(n,i),s||(s=this.parseMidrow(n,i)),s||(s=this.parsePAC(n,i)),s||(s=this.parseBackgroundAttributes(n,i))}else rs(null,null,f);if(!s&&(u=this.parseChars(n,i),u)){const x=this.currentChannel;x&&x>0?this.channels[x].insertChars(u):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!u&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ts([n,i])+" orig: "+ts([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,n=(e===23||e===31)&&t>=33&&t<=35;if(!(r||n))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 r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const n=this.channels[r];return n?(n.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+ts([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const n=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(n||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?r=s===1?to[e]:ps[e]:r=s===1?ms[e]:gs[e];const u=this.channels[s];return u?(u.setPAC(this.interpretPAC(r,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let r;const n={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,n.underline=(r&1)===1,r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=Math.floor((r-16)/2)*4,n}parseChars(e,t){let r,n=null,i=null;if(e>=25?(r=2,i=e-8):(r=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 '"+Gi(s)+"' in channel "+r),n=[s]}else e>=32&&e<=127&&(n=t===0?[e]:[e,t]);return n&&this.logger.log(3,()=>"Char codes = "+ts(n).join(",")),n}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,n=(e===23||e===31)&&t>=45&&t<=47;if(!(r||n))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=Ws[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const u=e<=23?1:2;return this.channels[u].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}rs(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function rs(a,e,t){t.a=a,t.b=e}function Jo(a,e,t){return t.a===a&&t.b===e}function qo(){return{a:null,b:null}}class Na{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,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var no=function(){if(Ee!=null&&Ee.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(u,f){if(typeof f!="string"||!Array.isArray(u))return!1;const v=f.toLowerCase();return~u.indexOf(v)?v:!1}function r(u){return t(a,u)}function n(u){return t(e,u)}function i(u,...f){let v=1;for(;v<arguments.length;v++){const x=arguments[v];for(const T in x)u[T]=x[T]}return u}function s(u,f,v){const x=this,T={enumerable:!0};x.hasBeenReset=!1;let K="",se=!1,ie=u,de=f,xe=v,je=null,ct="",ut=!0,Nt="auto",vt="start",Qt=50,Mt="middle",or=50,_r="middle";Object.defineProperty(x,"id",i({},T,{get:function(){return K},set:function(Vt){K=""+Vt}})),Object.defineProperty(x,"pauseOnExit",i({},T,{get:function(){return se},set:function(Vt){se=!!Vt}})),Object.defineProperty(x,"startTime",i({},T,{get:function(){return ie},set:function(Vt){if(typeof Vt!="number")throw new TypeError("Start time must be set to a number.");ie=Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"endTime",i({},T,{get:function(){return de},set:function(Vt){if(typeof Vt!="number")throw new TypeError("End time must be set to a number.");de=Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"text",i({},T,{get:function(){return xe},set:function(Vt){xe=""+Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"region",i({},T,{get:function(){return je},set:function(Vt){je=Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"vertical",i({},T,{get:function(){return ct},set:function(Vt){const lr=r(Vt);if(lr===!1)throw new SyntaxError("An invalid or illegal string was specified.");ct=lr,this.hasBeenReset=!0}})),Object.defineProperty(x,"snapToLines",i({},T,{get:function(){return ut},set:function(Vt){ut=!!Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"line",i({},T,{get:function(){return Nt},set:function(Vt){if(typeof Vt!="number"&&Vt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Nt=Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"lineAlign",i({},T,{get:function(){return vt},set:function(Vt){const lr=n(Vt);if(!lr)throw new SyntaxError("An invalid or illegal string was specified.");vt=lr,this.hasBeenReset=!0}})),Object.defineProperty(x,"position",i({},T,{get:function(){return Qt},set:function(Vt){if(Vt<0||Vt>100)throw new Error("Position must be between 0 and 100.");Qt=Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"positionAlign",i({},T,{get:function(){return Mt},set:function(Vt){const lr=n(Vt);if(!lr)throw new SyntaxError("An invalid or illegal string was specified.");Mt=lr,this.hasBeenReset=!0}})),Object.defineProperty(x,"size",i({},T,{get:function(){return or},set:function(Vt){if(Vt<0||Vt>100)throw new Error("Size must be between 0 and 100.");or=Vt,this.hasBeenReset=!0}})),Object.defineProperty(x,"align",i({},T,{get:function(){return _r},set:function(Vt){const lr=n(Vt);if(!lr)throw new SyntaxError("An invalid or illegal string was specified.");_r=lr,this.hasBeenReset=!0}})),x.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class el{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function xo(a){function e(r,n,i,s){return(r|0)*3600+(n|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 tl{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let n=0;n<r.length;++n)if(t===r[n]){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 r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function Eo(a,e,t,r){const n=r?a.split(r):[a];for(const i in n){if(typeof n[i]!="string")continue;const s=n[i].split(t);if(s.length!==2)continue;const u=s[0],f=s[1];e(u,f)}}const io=new no(0,0,""),Fa=io.align==="middle"?"middle":"center";function rl(a,e,t){const r=a;function n(){const u=xo(a);if(u===null)throw new Error("Malformed timestamp: "+r);return a=a.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const v=new tl;Eo(u,function(K,se){let ie;switch(K){case"region":for(let de=t.length-1;de>=0;de--)if(t[de].id===se){v.set(K,t[de].region);break}break;case"vertical":v.alt(K,se,["rl","lr"]);break;case"line":ie=se.split(","),v.integer(K,ie[0]),v.percent(K,ie[0])&&v.set("snapToLines",!1),v.alt(K,ie[0],["auto"]),ie.length===2&&v.alt("lineAlign",ie[1],["start",Fa,"end"]);break;case"position":ie=se.split(","),v.percent(K,ie[0]),ie.length===2&&v.alt("positionAlign",ie[1],["start",Fa,"end","line-left","line-right","auto"]);break;case"size":v.percent(K,se);break;case"align":v.alt(K,se,["start",Fa,"end","left","right"]);break}},/:/,/\s/),f.region=v.get("region",null),f.vertical=v.get("vertical","");let x=v.get("line","auto");x==="auto"&&io.line===-1&&(x=-1),f.line=x,f.lineAlign=v.get("lineAlign","start"),f.snapToLines=v.get("snapToLines",!0),f.size=v.get("size",100),f.align=v.get("align",Fa);let T=v.get("position","auto");T==="auto"&&io.position===50&&(T=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=T}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=n(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);a=a.slice(3),s(),e.endTime=n(),s(),i(a,e)}function wo(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class nl{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new el,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 r(){let i=t.buffer,s=0;for(i=wo(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
`;)++s;const u=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
`&&++s,t.buffer=i.slice(s),u}function n(i){Eo(i,function(s,u){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=r();const u=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(u!=null&&u[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=r(),t.state){case"HEADER":/:/.test(i)?n(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 no(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{rl(i,t.cue,t.regionList)}catch(u){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const u=i.indexOf("-->")!==-1;if(!i||u&&(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 il=/\r\n|\n\r|\n|\r/g,so=function(e,t,r=0){return e.slice(r,r+t.length)===t},sl=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),n=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!V(t)||!V(r)||!V(n)||!V(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*n,t+=60*60*1e3*i,t},ao=function(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0).toString()};function oo(a,e,t){return ao(a.toString())+ao(e.toString())+ao(t)}const al=function(e,t,r){let n=e[t],i=e[n.prevCC];if(!i||!i.new&&n.new){e.ccOffset=e.presentationOffset=n.start,n.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=n.start-i.start,n.new=!1,n=i,i=e[n.prevCC]}e.presentationOffset=r};function ol(a,e,t,r,n,i,s){const u=new nl,f=mt(new Uint8Array(a)).trim().replace(il,`
`).split(`
`),v=[],x=e?ka(e.baseTime,e.timescale):0;let T="00:00.000",K=0,se=0,ie,de=!0;u.oncue=function(xe){const je=t[r];let ct=t.ccOffset;const ut=(K-x)/9e4;if(je!=null&&je.new&&(se!==void 0?ct=t.ccOffset=je.start:al(t,r,ut)),ut){if(!e){ie=new Error("Missing initPTS for VTT MPEGTS");return}ct=ut-t.presentationOffset}const Nt=xe.endTime-xe.startTime,vt=Ai((xe.startTime+ct-se)*9e4,n*9e4)/9e4;xe.startTime=Math.max(vt,0),xe.endTime=Math.max(vt+Nt,0);const Qt=xe.text.trim();xe.text=decodeURIComponent(encodeURIComponent(Qt)),xe.id||(xe.id=oo(xe.startTime,xe.endTime,Qt)),xe.endTime>0&&v.push(xe)},u.onparsingerror=function(xe){ie=xe},u.onflush=function(){if(ie){s(ie);return}i(v)},f.forEach(xe=>{if(de)if(so(xe,"X-TIMESTAMP-MAP=")){de=!1,xe.slice(16).split(",").forEach(je=>{so(je,"LOCAL:")?T=je.slice(6):so(je,"MPEGTS:")&&(K=parseInt(je.slice(7)))});try{se=sl(T)/1e3}catch(je){ie=je}return}else xe===""&&(de=!1);u.parse(xe+`
`)}),u.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ao=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function Co(a,e,t,r){const n=Be(new Uint8Array(a),["mdat"]);if(n.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=n.map(u=>mt(u)),s=Ja(e.baseTime,1,e.timescale);try{i.forEach(u=>t(ul(u,s)))}catch(u){r(u)}}function ul(a,e){const n=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!n)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((T,K)=>(T[K]=n.getAttribute(`ttp:${K}`)||i[K],T),{}),u=n.getAttribute("xml:space")!=="preserve",f=To(uo(n,"styling","style")),v=To(uo(n,"layout","region")),x=uo(n,"body","[begin]");return[].map.call(x,T=>{const K=Do(T,u);if(!K||!T.hasAttribute("begin"))return null;const se=ho(T.getAttribute("begin"),s),ie=ho(T.getAttribute("dur"),s);let de=ho(T.getAttribute("end"),s);if(se===null)throw Ro(T);if(de===null){if(ie===null)throw Ro(T);de=se+ie}const xe=new no(se-e,de-e,K);xe.id=oo(xe.startTime,xe.endTime,xe.text);const je=v[T.getAttribute("region")],ct=f[T.getAttribute("style")],ut=cl(je,ct,f),{textAlign:Nt}=ut;if(Nt){const vt=ll[Nt];vt&&(xe.lineAlign=vt),xe.align=Nt}return o(xe,ut),xe}).filter(T=>T!==null)}function uo(a,e,t){const r=a.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function To(a){return a.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function Do(a,e){return[].slice.call(a.childNodes).reduce((t,r,n)=>{var i;return r.nodeName==="br"&&n?t+`
`:(i=r.childNodes)!=null&&i.length?Do(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function cl(a,e,t){const r="http://www.w3.org/ns/ttml#styling";let n=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(n=t[s]),i.reduce((u,f)=>{const v=co(e,r,f)||co(a,r,f)||co(n,r,f);return v&&(u[f]=v),u},{})}function co(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Ro(a){return new Error(`Could not parse ttml timestamp ${a}`)}function ho(a,e){if(!a)return null;let t=xo(a);return t===null&&(So.test(a)?t=dl(a,e):Ao.test(a)&&(t=hl(a,e))),t}function dl(a,e){const t=So.exec(a),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function hl(a,e){const t=Ao.exec(a),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class fl{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=ko(),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(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Na(this,"textTrack1"),t=new Na(this,"textTrack2"),r=new Na(this,"textTrack3"),n=new Na(this,"textTrack4");this.cea608Parser1=new va(1,e,t),this.cea608Parser2=new va(3,r,n)}}addCues(e,t,r,n,i){let s=!1;for(let u=i.length;u--;){const f=i[u],v=ml(f[0],f[1],t,r);if(v>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],r),s=!0,v/(r-t)>.5))return}if(s||i.push([t,r]),this.config.renderTextTracksNatively){const u=this.captionsTracks[e];this.Cues.newCue(u,t,r,n)}else{const u=this.Cues.newCue(null,t,r,n);this.hls.trigger(c.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){const{unparsedVttFrags:s}=this;r==="main"&&(this.initPTS[t.cc]={baseTime:n,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(c.FRAG_LOADED,u)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let n=0;n<r.textTracks.length;n++){const i=r.textTracks[n];if(Lo(i,{name:e,lang:t,attrs:{}}))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:r,media:n}=this,{label:i,languageCode:s}=t[e],u=this.getExistingTrack(i,s);if(u)r[e]=u,hn(r[e]),kn(r[e],n);else{const f=this.createTextTrack("captions",i,s);f&&(f[e]=!0,r[e]=f)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,n={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(c.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,r){const n=this.media;if(n)return n.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{hn(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ko(),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 r=0;r<t.length;r++)hn(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],n=r.some(i=>i.textCodec===lo);if(this.config.enableWebVTT||n&&this.config.enableIMSC1){if(Zr(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,u=s?rn(s.textTracks):null;if(this.tracks.forEach((f,v)=>{let x;if(u){let T=null;for(let K=0;K<u.length;K++)if(u[K]&&Lo(u[K],f)){T=u[K],u[K]=null;break}T&&(x=T)}if(x)hn(x);else{const T=Io(f);x=this.createTextTrack(T,f.name,f.lang),x&&(x.mode="disabled")}x&&this.textTracks.push(x)}),u!=null&&u.length){const f=u.filter(v=>v!==null).map(v=>v.label);f.length&&E.warn(`Media element contains unused subtitle tracks: ${f.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(u=>({label:u.name,kind:u.type.toLowerCase(),default:u.default,subtitleTrack:u}));this.hls.trigger(c.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const n=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!n)return;const i=`textTrack${n[1]}`,s=this.captionsProperties[i];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}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===Xe.MAIN){var r,n;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:v}=t.frag,x=(r=(n=t.part)==null?void 0:n.index)!=null?r:-1;i&&s&&(v!==u+1||v===u&&x!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=v,this.lastPartIndex=x}}onFragLoaded(e,t){const{frag:r,payload:n}=t;if(r.type===Xe.SUBTITLE)if(n.byteLength){const i=r.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const u=this.tracks[r.level],f=this.vttCCs;f[r.cc]||(f[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),u&&u.textCodec===lo?this._parseIMSC1(r,n):this._parseVTTs(t)}}else this.hls.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;Co(t,this.initPTS[e.cc],n=>{this._appendCues(n,e.level),r.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},n=>{E.log(`Failed to parse IMSC1: ${n}`),r.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:n})})}_parseVTTs(e){var t;const{frag:r,payload:n}=e,{initPTS:i,unparsedVttFrags:s}=this,u=i.length-1;if(!i[r.cc]&&u===-1){s.push(e);return}const f=this.hls,v=(t=r.initSegment)!=null&&t.data?lt(r.initSegment.data,new Uint8Array(n)):n;ol(v,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,x=>{this._appendCues(x,r.level),f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},x=>{const T=x.message==="Missing initPTS for VTT MPEGTS";T?s.push(e):this._fallbackToIMSC1(r,n),E.log(`Failed to parse VTT cue: ${x}`),!(T&&u>r.cc)&&f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:x})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||Co(t,this.initPTS[e.cc],()=>{r.textCodec=lo,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||n.mode==="disabled")return;e.forEach(i=>jr(n,i))}else{const n=this.tracks[t];if(!n)return;const i=n.default?"default":"subtitles"+t;r.trigger(c.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===Xe.SUBTITLE&&this.onFragLoaded(c.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:n}=this;if(!this.enabled||!r||!n)return;const{frag:i,samples:s}=t;if(!(i.type===Xe.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let u=0;u<s.length;u++){const f=s[u].bytes;if(f){const v=this.extractCea608Data(f);r.addData(s[u].pts,v[0]),n.addData(s[u].pts,v[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:n,type:i}){const{media:s}=this;if(!(!s||s.currentTime<r)){if(!i||i==="video"){const{captionsTracks:u}=this;Object.keys(u).forEach(f=>Or(u[f],t,r))}if(this.config.renderTextTracksNatively&&t===0&&n!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>Or(u[f],t,n))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let n=2;for(let i=0;i<r;i++){const s=e[n++],u=127&e[n++],f=127&e[n++];if(u===0&&f===0)continue;if((4&s)!==0){const x=3&s;(x===0||x===1)&&(t[x].push(u),t[x].push(f))}}return t}}function Io(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Lo(a,e){return!!a&&a.kind===Io(e)&&Tn(e,a)}function ml(a,e,t,r){return Math.min(e,r)-Math.max(a,t)}function ko(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class fo{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(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.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 r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&V(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}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,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&E.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,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 r=t.filter((n,i)=>this.isLevelAllowed(n)&&i<=e);return this.clientRect=null,fo.getMaxLevelByMediaSize(r,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 r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.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 e}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const n=(u,f)=>f?u.width!==f.width||u.height!==f.height:!0;let i=e.length-1;const s=Math.max(t,r);for(let u=0;u<e.length;u+=1){const f=e[u];if((f.width>=s||f.height>=s)&&n(f,e[u+1])){i=u;break}}return i}}class pl{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(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const n=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=n,n&&typeof n.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,r){const n=performance.now();if(t){if(this.lastTime){const i=n-this.lastTime,s=r-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*s/i,v=this.hls;if(v.trigger(c.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:r}),f>0&&s>v.config.fpsDroppedMonitoringThreshold*u){let x=v.currentLevel;E.warn("drop FPS ratio greater than max allowed value for currentLevel: "+x),x>0&&(v.autoLevelCapping===-1||v.autoLevelCapping>=x)&&(x=x-1,v.trigger(c.FPS_DROP_LEVEL_CAPPING,{level:x,droppedLevel:v.currentLevel}),v.autoLevelCapping=x,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,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)}}const za="[eme]";class Ys{constructor(e){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=Ys.CDMCleanupPromise?[Ys.CDMCleanupPromise]:[],this.debug=E.debug.bind(E,za),this.log=E.log.bind(E,za),this.warn=E.warn.bind(E,za),this.error=E.error.bind(E,za),this.onMediaEncrypted=t=>{const{initDataType:r,initData:n}=t,i=`"${t.type}" event: init data type: "${r}"`;if(this.debug(i),n!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Et(this.config));const u=s.map(St).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=Je(s);let f,v;if(r==="sinf"){if(u!==De.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const ie=$t(new Uint8Array(n));try{const de=m(JSON.parse(ie).sinf),xe=Ft(de);if(!xe)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=xe.subarray(8,24),v=De.FAIRPLAY}catch(de){this.warn(`${i} Failed to parse sinf: ${de}`);return}}else{if(u!==De.WIDEVINE&&u!==De.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const ie=wt(n),de=ie.filter(je=>!!je.systemId&&et(je.systemId)===u);de.length>1&&this.warn(`${i} Using first of ${de.length} pssh found for selected key-system ${u}`);const xe=de[0];if(!xe){ie.length===0||ie.some(je=>!je.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${ie.map(je=>et(je.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(v=et(xe.systemId),xe.version===0&&xe.data)if(v===De.WIDEVINE){const je=xe.data.length-22;f=xe.data.subarray(je,je+16)}else v===De.PLAYREADY&&(f=It(xe.data))}if(!v||!f){this.log(`Unable to handle ${i} with key-system ${u}`);return}const x=Lt.hexDump(f),{keyIdToKeySessionPromise:T,mediaKeySessions:K}=this;let se=T[x];for(let ie=0;ie<K.length;ie++){const de=K[ie],xe=de.decryptdata;if(!xe.keyId)continue;const je=Lt.hexDump(xe.keyId);if(x===je||xe.uri.replace(/-/g,"").indexOf(x)!==-1){if(se=T[je],xe.pssh)break;delete T[je],xe.pssh=new Uint8Array(n),xe.keyId=f,se=T[x]=se.then(()=>this.generateRequestWithPreferredKeySession(de,r,n,"encrypted-event-key-match")),se.catch(ct=>this.handleError(ct));break}}if(!se){if(v!==u){this.log(`Ignoring "${i}" with ${v} init data for selected key-system ${u}`);return}se=T[x]=this.getKeySystemSelectionPromise([v]).then(({keySystem:ie,mediaKeys:de})=>{var xe;this.throwIfDestroyed();const je=new jt("ISO-23001-7",x,(xe=St(ie))!=null?xe:"");return je.pssh=new Uint8Array(n),je.keyId=f,this.attemptSetMediaKeys(ie,de).then(()=>{this.throwIfDestroyed();const ct=this.createMediaKeySessionContext({decryptdata:je,keySystem:ie,mediaKeys:de});return this.generateRequestWithPreferredKeySession(ct,r,n,"encrypted-event-no-match")})}),se.catch(ie=>this.handleError(ie))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(c.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(c.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,n=t[e];if(n)return n.licenseUrl;if(e===De.WIDEVINE&&r)return r}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,r=t[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,r=(s,u,f)=>!!s&&f.indexOf(s)===u,n=t.map(s=>s.audioCodec).filter(r),i=t.map(s=>s.videoCodec).filter(r);return n.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,u)=>{const f=v=>{const x=v.shift();this.getMediaKeysPromise(x,n,i).then(T=>s({keySystem:x,mediaKeys:T})).catch(T=>{v.length?f(v):T instanceof Ni?u(T):u(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_ACCESS,error:T,fatal:!0},T.message))})};f(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let n=`Configured requestMediaKeySystemAccess is not a function ${r}`;return Bt===null&&self.location.protocol==="http:"&&(n=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(n))}return r(e,t)}getMediaKeysPromise(e,t,r){const n=ht(e,t,r,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: ${JSON.stringify(n)}`),s=this.requestMediaKeySystemAccess(e,n);const u=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(f=>{this.log(`Failed to obtain access to key-system "${e}": ${f}`)}),s.then(f=>{this.log(`Access for key-system "${f.keySystem}" obtained`);const v=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(x=>(this.log(`Media-keys created for "${e}"`),v.then(T=>T?this.setMediaKeysServerCertificate(x,e,T):x))),u.mediaKeys.catch(x=>{this.error(`Failed to create media-keys for "${e}"}: ${x}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${Lt.hexDump(e.keyId||[])}`);const n=r.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:n,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),n=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,i,t.pssh,"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 Lt.hexDump(e.keyId)}updateKeySession(e,t){var r;const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyID ${Lt.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])}
} (data length: ${t&&t.byteLength})`),n.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,r)=>{const n=Et(this.config),i=e.map(Je).filter(s=>!!s&&n.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=St(s);u?t(u):r(new Error(`Unable to find format for key-system "${s}"`))}).catch(r)})}loadKey(e){const t=e.keyInfo.decryptdata,r=this.getKeyIdString(t),n=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${n}`);let i=this.keyIdToKeySessionPromise[r];return i||(i=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(t).then(({keySystem:s,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${n}`),this.attemptSetMediaKeys(s,u).then(()=>{this.throwIfDestroyed();const f=this.createMediaKeySessionContext({keySystem:s,mediaKeys:u,decryptdata:t});return this.generateRequestWithPreferredKeySession(f,"cenc",t.pssh,"playlist-key")}))),i.catch(s=>this.handleError(s))),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(c.ERROR,e.data):this.hls.trigger(c.ERROR,{type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const n=Je(e.keyFormat),i=n?[n]:Et(this.config);return this.attemptKeySystemAccess(i)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Et(this.config)),e.length===0)throw new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const n=Promise.all(r).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(n),n.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(n),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>r.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,r,n){var i,s;const u=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(u)try{const ie=u.call(this.hls,t,r,e);if(!ie)throw new Error("Invalid response from configured generateRequest filter");t=ie.initDataType,r=e.decryptdata.pssh=ie.initData?new Uint8Array(ie.initData):null}catch(ie){var f;if(this.warn(ie.message),(f=this.hls)!=null&&f.config.debug)throw ie}if(r===null)return this.log(`Skipping key-session request for "${n}" (no initData)`),Promise.resolve(e);const v=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${n}": ${v} (init data type: ${t} length: ${r?r.byteLength:null})`);const x=new er,T=e._onmessage=ie=>{const de=e.mediaKeysSession;if(!de){x.emit("error",new Error("invalid state"));return}const{messageType:xe,message:je}=ie;this.log(`"${xe}" message event for session "${de.sessionId}" message size: ${je.byteLength}`),xe==="license-request"||xe==="license-renewal"?this.renewLicense(e,je).catch(ct=>{this.handleError(ct),x.emit("error",ct)}):xe==="license-release"?e.keySystem===De.FAIRPLAY&&(this.updateKeySession(e,we("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${xe}"`)},K=e._onkeystatuseschange=ie=>{if(!e.mediaKeysSession){x.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const xe=e.keyStatus;x.emit("keyStatus",xe),xe==="expired"&&(this.warn(`${e.keySystem} expired for key ${v}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",T),e.mediaKeysSession.addEventListener("keystatuseschange",K);const se=new Promise((ie,de)=>{x.on("error",de),x.on("keyStatus",xe=>{xe.startsWith("usable")?ie():xe==="output-restricted"?de(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):xe==="internal-error"?de(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${xe}"`)):xe==="expired"?de(new Error("key expired while generating request")):this.warn(`unhandled key status change "${xe}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var ie;this.log(`Request generated for key-session "${(ie=e.mediaKeysSession)==null?void 0:ie.sessionId}" keyId: ${v}`)}).catch(ie=>{throw new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_NO_SESSION,error:ie,fatal:!1},`Error generating key-session request: ${ie}`)}).then(()=>se).catch(ie=>{throw x.removeAllListeners(),this.removeSession(e),ie}).then(()=>(x.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${Lt.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${Lt.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,r=t.loader,n=new r(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,u)=>{const f={responseType:"arraybuffer",url:i},v=t.certLoadPolicy.default,x={loadPolicy:v,timeout:v.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},T={onSuccess:(K,se,ie,de)=>{s(K.data)},onError:(K,se,ie,de)=>{u(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ie,response:oe({url:f.url,data:void 0},K)},`"${e}" certificate request failed (${i}). Status: ${K.code} (${K.text})`))},onTimeout:(K,se,ie)=>{u(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ie,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(K,se,ie)=>{u(new Error("aborted"))}};n.load(f,x,T)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((n,i)=>{e.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),n(e)}).catch(s=>{i(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(n=>{throw new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:n,fatal:!0},n.message)}))}unpackPlayReadyKeyMessage(e,t){const r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const n=new DOMParser().parseFromString(r,"application/xml"),i=n.querySelectorAll("HttpHeader");if(i.length>0){let x;for(let T=0,K=i.length;T<K;T++){var s,u;x=i[T];const se=(s=x.querySelector("name"))==null?void 0:s.textContent,ie=(u=x.querySelector("value"))==null?void 0:u.textContent;se&&ie&&e.setRequestHeader(se,ie)}}const f=n.querySelector("Challenge"),v=f==null?void 0:f.textContent;if(!v)throw new Error("Cannot find <Challenge> in key message");return we(atob(v))}setupLicenseXHR(e,t,r,n){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,r,n)}).catch(s=>{if(!r.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,r,n)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||n})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:n}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((n,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(u.readyState===4)if(u.status===200){this._requestLicenseFailureCount=0;let f=u.response;this.log(`License received ${f instanceof ArrayBuffer?f.byteLength:f}`);const v=this.config.licenseResponseCallback;if(v)try{f=v.call(this.hls,u,s,e)}catch(x){this.error(x)}n(f)}else{const f=r.errorRetry,v=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>v||u.status>=400&&u.status<500)i(new Ni({type:w.KEY_SYSTEM_ERROR,details:b.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:u,response:{url:s,data:void 0,code:u.status,text:u.statusText}},`License Request XHR failed (${s}). Status: ${u.status} (${u.statusText})`));else{const x=v-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${x} attempts left`),this.requestLicense(e,t).then(n,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=u,this.setupLicenseXHR(u,s,e,t).then(({xhr:f,licenseChallenge:v})=>{e.keySystem==De.PLAYREADY&&(v=this.unpackPlayReadyKeyMessage(f,v)),f.send(v)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},jt.clearKeyUriToKeyIdMap();const r=t.length;Ys.CDMCleanupPromise=Promise.all(t.map(n=>this.removeSession(n)).concat(e==null?void 0:e.setMediaKeys(null).catch(n=>{this.log(`Could not clear media keys: ${n}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(n=>{this.log(`Could not close sessions and clear media keys: ${n}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((n,i)=>(n.indexOf(i.keyFormat)===-1&&n.push(i.keyFormat),n),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:r}=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),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const n=this.mediaKeySessions.indexOf(e);return n>-1&&this.mediaKeySessions.splice(n,1),t.remove().catch(i=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}Ys.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}}var Ci;(function(a){a.MANIFEST="m",a.AUDIO="a",a.VIDEO="v",a.MUXED="av",a.INIT="i",a.CAPTION="c",a.TIMED_TEXT="tt",a.KEY="k",a.OTHER="o"})(Ci||(Ci={}));var mo;(function(a){a.DASH="d",a.HLS="h",a.SMOOTH="s",a.OTHER="o"})(mo||(mo={}));var Cs;(function(a){a.OBJECT="CMCD-Object",a.REQUEST="CMCD-Request",a.SESSION="CMCD-Session",a.STATUS="CMCD-Status"})(Cs||(Cs={}));const gl={[Cs.OBJECT]:["br","d","ot","tb"],[Cs.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Cs.SESSION]:["cid","pr","sf","sid","st","v"],[Cs.STATUS]:["bs","rtp"]};class Xs{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof Xs?r:new Xs(r))),this.value=e,this.params=t}}class Oo{constructor(e){this.description=void 0,this.description=e}}const vl="Dict";function _l(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 bl(a,e,t,r){return new Error(`failed to ${a} "${_l(e)}" as ${t}`,{cause:r})}const Po="Bare Item",yl="Boolean",xl="Byte Sequence",El="Decimal",wl="Integer";function Sl(a){return a<-999999999999999||999999999999999<a}const Al=/[\x00-\x1f\x7f]+/,Cl="Token",Tl="Key";function Yi(a,e,t){return bl("serialize",a,e,t)}function Dl(a){if(typeof a!="boolean")throw Yi(a,yl);return a?"?1":"?0"}function Rl(a){return btoa(String.fromCharCode(...a))}function Il(a){if(ArrayBuffer.isView(a)===!1)throw Yi(a,xl);return`:${Rl(a)}:`}function Mo(a){if(Sl(a))throw Yi(a,wl);return a.toString()}function Ll(a){return`@${Mo(a.getTime()/1e3)}`}function Bo(a,e){if(a<0)return-Bo(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const n=Math.floor(a*t);return(n%2===0?n:n+1)/t}else return Math.round(a*t)/t}function kl(a){const e=Bo(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Yi(a,El);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Ol="String";function Pl(a){if(Al.test(a))throw Yi(a,Ol);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(a){return a.description||a.toString().slice(7,-1)}function No(a){const e=Ml(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Yi(e,Cl);return e}function po(a){switch(typeof a){case"number":if(!V(a))throw Yi(a,Po);return Number.isInteger(a)?Mo(a):kl(a);case"string":return Pl(a);case"symbol":return No(a);case"boolean":return Dl(a);case"object":if(a instanceof Date)return Ll(a);if(a instanceof Uint8Array)return Il(a);if(a instanceof Oo)return No(a);default:throw Yi(a,Po)}}function go(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Yi(a,Tl);return a}function vo(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${po(t)}`).join("")}function Fo(a){return a instanceof Xs?`${po(a.value)}${vo(a.params)}`:po(a)}function Bl(a){return`(${a.value.map(Fo).join(" ")})${vo(a.params)}`}function Nl(a,e={whitespace:!0}){if(typeof a!="object")throw Yi(a,vl);const t=a instanceof Map?a.entries():Object.entries(a),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([n,i])=>{i instanceof Xs||(i=new Xs(i));let s=go(n);return i.value===!0?s+=vo(i.params):(s+="=",Array.isArray(i.value)?s+=Bl(i):s+=Fo(i)),s}).join(`,${r}`)}function Fl(a,e){return Nl(a,e)}const zl=a=>a==="ot"||a==="sf"||a==="st",$l=a=>typeof a=="number"?V(a):a!=null&&a!==""&&a!==!1;function Ul(a,e){const t=new URL(a),r=new URL(e);if(t.origin!==r.origin)return a;const n=t.pathname.split("/").slice(1),i=r.pathname.split("/").slice(1,-1);for(;n[0]===i[0];)n.shift(),i.shift();for(;i.length;)i.shift(),n.unshift("..");return n.join("/")}function jl(){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,n=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?i:i&3|8).toString(16)})}}}const $a=a=>Math.round(a),Hl=(a,e)=>(e!=null&&e.baseUrl&&(a=Ul(a,e.baseUrl)),encodeURIComponent(a)),Ua=a=>$a(a/100)*100,Gl={br:$a,d:$a,bl:Ua,dl:Ua,mtp:Ua,nor:Hl,rtp:Ua,tb:$a};function Kl(a,e){const t={};if(a==null||typeof a!="object")return t;const r=Object.keys(a).sort(),n=o({},Gl,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return r.forEach(s=>{if(i!=null&&i(s))return;let u=a[s];const f=n[s];f&&(u=f(u,e)),!(s==="v"&&u===1)&&(s=="pr"&&u===1||$l(u)&&(zl(s)&&typeof u=="string"&&(u=new Oo(u)),t[s]=u))}),t}function zo(a,e={}){return a?Fl(Kl(a,e),o({whitespace:!1},e)):""}function Wl(a,e={}){if(!a)return{};const t=Object.entries(a),r=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),n=t.reduce((i,s)=>{var u,f;const[v,x]=s,T=((u=r.find(K=>K[1].includes(v)))==null?void 0:u[0])||Cs.REQUEST;return(f=i[T])!=null||(i[T]={}),i[T][v]=x,i},{});return Object.entries(n).reduce((i,[s,u])=>(i[s]=zo(u,e),i),{})}function Zl(a,e,t){return o(a,Wl(e,t))}const Vl="CMCD";function Yl(a,e={}){if(!a)return"";const t=zo(a,e);return`${Vl}=${encodeURIComponent(t)}`}const $o=/CMCD=[^&#]+/;function Xl(a,e,t){const r=Yl(e,t);if(!r)return a;if($o.test(a))return a.replace($o,r);const n=a.includes("?")?"&":"?";return`${a}${n}${r}`}class Ql{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=n=>{try{this.apply(n,{ot:Ci.MANIFEST,su:!this.initialized})}catch(i){E.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=n=>{try{const i=n.frag,s=this.hls.levels[i.level],u=this.getObjectType(i),f={d:i.duration*1e3,ot:u};(u===Ci.VIDEO||u===Ci.AUDIO||u==Ci.MUXED)&&(f.br=s.bitrate/1e3,f.tb=this.getTopBandwidth(u)/1e3,f.bl=this.getBufferLength(u)),this.apply(n,f)}catch(i){E.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||jl(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHED,this.onMediaDetached,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHED,this.onMediaDetached,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=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 r,n;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(n=t.tracks.video)==null?void 0:n.buffer}createData(){var e;return{v:1,sf:mo.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){o(t,this.createData());const r=t.ot===Ci.INIT||t.ot===Ci.VIDEO||t.ot===Ci.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:n}=this;n&&(t=Object.keys(t).reduce((i,s)=>(n.includes(s)&&(i[s]=t[s]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Zl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Ci.TIMED_TEXT;if(e.sn==="initSegment")return Ci.INIT;if(t==="audio")return Ci.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ci.VIDEO:Ci.MUXED}getTopBandwidth(e){let t=0,r;const n=this.hls;if(e===Ci.AUDIO)r=n.audioTracks;else{const i=n.maxAutoLevel,s=i>-1?i+1:n.levels.length;r=n.levels.slice(0,s)}for(const i of r)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,r=e===Ci.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:wn.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}}const Jl=3e5;class ql{constructor(e){this.hls=void 0,this.log=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.log=E.log.bind(E,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.ERROR,this.onError,this))}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(r=>r!==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:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===mr.SendAlternateToPenaltyBox&&r.flags===nn.MoveAllAlternatesMatchingHost){const n=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:v}=t.context;u&&n?s=this.getPathwayForGroupId(u,v,s):f&&(s=f)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&n&&(i=n.reduce((u,f)=>(u.indexOf(f.pathwayId)===-1&&u.push(f.pathwayId),u),[])),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==s),r.resolved||E.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${n&&n.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}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 r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach(i=>{n-r[i]>Jl&&delete r[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in r)continue;if(s===this.pathwayId)return;const u=this.hls.nextLoadLevel,f=this.hls.levels[u];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,xn(t),this.hls.trigger(c.LEVELS_UPDATED,{levels:t});const v=this.hls.levels[u];f&&v&&this.levels&&(v.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&v.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${v.bitrate}`),this.hls.nextLoadLevel=u);break}}}getPathwayForGroupId(e,t,r){const n=this.getLevelsForPathway(r).concat(this.levels||[]);for(let i=0;i<n.length;i++)if(t===Tr.AUDIO_TRACK&&n[i].hasAudioGroup(e)||t===Tr.SUBTITLE_TRACK&&n[i].hasSubtitleGroup(e))return n[i].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},n={};e.forEach(i=>{const{ID:s,"BASE-ID":u,"URI-REPLACEMENT":f}=i;if(t.some(x=>x.pathwayId===s))return;const v=this.getLevelsForPathway(u).map(x=>{const T=new q(x.attrs);T["PATHWAY-ID"]=s;const K=T.AUDIO&&`${T.AUDIO}_clone_${s}`,se=T.SUBTITLES&&`${T.SUBTITLES}_clone_${s}`;K&&(r[T.AUDIO]=K,T.AUDIO=K),se&&(n[T.SUBTITLES]=se,T.SUBTITLES=se);const ie=jo(x.uri,T["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),de=new jn({attrs:T,audioCodec:x.audioCodec,bitrate:x.bitrate,height:x.height,name:x.name,url:ie,videoCodec:x.videoCodec,width:x.width});if(x.audioGroups)for(let xe=1;xe<x.audioGroups.length;xe++)de.addGroupId("audio",`${x.audioGroups[xe]}_clone_${s}`);if(x.subtitleGroups)for(let xe=1;xe<x.subtitleGroups.length;xe++)de.addGroupId("text",`${x.subtitleGroups[xe]}_clone_${s}`);return de});t.push(...v),Uo(this.audioTracks,r,f,s),Uo(this.subtitleTracks,n,f,s)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let n;try{n=new self.URL(e)}catch(x){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(n.protocol!=="data:"){const x=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;n.searchParams.set("_HLS_pathway",this.pathwayId),n.searchParams.set("_HLS_throughput",""+x)}const i={responseType:"json",url:n.href},s=t.steeringManifestLoadPolicy.default,u=s.errorRetry||s.timeoutRetry||{},f={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},v={onSuccess:(x,T,K,se)=>{this.log(`Loaded steering manifest: "${n}"`);const ie=x.data;if(ie.VERSION!==1){this.log(`Steering VERSION ${ie.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ie.TTL;const{"RELOAD-URI":de,"PATHWAY-CLONES":xe,"PATHWAY-PRIORITY":je}=ie;if(de)try{this.uri=new self.URL(de,n).href}catch(ut){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${de}`);return}this.scheduleRefresh(this.uri||K.url),xe&&this.clonePathways(xe);const ct={steeringManifest:ie,url:n.toString()};this.hls.trigger(c.STEERING_MANIFEST_LOADED,ct),je&&this.updatePathwayPriority(je)},onError:(x,T,K,se)=>{if(this.log(`Error loading steering manifest: ${x.code} ${x.text} (${T.url})`),this.stopLoad(),x.code===410){this.enabled=!1,this.log(`Steering manifest ${T.url} no longer available`);return}let ie=this.timeToLoad*1e3;if(x.code===429){const de=this.loader;if(typeof(de==null?void 0:de.getResponseHeader)=="function"){const xe=de.getResponseHeader("Retry-After");xe&&(ie=parseFloat(xe)*1e3)}this.log(`Steering manifest ${T.url} rate limited`);return}this.scheduleRefresh(this.uri||T.url,ie)},onTimeout:(x,T,K)=>{this.log(`Timeout loading steering manifest (${T.url})`),this.scheduleRefresh(this.uri||T.url)}};this.log(`Requesting steering manifest: ${n}`),this.loader.load(i,f,v)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const n=(r=this.hls)==null?void 0:r.media;if(n&&!n.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Uo(a,e,t,r){a&&Object.keys(e).forEach(n=>{const i=a.filter(s=>s.groupId===n).map(s=>{const u=o({},s);return u.details=void 0,u.attrs=new q(u.attrs),u.url=u.attrs.URI=jo(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),u.groupId=u.attrs["GROUP-ID"]=e[n],u.attrs["PATHWAY-ID"]=r,u});a.push(...i)})}function jo(a,e,t,r){const{HOST:n,PARAMS:i,[t]:s}=r;let u;e&&(u=s==null?void 0:s[e],u&&(a=u));const f=new self.URL(a);return n&&!u&&(f.host=n),i&&Object.keys(i).sort().forEach(v=>{v&&f.searchParams.set(v,i[v])}),f.href}const eu=/^age:\s*[\d.]+\s*$/im;class Ho{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new Fe,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,r){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=r,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0,n.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return i(r,t.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),i(r,t.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(s=>{this.callbacks.onError({code:r.status,text:s.message},t,r,n)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const n=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=r.loadPolicy;if(n)for(const u in n)e.setRequestHeader(u,n[u]);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),r.timeout=i&&V(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const n=t.readyState,i=this.config;if(!r.aborted&&n>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.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-(r.loading.first-r.loading.start)))),n===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const s=t.status,u=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const T=u!=null?u:t.response;if(T!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const K=t.responseType==="arraybuffer"?T.byteLength:T.length;if(r.loaded=r.total=K,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const se=this.callbacks.onProgress;if(se&&se(r,e,T,t),!this.callbacks)return;const ie={url:t.responseURL,data:T,code:s};this.callbacks.onSuccess(ie,r,e,t);return}}const f=i.loadPolicy.errorRetry,v=r.retry,x={url:e.url,data:void 0,code:s};In(f,v,!1,x)?this.retry(f):(E.error(`${s} while loading ${e.url}`),this.callbacks.onError({code:s,text:t.statusText},e,t,r))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(In(e,t,!0))this.retry(e);else{var r;E.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=Fn(e,r.retry),r.retry++,E.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.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&&eu.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}}function tu(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const ru=/(\d+)-(\d+)\/(\d+)/;class Go{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||au,this.controller=new self.AbortController,this.stats=new Fe}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,r){const n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();const i=nu(e,this.controller.signal),s=r.onProgress,u=e.responseType==="arraybuffer",f=u?"byteLength":"length",{maxTimeToFirstByteMs:v,maxLoadTimeMs:x}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=v&&V(v)?v:x,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},t.timeout),self.fetch(this.request).then(T=>{this.response=this.loader=T;const K=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=x,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},x-(K-n.loading.start)),!T.ok){const{status:se,statusText:ie}=T;throw new ou(ie||"fetch, bad network response",se,T)}return n.loading.first=K,n.total=su(T.headers)||n.total,s&&V(t.highWaterMark)?this.loadProgressively(T,n,e,t.highWaterMark,s):u?T.arrayBuffer():e.responseType==="json"?T.json():T.text()}).then(T=>{const K=this.response;if(!K)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const se=T[f];se&&(n.loaded=n.total=se);const ie={url:K.url,data:T,code:K.status};s&&!V(t.highWaterMark)&&s(n,e,T,K),r.onSuccess(ie,n,e,K)}).catch(T=>{if(self.clearTimeout(this.requestTimeout),n.aborted)return;const K=T&&T.code||0,se=T?T.message:null;r.onError({code:K,text:se},e,T?T.details:null,n)})}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,r,n=0,i){const s=new ta,u=e.body.getReader(),f=()=>u.read().then(v=>{if(v.done)return s.dataLength&&i(t,r,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const x=v.value,T=x.length;return t.loaded+=T,T<n||s.dataLength?(s.push(x),s.dataLength>=n&&i(t,r,s.flush(),e)):i(t,r,x,e),f()}).catch(()=>Promise.reject());return f()}}function nu(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function iu(a){const e=ru.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function su(a){const e=a.get("Content-Range");if(e){const r=iu(e);if(V(r))return r}const t=a.get("Content-Length");if(t)return parseInt(t)}function au(a,e){return new self.Request(a.url,e)}class ou extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const lu=/\s/,uu={newCue(a,e,t,r){const n=[];let i,s,u,f,v;const x=self.VTTCue||self.TextTrackCue;for(let K=0;K<r.rows.length;K++)if(i=r.rows[K],u=!0,f=0,v="",!i.isEmpty()){var T;for(let de=0;de<i.chars.length;de++)lu.test(i.chars[de].uchar)&&u?f++:(v+=i.chars[de].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const se=wo(v.trim()),ie=oo(e,t,se);a!=null&&(T=a.cues)!=null&&T.getCueById(ie)||(s=new x(e,t,se),s.id=ie,s.line=K+1,s.align="left",s.position=10+Math.min(80,Math.floor(f*8/32)*10),n.push(s))}return a&&n.length&&(n.sort((K,se)=>K.line==="auto"||se.line==="auto"?0:K.line>8&&se.line>8?se.line-K.line:K.line-se.line),n.forEach(K=>jr(a,K))),n}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Ko=oe(oe({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,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,loader:Ho,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ss,bufferController:ki,capLevelController:fo,errorController:zn,fpsController:pl,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:Bt,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},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}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},du()),{},{subtitleStreamController:Hn,subtitleTrackController:vi,timelineController:fl,audioStreamController:Kr,audioTrackController:Dn,emeController:Ys,cmcdController:Ql,contentSteeringController:ql});function du(){return{cueHandler:uu,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 hu(a,e){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 t=_o(a),r=["manifest","level","frag"],n=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(i=>{const s=`${i==="level"?"playlist":i}LoadPolicy`,u=e[s]===void 0,f=[];n.forEach(v=>{const x=`${i}Loading${v}`,T=e[x];if(T!==void 0&&u){f.push(x);const K=t[s].default;switch(e[s]={default:K},v){case"TimeOut":K.maxLoadTimeMs=T,K.maxTimeToFirstByteMs=T;break;case"MaxRetry":K.errorRetry.maxNumRetry=T,K.timeoutRetry.maxNumRetry=T;break;case"RetryDelay":K.errorRetry.retryDelayMs=T,K.timeoutRetry.retryDelayMs=T;break;case"MaxRetryTimeout":K.errorRetry.maxRetryDelayMs=T,K.timeoutRetry.maxRetryDelayMs=T;break}}}),f.length&&E.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),oe(oe({},t),e)}function _o(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(_o):Object.keys(a).reduce((e,t)=>(e[t]=_o(a[t]),e),{}):a}function fu(a){const e=a.loader;e!==Go&&e!==Ho?(E.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):tu()&&(a.loader=Go,a.progressive=!0,a.enableSoftwareAES=!0,E.log("[config]: Progressive streaming enabled, using FetchLoader"))}let bo;class mu extends ln{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(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.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 r=this.hls.config.preferManagedMediaSource,n=[],i={},s={};let u=!1,f=!1,v=!1;t.levels.forEach(x=>{var T,K;const se=x.attrs;let{audioCodec:ie,videoCodec:de}=x;((T=ie)==null?void 0:T.indexOf("mp4a.40.34"))!==-1&&(bo||(bo=/chrome|firefox/i.test(navigator.userAgent)),bo&&(x.audioCodec=ie=void 0)),ie&&(x.audioCodec=ie=rr(ie,r)),((K=de)==null?void 0:K.indexOf("avc1"))===0&&(de=x.videoCodec=br(de));const{width:xe,height:je,unknownCodecs:ct}=x;if(u||(u=!!(xe&&je)),f||(f=!!de),v||(v=!!ie),ct!=null&&ct.length||ie&&!tt(ie,"audio",r)||de&&!tt(de,"video",r))return;const{CODECS:ut,"FRAME-RATE":Nt,"HDCP-LEVEL":vt,"PATHWAY-ID":Qt,RESOLUTION:Mt,"VIDEO-RANGE":or}=se,Vt=`${`${Qt||"."}-`}${x.bitrate}-${Mt}-${Nt}-${ut}-${or}-${vt}`;if(i[Vt])if(i[Vt].uri!==x.url&&!x.attrs["PATHWAY-ID"]){const lr=s[Vt]+=1;x.attrs["PATHWAY-ID"]=new Array(lr+1).join(".");const qr=new jn(x);i[Vt]=qr,n.push(qr)}else i[Vt].addGroupId("audio",se.AUDIO),i[Vt].addGroupId("text",se.SUBTITLES);else{const lr=new jn(x);i[Vt]=lr,s[Vt]=1,n.push(lr)}}),this.filterAndSortMediaOptions(n,t,u,f,v)}filterAndSortMediaOptions(e,t,r,n,i){let s=[],u=[],f=e;if((r||n)&&i&&(f=f.filter(({videoCodec:ie,videoRange:de,width:xe,height:je})=>(!!ie||!!(xe&&je))&&un(de))),f.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const ie=new Error("no level with compatible codecs found in manifest");this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ie,reason:ie.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:ie}=this.hls.config;s=t.audioTracks.filter(de=>!de.audioCodec||tt(de.audioCodec,"audio",ie)),Wo(s)}t.subtitles&&(u=t.subtitles,Wo(u));const v=f.slice(0);f.sort((ie,de)=>{if(ie.attrs["HDCP-LEVEL"]!==de.attrs["HDCP-LEVEL"])return(ie.attrs["HDCP-LEVEL"]||"")>(de.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&ie.height!==de.height)return ie.height-de.height;if(ie.frameRate!==de.frameRate)return ie.frameRate-de.frameRate;if(ie.videoRange!==de.videoRange)return Nn.indexOf(ie.videoRange)-Nn.indexOf(de.videoRange);if(ie.videoCodec!==de.videoCodec){const xe=Tt(ie.videoCodec),je=Tt(de.videoCodec);if(xe!==je)return je-xe}if(ie.uri===de.uri&&ie.codecSet!==de.codecSet){const xe=at(ie.codecSet),je=at(de.codecSet);if(xe!==je)return je-xe}return ie.averageBitrate!==de.averageBitrate?ie.averageBitrate-de.averageBitrate:0});let x=v[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==v.length)){for(let ie=0;ie<v.length;ie++)if(v[ie].pathwayId===f[0].pathwayId){x=v[ie];break}}this._levels=f;for(let ie=0;ie<f.length;ie++)if(f[ie]===x){var T;this._firstLevel=ie;const de=x.bitrate,xe=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${de}`),((T=this.hls.userConfig)==null?void 0:T.abrEwmaDefaultEstimate)===void 0){const je=Math.min(de,this.hls.config.abrEwmaDefaultEstimateMax);je>xe&&xe===Ko.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=je)}break}const K=i&&!n,se={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:n,altAudio:!K&&s.some(ie=>!!ie.url)};this.hls.trigger(c.MANIFEST_PARSED,se),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const x=new Error("invalid level idx"),T=e<0;if(this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:b.LEVEL_SWITCH_ERROR,level:e,fatal:T,error:x,reason:x.message}),T)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,n=this.currentLevel,i=n?n.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,r===e&&s.details&&n&&i===u)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${r}${i?" with Pathway "+i:""}`);const f={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(c.LEVEL_SWITCHING,f);const v=s.details;if(!v||v.live){const x=this.switchParams(s.uri,n==null?void 0:n.details,v);this.loadPlaylist(x)}}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}onError(e,t){t.fatal||!t.context||t.context.type===Tr.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Xe.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(i=>!!r[i]))return;const n=this._levels[t.level];n!=null&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var r;const{level:n,details:i}=t,s=this._levels[n];if(!s){var u;this.warn(`Invalid level index ${n}`),(u=t.deliveryDirectives)!=null&&u.skip&&(i.deltaUpdateFailed=!0);return}n===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(n,t,s.details)):(r=t.deliveryDirectives)!=null&&r.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let n=r.uri;if(e)try{n=e.addDirectives(n)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const i=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${i?" Pathway "+i:""} ${n}`),this.clearTimer(),this.hls.trigger(c.LEVEL_LOADING,{url:n,level:t,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||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;const r=this._levels.filter((n,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(n),n===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,n.details&&n.details.fragments.forEach(s=>s.level=-1)),!1));xn(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(c.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(c.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Wo(a){const e={};a.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class pu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[r].loader;if(n){var t;if(e&&e!==((t=n.context)==null?void 0:t.frag.type))return;n.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=b.KEY_LOAD_ERROR,r,n,i){return new Wn({type:w.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:r,networkDetails:n})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:n}=e;for(let i=0;i<t.length;i++){const s=t[i];if(n<=s.cc&&(r==="initSegment"||s.sn==="initSegment"||r<s.sn)){this.emeController.selectKeySystemFormat(s).then(u=>{s.setKeyFormat(u)});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 r,n;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const v=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,b.KEY_LOAD_ERROR,v))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let u=this.keyUriToKeyInfo[s];if((r=u)!=null&&r.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if((n=u)!=null&&n.keyLoadPromise){var f;switch((f=u.mediaKeySessionContext)==null?void 0:f.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then(v=>(i.key=v.keyInfo.decryptdata.key,{frag:e,keyInfo:u}))}}switch(u=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(u,e):this.loadKeyEME(u,e);case"AES-128":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,b.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const n=this.emeController.loadKey(r);if(n)return(e.keyLoadPromise=n.then(i=>(e.mediaKeySessionContext=i,r))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,n=r.loader,i=new n(r);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,u)=>{const f={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},v=r.keyLoadPolicy.default,x={loadPolicy:v,timeout:v.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},T={onSuccess:(K,se,ie,de)=>{const{frag:xe,keyInfo:je,url:ct}=ie;if(!xe.decryptdata||je!==this.keyUriToKeyInfo[ct])return u(this.createKeyLoadError(xe,b.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),de));je.decryptdata.key=xe.decryptdata.key=new Uint8Array(K.data),xe.keyLoader=null,je.loader=null,s({frag:xe,keyInfo:je})},onError:(K,se,ie,de)=>{this.resetLoader(se),u(this.createKeyLoadError(t,b.KEY_LOAD_ERROR,new Error(`HTTP Error ${K.code} loading key ${K.text}`),ie,oe({url:f.url,data:void 0},K)))},onTimeout:(K,se,ie)=>{this.resetLoader(se),u(this.createKeyLoadError(t,b.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ie))},onAbort:(K,se,ie)=>{this.resetLoader(se),u(this.createKeyLoadError(t,b.INTERNAL_ABORTED,new Error("key loading aborted"),ie))}};i.load(f,x,T)})}resetLoader(e){const{frag:t,keyInfo:r,url:n}=e,i=r.loader;t.keyLoader===i&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],i&&i.destroy()}}function Zo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Vo(){if(!Lr())return!1;const e=Zo();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Vo())return!1;const a=Lr();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(gt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(gt(e,"audio"))))}function vu(){var a;const e=Zo();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const _u=250,ja=2,bu=.1,yu=.05;class xu{constructor(e,t,r,n){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=r,this.hls=n}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:r,media:n,stalled:i}=this;if(n===null)return;const{currentTime:s,seeking:u}=n,f=this.seeking&&!u,v=!this.seeking&&u;if(this.seeking=u,s!==e){if(this.moved=!0,u||(this.nudgeRetry=0),i!==null){if(this.stallReported){const xe=self.performance.now()-i;E.warn(`playback not stuck anymore @${s}, after ${Math.round(xe)}ms`),this.stallReported=!1}this.stalled=null}return}if(v||f){this.stalled=null;return}if(n.paused&&!u||n.ended||n.playbackRate===0||!wn.getBuffered(n).length){this.nudgeRetry=0;return}const x=wn.bufferInfo(n,s,0),T=x.nextStart||0;if(u){const xe=x.len>ja,je=!T||t&&t.start<=s||T-s>ja&&!this.fragmentTracker.getPartialFragment(s);if(xe||je)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var K;if(!(x.len>0)&&!T)return;const je=Math.max(T,x.start||0)-s,ct=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Nt=(ct==null||(K=ct.details)==null?void 0:K.live)?ct.details.targetduration*2:ja,vt=this.fragmentTracker.getPartialFragment(s);if(je>0&&(je<=Nt||vt)){n.paused||this._trySkipBufferHole(vt);return}}const se=self.performance.now();if(i===null){this.stalled=se;return}const ie=se-i;if(!u&&ie>=_u&&(this._reportStall(x),!this.media))return;const de=wn.bufferInfo(n,s,r.maxBufferHole);this._tryFixBufferStall(de,ie)}_tryFixBufferStall(e,t){const{config:r,fragmentTracker:n,media:i}=this;if(i===null)return;const s=i.currentTime,u=n.getPartialFragment(s);u&&(this._trySkipBufferHole(u)||!this.media)||(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-s<r.maxBufferHole)&&t>r.highBufferWatchdogPeriod*1e3&&(E.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:r,stallReported:n}=this;if(!n&&r){this.stallReported=!0;const i=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(e)})`);E.warn(i.message),t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:r,media:n}=this;if(n===null)return 0;const i=n.currentTime,s=wn.bufferInfo(n,i,0),u=i<s.start?s.start:s.nextStart;if(u){const f=s.len<=t.maxBufferHole,v=s.len>0&&s.len<1&&n.readyState<3,x=u-i;if(x>0&&(f||v)){if(x>t.maxBufferHole){const{fragmentTracker:K}=this;let se=!1;if(i===0){const ie=K.getAppendedFrag(0,Xe.MAIN);ie&&u<ie.end&&(se=!0)}if(!se){const ie=e||K.getAppendedFrag(i,Xe.MAIN);if(ie){let de=!1,xe=ie.end;for(;xe<u;){const je=K.getPartialFragment(xe);if(je)xe+=je.duration;else{de=!0;break}}if(de)return 0}}}const T=Math.max(u+yu,i+bu);if(E.warn(`skipping hole, adjusting currentTime from ${i} to ${T}`),this.moved=!0,this.stalled=null,n.currentTime=T,e&&!e.gap){const K=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${T}`);r.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:K,reason:K.message,frag:e})}return T}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:r,nudgeRetry:n}=this;if(r===null)return;const i=r.currentTime;if(this.nudgeRetry++,n<e.nudgeMaxRetry){const s=i+(n+1)*e.nudgeOffset,u=new Error(`Nudging 'currentTime' from ${i} to ${s}`);E.warn(u.message),r.currentTime=s,t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_NUDGE_ON_STALL,error:u,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);E.error(s.message),t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:b.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class wu extends cs{constructor(e,t,r){super(e,t,r,"[stream-controller]",Xe.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(c.ERROR,this.onError,this),e.on(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(c.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this),e.on(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(c.ERROR,this.onError,this),e.off(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(c.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this),e.off(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:r}=this;if(this.stopLoad(),this.setInterval(Eu),this.level=-1,!this.startFragRequested){let n=r.startLevel;n===-1&&(r.config.testBandwidth&&this.levels.length>1?(n=0,this.bitrateTest=!0):n=r.firstAutoLevel),r.nextLoadLevel=n,this.level=r.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=Kt.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=Kt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Kt.WAITING_LEVEL:{const{levels:t,level:r}=this,n=t==null?void 0:t[r],i=n==null?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n)){if(this.waitForCdnTuneIn(i))break;this.state=Kt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Kt.IDLE;break}break}case Kt.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:n,level:i}=this,s=n==null?void 0:n[i];this.resetStartWhenNotLoaded(s||null),this.state=Kt.IDLE}}break}this.state===Kt.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:n}=this;if(t===null||!n&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[i]))return;const s=r[i],u=this.getMainFwdBufferInfo();if(u===null)return;const f=this.getLevelDetails();if(f&&this._streamEnded(u,f)){const de={};this.altAudio&&(de.type="video"),this.hls.trigger(c.BUFFER_EOS,de),this.state=Kt.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 v=s.details;if(!v||this.state===Kt.WAITING_LEVEL||v.live&&this.levelLastLoaded!==s){this.level=i,this.state=Kt.WAITING_LEVEL;return}const x=u.len,T=this.getMaxBufferLength(s.maxBitrate);if(x>=T)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const K=this.backtrackFragment?this.backtrackFragment.start:u.end;let se=this.getNextFragment(K,v);if(this.couldBacktrack&&!this.fragPrevious&&se&&se.sn!=="initSegment"&&this.fragmentTracker.getState(se)!==ri.OK){var ie;const xe=((ie=this.backtrackFragment)!=null?ie:se).sn-v.startSN,je=v.fragments[xe-1];je&&se.cc===je.cc&&(se=je,this.fragmentTracker.removeFragment(je))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(se&&this.isLoopLoading(se,K)){if(!se.gap){const xe=this.audioOnly&&!this.altAudio?G.AUDIO:G.VIDEO,je=(xe===G.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;je&&this.afterBufferFlushed(je,xe,Xe.MAIN)}se=this.getNextFragmentLoopLoading(se,v,u,Xe.MAIN,T)}se&&(se.initSegment&&!se.initSegment.data&&!this.bitrateTest&&(se=se.initSegment),this.loadFragment(se,s,K))}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===ri.NOT_LOADED||n===ri.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):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)):(this.startFragRequested=!0,super.loadFragment(e,t,r)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Xe.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 r;const n=this.getAppendedFrag(t.currentTime);n&&n.start>1&&this.flushMainBuffer(0,n.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const u=this.getMainFwdBufferInfo();if(!u||u.len<i.targetduration*2)return}if(!t.paused&&e){const u=this.hls.nextLoadLevel,f=e[u],v=this.fragLastKbps;v&&this.fragCurrent?r=this.fragCurrent.duration*f.maxBitrate/(1e3*v)+1:r=0}else r=0;const s=this.getBufferedFrag(t.currentTime+r);if(s){const u=this.followingBufferedFrag(s);if(u){this.abortCurrentFrag();const f=u.maxStartPTS?u.maxStartPTS:u.start,v=u.duration,x=Math.max(s.end,f+Math.min(Math.max(v-this.config.maxFragLookUpTolerance,v*(this.couldBacktrack?.5:.125)),v*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(x,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 Kt.KEY_LOADING:case Kt.FRAG_LOADING:case Kt.FRAG_LOADING_WAITING_RETRY:case Kt.PARSING:case Kt.PARSED:this.state=Kt.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new xu(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;V(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let r=!1,n=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(r=r||s.indexOf("mp4a.40.2")!==-1,n=n||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&n&&!vu(),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:r}=this;if(!r||this.state!==Kt.IDLE)return;const n=r[t.level];(!n.details||n.details.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(n.details))&&(this.state=Kt.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:n}=this,i=t.level,s=t.details,u=s.totalduration;if(!n){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${u}`);const f=n[i],v=this.fragCurrent;v&&(this.state===Kt.FRAG_LOADING||this.state===Kt.FRAG_LOADING_WAITING_RETRY)&&v.level!==t.level&&v.loader&&this.abortCurrentFrag();let x=0;if(s.live||(r=f.details)!=null&&r.live){var T;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;x=this.alignPlaylists(s,f.details,(T=this.levelLastLoaded)==null?void 0:T.details)}if(f.details=s,this.levelLastLoaded=f,this.hls.trigger(c.LEVEL_UPDATED,{details:s,level:i}),this.state===Kt.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=Kt.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,x),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:n,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const u=s[r.level],f=u.details;if(!f){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const v=u.videoCodec,x=f.PTSKnown||!f.live,T=(t=r.initSegment)==null?void 0:t.data,K=this._getAudioCodec(u),se=this.transmuxer=this.transmuxer||new hr(this.hls,Xe.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ie=n?n.index:-1,de=ie!==-1,xe=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,ie,de),je=this.initPTS[r.cc];se.push(i,T,K,v,r,n,f.totalduration,x,xe,je)}onAudioTrackSwitching(e,t){const r=this.altAudio;if(!!!t.url){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();const i=this.hls;r&&(i.trigger(c.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(c.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=t.id,n=!!this.hls.audioTracks[r].url;if(n){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n,this.tick()}onBufferCreated(e,t){const r=t.tracks;let n,i,s=!1;for(const u in r){const f=r[u];if(f.id==="main"){if(i=u,n=f,u==="video"){const v=r[u];v&&(this.videoBuffer=v.buffer)}}else s=!0}s&&n?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:n}=t;if(r&&r.type!==Xe.MAIN)return;if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${n?" p: "+n.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Kt.PARSED&&(this.state=Kt.IDLE);return}const i=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}onError(e,t){var r;if(t.fatal){this.state=Kt.ERROR;return}switch(t.details){case b.FRAG_GAP:case b.FRAG_PARSING_ERROR:case b.FRAG_DECRYPT_ERROR:case b.FRAG_LOAD_ERROR:case b.FRAG_LOAD_TIMEOUT:case b.KEY_LOAD_ERROR:case b.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Xe.MAIN,t);break;case b.LEVEL_LOAD_ERROR:case b.LEVEL_LOAD_TIMEOUT:case b.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Kt.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===Tr.LEVEL&&(this.state=Kt.IDLE);break;case b.BUFFER_APPEND_ERROR:case b.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===b.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case b.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!wn.getBuffered(e).length){const r=this.state!==Kt.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=Kt.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==G.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===G.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,Xe.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const n=wn.getBuffered(e),s=(n.length?n.start(0):0)-r;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),r+=s,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${t}`),e.currentTime=r}}_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(r=>{const{hls:n}=this;if(!r||this.fragContextChanged(e))return;t.fragmentError=0,this.state=Kt.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),n.trigger(c.FRAG_LOADED,r),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r="main",{hls:n}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:v,level:x}=u,{video:T,text:K,id3:se,initSegment:ie}=i,{details:de}=x,xe=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=Kt.PARSING,ie){if(ie!=null&&ie.tracks){const ut=f.initSegment||f;this._bufferInitSegment(x,ie.tracks,ut,s),n.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:ut,id:r,tracks:ie.tracks})}const je=ie.initPTS,ct=ie.timescale;V(je)&&(this.initPTS[f.cc]={baseTime:je,timescale:ct},n.trigger(c.INIT_PTS_FOUND,{frag:f,id:r,initPTS:je,timescale:ct}))}if(T&&de&&f.sn!=="initSegment"){const je=de.fragments[f.sn-1-de.startSN],ct=f.sn===de.startSN,ut=!je||f.cc>je.cc;if(i.independent!==!1){const{startPTS:Nt,endPTS:vt,startDTS:Qt,endDTS:Mt}=T;if(v)v.elementaryStreams[T.type]={startPTS:Nt,endPTS:vt,startDTS:Qt,endDTS:Mt};else if(T.firstKeyFrame&&T.independent&&s.id===1&&!ut&&(this.couldBacktrack=!0),T.dropped&&T.independent){const or=this.getMainFwdBufferInfo(),_r=(or?or.end:this.getLoadPosition())+this.config.maxBufferHole,Vt=T.firstKeyFramePTS?T.firstKeyFramePTS:Nt;if(!ct&&_r<Vt-this.config.maxBufferHole&&!ut){this.backtrack(f);return}else ut&&(f.gap=!0);f.setElementaryStreamInfo(T.type,f.start,vt,f.start,Mt,!0)}else ct&&Nt>ja&&(f.gap=!0);f.setElementaryStreamInfo(T.type,Nt,vt,Qt,Mt),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(T,f,v,s,ct||ut)}else if(ct||ut)f.gap=!0;else{this.backtrack(f);return}}if(xe){const{startPTS:je,endPTS:ct,startDTS:ut,endDTS:Nt}=xe;v&&(v.elementaryStreams[G.AUDIO]={startPTS:je,endPTS:ct,startDTS:ut,endDTS:Nt}),f.setElementaryStreamInfo(G.AUDIO,je,ct,ut,Nt),this.bufferFragmentData(xe,f,v,s)}if(de&&se!=null&&(t=se.samples)!=null&&t.length){const je={id:r,frag:f,details:de,samples:se.samples};n.trigger(c.FRAG_PARSING_METADATA,je)}if(de&&K){const je={id:r,frag:f,details:de,samples:K.samples};n.trigger(c.FRAG_PARSING_USERDATA,je)}}_bufferInitSegment(e,t,r,n){if(this.state!==Kt.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:u}=t;if(i){let f=e.audioCodec;const v=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const x=i.metadata;x&&"channelCount"in x&&(x.channelCount||1)!==1&&v.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&v.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),e.audioCodec&&e.audioCodec!==f&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${f}"`),i.levelCodec=f,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${e.audioCodec||""}/${i.codec}]`)}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${s.codec}]`)),u&&this.log(`Init audiovideo buffer, container:${u.container}, codecs[level/parsed]=[${e.codecs}/${u.codec}]`),this.hls.trigger(c.BUFFER_CODECS,t),Object.keys(t).forEach(f=>{const x=t[f].initSegment;x!=null&&x.byteLength&&this.hls.trigger(c.BUFFER_APPENDING,{type:f,data:x,frag:r,part:null,chunkMeta:n,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Xe.MAIN)}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=Kt.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(wn.isBuffered(e,r)?t=this.getAppendedFrag(r):wn.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const n=this.fragPlaying,i=t.level;(!n||t.sn!==n.sn||n.level!==i)&&(this.fragPlaying=t,this.hls.trigger(c.FRAG_CHANGED,{frag:t}),(!n||n.level!==i)&&this.hls.trigger(c.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,r=this.currentFrag;if(r&&V(t)&&V(r.programDateTime)){const n=r.programDateTime+(t-r.start)*1e3;return new Date(n)}}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 Ts{static get version(){return"1.5.20"}static isMSESupported(){return Vo()}static isSupported(){return gu()}static getMediaSource(){return Lr()}static get Events(){return c}static get ErrorTypes(){return w}static get ErrorDetails(){return b}static get DefaultConfig(){return Ts.defaultConfig?Ts.defaultConfig:Ko}static set DefaultConfig(e){Ts.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new er,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.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ae(e.debug||!1,"Hls instance");const t=this.config=hu(Ts.DefaultConfig,e);this.userConfig=e,t.progressive&&fu(t);const{abrController:r,bufferController:n,capLevelController:i,errorController:s,fpsController:u}=t,f=new s(this),v=this.abrController=new r(this),x=this.bufferController=new n(this),T=this.capLevelController=new i(this),K=new u(this),se=new dn(this),ie=new mn(this),de=t.contentSteeringController,xe=de?new de(this):null,je=this.levelController=new mu(this,xe),ct=new Xi(this),ut=new pu(this.config),Nt=this.streamController=new wu(this,ct,ut);T.setStreamController(Nt),K.setStreamController(Nt);const vt=[se,je,Nt];xe&&vt.splice(1,0,xe),this.networkControllers=vt;const Qt=[v,x,T,K,ie,ct];this.audioTrackController=this.createController(t.audioTrackController,vt);const Mt=t.audioStreamController;Mt&&vt.push(new Mt(this,ct,ut)),this.subtitleTrackController=this.createController(t.subtitleTrackController,vt);const or=t.subtitleStreamController;or&&vt.push(new or(this,ct,ut)),this.createController(t.timelineController,Qt),ut.emeController=this.emeController=this.createController(t.emeController,Qt),this.cmcdController=this.createController(t.cmcdController,Qt),this.latencyController=this.createController(Zn,Qt),this.coreComponents=Qt,vt.push(f);const _r=f.onErrorOut;typeof _r=="function"&&this.on(c.ERROR,_r,f)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,n){this._emitter.off(e,t,r,n)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(E.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const n=e===c.ERROR;this.trigger(c.ERROR,{type:w.OTHER_ERROR,details:b.INTERNAL_EXCEPTION,fatal:n,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){E.log("destroy"),this.trigger(c.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){E.log("attachMedia"),this._media=e,this.trigger(c.MEDIA_ATTACHING,{media:e})}detachMedia(){E.log("detachMedia"),this.trigger(c.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,r=this.url,n=this.url=ye.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,E.log(`loadSource:${n}`),t&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(c.MANIFEST_LOADING,{url:e})}startLoad(e=-1){E.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){E.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){E.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){E.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){E.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){E.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){E.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){E.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){E.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){E.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){E.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 ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(E.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){vn(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 r=e.length;for(let n=0;n<r;n++)if(e[n].maxBitrate>=t)return n;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let n;if(t===-1&&e!=null&&e.length?n=e.length-1:n=t,r)for(let i=n;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=r)return i}return n}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()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||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}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Ts.defaultConfig=void 0}}]);
}());