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.
1314 lines
1.3 MiB
1314 lines
1.3 MiB
!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[5992],{70557:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},27812:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},84105:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},18785:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},73331:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},15277:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},33853:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},38819:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},47472:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},87395:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});var Z=S(96663),ie=S(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},ke=be,te=S(7657),ee=function(N,P){return ie.createElement(te.Z,(0,Z.Z)({},N,{ref:P,icon:ke}))},xe=ie.forwardRef(ee),de=xe},35593:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return Ct}});var Z=S(44127),ie=S(72071),be=S(6620),ke=S(43403),te=S(92310),ee=S.n(te),xe=S(29301),de=S(76846),a=S(96452),N=S(6089),P=S(80402),E=S(34280),c=S(49658),y=S(59301),x=S(96663),H=S(77900),V=S(8654);function k(ue){var ye=ue.prefixCls,J=ue.align,Pe=ue.arrow,$e=ue.arrowPos,O=Pe||{},ae=O.className,ve=O.content,we=$e.x,De=we===void 0?0:we,Me=$e.y,Ye=Me===void 0?0:Me,tt=y.useRef();if(!J||!J.points)return null;var Xe={position:"absolute"};if(J.autoArrow!==!1){var We=J.points[0],ht=J.points[1],Re=We[0],Ne=We[1],Ke=ht[0],Ve=ht[1];Re===Ke||!["t","b"].includes(Re)?Xe.top=Ye:Re==="t"?Xe.top=0:Xe.bottom=0,Ne===Ve||!["l","r"].includes(Ne)?Xe.left=De:Ne==="l"?Xe.left=0:Xe.right=0}return y.createElement("div",{ref:tt,className:ee()("".concat(ye,"-arrow"),ae),style:Xe},ve)}function D(ue){var ye=ue.prefixCls,J=ue.open,Pe=ue.zIndex,$e=ue.mask,O=ue.motion;return $e?y.createElement(H.default,(0,x.Z)({},O,{motionAppear:!0,visible:J,removeOnLeave:!0}),function(ae){var ve=ae.className;return y.createElement("div",{style:{zIndex:Pe},className:ee()("".concat(ye,"-mask"),ve)})}):null}var j=y.memo(function(ue){var ye=ue.children;return ye},function(ue,ye){return ye.cache}),oe=j,w=y.forwardRef(function(ue,ye){var J=ue.popup,Pe=ue.className,$e=ue.prefixCls,O=ue.style,ae=ue.target,ve=ue.onVisibleChanged,we=ue.open,De=ue.keepDom,Me=ue.fresh,Ye=ue.onClick,tt=ue.mask,Xe=ue.arrow,We=ue.arrowPos,ht=ue.align,Re=ue.motion,Ne=ue.maskMotion,Ke=ue.forceRender,Ve=ue.getPopupContainer,nt=ue.autoDestroy,ft=ue.portal,ot=ue.zIndex,_=ue.onMouseEnter,T=ue.onMouseLeave,qe=ue.onPointerEnter,G=ue.ready,ge=ue.offsetX,Nt=ue.offsetY,Te=ue.offsetR,He=ue.offsetB,Ze=ue.onAlign,Y=ue.onPrepare,ce=ue.stretch,Ee=ue.targetWidth,ze=ue.targetHeight,W=typeof J=="function"?J():J,bt=we||De,Ae=(Ve==null?void 0:Ve.length)>0,Dt=y.useState(!Ve||!Ae),Ht=(0,ie.Z)(Dt,2),Xt=Ht[0],mr=Ht[1];if((0,E.Z)(function(){!Xt&&Ae&&ae&&mr(!0)},[Xt,Ae,ae]),!Xt)return null;var Bt="auto",Ft={left:"-1000vw",top:"-1000vh",right:Bt,bottom:Bt};if(G||!we){var fr,Br=ht.points,Ur=ht.dynamicInset||((fr=ht._experimental)===null||fr===void 0?void 0:fr.dynamicInset),kr=Ur&&Br[0][1]==="r",Kt=Ur&&Br[0][0]==="b";kr?(Ft.right=Te,Ft.left=Bt):(Ft.left=ge,Ft.right=Bt),Kt?(Ft.bottom=He,Ft.top=Bt):(Ft.top=Nt,Ft.bottom=Bt)}var lr={};return ce&&(ce.includes("height")&&ze?lr.height=ze:ce.includes("minHeight")&&ze&&(lr.minHeight=ze),ce.includes("width")&&Ee?lr.width=Ee:ce.includes("minWidth")&&Ee&&(lr.minWidth=Ee)),we||(lr.pointerEvents="none"),y.createElement(ft,{open:Ke||bt,getContainer:Ve&&function(){return Ve(ae)},autoDestroy:nt},y.createElement(D,{prefixCls:$e,open:we,zIndex:ot,mask:tt,motion:Ne}),y.createElement(xe.Z,{onResize:Ze,disabled:!we},function(br){return y.createElement(H.default,(0,x.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ke,leavedClassName:"".concat($e,"-hidden")},Re,{onAppearPrepare:Y,onEnterPrepare:Y,visible:we,onVisibleChanged:function(Lr){var Yr;Re==null||(Yr=Re.onVisibleChanged)===null||Yr===void 0||Yr.call(Re,Lr),ve(Lr)}}),function(Vr,Lr){var Yr=Vr.className,xr=Vr.style,kn=ee()($e,Yr,Pe);return y.createElement("div",{ref:(0,V.sQ)(br,ye,Lr),className:kn,style:(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({"--arrow-x":"".concat(We.x||0,"px"),"--arrow-y":"".concat(We.y||0,"px")},Ft),lr),xr),{},{boxSizing:"border-box",zIndex:ot},O),onMouseEnter:_,onMouseLeave:T,onPointerEnter:qe,onClick:Ye},Xe&&y.createElement(k,{prefixCls:$e,arrow:Xe,arrowPos:We,align:ht}),y.createElement(oe,{cache:!we&&!Me},W))})}))}),K=w,se=y.forwardRef(function(ue,ye){var J=ue.children,Pe=ue.getTriggerDOMNode,$e=(0,V.Yr)(J),O=y.useCallback(function(ve){(0,V.mH)(ye,Pe?Pe(ve):ve)},[Pe]),ae=(0,V.x1)(O,J.ref);return $e?y.cloneElement(J,{ref:ae}):J}),X=se,_e=y.createContext(null),he=_e;function pe(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function Ce(ue,ye,J,Pe){return y.useMemo(function(){var $e=pe(J!=null?J:ye),O=pe(Pe!=null?Pe:ye),ae=new Set($e),ve=new Set(O);return ue&&(ae.has("hover")&&(ae.delete("hover"),ae.add("click")),ve.has("hover")&&(ve.delete("hover"),ve.add("click"))),[ae,ve]},[ue,ye,J,Pe])}var M=S(29194);function I(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],J=arguments.length>2?arguments[2]:void 0;return J?ue[0]===ye[0]:ue[0]===ye[0]&&ue[1]===ye[1]}function U(ue,ye,J,Pe){for(var $e=J.points,O=Object.keys(ue),ae=0;ae<O.length;ae+=1){var ve,we=O[ae];if(I((ve=ue[we])===null||ve===void 0?void 0:ve.points,$e,Pe))return"".concat(ye,"-placement-").concat(we)}return""}function R(ue,ye,J,Pe){return ye||(J?{motionName:"".concat(ue,"-").concat(J)}:Pe?{motionName:Pe}:null)}function q(ue){return ue.ownerDocument.defaultView}function $(ue){for(var ye=[],J=ue==null?void 0:ue.parentElement,Pe=["hidden","scroll","clip","auto"];J;){var $e=q(J).getComputedStyle(J),O=$e.overflowX,ae=$e.overflowY,ve=$e.overflow;[O,ae,ve].some(function(we){return Pe.includes(we)})&&ye.push(J),J=J.parentElement}return ye}function m(ue){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ue)?ye:ue}function v(ue){return m(parseFloat(ue),0)}function L(ue,ye){var J=(0,Z.Z)({},ue);return(ye||[]).forEach(function(Pe){if(!(Pe instanceof HTMLBodyElement||Pe instanceof HTMLHtmlElement)){var $e=q(Pe).getComputedStyle(Pe),O=$e.overflow,ae=$e.overflowClipMargin,ve=$e.borderTopWidth,we=$e.borderBottomWidth,De=$e.borderLeftWidth,Me=$e.borderRightWidth,Ye=Pe.getBoundingClientRect(),tt=Pe.offsetHeight,Xe=Pe.clientHeight,We=Pe.offsetWidth,ht=Pe.clientWidth,Re=v(ve),Ne=v(we),Ke=v(De),Ve=v(Me),nt=m(Math.round(Ye.width/We*1e3)/1e3),ft=m(Math.round(Ye.height/tt*1e3)/1e3),ot=(We-ht-Ke-Ve)*nt,_=(tt-Xe-Re-Ne)*ft,T=Re*ft,qe=Ne*ft,G=Ke*nt,ge=Ve*nt,Nt=0,Te=0;if(O==="clip"){var He=v(ae);Nt=He*nt,Te=He*ft}var Ze=Ye.x+G-Nt,Y=Ye.y+T-Te,ce=Ze+Ye.width+2*Nt-G-ge-ot,Ee=Y+Ye.height+2*Te-T-qe-_;J.left=Math.max(J.left,Ze),J.top=Math.max(J.top,Y),J.right=Math.min(J.right,ce),J.bottom=Math.min(J.bottom,Ee)}}),J}function re(ue){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,J="".concat(ye),Pe=J.match(/^(.*)\%$/);return Pe?ue*(parseFloat(Pe[1])/100):parseFloat(J)}function Ie(ue,ye){var J=ye||[],Pe=(0,ie.Z)(J,2),$e=Pe[0],O=Pe[1];return[re(ue.width,$e),re(ue.height,O)]}function Be(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ue[0],ue[1]]}function Oe(ue,ye){var J=ye[0],Pe=ye[1],$e,O;return J==="t"?O=ue.y:J==="b"?O=ue.y+ue.height:O=ue.y+ue.height/2,Pe==="l"?$e=ue.x:Pe==="r"?$e=ue.x+ue.width:$e=ue.x+ue.width/2,{x:$e,y:O}}function je(ue,ye){var J={t:"b",b:"t",l:"r",r:"l"};return ue.map(function(Pe,$e){return $e===ye?J[Pe]||"c":Pe}).join("")}function at(ue,ye,J,Pe,$e,O,ae){var ve=y.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:$e[Pe]||{}}),we=(0,ie.Z)(ve,2),De=we[0],Me=we[1],Ye=y.useRef(0),tt=y.useMemo(function(){return ye?$(ye):[]},[ye]),Xe=y.useRef({}),We=function(){Xe.current={}};ue||We();var ht=(0,N.Z)(function(){if(ye&&J&&ue){let bn=function(wn,Vn){var Qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kn,Mn=W.x+wn,Kn=W.y+Vn,Ni=Mn+fr,Gi=Kn+Ft,Si=Math.max(Mn,Qn.left),Yi=Math.max(Kn,Qn.top),ki=Math.min(Ni,Qn.right),Li=Math.min(Gi,Qn.bottom);return Math.max(0,(ki-Si)*(Li-Yi))},zr=function(){jt=W.y+ar,Jt=jt+Ft,jr=W.x+sr,pn=jr+fr};var Ke,Ve,nt=ye,ft=nt.ownerDocument,ot=q(nt),_=ot.getComputedStyle(nt),T=_.width,qe=_.height,G=_.position,ge=nt.style.left,Nt=nt.style.top,Te=nt.style.right,He=nt.style.bottom,Ze=nt.style.overflow,Y=(0,Z.Z)((0,Z.Z)({},$e[Pe]),O),ce=ft.createElement("div");(Ke=nt.parentElement)===null||Ke===void 0||Ke.appendChild(ce),ce.style.left="".concat(nt.offsetLeft,"px"),ce.style.top="".concat(nt.offsetTop,"px"),ce.style.position=G,ce.style.height="".concat(nt.offsetHeight,"px"),ce.style.width="".concat(nt.offsetWidth,"px"),nt.style.left="0",nt.style.top="0",nt.style.right="auto",nt.style.bottom="auto",nt.style.overflow="hidden";var Ee;if(Array.isArray(J))Ee={x:J[0],y:J[1],width:0,height:0};else{var ze=J.getBoundingClientRect();Ee={x:ze.x,y:ze.y,width:ze.width,height:ze.height}}var W=nt.getBoundingClientRect(),bt=ft.documentElement,Ae=bt.clientWidth,Dt=bt.clientHeight,Ht=bt.scrollWidth,Xt=bt.scrollHeight,mr=bt.scrollTop,Bt=bt.scrollLeft,Ft=W.height,fr=W.width,Br=Ee.height,Ur=Ee.width,kr={left:0,top:0,right:Ae,bottom:Dt},Kt={left:-Bt,top:-mr,right:Ht-Bt,bottom:Xt-mr},lr=Y.htmlRegion,br="visible",Vr="visibleFirst";lr!=="scroll"&&lr!==Vr&&(lr=br);var Lr=lr===Vr,Yr=L(Kt,tt),xr=L(kr,tt),kn=lr===br?xr:Yr,sn=Lr?xr:kn;nt.style.left="auto",nt.style.top="auto",nt.style.right="0",nt.style.bottom="0";var Gt=nt.getBoundingClientRect();nt.style.left=ge,nt.style.top=Nt,nt.style.right=Te,nt.style.bottom=He,nt.style.overflow=Ze,(Ve=nt.parentElement)===null||Ve===void 0||Ve.removeChild(ce);var Ut=m(Math.round(fr/parseFloat(T)*1e3)/1e3),pr=m(Math.round(Ft/parseFloat(qe)*1e3)/1e3);if(Ut===0||pr===0||(0,de.Sh)(J)&&!(0,M.Z)(J))return;var Hr=Y.offset,gr=Y.targetOffset,rn=Ie(W,Hr),Wn=(0,ie.Z)(rn,2),Qr=Wn[0],rr=Wn[1],it=Ie(Ee,gr),st=(0,ie.Z)(it,2),gt=st[0],St=st[1];Ee.x-=gt,Ee.y-=St;var mt=Y.points||[],wt=(0,ie.Z)(mt,2),_t=wt[0],Yt=wt[1],ir=Be(Yt),Qt=Be(_t),vr=Oe(Ee,ir),wr=Oe(W,Qt),Sr=(0,Z.Z)({},Y),sr=vr.x-wr.x+Qr,ar=vr.y-wr.y+rr,Wr=bn(sr,ar),Er=bn(sr,ar,xr),Xr=Oe(Ee,["t","l"]),Fr=Oe(W,["t","l"]),Or=Oe(Ee,["b","r"]),Tr=Oe(W,["b","r"]),Dr=Y.overflow||{},$r=Dr.adjustX,fn=Dr.adjustY,Gr=Dr.shiftX,Wt=Dr.shiftY,Ue=function(Vn){return typeof Vn=="boolean"?Vn:Vn>=0},jt,Jt,jr,pn;zr();var En=Ue(fn),Tn=Qt[0]===ir[0];if(En&&Qt[0]==="t"&&(Jt>sn.bottom||Xe.current.bt)){var _r=ar;Tn?_r-=Ft-Br:_r=Xr.y-Tr.y-rr;var vn=bn(sr,_r),An=bn(sr,_r,xr);vn>Wr||vn===Wr&&(!Lr||An>=Er)?(Xe.current.bt=!0,ar=_r,rr=-rr,Sr.points=[je(Qt,0),je(ir,0)]):Xe.current.bt=!1}if(En&&Qt[0]==="b"&&(jt<sn.top||Xe.current.tb)){var Jr=ar;Tn?Jr+=Ft-Br:Jr=Or.y-Fr.y-rr;var Rn=bn(sr,Jr),di=bn(sr,Jr,xr);Rn>Wr||Rn===Wr&&(!Lr||di>=Er)?(Xe.current.tb=!0,ar=Jr,rr=-rr,Sr.points=[je(Qt,0),je(ir,0)]):Xe.current.tb=!1}var Un=Ue($r),Yn=Qt[1]===ir[1];if(Un&&Qt[1]==="l"&&(pn>sn.right||Xe.current.rl)){var er=sr;Yn?er-=fr-Ur:er=Xr.x-Tr.x-Qr;var un=bn(er,ar),en=bn(er,ar,xr);un>Wr||un===Wr&&(!Lr||en>=Er)?(Xe.current.rl=!0,sr=er,Qr=-Qr,Sr.points=[je(Qt,1),je(ir,1)]):Xe.current.rl=!1}if(Un&&Qt[1]==="r"&&(jr<sn.left||Xe.current.lr)){var Ln=sr;Yn?Ln+=fr-Ur:Ln=Or.x-Fr.x-Qr;var fi=bn(Ln,ar),Xn=bn(Ln,ar,xr);fi>Wr||fi===Wr&&(!Lr||Xn>=Er)?(Xe.current.lr=!0,sr=Ln,Qr=-Qr,Sr.points=[je(Qt,1),je(ir,1)]):Xe.current.lr=!1}zr();var _n=Gr===!0?0:Gr;typeof _n=="number"&&(jr<xr.left&&(sr-=jr-xr.left-Qr,Ee.x+Ur<xr.left+_n&&(sr+=Ee.x-xr.left+Ur-_n)),pn>xr.right&&(sr-=pn-xr.right-Qr,Ee.x>xr.right-_n&&(sr+=Ee.x-xr.right+_n)));var On=Wt===!0?0:Wt;typeof On=="number"&&(jt<xr.top&&(ar-=jt-xr.top-rr,Ee.y+Br<xr.top+On&&(ar+=Ee.y-xr.top+Br-On)),Jt>xr.bottom&&(ar-=Jt-xr.bottom-rr,Ee.y>xr.bottom-On&&(ar+=Ee.y-xr.bottom+On)));var an=W.x+sr,ti=an+fr,Hn=W.y+ar,li=Hn+Ft,Gn=Ee.x,qn=Gn+Ur,Mr=Ee.y,ui=Mr+Br,xi=Math.max(an,Gn),Ei=Math.min(ti,qn),yn=(xi+Ei)/2,_i=yn-an,wi=Math.max(Hn,Mr),$t=Math.min(li,ui),jn=(wi+$t)/2,pi=jn-Hn;ae==null||ae(ye,Sr);var ci=Gt.right-W.x-(sr+W.width),Pn=Gt.bottom-W.y-(ar+W.height);Me({ready:!0,offsetX:sr/Ut,offsetY:ar/pr,offsetR:ci/Ut,offsetB:Pn/pr,arrowX:_i/Ut,arrowY:pi/pr,scaleX:Ut,scaleY:pr,align:Sr})}}),Re=function(){Ye.current+=1;var Ve=Ye.current;Promise.resolve().then(function(){Ye.current===Ve&&ht()})},Ne=function(){Me(function(Ve){return(0,Z.Z)((0,Z.Z)({},Ve),{},{ready:!1})})};return(0,E.Z)(Ne,[Pe]),(0,E.Z)(function(){ue||Ne()},[ue]),[De.ready,De.offsetX,De.offsetY,De.offsetR,De.offsetB,De.arrowX,De.arrowY,De.scaleX,De.scaleY,De.align,Re]}var et=S(19127);function rt(ue,ye,J,Pe,$e){(0,E.Z)(function(){if(ue&&ye&&J){let Ye=function(){Pe(),$e()};var O=ye,ae=J,ve=$(O),we=$(ae),De=q(ae),Me=new Set([De].concat((0,et.Z)(ve),(0,et.Z)(we)));return Me.forEach(function(tt){tt.addEventListener("scroll",Ye,{passive:!0})}),De.addEventListener("resize",Ye,{passive:!0}),Pe(),function(){Me.forEach(function(tt){tt.removeEventListener("scroll",Ye),De.removeEventListener("resize",Ye)})}}},[ue,ye,J])}var Tt=S(48736),At=S(16089);function Ot(ue,ye,J,Pe,$e,O,ae,ve){var we=y.useRef(ue),De=y.useRef(!1);we.current!==ue&&(De.current=!0,we.current=ue),y.useEffect(function(){var Me=(0,At.Z)(function(){De.current=!1});return function(){At.Z.cancel(Me)}},[ue]),y.useEffect(function(){if(ye&&Pe&&(!$e||O)){var Me=function(){var G=!1,ge=function(He){var Ze=He.target;G=ae(Ze)},Nt=function(He){var Ze=He.target;!De.current&&we.current&&!G&&!ae(Ze)&&ve(!1)};return[ge,Nt]},Ye=Me(),tt=(0,ie.Z)(Ye,2),Xe=tt[0],We=tt[1],ht=Me(),Re=(0,ie.Z)(ht,2),Ne=Re[0],Ke=Re[1],Ve=q(Pe);Ve.addEventListener("mousedown",Xe,!0),Ve.addEventListener("click",We,!0),Ve.addEventListener("contextmenu",We,!0);var nt=(0,a.A)(J);if(nt&&(nt.addEventListener("mousedown",Ne,!0),nt.addEventListener("click",Ke,!0),nt.addEventListener("contextmenu",Ke,!0)),0)var ft,ot,_,T;return function(){Ve.removeEventListener("mousedown",Xe,!0),Ve.removeEventListener("click",We,!0),Ve.removeEventListener("contextmenu",We,!0),nt&&(nt.removeEventListener("mousedown",Ne,!0),nt.removeEventListener("click",Ke,!0),nt.removeEventListener("contextmenu",Ke,!0))}}},[ye,J,Pe,$e,O])}var yt=["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 ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ke.Z,ye=y.forwardRef(function(J,Pe){var $e=J.prefixCls,O=$e===void 0?"rc-trigger-popup":$e,ae=J.children,ve=J.action,we=ve===void 0?"hover":ve,De=J.showAction,Me=J.hideAction,Ye=J.popupVisible,tt=J.defaultPopupVisible,Xe=J.onPopupVisibleChange,We=J.afterPopupVisibleChange,ht=J.mouseEnterDelay,Re=J.mouseLeaveDelay,Ne=Re===void 0?.1:Re,Ke=J.focusDelay,Ve=J.blurDelay,nt=J.mask,ft=J.maskClosable,ot=ft===void 0?!0:ft,_=J.getPopupContainer,T=J.forceRender,qe=J.autoDestroy,G=J.destroyPopupOnHide,ge=J.popup,Nt=J.popupClassName,Te=J.popupStyle,He=J.popupPlacement,Ze=J.builtinPlacements,Y=Ze===void 0?{}:Ze,ce=J.popupAlign,Ee=J.zIndex,ze=J.stretch,W=J.getPopupClassNameFromAlign,bt=J.fresh,Ae=J.alignPoint,Dt=J.onPopupClick,Ht=J.onPopupAlign,Xt=J.arrow,mr=J.popupMotion,Bt=J.maskMotion,Ft=J.popupTransitionName,fr=J.popupAnimation,Br=J.maskTransitionName,Ur=J.maskAnimation,kr=J.className,Kt=J.getTriggerDOMNode,lr=(0,be.Z)(J,yt),br=qe||G||!1,Vr=y.useState(!1),Lr=(0,ie.Z)(Vr,2),Yr=Lr[0],xr=Lr[1];(0,E.Z)(function(){xr((0,c.Z)())},[]);var kn=y.useRef({}),sn=y.useContext(he),Gt=y.useMemo(function(){return{registerSubPopup:function(tr,Kr){kn.current[tr]=Kr,sn==null||sn.registerSubPopup(tr,Kr)}}},[sn]),Ut=(0,P.Z)(),pr=y.useState(null),Hr=(0,ie.Z)(pr,2),gr=Hr[0],rn=Hr[1],Wn=(0,N.Z)(function(or){(0,de.Sh)(or)&&gr!==or&&rn(or),sn==null||sn.registerSubPopup(Ut,or)}),Qr=y.useState(null),rr=(0,ie.Z)(Qr,2),it=rr[0],st=rr[1],gt=y.useRef(null),St=(0,N.Z)(function(or){(0,de.Sh)(or)&&it!==or&&(st(or),gt.current=or)}),mt=y.Children.only(ae),wt=(mt==null?void 0:mt.props)||{},_t={},Yt=(0,N.Z)(function(or){var tr,Kr,Cn=it;return(Cn==null?void 0:Cn.contains(or))||((tr=(0,a.A)(Cn))===null||tr===void 0?void 0:tr.host)===or||or===Cn||(gr==null?void 0:gr.contains(or))||((Kr=(0,a.A)(gr))===null||Kr===void 0?void 0:Kr.host)===or||or===gr||Object.values(kn.current).some(function(qr){return(qr==null?void 0:qr.contains(or))||or===qr})}),ir=R(O,mr,fr,Ft),Qt=R(O,Bt,Ur,Br),vr=y.useState(tt||!1),wr=(0,ie.Z)(vr,2),Sr=wr[0],sr=wr[1],ar=Ye!=null?Ye:Sr,Wr=(0,N.Z)(function(or){Ye===void 0&&sr(or)});(0,E.Z)(function(){sr(Ye||!1)},[Ye]);var Er=y.useRef(ar);Er.current=ar;var Xr=y.useRef([]);Xr.current=[];var Fr=(0,N.Z)(function(or){var tr;Wr(or),((tr=Xr.current[Xr.current.length-1])!==null&&tr!==void 0?tr:ar)!==or&&(Xr.current.push(or),Xe==null||Xe(or))}),Or=y.useRef(),Tr=function(){clearTimeout(Or.current)},Dr=function(tr){var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tr(),Kr===0?Fr(tr):Or.current=setTimeout(function(){Fr(tr)},Kr*1e3)};y.useEffect(function(){return Tr},[]);var $r=y.useState(!1),fn=(0,ie.Z)($r,2),Gr=fn[0],Wt=fn[1];(0,E.Z)(function(or){(!or||ar)&&Wt(!0)},[ar]);var Ue=y.useState(null),jt=(0,ie.Z)(Ue,2),Jt=jt[0],jr=jt[1],pn=y.useState([0,0]),En=(0,ie.Z)(pn,2),Tn=En[0],_r=En[1],vn=function(tr){_r([tr.clientX,tr.clientY])},An=at(ar,gr,Ae?Tn:it,He,Y,ce,Ht),Jr=(0,ie.Z)(An,11),Rn=Jr[0],di=Jr[1],Un=Jr[2],Yn=Jr[3],er=Jr[4],un=Jr[5],en=Jr[6],Ln=Jr[7],fi=Jr[8],Xn=Jr[9],_n=Jr[10],On=Ce(Yr,we,De,Me),an=(0,ie.Z)(On,2),ti=an[0],Hn=an[1],li=ti.has("click"),Gn=Hn.has("click")||Hn.has("contextMenu"),qn=(0,N.Z)(function(){Gr||_n()}),Mr=function(){Er.current&&Ae&&Gn&&Dr(!1)};rt(ar,it,gr,qn,Mr),(0,E.Z)(function(){qn()},[Tn,He]),(0,E.Z)(function(){ar&&!(Y!=null&&Y[He])&&qn()},[JSON.stringify(ce)]);var ui=y.useMemo(function(){var or=U(Y,O,Xn,Ae);return ee()(or,W==null?void 0:W(Xn))},[Xn,W,Y,O,Ae]);y.useImperativeHandle(Pe,function(){return{nativeElement:gt.current,forceAlign:qn}});var xi=y.useState(0),Ei=(0,ie.Z)(xi,2),yn=Ei[0],_i=Ei[1],wi=y.useState(0),$t=(0,ie.Z)(wi,2),jn=$t[0],pi=$t[1],ci=function(){if(ze&&it){var tr=it.getBoundingClientRect();_i(tr.width),pi(tr.height)}},Pn=function(){ci(),qn()},bn=function(tr){Wt(!1),_n(),We==null||We(tr)},zr=function(){return new Promise(function(tr){ci(),jr(function(){return tr})})};(0,E.Z)(function(){Jt&&(_n(),Jt(),jr(null))},[Jt]);function wn(or,tr,Kr,Cn){_t[or]=function(qr){var ni;Cn==null||Cn(qr),Dr(tr,Kr);for(var ji=arguments.length,Bi=new Array(ji>1?ji-1:0),yi=1;yi<ji;yi++)Bi[yi-1]=arguments[yi];(ni=wt[or])===null||ni===void 0||ni.call.apply(ni,[wt,qr].concat(Bi))}}(li||Gn)&&(_t.onClick=function(or){var tr;Er.current&&Gn?Dr(!1):!Er.current&&li&&(vn(or),Dr(!0));for(var Kr=arguments.length,Cn=new Array(Kr>1?Kr-1:0),qr=1;qr<Kr;qr++)Cn[qr-1]=arguments[qr];(tr=wt.onClick)===null||tr===void 0||tr.call.apply(tr,[wt,or].concat(Cn))}),Ot(ar,Gn,it,gr,nt,ot,Yt,Dr);var Vn=ti.has("hover"),Qn=Hn.has("hover"),Mn,Kn;Vn&&(wn("onMouseEnter",!0,ht,function(or){vn(or)}),wn("onPointerEnter",!0,ht,function(or){vn(or)}),Mn=function(tr){(ar||Gr)&&gr!==null&&gr!==void 0&&gr.contains(tr.target)&&Dr(!0,ht)},Ae&&(_t.onMouseMove=function(or){var tr;(tr=wt.onMouseMove)===null||tr===void 0||tr.call(wt,or)})),Qn&&(wn("onMouseLeave",!1,Ne),wn("onPointerLeave",!1,Ne),Kn=function(){Dr(!1,Ne)}),ti.has("focus")&&wn("onFocus",!0,Ke),Hn.has("focus")&&wn("onBlur",!1,Ve),ti.has("contextMenu")&&(_t.onContextMenu=function(or){var tr;Er.current&&Hn.has("contextMenu")?Dr(!1):(vn(or),Dr(!0)),or.preventDefault();for(var Kr=arguments.length,Cn=new Array(Kr>1?Kr-1:0),qr=1;qr<Kr;qr++)Cn[qr-1]=arguments[qr];(tr=wt.onContextMenu)===null||tr===void 0||tr.call.apply(tr,[wt,or].concat(Cn))}),kr&&(_t.className=ee()(wt.className,kr));var Ni=(0,Z.Z)((0,Z.Z)({},wt),_t),Gi={},Si=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Si.forEach(function(or){lr[or]&&(Gi[or]=function(){for(var tr,Kr=arguments.length,Cn=new Array(Kr),qr=0;qr<Kr;qr++)Cn[qr]=arguments[qr];(tr=Ni[or])===null||tr===void 0||tr.call.apply(tr,[Ni].concat(Cn)),lr[or].apply(lr,Cn)})});var Yi=y.cloneElement(mt,(0,Z.Z)((0,Z.Z)({},Ni),Gi)),ki={x:un,y:en},Li=Xt?(0,Z.Z)({},Xt!==!0?Xt:{}):null;return y.createElement(y.Fragment,null,y.createElement(xe.Z,{disabled:!ar,ref:St,onResize:Pn},y.createElement(X,{getTriggerDOMNode:Kt},Yi)),y.createElement(he.Provider,{value:Gt},y.createElement(K,{portal:ue,ref:Wn,prefixCls:O,popup:ge,className:ee()(Nt,ui),style:Te,target:it,onMouseEnter:Mn,onMouseLeave:Kn,onPointerEnter:Mn,zIndex:Ee,open:ar,keepDom:Gr,fresh:bt,onClick:Dt,mask:nt,motion:ir,maskMotion:Qt,onVisibleChanged:bn,onPrepare:zr,forceRender:T,autoDestroy:br,getPopupContainer:_,align:Xn,arrow:Li,arrowPos:ki,ready:Rn,offsetX:di,offsetY:Un,offsetR:Yn,offsetB:er,onAlign:qn,stretch:ze,targetWidth:yn/Ln,targetHeight:jn/fi})))});return ye}var Ct=Rt(ke.Z)},50304:function(){"use strict"},8797:function(Mt,Qe,S){"use strict";var Z=S(59301),ie=S(93314),be=S(3113),ke=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,N=(y,x,H)=>x in y?ke(y,x,{enumerable:!0,configurable:!0,writable:!0,value:H}):y[x]=H,P=(y,x)=>{for(var H in x||(x={}))de.call(x,H)&&N(y,H,x[H]);if(xe)for(var H of xe(x))a.call(x,H)&&N(y,H,x[H]);return y},E=(y,x)=>te(y,ee(x));const c=({img:y,buttonProps:x={},styles:H={},customText:V,ButtonText:k,ButtonClick:D,Buttonclass:j,ButtonTwo:oe,imgStyles:w,loading:K=!1})=>Z.createElement("section",{className:"tc animated fadeIn",style:P(P({},{color:"#999",margin:"100px auto",visibility:K?"hidden":"visible"}),H)},Z.createElement("img",{src:y||ie,style:E(P({},w),{pointerEvents:"none",userSelect:"none"})}),Z.createElement("p",{className:"mt20 font14"},V||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),k&&Z.createElement(be.ZP,P({className:j,onClick:D},x),k),oe&&oe);Qe.Z=c},23210:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return j}});var Z=S(59301),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},be=S(3113),ke=S(70557),te=S(23954),ee=S(6848),xe=S(955),de=S(94941),a=S(8797),N=S(3294),P=S(19381),E=S(59301),c=Object.defineProperty,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,V=(oe,w,K)=>w in oe?c(oe,w,{enumerable:!0,configurable:!0,writable:!0,value:K}):oe[w]=K,k=(oe,w)=>{for(var K in w||(w={}))x.call(w,K)&&V(oe,K,w[K]);if(y)for(var K of y(w))H.call(w,K)&&V(oe,K,w[K]);return oe},D=(oe,w,K)=>new Promise((se,X)=>{var _e=Ce=>{try{pe(K.next(Ce))}catch(M){X(M)}},he=Ce=>{try{pe(K.throw(Ce))}catch(M){X(M)}},pe=Ce=>Ce.done?se(Ce.value):Promise.resolve(Ce.value).then(_e,he);pe((K=K.apply(oe,w)).next())}),j=({editOffice:oe="view",data:w,theme:K,type:se,filename:X,monacoEditor:_e,className:he,style:pe,close:Ce,onClose:M,hasMask:I,disabledDownload:U,onImgDimensions:R,showNodata:q,recordInfo:$})=>{const[m,v]=(0,Z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[L,re]=(0,Z.useState)(""),[Ie,Be]=(0,Z.useState)(),Oe=window.ENV==="build"?"/react/build":"",je=location.host.startsWith("localhost")?N.Z.PROXY_SERVER:N.Z.API_SERVER,et=10*(1024*1024),rt=(0,Z.useRef)();w!=null&&w.startsWith("/api")&&se!=="txt"&&(w=N.Z.API_SERVER+w);const Tt=Rt=>Rt.substring(Rt.lastIndexOf("/")+1).split(".").pop();X&&_e&&(_e.filename=X),(0,Z.useEffect)(()=>{var Rt,Ct;const ue=(Ct=(Rt=document.cookie)==null?void 0:Rt.replace(/\s/g,""))==null?void 0:Ct.split(";");ue==null||ue.map(ye=>{let J=ye.split("=");J[0]==="_educoder_session"&&re(J[1])})},[]),(0,Z.useEffect)(()=>{se==="office"&&(w.indexOf("bigfilescdn.")>-1||w.indexOf("bigfiles1")>-1?Be({url:w,fileType:Tt(w),model:w.indexOf("model=edit")?"edit":"view"}):At())},[se,w]);const At=()=>D(void 0,null,function*(){console.log("data:",w);let Rt=w;w.startsWith("http")||(Rt=location.origin+Rt);let Ct=new URL(Rt).pathname.split("/").pop();const ue=yield(0,de.gJ)({attachment_id:Ct});ue.url=je+ue.url,Be(ue)}),Ot=()=>{if(w.startsWith("http")||w.startsWith("blob:")){yt();return}(0,xe.Sv)(X||"educoder",w,X)},yt=()=>{$&&(0,P.fc)({id:$==null?void 0:$.id,watch_type:1,course_id:$==null?void 0:$.course_id}),(0,xe.Nd)(X||"educoder",decodeURIComponent(w))};return E.createElement("div",{style:k({},pe||{}),className:`${I&&ie.bgBlack} ${se?ie.wrp:"hide"}`},Ce&&E.createElement("div",{className:ie.close,ref:rt},!!R&&E.createElement(ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>rt.current},E.createElement("span",{onClick:()=>{M(),R()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!U&&E.createElement(ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>rt.current},E.createElement("span",{onClick:yt},E.createElement("i",{className:"icon-quxiaozhiding"}))),E.createElement(ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>rt.current},E.createElement("span",{className:"",onClick:M},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${ie[he]} ${he} ${ie.monaco} ${se==="txt"?"show":"hide"}`},se==="txt"&&E.createElement(E.Fragment,null,E.createElement(te.ZP,k({},_e)))),se==="audio"&&E.createElement("audio",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${w}`,autoPlay:!0}),se==="video"&&E.createElement(E.Fragment,null,(w==null?void 0:w.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${w}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${w}`,autoPlay:!0})),se==="office"&&Ie&&E.createElement("iframe",{src:`${Oe}/office.html?key=${Ie.key}&url=${btoa(Ie.url)}&callbackUrl=${je+(Ie.callbackUrl||"")}&fileType=${Ie.fileType}&title=${Ie.title||""}&model=${oe}&officeServer=${N.Z.ONLYOFFICE}&disabledDownload=${!!U}`}),se==="html"&&E.createElement("iframe",{src:w+"&disposition=inline"}),se==="pdf"&&E.createElement("iframe",{src:`${Oe}/js/pdfview/index.html?filename=${X||"educoder.pdf"}&url=${encodeURIComponent(w)}&disabledDownload=${!!U}`}),se==="image"&&E.createElement("img",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,"}${w}`}),(se==="other"||se==="download")&&E.createElement(E.Fragment,null,q?E.createElement(a.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:E.createElement(be.ZP,{icon:E.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ot,disabled:U},"\u4E0B\u8F7D")}):E.createElement(be.ZP,{type:"primary",size:"middle",onClick:Ot,disabled:U},E.createElement(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Mt,Qe,S){"use strict";S.d(Qe,{z:function(){return se},Z:function(){return X}});var Z=S(59301),ie=S(50304),be=S(24768),ke=S(64018),te=S(40846),ee=S(3294),xe=S(955),de=S(15342),a=S(1012),N=S(23210),P=S(59301),c=({html:_e})=>{const he=(0,Z.useRef)(null),pe=(0,Z.useRef)(null),Ce=`.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,Z.useEffect)(()=>{const M=he.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=_e,M.appendChild(pe.current);const I=document.createElement("style");return I.textContent=Ce,M.appendChild(I),()=>{M.innerHTML=""}},[]),(0,Z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=_e)},[_e]),P.createElement("div",{ref:he})},y=Object.defineProperty,x=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,k=(_e,he,pe)=>he in _e?y(_e,he,{enumerable:!0,configurable:!0,writable:!0,value:pe}):_e[he]=pe,D=(_e,he)=>{for(var pe in he||(he={}))H.call(he,pe)&&k(_e,pe,he[pe]);if(x)for(var pe of x(he))V.call(he,pe)&&k(_e,pe,he[pe]);return _e};const j="@\u2581\u2581@",oe="@\u2581@",w=/<pre[^>]*>/g;function K(_e){let he=document.createElement("div");return he.innerHTML=_e,he.childNodes.length===0?"":he.childNodes[0].nodeValue}const se=(_e,he)=>{_e=_e||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ce=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,M=/\(\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 he?_e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(U,R,q,$,m,v,L)=>{const re=R||$||v,Ie=q||m||L||"?";return ee.Z.API_SERVER+"/api/attachments/"+re+Ie+"&t="+(0,xe.Jn)(re,Date.now())+(U.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_e=_e.replace(I,(U,R,q,$,m,v,L)=>{const re=R||$||v,Ie=q||m||L||"?";return ee.Z.API_SERVER+"/attachments/download/"+re+Ie+"&t="+(0,xe.Jn)(re,Date.now())+(U.indexOf(")")>-1?")":"&")}).replace(pe,(U,R,q,$,m,v,L)=>{const re=R||$||v,Ie=q||m||L||"?";return ee.Z.API_SERVER+"/api/attachments/"+re+Ie+"&t="+(0,xe.Jn)(re,Date.now())+(U.indexOf(")")>-1?")":"&")}).replace(Ce,(U,R,q,$,m)=>{const v=R||$,L=q||m||"";return'"'+ee.Z.API_SERVER+"/api/attachments/"+v+L+v+L+"&t="+(0,xe.Jn)(v,Date.now())}).replace(M,(U,R,q,$,m)=>{const v=R||$,L=q||m||"";return"("+ee.Z.API_SERVER+"/files/uploads/"+v+L+v+L+"&t="+(0,xe.Jn)(v,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,`
|
|
`),_e)};var X=({value:_e="",className:he,showTextOnly:pe,showLines:Ce,style:M={},stylesPrev:I={},highlightKeywords:U,showProgramFill:R,isProgramFill:q,disabledFill:$=!1,programFillValue:m,onFillChange:v=Ie=>{},onFillBlur:L=()=>{},onFillFocus:re=()=>{}})=>{let Ie=String(_e);const[Be,Oe]=(0,Z.useState)(""),[je,at]=(0,Z.useState)("office"),[et,rt]=(0,Z.useState)([]),Tt=(0,Z.useRef)("a"+(0,a.Z)()),At={},Ot=(we,De,Me)=>{const Ye=document.createElement(we===oe?"input":"textarea");Ye.style.width="100%",Ye.style.height=we===oe?"40px":"151px",Ye.rows=5,Ye.spellcheck=!1,Ye.name="edu-program-fill",Ye.placeholder="\u8BF7\u8F93\u5165",Ye.dataset.id=De;const tt=Object.keys(At).length;return At[tt]=Ye,`<span class="edu-program-fill-wrap ${we===oe?"":"show"}" style="width:${we===oe?"400px":"100%"}" title=${Me||""}><span>${Ye.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function yt(we){return we=we.replace(/!\[.*?\]\(.*?\)/g,""),we=we.replace(/\[.*?\]\(.*?\)/g,""),we=we.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),we=we.replace(/<embed.*?>/g,""),we=we.replace(/<img.*?>/g,""),we=we.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),we=we.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),we=we.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),we=we.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),we}const Rt=we=>we.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(De,Me){let Ye=Me.replace(/(\n|\r)/g,"").split("}"),tt=[];return Ye.map(Xe=>{Xe!=""&&tt.push(`.${Tt.current} ${Xe}`)}),`<style>${tt.join("}")}</style>`}),Ct=(0,Z.useMemo)(()=>{try{const Ye=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,tt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,We=/\(\/attachments\/download\//g;Ie=Ie.replace(We,"("+ee.Z.API_SERVER+"/attachments/download/").replace(Ye,"("+ee.Z.API_SERVER+"/api/attachments/").replace(tt,'"'+ee.Z.API_SERVER+"/api/attachments/").replace(Xe,'"'+ee.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(Ye){}if(R){let Ye=-1;return Ie=Ie.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(tt,Xe,We){var ht;return++Ye,Ot(tt,Ye,(ht=m==null?void 0:m[Ye])==null?void 0:ht.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Rt(Ie||"")}</pre>`}let we=Rt(Ie);we=(0,be.ZP)(we);const De=(0,be.ez)();Ie.match(/\[TOC\]/)&&(we=we.replace("<p>[TOC]</p>",(0,be.Qv)()),(0,be.Iy)()),we=we.replace(/(__special_katext_id_\d+__)/g,(Ye,tt)=>{const{type:Xe,expression:We}=De[tt];return(0,de.renderToString)(K(We)||"",{displayMode:Xe==="block",throwOnError:!1,output:"html"})}),we=we.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,be.AL)();const Me=document.createElement("div");if(Me.innerHTML=we,pe)return Me.innerText;if(U){const Ye=U.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Pe(Me,Ye),Me.innerHTML}return setTimeout(()=>ae(),500),Me.innerHTML},[Ie,U]);(0,Z.useEffect)(()=>{$e.current&&$e.current.querySelectorAll(["input","textarea"]).forEach(De=>{De.oninput=ue,De.onblur=ye,De.onfocus=J})},[et]),(0,Z.useEffect)(()=>{var we,De,Me,Ye,tt;if(m!=null&&m.length)try{const Xe=$e.current.querySelectorAll(".edu-program-fill-score"),We=$e.current.querySelectorAll('[name="edu-program-fill"]');for(const[ht,Re]of We.entries())Re.value=((we=m==null?void 0:m[ht])==null?void 0:we.value)||"",((De=m==null?void 0:m[ht])==null?void 0:De.type)==="warning"?Re.className="program-fill-warning":((Me=m==null?void 0:m[ht])==null?void 0:Me.type)==="success"?Re.className="program-fill-success":Re.className="";for(const[ht,Re]of Xe.entries())Re.innerHTML=(Ye=m==null?void 0:m[ht])!=null&&Ye.score?`${(tt=m==null?void 0:m[ht])==null?void 0:tt.score}\u5206`:"";rt(m)}catch(Xe){console.log(Xe,"error")}},[m]);const ue=we=>{et[we.target.dataset.id]=et[we.target.dataset.id]||{},et[we.target.dataset.id].value=we.target.value,rt([...et]),v(et,we.target.dataset.id)},ye=we=>{et[we.target.dataset.id]=et[we.target.dataset.id]||{},et[we.target.dataset.id].value=we.target.value,rt([...et]),L(et,we.target.dataset.id)},J=we=>{et[we.target.dataset.id]=et[we.target.dataset.id]||{},et[we.target.dataset.id].value=we.target.value,rt([...et]),re(et,we.target.dataset.id)};function Pe(we,De){return we.childNodes.forEach(Me=>{var Ye;if(Me.childNodes.length>0)Pe(Me,De);else if(Me.nodeName!=="IMG")if(Me.innerHTML)Me.innerHTML=(Ye=Me.innerHTML)==null?void 0:Ye.replace(new RegExp(De,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const tt=document.createElement("span");tt.innerHTML=Me.textContent.replace(new RegExp(De,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Me.replaceWith(tt)}})}const $e=(0,Z.useRef)();be.jb.WebkitLineClamp=Ce,Ce&&(M=D(D({},M),be.jb));function O(we){let De=we.target;if(De.tagName.toUpperCase()==="A"){let Me=De.getAttribute("href");if(Me.indexOf("office")>-1)we.preventDefault(),Oe(Me),at("office");else if(Me.indexOf("application/pdf")>-1)we.preventDefault(),Oe(Me),at("pdf");else if(Me.indexOf("text/html")>-1)we.preventDefault(),Oe(Me),at("html");else if(Me.startsWith("#")){we.preventDefault();let Ye=document.getElementById(Me.replace("#",""));Ye&&Ye.scrollIntoView(!0)}}}const ae=()=>{var we;const De=(we=$e.current)==null?void 0:we.querySelectorAll("video");De==null||De.forEach(Me=>{if(Me.oncontextmenu=()=>!1,Me.src.indexOf(".m3u8")>-1&&!Me.canPlayType("application/vnd.apple.mpegurl")){if(te.ZP.isSupported()){var Ye=new te.ZP;Ye.loadSource(Me.src),Ye.attachMedia(Me)}}})};(0,Z.useEffect)(()=>{if($e.current&&Ct&&Ct.match(w)&&window.PR.prettyPrint(),$e.current)return $e.current.addEventListener("click",O),()=>{var we;(we=$e.current)==null||we.removeEventListener("click",O),(0,be.AL)(),(0,be.Iy)()}},[Ct,$e.current,O]),(0,Z.useEffect)(()=>{var we;const De=Me=>{Me.preventDefault(),Me.clipboardData.setData("text",window.getSelection().toString())};return(we=$e.current)==null||we.addEventListener("copy",De),()=>{var Me;(Me=$e.current)==null||Me.removeEventListener("copy",De)}},[$e.current]);const ve=we=>/<style[\s\S]*?>/i.test(we||"");return Z.createElement(Z.Fragment,null,pe&&Z.createElement("div",{ref:$e},Ct),!pe&&!ve(Ct)&&Z.createElement("div",{ref:$e,style:D({},M),className:`${he||""} ${$?"disabled-fill":""} markdown-body ${Tt.current}`,dangerouslySetInnerHTML:{__html:Ct}}),!pe&&ve(Ct)&&Z.createElement(c,{html:Ct}),Z.createElement(N.Z,{close:!0,data:Be,type:Be!=null&&Be.length?je:"",style:D({},I),onClose:()=>Oe("")}))}},23954:function(Mt,Qe,S){"use strict";S.d(Qe,{SV:function(){return $e},ZP:function(){return Pe}});var Z=S(59301),ie=S(76374);const be={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"]},ke={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"]},te={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(`
|
|
`)}]},ee={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(`
|
|
`)}]},xe={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 de=S(53184),a=S.n(de),N=Object.defineProperty,P=Object.defineProperties,E=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,H=(O,ae,ve)=>ae in O?N(O,ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):O[ae]=ve,V=(O,ae)=>{for(var ve in ae||(ae={}))y.call(ae,ve)&&H(O,ve,ae[ve]);if(c)for(var ve of c(ae))x.call(ae,ve)&&H(O,ve,ae[ve]);return O},k=(O,ae)=>P(O,E(ae)),D=(O,ae,ve)=>new Promise((we,De)=>{var Me=Xe=>{try{tt(ve.next(Xe))}catch(We){De(We)}},Ye=Xe=>{try{tt(ve.throw(Xe))}catch(We){De(We)}},tt=Xe=>Xe.done?we(Xe.value):Promise.resolve(Xe.value).then(Me,Ye);tt((ve=ve.apply(O,ae)).next())});const j={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"]}},oe=(O,ae)=>ae.map(ve=>({label:ve,kind:O.languages.CompletionItemKind.Keyword,insertText:ve})),w=O=>Object.keys(j.tables).map(ae=>({label:ae,kind:O.languages.CompletionItemKind.Variable,insertText:ae})),K=(O,ae)=>{const ve=j.tables[O];return ve?ve.map(we=>({label:we,kind:ae.languages.CompletionItemKind.Field,insertText:we})):[]};function se(O,ae,ve,we,De){let Me=ae.getWordUntilPosition(ve),Ye={startLineNumber:ve.lineNumber,endLineNumber:ve.lineNumber,startColumn:Me.startColumn,endColumn:Me.endColumn},tt=we.map(Xe=>({label:Xe,kind:O.languages.CompletionItemKind.Keyword,insertText:Xe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}));return De.map(Xe=>{tt.push(k(V({},Xe),{range:Ye}))}),tt}var X=O=>{j.languages.map(De=>(O.languages.registerDocumentFormattingEditProvider(De,{provideDocumentFormattingEdits(Me,Ye,tt){return D(this,null,function*(){const Xe=a()(Me.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:Me.getFullModelRange(),text:Xe}]})}}),De));const ae=te.quickKey.map(De=>({label:De.label,kind:O.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ve=ee.quickKey.map(De=>({label:De.label,kind:O.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),we=ke.quickKey.map(De=>({label:De.label,kind:O.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet}));O.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(De,Me){var Ye=De.getWordUntilPosition(Me),tt={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Xe=De.getLineContent(Me.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...te.keywords.map(We=>({label:We,kind:O.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt})),...te.quickKey.map(We=>({label:We.label,kind:O.languages.CompletionItemKind.Function,documentation:We.content,insertText:Xe.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt}))]}}}),O.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(De,Me){var Ye=De.getWordUntilPosition(Me),tt={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn};return{suggestions:[...be.keywords.map(Xe=>({label:Xe,kind:O.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt}))]}}}),O.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(De,Me){var Ye=De.getWordUntilPosition(Me),tt={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Xe=De.getLineContent(Me.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...ke.keywords.map(We=>({label:We,kind:O.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt})),...ke.quickKey.map(We=>({label:We.label,kind:O.languages.CompletionItemKind.Function,documentation:We.content,insertText:Xe.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt}))]}}}),O.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(De,Me){var Ye=De.getWordUntilPosition(Me),tt={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Xe=De.getLineContent(Me.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...xe.keywords.map(We=>({label:We,kind:O.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt})),...xe.quickKey.map(We=>({label:We.label,kind:O.languages.CompletionItemKind.Function,documentation:We.content,insertText:Xe.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt}))]}}}),O.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(De,Me){var Ye=De.getWordUntilPosition(Me),tt={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:Ye.startColumn,endColumn:Ye.endColumn},Xe=De.getLineContent(Me.lineNumber).substring(Ye.startColumn-2,Ye.endColumn);return{suggestions:[...ee.keywords.map(We=>({label:We,kind:O.languages.CompletionItemKind.Function,documentation:We,insertText:We,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt})),...ee.quickKey.map(We=>({label:We.label,kind:O.languages.CompletionItemKind.Function,documentation:We.content,insertText:Xe.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:tt}))]}}})};const _e="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var he=Object.defineProperty,pe=(O,ae,ve)=>ae in O?he(O,ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):O[ae]=ve,Ce=(O,ae,ve)=>pe(O,typeof ae!="symbol"?ae+"":ae,ve);const M=class Xo{constructor(ae,ve,we){this.placeholder=ae,this.editor=ve,this.monaco=we,ve.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)}};Ce(M,"ID","editor.widget.placeholderHint");var U=M,R=S(96236),q=S(8591),$=S(6848),m=S(89392),v=S(34604),L=S(56102),re=Object.defineProperty,Ie=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,et=(O,ae,ve)=>ae in O?re(O,ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):O[ae]=ve,rt=(O,ae)=>{for(var ve in ae||(ae={}))je.call(ae,ve)&&et(O,ve,ae[ve]);if(Oe)for(var ve of Oe(ae))at.call(ae,ve)&&et(O,ve,ae[ve]);return O},Tt=(O,ae)=>Ie(O,Be(ae)),At=(O,ae)=>{var ve={};for(var we in O)je.call(O,we)&&ae.indexOf(we)<0&&(ve[we]=O[we]);if(O!=null&&Oe)for(var we of Oe(O))ae.indexOf(we)<0&&at.call(O,we)&&(ve[we]=O[we]);return ve},Ot=(O,ae,ve)=>new Promise((we,De)=>{var Me=Xe=>{try{tt(ve.next(Xe))}catch(We){De(We)}},Ye=Xe=>{try{tt(ve.throw(Xe))}catch(We){De(We)}},tt=Xe=>Xe.done?we(Xe.value):Promise.resolve(Xe.value).then(Me,Ye);tt((ve=ve.apply(O,ae)).next())});function yt(O){return/^\d+$/.test(O)?`${O}px`:O}function Rt(){}let Ct=!1;const ue={"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 ye(O=[]){let ae=O;if(Array.isArray(O)){for(let ve=0;ve<O.length;ve++){let we=ue[O[ve]];if(we)return we}return ae[0]}return ue[ae]||ae}let J=null;var Pe=O=>{var ae=O,{width:ve="100%",height:we="100%",value:De,language:Me="javascript",style:Ye={},options:tt={},overrideServices:Xe={},theme:We="vs-dark",onEditBlur:ht,isCopy:Re=!1,onSave:Ne,autoHeight:Ke=!1,forbidCopy:Ve=!1,onChange:nt=Rt,editorDidMount:ft=Rt,onFocus:ot=Rt,onBreakPoint:_=Rt,breakPointValue:T=[],filename:qe="educoder.txt",errorLine:G,errorContent:ge="",highlightLine:Nt,openBreakPoint:Te=!1,placeholder:He=""}=ae,Ze=At(ae,["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 Y=(0,Z.useRef)(),ce=(0,Z.useRef)({}),Ee=(0,Z.useRef)(),ze=(0,Z.useRef)(),W=(0,Z.useRef)([]),bt=(0,Z.useRef)(!1),Ae=(0,Z.useRef)(),Dt=(0,Z.useRef)(),Ht=(0,Z.useRef)(!1),[Xt,mr]=(0,Z.useState)(!1);function Bt(){let Gt;return Y.current&&(Gt=new ie.Z(Ut=>{for(let pr of Ut)(pr.target.offsetHeight>0||pr.target.offsetWidth>0)&&ce.current.instance.layout()}),Gt.observe(Y.current)),Gt}function Ft(){q.ZP.warning({content:decodeURIComponent(_e),key:"monaco-editor-tip"})}const fr=()=>{let Gt=ce.current.instance;if(De!=null&&Gt&&Xt){const Ut=Gt.getModel();Ut&&De!==Ut.getValue()&&(Ct=!0,Ut.setValue(De),Gt.layout(),Ct=!1)}};(0,Z.useEffect)(()=>{const Gt=v.Z.subscribe("formatDocument",Ut=>{var pr;let Hr=ce.current.instance;(pr=Hr==null?void 0:Hr.getAction)==null||pr.call(Hr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ut=>{nt(Ut)},Gt},[]),(0,Z.useEffect)(()=>{var Gt;let Ut=ce.current.instance;ze.current&&clearTimeout(ze.current),ze.current=setTimeout(()=>{fr()},500),De&&(De!=null&&De.length)&&((Gt=Ut==null?void 0:Ut.updateOptions)==null||Gt.call(Ut,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(De.split(/\r\n|\r|\n/g).length))+3,5)}))},[De,Xt,ce.current]),(0,Z.useEffect)(()=>{if(G&&ce.current&&ce.current.instance){let Ut=ce.current.instance;Ut.changeViewZones(function(pr){var Hr=document.createElement("div");Hr.style.padding="10px 20px",Hr.style.width="calc(100% - 20px)",Hr.className="my-error-line-wrp",Hr.innerHTML=ge,pr.addZone({afterLineNumber:G||11,heightInLines:3,domNode:Hr})});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}};Ut.addOverlayWidget(Gt),Ut.revealPositionInCenter({lineNumber:20,column:1})}},[G,ce.current,Xt]);const Br=(Gt="",Ut)=>{if(!Gt||Gt.trim()==="")return!0;const Hr=ce.current.instance.getModel().getLineTokens(Ut);let gr=!1;for(let rn=0;rn<2;rn++)Hr.getStandardTokenType(rn)===1&&(gr=!0);return gr};(0,Z.useEffect)(()=>{var Gt;const Ut=(Gt=ce.current)==null?void 0:Gt.instance;if(Ut&&Xt&&Ve){const pr=Ut.onDidBlurEditorWidget(()=>{Ht.current=!1}),Hr=Ut.onDidFocusEditorText(()=>{Ht.current=!0});return()=>{pr.dispose(),Hr.dispose()}}},[ce.current,Xt,Ve]),(0,Z.useEffect)(()=>{var Gt;if((Gt=ce.current)!=null&&Gt.instance&&Xt&&Te){let Ut=ce.current.instance,pr=Ut.getModel();if(!pr)return;(()=>{var wt;let _t=[],Yt=[];const ir=pr.getAllDecorations();for(let vr of ir)vr.options.className==="highlighted-line"&&(_t.push((wt=vr==null?void 0:vr.range)==null?void 0:wt.startLineNumber),Yt.push(vr==null?void 0:vr.id));if(Nt===_t[0])return;pr.deltaDecorations(Yt,[]);const Qt=pr.getLineCount();Nt&&Nt<=Qt&&(Ut.deltaDecorations([],[{range:new J.Range(Nt,1,Nt,pr.getLineMaxColumn(Nt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ut.revealLineInCenter(Nt))})();const gr=(wt=!1)=>{var _t;let Yt=[],ir=[];const Qt=pr.getAllDecorations();for(let vr of Qt)vr.options.linesDecorationsClassName==="breakpoints-select"&&(Yt.push((_t=vr==null?void 0:vr.range)==null?void 0:_t.startLineNumber),ir.push(vr==null?void 0:vr.id));if(wt)return{lines:Yt,ids:ir};_(Yt)},rn=wt=>Ot(void 0,null,function*(){let _t={range:new J.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield pr.deltaDecorations([],[_t]),gr()}),Wn=wt=>Ot(void 0,null,function*(){let _t=[];const Yt=Ut.getLineDecorations(wt);for(let ir of Yt)ir.options.linesDecorationsClassName==="breakpoints-select"&&_t.push(ir.id);yield pr.deltaDecorations(_t,[]),gr()}),Qr=wt=>{let _t=Ut.getLineDecorations(wt);for(let Yt of _t)if(Yt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,m.isEqual)(T,gr(!0).lines)){pr.deltaDecorations(gr(!0).ids,[]);const wt=T.map(_t=>({range:new J.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));pr.deltaDecorations([],wt)}const rr=Ut.onDidChangeModelContent(wt=>{let _t=Ut.getPosition();if(_t){let Yt=_t.lineNumber;clearTimeout(Dt.current),Dt.current=setTimeout(()=>{Br(pr.getLineContent(Yt),Yt)?Wn(Yt):Qr(Yt)?(Wn(Yt),rn(Yt)):gr()},100)}}),it=Ut.onMouseDown(wt=>{var _t,Yt,ir;if(wt.target.detail&&((ir=(Yt=(_t=wt.target)==null?void 0:_t.element)==null?void 0:Yt.className)!=null&&ir.includes("line-numbers"))){let Qt=wt.target.position.lineNumber;if(Br(pr.getLineContent(Qt),Qt))return;Qr(Qt)?Wn(Qt):rn(Qt)}}),st=wt=>{let _t={range:new J.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};W.current=Ut.deltaDecorations(W.current,[_t])},gt=()=>{W.current=Ut.deltaDecorations(W.current,[])},St=Ut.onMouseMove(wt=>{var _t,Yt,ir;if(gt(),wt.target.detail&&((ir=(Yt=(_t=wt.target)==null?void 0:_t.element)==null?void 0:Yt.className)!=null&&ir.includes("line-numbers"))){let Qt=wt.target.position.lineNumber;if(Br(pr.getLineContent(Qt),Qt))return;st(Qt)}}),mt=Ut.onMouseLeave(()=>{gt()});return()=>{rr.dispose(),it.dispose(),St.dispose(),mt.dispose()}}},[ce.current,Xt,T,Nt,Te,Me]),(0,Z.useEffect)(()=>{var Gt;(Gt=ce.current)!=null&&Gt.instance&&Te&&ce.current.instance.setPosition({lineNumber:0,column:0})},[Nt]);function Ur(){let Gt=ce.current.instance;if(Gt){const Ut=Gt.getSelection(),pr=ce.current.pastePos||{},Hr=new J.Range(pr.startLineNumber||Ut.endLineNumber,pr.startColumn||Ut.endColumn,pr.endLineNumber||Ut.endLineNumber,pr.endColumn||Ut.endColumn);setTimeout(()=>{Gt.executeEdits("",[{range:Hr,text:""}])},300)}}function kr(Gt){(window.navigator.platform.match("Mac")?Gt.metaKey:Gt.ctrlKey)&&Gt.keyCode==83&&(Gt.preventDefault(),Ne())}const Kt=()=>{if(Ke&&ce.current.instance){const Gt=ce.current.instance.getContentHeight();kn(Gt<we?we:Gt)}else kn(we)};function lr(Gt){var Ut=document.createEvent("MouseEvents");Ut.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Gt.dispatchEvent(Ut)}const br=Gt=>{if(!Ht.current)return;const{keyCode:Ut,ctrlKey:pr,metaKey:Hr,target:gr,type:rn}=Gt;return(rn==="paste"||(Ut===67||Ut===86)&&(Hr||pr))&&gr.nodeName==="TEXTAREA"&&(Ft(),Gt.preventDefault()),!1};function Vr(Gt,Ut){var pr=window.URL||window.webkitURL||window,Hr=new Blob([Ut]),gr=document.createElementNS("http://www.w3.org/1999/xhtml","a");gr.href=pr.createObjectURL(Hr),gr.download=Gt,lr(gr)}(0,Z.useEffect)(()=>{Kt()},[Kt]),(0,Z.useEffect)(()=>{Y.current&&!Xt&&Promise.all([S.e(8909),S.e(3267)]).then(S.bind(S,71448)).then(Gt=>{try{J=Gt,ce.current.instance=J.editor.create(Y.current,{value:De,language:ye(Me),theme:We,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Xe);const Ut=ce.current.instance;let gr=[...R.BH._menuItems].find(rr=>rr[0]._debugName=="EditorContext")[1],rn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Wn=(rr,it)=>{var st,gt;let St=rr._first;do it.includes((gt=(st=St.element)==null?void 0:st.command)==null?void 0:gt.id)&&rr._remove(St);while(St=St.next)};if(ft(Ut,J),setTimeout(()=>{Kt(),ce.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Vr(qe||"educoder.txt",Ut.getValue())}})},500),ce.current.subscription=Ut.onDidChangeModelContent(rr=>{bt.current?clearTimeout(Ae.current):(Kt(),nt(Ut.getValue(),rr)),Ae.current=setTimeout(()=>{bt.current=!1},500)}),window.Monaco||X(J,ye(Me)),Ve&&(Wn(gr,rn),Y.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",br),window.removeEventListener("paste",br),window.addEventListener("keydown",br),window.addEventListener("paste",br)),window.Monaco=J,ht&&Ut.onDidBlurEditorWidget(()=>{ht(Ut.getValue())}),ot&&Ut.onDidFocusEditorText(()=>{ot(Ut.getValue())}),Ve)try{Ut.onDidPaste(rr=>{const it=Ut.getSelection(),st=ce.current.pastePos||{},gt=new J.Range(st.startLineNumber||it.endLineNumber,st.startColumn||it.endColumn,st.endLineNumber||it.endLineNumber,st.endColumn||it.endColumn);Ut.executeEdits("",[{range:rr.range,text:""}])})}catch(rr){}let Qr=Bt();return He&&typeof He=="string"&&new U(He,Ut,J),mr(!0),()=>{const rr=ce.current.instance;rr.dispose();const it=rr.getModel();it&&it.dispose(),ce.current.subscription&&ce.current.subscription.dispose(),Qr.unobserve(Y.current)}}catch(Ut){}})},[]),(0,Z.useEffect)(()=>{if(ce.current.instance&&Xt)return document.addEventListener("keydown",kr,!1),()=>{document.removeEventListener("keydown",kr)}},[Ne,Xt]),(0,Z.useEffect)(()=>{let Gt=ce.current.instance;if(Gt&&Xt){let Ut=ye(Me);J.editor.setModelLanguage(Gt.getModel(),Ut)}},[Me,Xt]),(0,Z.useEffect)(()=>{ce.current.instance&&Xt&&J.editor.setTheme(We)},[We,Xt]),(0,Z.useEffect)(()=>{let Gt=ce.current.instance;Ee.current=tt,Gt&&Xt&&(Gt.updateOptions(rt({},tt)),setTimeout(()=>{Gt.getModel().updateOptions(rt({},tt))},200))},[JSON.stringify(tt),Xt]),(0,Z.useEffect)(()=>{let Gt=ce.current.instance;Gt&&Xt&&Gt.layout()},[ve,we,Xt]);const[Lr,Yr]=(0,Z.useState)(yt(ve)),[xr,kn]=(0,Z.useState)(yt(we)),sn=Tt(rt({},Ye),{width:Lr,height:xr,position:"relative"});return Z.createElement("div",{className:"my-monaco-editor",ref:Y,style:sn},Re&&Z.createElement(L.CopyToClipboard,{text:De,onCopy:()=>q.ZP.success("\u590D\u5236\u6210\u529F")},Z.createElement($.Z,{title:"\u590D\u5236\u4EE3\u7801"},Z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $e({width:O="100%",height:ae="100%",original:ve,modified:we,language:De,options:Me={}}){const Ye=(0,Z.useRef)(),[tt,Xe]=(0,Z.useState)(null);function We(Ke){let Ve;return Ye.current&&(Ve=new ie.Z(nt=>{for(let ft of nt)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&Ke.layout()}),Ve.observe(Ye.current)),Ve}(0,Z.useEffect)(()=>(Ye.current&&Promise.all([S.e(8909),S.e(9404)]).then(S.bind(S,2550)).then(Ke=>{J=Ke;const Ve=J.editor.createDiffEditor(Ye.current,Tt(rt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Me),{wordWrap:!0}));Xe(Ve);let nt=We(Ve);return()=>{Ve.dispose();const ft=Ve.getModel();ft&&ft.dispose(),nt.unobserve(Ye.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Z.useEffect)(()=>{tt&&tt.setModel({original:J.editor.createModel(ve,De),modified:J.editor.createModel(we,De)})},[ve,we,De,tt]);const ht=yt(O),Re=yt(ae),Ne={width:ht,height:Re};return Z.createElement("div",{className:"my-diff-editor",ref:Ye,style:Ne})}},1464:function(Mt,Qe,S){"use strict";S.r(Qe),S.d(Qe,{default:function(){return M}});var Z=S(59301),ie=S(89070),be=S(8591),ke=S(5871),te=S(3113),ee=S(66104),xe=S(95237),de=S(43604),a=S(28103),N=S(79817),P=S(5112),E=S(92832),c=S(27812),y=S(94941),x=S(85149);const H=({data:I})=>{const[U,R]=(0,Z.useState)(!1),q=()=>{var $;switch(I.question_type){case 3:return Z.createElement("aside",null,Z.createElement("span",{style:{cursor:"pointer"},className:"font12 c-blue",onClick:()=>{R(!U)}},U?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),U&&Z.createElement("div",null,($=I==null?void 0:I.standard_answer)==null?void 0:$.map(function(m,v){var L;return Z.createElement(xe.Z,{className:"mt10"},Z.createElement(de.Z,{flex:"50px"},Z.createElement("span",{className:"mt10"},"\u586B\u7A7A",m.choice_id)),Z.createElement(de.Z,{flex:1},(L=m==null?void 0:m.answer_text)==null?void 0:L.map(function(re,Ie){return Z.createElement("div",{style:{border:"1px solid #eee",padding:"15px 10px 0 10px"}},re)})))})));case 4:return Z.createElement("aside",null,Z.createElement("span",{style:{cursor:"pointer"},className:"font12 c-blue",onClick:()=>{R(!U)}},U?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),U&&Z.createElement("div",null,Z.createElement(x.Z,{value:I.standard_answer.join(" ")})))}};return Z.createElement("section",null,q())};var V={flex_box_center:"flex_box_center___rZhUX",flex_space_between:"flex_space_between___WSWPP",flex_box_vertical_center:"flex_box_vertical_center___Fl2CQ",flex_box_center_end:"flex_box_center_end___zIA_L",flex_box_column:"flex_box_column___wpPM2",bg:"bg___PTvAX",title:"title___NRpL_",questionIcons:"questionIcons___qftEo",green:"green___DII_f",orange:"orange___nqaHJ",greenTip:"greenTip___NQ5fc",redTip:"redTip___BYmiY",orangeTip:"orangeTip___wlzcb",cuttOff:"cuttOff___Y19D3"},k=S(955),D=S(59301),j=Object.defineProperty,oe=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,se=(I,U,R)=>U in I?j(I,U,{enumerable:!0,configurable:!0,writable:!0,value:R}):I[U]=R,X=(I,U)=>{for(var R in U||(U={}))w.call(U,R)&&se(I,R,U[R]);if(oe)for(var R of oe(U))K.call(U,R)&&se(I,R,U[R]);return I},_e=(I,U)=>{var R={};for(var q in I)w.call(I,q)&&U.indexOf(q)<0&&(R[q]=I[q]);if(I!=null&&oe)for(var q of oe(I))U.indexOf(q)<0&&K.call(I,q)&&(R[q]=I[q]);return R},he=(I,U,R)=>new Promise((q,$)=>{var m=re=>{try{L(R.next(re))}catch(Ie){$(Ie)}},v=re=>{try{L(R.throw(re))}catch(Ie){$(Ie)}},L=re=>re.done?q(re.value):Promise.resolve(re.value).then(m,v);L((R=R.apply(I,U)).next())});const pe=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898"],Ce=I=>{var U=I,{exercise:R,globalSetting:q,loading:$,user:m,dispatch:v}=U,L=_e(U,["exercise","globalSetting","loading","user","dispatch"]),re,Ie,Be,Oe,je,at,et,rt,Tt,At,Ot,yt,Rt,Ct,ue,ye,J,Pe,$e,O,ae;const ve=(0,ie.useParams)(),{userInfo:we}=m,{reviewGroupExercise:De}=R,[Me,Ye]=(0,Z.useState)({}),[tt,Xe]=(0,Z.useState)(!1),We=(0,Z.useRef)();console.log(Me);const ht=()=>{var Ve,nt;console.log(ve,222);let ft=localStorage[`${(Ve=m==null?void 0:m.userInfo)==null?void 0:Ve.login}-${ve.coursesId}-${ve.exerciseId}-filter`];if(ft?ft=JSON.parse(ft):ft={},Object.prototype.toString.call(ft)!=="[object Object]")return{};let ot=((nt=ft==null?void 0:ft.commit_status)==null?void 0:nt.filter(_=>_===2||_===3))||[2,3];return ft.commit_status=(ot==null?void 0:ot.length)>0?ot:[2,3],ft};(0,Z.useEffect)(()=>{var Ve;(Ve=m==null?void 0:m.userInfo)!=null&&Ve.login&&Re()},[(re=m==null?void 0:m.userInfo)==null?void 0:re.login]);const Re=()=>{const Ve=ht();v({type:"exercise/getReviewGroupExercise",payload:X({exerciseId:ve.exerciseId},Ve)})},Ne=Ve=>he(void 0,null,function*(){const nt=ht();v({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u8C03\u5206\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,y.LP)(X({cover_all:!0,id:Ve.question_id,max_score:Me[Ve.q_position].max,min_score:Me[Ve.q_position].min,comment:Me.comment},nt))).status===0&&(delete Me[Ve.q_position],Re(),be.ZP.success("\u6279\u91CF\u8C03\u5206\u6210\u529F")),v({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:"\u8C03\u5206\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}})}),Ke=Ve=>{var nt,ft,ot;if(Ve.question_type>1)return Me[Ve.q_position]?D.createElement("div",{className:"mr10 ml10 inline-block"},"\u5728\u4EE5\u4E0B\u533A\u95F4\u4E2D\u4E3A\u5B66\u751F\u968F\u673A\u8D4B\u5206\uFF1A",D.createElement(ke.Z,{placeholder:"\u6700\u4F4E",defaultValue:Ve.user_score,max:Ve.question_score,min:0,onChange:_=>{Me[Ve.q_position].min=String(_),Ye(X({},Me))}}),D.createElement("div",{className:V.cuttOff}),D.createElement(ke.Z,{placeholder:"\u6700\u9AD8",defaultValue:Ve.user_score,max:Ve.question_score,min:((nt=Me[Ve.q_position])==null?void 0:nt.min)||0,onChange:_=>{Me[Ve.q_position].max=String(_),Ye(X({},Me))}}),"\u5206",D.createElement(te.ZP,{className:"ml5",type:"primary",disabled:!((ft=Me[Ve.q_position])!=null&&ft.min)||!((ot=Me[Ve.q_position])!=null&&ot.max),onClick:()=>Ne(Ve)},"\u786E\u8BA4")):D.createElement("span",{style:{cursor:"pointer"},onClick:()=>{Me[Ve.q_position]={},Ye(X({},Me))},className:"c-blue mr10 ml10"},"\u8C03\u5206")};return D.createElement("section",{className:"edu-container",ref:We},D.createElement("section",{className:"animated fadeIn"},D.createElement("aside",{className:"mt10"},we&&D.createElement(ee.Z,{separator:">"},D.createElement(ee.Z.Item,null,D.createElement(ie.Link,{to:`${we.first_category_url}`},(Ie=we==null?void 0:we.course)==null?void 0:Ie.course_name)),D.createElement(ee.Z.Item,null,D.createElement(ie.Link,{to:`/classrooms/${ve.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),D.createElement(ee.Z.Item,null,D.createElement(ie.Link,{to:`/classrooms/${ve.coursesId}/exercise/${ve.exerciseId}/detail`},"\u8BD5\u5377\u8BE6\u60C5")),D.createElement(ee.Z.Item,null,(Be=De==null?void 0:De.exercise_answer_user)==null?void 0:Be.user_name))),D.createElement("aside",{className:[V.title,"mt20"].join(" ")},D.createElement(xe.Z,{style:{width:"100%"}},D.createElement(de.Z,{flex:"1"},D.createElement(ie.Link,{to:`/classrooms/${ve.coursesId}/exercise/${ve.exerciseId}/detail`},D.createElement(c.Z,{className:"font16 c-black"})),D.createElement("strong",{className:"font20 ml5"},(Oe=De==null?void 0:De.exercise)==null?void 0:Oe.exercise_name),D.createElement(k.VV,{status:[k.ju[(je=De.exercise)==null?void 0:je.exercise_status]]})),D.createElement(de.Z,null)))),D.createElement("section",{className:[V.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},D.createElement(xe.Z,{gutter:[30,0]},D.createElement(de.Z,{className:"bold c-black"},D.createElement("aside",null,D.createElement("span",null,"\u8003\u8BD5\u65F6\u957F ",((at=De.exercise)==null?void 0:at.time)===-1?"\u672A\u9650\u65F6":(et=De.exercise)==null?void 0:et.time),D.createElement("span",{className:"ml20"},"\u6EE1\u5206 ",(Tt=(rt=De.exercise_scores)==null?void 0:rt.exercise_types)==null?void 0:Tt.q_scores,"\u5206")))),D.createElement(a.Z,null),D.createElement(xe.Z,{gutter:[30,0]},D.createElement(de.Z,{flex:"1"},D.createElement("span",{className:"c-light-black"},"\u60A8\u6B63\u5728\u5BF9\u4EE5\u4E0B\u5B66\u751F\u8FDB\u884C\u6279\u91CF\u8BC4\u9605\uFF1A"),D.createElement("span",null,(At=De.exercise_answer_user)==null?void 0:At.user_name))),D.createElement(xe.Z,{gutter:[30,0]},D.createElement(de.Z,{span:24,className:"mt10"},(Ot=De==null?void 0:De.exercise_users)==null?void 0:Ot.map(function(Ve,nt){if(nt<100)return D.createElement("strong",{className:"mr10",key:nt},Ve.user_name)})),D.createElement(de.Z,{span:24,className:"tr"},((yt=De==null?void 0:De.exercise_users)==null?void 0:yt.length)>100&&D.createElement("span",null,"......\u7B49",(Rt=De==null?void 0:De.exercise_users)==null?void 0:Rt.length,"\u4EBA"))),D.createElement(a.Z,null),((Ct=De==null?void 0:De.exercise_questions)==null?void 0:Ct.some(Ve=>Ve.question_type!==4))&&D.createElement("aside",null,D.createElement(xe.Z,{gutter:[10,10]},D.createElement(de.Z,{flex:"1"},D.createElement("aside",null,D.createElement("strong",{className:"font14"},"\u5BA2\u89C2\u9898"),D.createElement("span",{className:V.greenTip},"\u6B63\u786E"),D.createElement("span",{className:V.redTip},"\u9519\u8BEF"),D.createElement("span",{className:V.redTip},"\u90E8\u5206\u5F97\u5206")),D.createElement("aside",{className:[V.questionIcons,"mt10"].join(" ")},D.createElement(N.default,{affix:!1,onChange:()=>Xe(!0)},(ue=De==null?void 0:De.exercise_questions)==null?void 0:ue.map(function(Ve,nt){if(Ve.question_type!==4)return D.createElement(N.default.Link,{href:`#questionID-${Ve.q_position}`,title:Ve.q_position})})))),D.createElement(de.Z,null,"\u603B\u5206 ",D.createElement("span",{className:"c-red bold"},(J=(ye=De.exercise_scores)==null?void 0:ye.exercise_types)==null?void 0:J.q_scores)," \u5206")),D.createElement("p",{className:"c-blue tr",onClick:()=>Xe(!tt)},tt?"\u6536\u8D77\u7B54\u9898\u8BE6\u60C5":"\u5C55\u5F00\u67E5\u770B\u7B54\u9898\u8BE6\u60C5",D.createElement("span",{className:"iconfont icon-play-square-fill3x ml5"})),D.createElement(a.Z,null)),D.createElement(xe.Z,{gutter:[10,10]},D.createElement(de.Z,{flex:"1"},D.createElement("aside",null,D.createElement("strong",{className:"font14"},"\u4E3B\u89C2\u9898"),D.createElement("span",{className:V.greenTip},"\u5DF2\u8BC4"),D.createElement("span",{className:V.redTip},"\u672A\u8BC4")),D.createElement("aside",{className:[V.questionIcons,"mt10"].join(" ")},D.createElement(N.default,{affix:!1},(Pe=De==null?void 0:De.exercise_questions)==null?void 0:Pe.map(function(Ve,nt){if(Ve.question_type===4)return D.createElement(N.default.Link,{href:`#questionID-${Ve.q_position}`,title:Ve.q_position}," ")})))),D.createElement(de.Z,null,"\u603B\u5206 ",D.createElement("span",{className:"c-red bold"},(O=($e=De.exercise_scores)==null?void 0:$e.exercise_types)==null?void 0:O.q_mains_scores)," \u5206")),(ae=De.exercise_questions)==null?void 0:ae.map(function(Ve,nt){var ft;return D.createElement("aside",{id:`questionID-${Ve.q_position}`,className:`${tt||Ve.question_type===4?"":"hide"}`},D.createElement(xe.Z,null,D.createElement(de.Z,{flex:"1"},D.createElement("span",{className:"c-blue font14"},Ve.q_position,". ",pe[Ve.question_type]),D.createElement("span",{className:"c-light-black ml5"},"(",Ve.question_score,")")),D.createElement(de.Z,null,Ve.standard_answer_show&&D.createElement("span",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Ve.standard_answer_show),Ke(Ve),Ve.user_score&&D.createElement("span",null,"\u5F97\u5206",D.createElement("span",{className:"c-red"},Ve.user_score),"\u5206"),!Ve.user_score&&D.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),D.createElement("div",null,D.createElement(x.Z,{value:Ve.question_title})),D.createElement("div",null,(ft=Ve.question_choices)==null?void 0:ft.map(function(ot,_){return D.createElement("div",null,D.createElement(P.ZP,{checked:Ve.user_answer.includes(ot.choice_id)},ot.choice_text))})),D.createElement(H,{data:Ve}),Me[Ve.q_position]?D.createElement(E.default.TextArea,{onChange:ot=>{Me.comment=String(ot.target.value),Ye(X({},Me))},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u8BED\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",maxLength:100}):null,D.createElement(a.Z,null))})))};var M=(0,ie.connect)(({exercise:I,loading:U,user:R,globalSetting:q})=>({exercise:I,globalSetting:q,user:R,loading:U.effects}))(Ce)},24768:function(Mt,Qe,S){"use strict";S.d(Qe,{AL:function(){return oe},Iy:function(){return P},Qv:function(){return y},ez:function(){return j},jb:function(){return E}});var Z=S(32834),ie=S.n(Z),be=S(11690),ke=S.n(be);let te=1;function ee(_e,he){const pe=_e.match(/^(\s+)(?:```)/);if(pe===null)return he;const Ce=pe[1];return he.split(`
|
|
`).map(M=>{const I=M.match(/^\s+/);if(I===null)return M;const[U]=I;return U.length>=Ce.length?M.slice(Ce.length):M}).join(`
|
|
`)}let xe=[],de=["<ul>"];const a=new(ie()).Renderer,N=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function P(){xe.length=0,de=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(_e,he,pe,Ce){if(he>=_e.length||_e[he].level<=pe)return he;var M=_e[he];Ce.push("<li><a href='#"+te+M.anchor+"'>"+M.text+"</a>"),he++;var I=[];return he=c(_e,he,M.level,I),I.length>0&&(Ce.push("<ul>"),I.forEach(function(U){Ce.push(U)}),Ce.push("</ul>")),Ce.push("</li>"),he=c(_e,he,pe,Ce),he}function y(){return c(xe,0,0,de),de.push("</ul>"),de.join("")}const x={heading(_e){const he=N.exec(_e);if(te+=1,he)return{type:"heading",raw:he[0],depth:he[1].length,text:he[2]}},fences(_e){const he=this.rules.block.fences.exec(_e);if(he){const pe=he[0];let Ce=ee(pe,he[3]||"");const M=he[2]?he[2].trim():he[2];if(["latex","katex","math"].indexOf(M)>=0){const I=k(),U=Ce;Ce=I,D[I]={type:"block",expression:U}}return{type:"code",raw:pe,lang:M,text:Ce}}}},H=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let V=0;const k=()=>`__special_katext_id_${V++}__`;let D={};function j(){return D}function oe(){V=0,D={}}function w(_e){return _e=_e.replace(H,(he,pe)=>{const Ce=k();return D[Ce]={type:"inline",expression:pe},Ce}),_e}const K=a.listitem;a.listitem=function(_e){return K(w(_e))};const se=a.paragraph;a.paragraph=function(_e){return se(w(_e))};const X=a.tablecell;a.tablecell=function(_e,he){return X(w(_e),he)},a.code=function(_e,he,pe){const Ce=(he||"").match(/\S*/)[0];return Ce?["latex","katex","math"].indexOf(Ce)>=0?`<p class='editormd-tex'>${_e}</p>`:`<pre class="prettyprint linenums"><code class="language-${he}">${pe?_e:(0,be.escape)(_e,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(pe?_e:(0,be.escape)(_e,!0))+"</code></pre>"},a.heading=function(_e,he,pe){let Ce=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return xe.push({anchor:Ce,level:he,text:_e}),"<h"+he+' id="'+te+Ce+'">'+_e+"</h"+he+">"},ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),ie().use({tokenizer:x,renderer:a}),Qe.ZP=ie()},36785:function(Mt,Qe,S){"use strict";S.d(Qe,{o2:function(){return te},yT:function(){return ee}});var Z=S(19127),ie=S(33166);const be=ie.i.map(xe=>`${xe}-inverse`),ke=["success","processing","error","default","warning"];function te(xe){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Z.Z)(be),(0,Z.Z)(ie.i)).includes(xe):ie.i.includes(xe)}function ee(xe){return ke.includes(xe)}},13845:function(Mt,Qe,S){"use strict";S.d(Qe,{F:function(){return Z},Z:function(){return ie}});function Z(be){return be!=null&&be===be.window}function ie(be,ke){var te,ee;if(typeof window=="undefined")return 0;const xe=ke?"scrollTop":"scrollLeft";let de=0;return Z(be)?de=be[ke?"pageYOffset":"pageXOffset"]:be instanceof Document?de=be.documentElement[xe]:(be instanceof HTMLElement||be)&&(de=be[xe]),be&&!Z(be)&&typeof de!="number"&&(de=(ee=((te=be.ownerDocument)!==null&&te!==void 0?te:be).documentElement)===null||ee===void 0?void 0:ee[xe]),de}},79676:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return ee}});var Z=S(19447);function ie(xe,de,a,N){if(N===!1)return{adjustX:!1,adjustY:!1};const P=N&&typeof N=="object"?N:{},E={};switch(xe){case"top":case"bottom":E.shiftX=de.dropdownArrowOffset*2+a;break;case"left":case"right":E.shiftY=de.dropdownArrowOffsetVertical*2+a;break}const c=Object.assign(Object.assign({},E),P);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const be={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"]}},ke={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"]}},te=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ee(xe){const{arrowWidth:de,autoAdjustOverflow:a,arrowPointAtCenter:N,offset:P,borderRadius:E,visibleFirst:c}=xe,y=de/2,x={};return Object.keys(be).forEach(H=>{const V=N&&ke[H]||be[H],k=Object.assign(Object.assign({},V),{offset:[0,0]});switch(x[H]=k,te.has(H)&&(k.autoArrow=!1),H){case"top":case"topLeft":case"topRight":k.offset[1]=-y-P;break;case"bottom":case"bottomLeft":case"bottomRight":k.offset[1]=y+P;break;case"left":case"leftTop":case"leftBottom":k.offset[0]=-y-P;break;case"right":case"rightTop":case"rightBottom":k.offset[0]=y+P;break}const D=(0,Z.fS)({contentRadius:E,limitVerticalRadius:!0});if(N)switch(H){case"topLeft":case"bottomLeft":k.offset[0]=-D.dropdownArrowOffset-y;break;case"topRight":case"bottomRight":k.offset[0]=D.dropdownArrowOffset+y;break;case"leftTop":case"rightTop":k.offset[1]=-D.dropdownArrowOffset-y;break;case"leftBottom":case"rightBottom":k.offset[1]=D.dropdownArrowOffset+y;break}k.overflow=ie(H,D,de,a),c&&(k.htmlRegion="visibleFirst")}),x}},68031:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return ke}});var Z=S(16089);function ie(te,ee,xe,de){const a=xe-ee;return te/=de/2,te<1?a/2*te*te*te+ee:a/2*((te-=2)*te*te+2)+ee}var be=S(13845);function ke(te){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:xe=()=>window,callback:de,duration:a=450}=ee,N=xe(),P=(0,be.Z)(N,!0),E=Date.now(),c=()=>{const x=Date.now()-E,H=ie(x>a?a:x,P,te,a);(0,be.F)(N)?N.scrollTo(window.pageXOffset,H):N instanceof Document||N.constructor.name==="HTMLDocument"?N.documentElement.scrollTop=H:N.scrollTop=H,x<a?(0,Z.Z)(c):typeof de=="function"&&de()};(0,Z.Z)(c)}},19080:function(Mt,Qe,S){"use strict";S.d(Qe,{F:function(){return te},Z:function(){return ke}});var Z=S(92310),ie=S.n(Z);const be=null;function ke(ee,xe,de){return ie()({[`${ee}-status-success`]:xe==="success",[`${ee}-status-warning`]:xe==="warning",[`${ee}-status-error`]:xe==="error",[`${ee}-status-validating`]:xe==="validating",[`${ee}-has-feedback`]:de})}const te=(ee,xe)=>xe||ee},27666:function(Mt,Qe,S){"use strict";var Z=S(19127),ie=S(16089);function be(ke){let te;const ee=de=>()=>{te=null,ke.apply(void 0,(0,Z.Z)(de))},xe=function(){if(te==null){for(var de=arguments.length,a=new Array(de),N=0;N<de;N++)a[N]=arguments[N];te=(0,ie.Z)(ee(a))}};return xe.cancel=()=>{ie.Z.cancel(te),te=null},xe}Qe.Z=be},81228:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return se}});var Z=S(52884),ie=S(95727),be=S(65711),ke=S(85745),te=S(59301),ee=S(92310),xe=S.n(ee),de=S(29301),a=S(2738),N=S(27666),P=S(36355),E=S(83116),c=S(37613);const y=X=>{const{componentCls:_e}=X;return{[_e]:{position:"fixed",zIndex:X.zIndexPopup}}};var x=(0,E.Z)("Affix",X=>{const _e=(0,c.TS)(X,{zIndexPopup:X.zIndexBase+10});return[y(_e)]});function H(X){return X!==window?X.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function V(X,_e,he){if(he!==void 0&&_e.top>X.top-he)return he+_e.top}function k(X,_e,he){if(he!==void 0&&_e.bottom<X.bottom+he){const pe=window.innerHeight-_e.bottom;return he+pe}}const D=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function j(){return typeof window!="undefined"?window:null}var oe;(function(X){X[X.None=0]="None",X[X.Prepare=1]="Prepare"})(oe||(oe={}));let w=function(X){(0,be.Z)(he,X);var _e=(0,ke.Z)(he);function he(){var pe;return(0,Z.Z)(this,he),pe=_e.apply(this,arguments),pe.state={status:oe.None,lastAffix:!1,prevTarget:null},pe.placeholderNodeRef=(0,te.createRef)(),pe.fixedNodeRef=(0,te.createRef)(),pe.addListeners=()=>{const Ce=pe.getTargetFunc(),M=Ce==null?void 0:Ce(),{prevTarget:I}=pe.state;I!==M&&(D.forEach(U=>{I==null||I.removeEventListener(U,pe.lazyUpdatePosition),M==null||M.addEventListener(U,pe.lazyUpdatePosition)}),pe.updatePosition(),pe.setState({prevTarget:M}))},pe.removeListeners=()=>{pe.timer&&(clearTimeout(pe.timer),pe.timer=null);const{prevTarget:Ce}=pe.state,M=pe.getTargetFunc(),I=M==null?void 0:M();D.forEach(U=>{I==null||I.removeEventListener(U,pe.lazyUpdatePosition),Ce==null||Ce.removeEventListener(U,pe.lazyUpdatePosition)}),pe.updatePosition.cancel(),pe.lazyUpdatePosition.cancel()},pe.getOffsetTop=()=>{const{offsetBottom:Ce,offsetTop:M}=pe.props;return Ce===void 0&&M===void 0?0:M},pe.getOffsetBottom=()=>pe.props.offsetBottom,pe.measure=()=>{const{status:Ce,lastAffix:M}=pe.state,{onChange:I}=pe.props,U=pe.getTargetFunc();if(Ce!==oe.Prepare||!pe.fixedNodeRef.current||!pe.placeholderNodeRef.current||!U)return;const R=pe.getOffsetTop(),q=pe.getOffsetBottom(),$=U();if($){const m={status:oe.None},v=H(pe.placeholderNodeRef.current);if(v.top===0&&v.left===0&&v.width===0&&v.height===0)return;const L=H($),re=V(v,L,R),Ie=k(v,L,q);re!==void 0?(m.affixStyle={position:"fixed",top:re,width:v.width,height:v.height},m.placeholderStyle={width:v.width,height:v.height}):Ie!==void 0&&(m.affixStyle={position:"fixed",bottom:Ie,width:v.width,height:v.height},m.placeholderStyle={width:v.width,height:v.height}),m.lastAffix=!!m.affixStyle,I&&M!==m.lastAffix&&I(m.lastAffix),pe.setState(m)}},pe.prepareMeasure=()=>{pe.setState({status:oe.Prepare,affixStyle:void 0,placeholderStyle:void 0})},pe.updatePosition=(0,N.Z)(()=>{pe.prepareMeasure()}),pe.lazyUpdatePosition=(0,N.Z)(()=>{const Ce=pe.getTargetFunc(),{affixStyle:M}=pe.state;if(Ce&&M){const I=pe.getOffsetTop(),U=pe.getOffsetBottom(),R=Ce();if(R&&pe.placeholderNodeRef.current){const q=H(R),$=H(pe.placeholderNodeRef.current),m=V($,q,I),v=k($,q,U);if(m!==void 0&&M.top===m||v!==void 0&&M.bottom===v)return}}pe.prepareMeasure()}),pe}return(0,ie.Z)(he,[{key:"getTargetFunc",value:function(){const{getTargetContainer:Ce}=this.context,{target:M}=this.props;return M!==void 0?M:Ce!=null?Ce:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(Ce){this.addListeners(),(Ce.offsetTop!==this.props.offsetTop||Ce.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:Ce,placeholderStyle:M}=this.state,{affixPrefixCls:I,rootClassName:U,children:R}=this.props,q=xe()(Ce&&U,{[I]:!!Ce});let $=(0,a.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return te.createElement(de.Z,{onResize:this.updatePosition},te.createElement("div",Object.assign({},$,{ref:this.placeholderNodeRef}),Ce&&te.createElement("div",{style:M,"aria-hidden":"true"}),te.createElement("div",{className:q,ref:this.fixedNodeRef,style:Ce},te.createElement(de.Z,{onResize:this.updatePosition},R))))}}]),he}(te.Component);w.contextType=P.E_;var se=(0,te.forwardRef)((X,_e)=>{const{prefixCls:he,rootClassName:pe}=X,{getPrefixCls:Ce}=(0,te.useContext)(P.E_),M=Ce("affix",he),[I,U]=x(M),R=Object.assign(Object.assign({},X),{affixPrefixCls:M,rootClassName:xe()(pe,U)});return I(te.createElement(w,Object.assign({},R,{ref:_e})))})},79817:function(Mt,Qe,S){"use strict";S.d(Qe,{default:function(){return pe}});var Z=S(19127),ie=S(92310),be=S.n(ie),ke=S(70425),te=S(59301),ee=S(16722),xe=S(13845),de=S(68031),a=S(81228),N=S(36355),E=te.createContext(void 0),y=Ce=>{const{href:M,title:I,prefixCls:U,children:R,className:q,target:$,replace:m}=Ce,v=te.useContext(E),{registerLink:L,unregisterLink:re,scrollTo:Ie,onClick:Be,activeLink:Oe,direction:je}=v||{};te.useEffect(()=>(L==null||L(M),()=>{re==null||re(M)}),[M]);const at=yt=>{m&&(yt.preventDefault(),window.location.replace(M)),Be==null||Be(yt,{title:I,href:M}),Ie==null||Ie(M)},{getPrefixCls:et}=te.useContext(N.E_),rt=et("anchor",U),Tt=Oe===M,At=be()(`${rt}-link`,q,{[`${rt}-link-active`]:Tt}),Ot=be()(`${rt}-link-title`,{[`${rt}-link-title-active`]:Tt});return te.createElement("div",{className:At},te.createElement("a",{className:Ot,href:M,title:typeof I=="string"?I:"",target:$,onClick:at},I),je!=="horizontal"?R:null)},x=S(17313),H=S(83116),V=S(37613);const k=Ce=>{const{componentCls:M,holderOffsetBlock:I,motionDurationSlow:U,lineWidthBold:R,colorPrimary:q,lineType:$,colorSplit:m}=Ce;return{[`${M}-wrapper`]:{marginBlockStart:-I,paddingBlockStart:I,[M]:Object.assign(Object.assign({},(0,x.Wf)(Ce)),{position:"relative",paddingInlineStart:R,[`${M}-link`]:{paddingBlock:Ce.linkPaddingBlock,paddingInline:`${Ce.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},x.vS),{position:"relative",display:"block",marginBlockEnd:Ce.anchorTitleBlock,color:Ce.colorText,transition:`all ${Ce.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${M}-link-title`]:{color:Ce.colorPrimary},[`${M}-link`]:{paddingBlock:Ce.anchorPaddingBlockSecondary}}}),[`&:not(${M}-wrapper-horizontal)`]:{[M]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${R}px ${$} ${m}`,content:'" "'},[`${M}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${U} ease-in-out`,width:R,backgroundColor:q,[`&${M}-ink-visible`]:{display:"inline-block"}}}},[`${M}-fixed ${M}-ink ${M}-ink`]:{display:"none"}}}},D=Ce=>{const{componentCls:M,motionDurationSlow:I,lineWidthBold:U,colorPrimary:R}=Ce;return{[`${M}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${Ce.lineType} ${Ce.colorSplit}`,content:'" "'},[M]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${M}-link:first-of-type`]:{paddingInline:0},[`${M}-ink`]:{position:"absolute",bottom:0,transition:`left ${I} ease-in-out, width ${I} ease-in-out`,height:U,backgroundColor:R}}}}};var j=(0,H.Z)("Anchor",Ce=>{const{fontSize:M,fontSizeLG:I,paddingXXS:U}=Ce,R=(0,V.TS)(Ce,{holderOffsetBlock:U,anchorPaddingBlockSecondary:U/2,anchorTitleBlock:M/14*3,anchorBallSize:I/2});return[k(R),D(R)]},Ce=>({linkPaddingBlock:Ce.paddingXXS,linkPaddingInlineStart:Ce.padding}));function oe(){return window}function w(Ce,M){if(!Ce.getClientRects().length)return 0;const I=Ce.getBoundingClientRect();return I.width||I.height?M===window?(M=Ce.ownerDocument.documentElement,I.top-M.clientTop):I.top-M.getBoundingClientRect().top:I.top}const K=/#([\S ]+)$/,se=Ce=>{var M;const{rootClassName:I,anchorPrefixCls:U,className:R,style:q,offsetTop:$,affix:m=!0,showInkInFixed:v=!1,children:L,items:re,direction:Ie="vertical",bounds:Be,targetOffset:Oe,onClick:je,onChange:at,getContainer:et,getCurrentAnchor:rt,replace:Tt}=Ce,[At,Ot]=te.useState([]),[yt,Rt]=te.useState(null),Ct=te.useRef(yt),ue=te.useRef(null),ye=te.useRef(null),J=te.useRef(!1),{direction:Pe,getTargetContainer:$e,anchor:O}=te.useContext(N.E_),ae=(M=et!=null?et:$e)!==null&&M!==void 0?M:oe,ve=JSON.stringify(At),we=(0,ke.useEvent)(ot=>{At.includes(ot)||Ot(_=>[].concat((0,Z.Z)(_),[ot]))}),De=(0,ke.useEvent)(ot=>{At.includes(ot)&&Ot(_=>_.filter(T=>T!==ot))}),Me=()=>{var ot;const _=(ot=ue.current)===null||ot===void 0?void 0:ot.querySelector(`.${U}-link-title-active`);if(_&&ye.current){const{style:T}=ye.current,qe=Ie==="horizontal";T.top=qe?"":`${_.offsetTop+_.clientHeight/2}px`,T.height=qe?"":`${_.clientHeight}px`,T.left=qe?`${_.offsetLeft}px`:"",T.width=qe?`${_.clientWidth}px`:"",qe&&(0,ee.Z)(_,{scrollMode:"if-needed",block:"nearest"})}},Ye=function(ot){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const qe=[],G=ae();return ot.forEach(ge=>{const Nt=K.exec(ge==null?void 0:ge.toString());if(!Nt)return;const Te=document.getElementById(Nt[1]);if(Te){const He=w(Te,G);He<_+T&&qe.push({link:ge,top:He})}}),qe.length?qe.reduce((Nt,Te)=>Te.top>Nt.top?Te:Nt).link:""},tt=(0,ke.useEvent)(ot=>{if(Ct.current===ot)return;const _=typeof rt=="function"?rt(ot):ot;Rt(_),Ct.current=_,at==null||at(ot)}),Xe=te.useCallback(()=>{if(J.current)return;const ot=Ye(At,Oe!==void 0?Oe:$||0,Be);tt(ot)},[ve,Oe,$]),We=te.useCallback(ot=>{tt(ot);const _=K.exec(ot);if(!_)return;const T=document.getElementById(_[1]);if(!T)return;const qe=ae(),G=(0,xe.Z)(qe,!0),ge=w(T,qe);let Nt=G+ge;Nt-=Oe!==void 0?Oe:$||0,J.current=!0,(0,de.Z)(Nt,{getContainer:ae,callback(){J.current=!1}})},[Oe,$]),ht=be()(I,`${U}-wrapper`,{[`${U}-wrapper-horizontal`]:Ie==="horizontal",[`${U}-rtl`]:Pe==="rtl"},R,O==null?void 0:O.className),Re=be()(U,{[`${U}-fixed`]:!m&&!v}),Ne=be()(`${U}-ink`,{[`${U}-ink-visible`]:yt}),Ke=Object.assign(Object.assign({maxHeight:$?`calc(100vh - ${$}px)`:"100vh"},O==null?void 0:O.style),q),Ve=ot=>Array.isArray(ot)?ot.map(_=>te.createElement(y,Object.assign({replace:Tt},_,{key:_.key}),Ie==="vertical"&&Ve(_.children))):null,nt=te.createElement("div",{ref:ue,className:ht,style:Ke},te.createElement("div",{className:Re},te.createElement("span",{className:Ne,ref:ye}),"items"in Ce?Ve(re):L));te.useEffect(()=>{const ot=ae();return Xe(),ot==null||ot.addEventListener("scroll",Xe),()=>{ot==null||ot.removeEventListener("scroll",Xe)}},[ve]),te.useEffect(()=>{typeof rt=="function"&&tt(rt(Ct.current||""))},[rt]),te.useEffect(()=>{Me()},[Ie,rt,ve,yt]);const ft=te.useMemo(()=>({registerLink:we,unregisterLink:De,scrollTo:We,activeLink:yt,onClick:je,direction:Ie}),[yt,je,We,Ie]);return te.createElement(E.Provider,{value:ft},m?te.createElement(a.Z,{offsetTop:$,target:ae},nt):nt)};var _e=Ce=>{const{prefixCls:M,rootClassName:I}=Ce,{getPrefixCls:U}=te.useContext(N.E_),R=U("anchor",M),[q,$]=j(R);return q(te.createElement(se,Object.assign({},Ce,{rootClassName:be()($,I),anchorPrefixCls:R})))};const he=_e;he.Link=y;var pe=he},66104:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return U}});var Z=S(92310),ie=S.n(Z),be=S(11592),ke=S(26112),te=S(59301),ee=S(92343),xe=S(36355),de=S(84105),a=S(91857);const N=R=>{let{children:q}=R;const{getPrefixCls:$}=te.useContext(xe.E_),m=$("breadcrumb");return te.createElement("li",{className:`${m}-separator`,"aria-hidden":"true"},q===""?q:q||"/")};N.__ANT_BREADCRUMB_SEPARATOR=!0;var P=N,E=function(R,q){var $={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&q.indexOf(m)<0&&($[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,m=Object.getOwnPropertySymbols(R);v<m.length;v++)q.indexOf(m[v])<0&&Object.prototype.propertyIsEnumerable.call(R,m[v])&&($[m[v]]=R[m[v]]);return $};function c(R,q){if(R.title===void 0||R.title===null)return null;const $=Object.keys(q).join("|");return typeof R.title=="object"?R.title:String(R.title).replace(new RegExp(`:(${$})`,"g"),(m,v)=>q[v]||m)}function y(R,q,$,m){if($==null)return null;const{className:v,onClick:L}=q,re=E(q,["className","onClick"]),Ie=Object.assign(Object.assign({},(0,ke.Z)(re,{data:!0,aria:!0})),{onClick:L});return m!==void 0?te.createElement("a",Object.assign({},Ie,{className:ie()(`${R}-link`,v),href:m}),$):te.createElement("span",Object.assign({},Ie,{className:ie()(`${R}-link`,v)}),$)}function x(R,q){return(m,v,L,re,Ie)=>{if(q)return q(m,v,L,re);const Be=c(m,v);return y(R,m,Be,Ie)}}var H=function(R,q){var $={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&q.indexOf(m)<0&&($[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,m=Object.getOwnPropertySymbols(R);v<m.length;v++)q.indexOf(m[v])<0&&Object.prototype.propertyIsEnumerable.call(R,m[v])&&($[m[v]]=R[m[v]]);return $};const V=R=>{const{prefixCls:q,separator:$="/",children:m,menu:v,overlay:L,dropdownProps:re,href:Ie}=R,Oe=(je=>{if(v||L){const at=Object.assign({},re);if(v){const et=v||{},{items:rt}=et,Tt=H(et,["items"]);at.menu=Object.assign(Object.assign({},Tt),{items:rt==null?void 0:rt.map((At,Ot)=>{var{key:yt,title:Rt,label:Ct,path:ue}=At,ye=H(At,["key","title","label","path"]);let J=Ct!=null?Ct:Rt;return ue&&(J=te.createElement("a",{href:`${Ie}${ue}`},J)),Object.assign(Object.assign({},ye),{key:yt!=null?yt:Ot,label:J})})})}else L&&(at.overlay=L);return te.createElement(a.Z,Object.assign({placement:"bottom"},at),te.createElement("span",{className:`${q}-overlay-link`},je,te.createElement(de.Z,null)))}return je})(m);return Oe!=null?te.createElement(te.Fragment,null,te.createElement("li",null,Oe),$&&te.createElement(P,null,$)):null},k=R=>{const{prefixCls:q,children:$,href:m}=R,v=H(R,["prefixCls","children","href"]),{getPrefixCls:L}=te.useContext(xe.E_),re=L("breadcrumb",q);return te.createElement(V,Object.assign({},v,{prefixCls:re}),y(re,v,$,m))};k.__ANT_BREADCRUMB_ITEM=!0;var D=k,j=S(17313),oe=S(83116),w=S(37613);const K=R=>{const{componentCls:q,iconCls:$}=R;return{[q]:Object.assign(Object.assign({},(0,j.Wf)(R)),{color:R.itemColor,fontSize:R.fontSize,[$]:{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,j.Qy)(R)),"li:last-child":{color:R.lastItemColor},[`${q}-separator`]:{marginInline:R.separatorMargin,color:R.separatorColor},[`${q}-link`]:{[`
|
|
> ${$} + span,
|
|
> ${$} + a
|
|
`]:{marginInlineStart:R.marginXXS}},[`${q}-overlay-link`]:{borderRadius:R.borderRadiusSM,height:R.lineHeight*R.fontSize,display:"inline-block",padding:`0 ${R.paddingXXS}px`,marginInline:-R.marginXXS,[`> ${$}`]:{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 se=(0,oe.Z)("Breadcrumb",R=>{const q=(0,w.TS)(R,{});return[K(q)]},R=>({itemColor:R.colorTextDescription,lastItemColor:R.colorText,iconFontSize:R.fontSize,linkColor:R.colorTextDescription,linkHoverColor:R.colorText,separatorColor:R.colorTextDescription,separatorMargin:R.marginXS})),X=function(R,q){var $={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&q.indexOf(m)<0&&($[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,m=Object.getOwnPropertySymbols(R);v<m.length;v++)q.indexOf(m[v])<0&&Object.prototype.propertyIsEnumerable.call(R,m[v])&&($[m[v]]=R[m[v]]);return $};function _e(R){const{breadcrumbName:q,children:$}=R,m=X(R,["breadcrumbName","children"]),v=Object.assign({title:q},m);return $&&(v.menu={items:$.map(L=>{var{breadcrumbName:re}=L,Ie=X(L,["breadcrumbName"]);return Object.assign(Object.assign({},Ie),{title:re})})}),v}function he(R,q){return(0,te.useMemo)(()=>R||(q?q.map(_e):null),[R,q])}var pe=function(R,q){var $={};for(var m in R)Object.prototype.hasOwnProperty.call(R,m)&&q.indexOf(m)<0&&($[m]=R[m]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,m=Object.getOwnPropertySymbols(R);v<m.length;v++)q.indexOf(m[v])<0&&Object.prototype.propertyIsEnumerable.call(R,m[v])&&($[m[v]]=R[m[v]]);return $};const Ce=(R,q)=>{if(q===void 0)return q;let $=(q||"").replace(/^\//,"");return Object.keys(R).forEach(m=>{$=$.replace(`:${m}`,R[m])}),$},M=R=>{const{prefixCls:q,separator:$="/",style:m,className:v,rootClassName:L,routes:re,items:Ie,children:Be,itemRender:Oe,params:je={}}=R,at=pe(R,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:et,direction:rt,breadcrumb:Tt}=te.useContext(xe.E_);let At;const Ot=et("breadcrumb",q),[yt,Rt]=se(Ot),Ct=he(Ie,re),ue=x(Ot,Oe);if(Ct&&Ct.length>0){const Pe=[],$e=Ie||re;At=Ct.map((O,ae)=>{const{path:ve,key:we,type:De,menu:Me,overlay:Ye,onClick:tt,className:Xe,separator:We,dropdownProps:ht}=O,Re=Ce(je,ve);Re!==void 0&&Pe.push(Re);const Ne=we!=null?we:ae;if(De==="separator")return te.createElement(P,{key:Ne},We);const Ke={},Ve=ae===Ct.length-1;Me?Ke.menu=Me:Ye&&(Ke.overlay=Ye);let{href:nt}=O;return Pe.length&&Re!==void 0&&(nt=`#/${Pe.join("/")}`),te.createElement(V,Object.assign({key:Ne},Ke,(0,ke.Z)(O,{data:!0,aria:!0}),{className:Xe,dropdownProps:ht,href:nt,separator:Ve?"":$,onClick:tt,prefixCls:Ot}),ue(O,je,$e,Pe,nt))})}else if(Be){const Pe=(0,be.Z)(Be).length;At=(0,be.Z)(Be).map(($e,O)=>{if(!$e)return $e;const ae=O===Pe-1;return(0,ee.Tm)($e,{separator:ae?"":$,key:O})})}const ye=ie()(Ot,Tt==null?void 0:Tt.className,{[`${Ot}-rtl`]:rt==="rtl"},v,L,Rt),J=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),m);return yt(te.createElement("nav",Object.assign({className:ye,style:J},at),te.createElement("ol",null,At)))};M.Item=D,M.Separator=P;var I=M,U=I},28103:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return E}});var Z=S(92310),ie=S.n(Z),be=S(59301),ke=S(36355),te=S(17313),ee=S(83116),xe=S(37613);const de=c=>{const{componentCls:y,sizePaddingEdgeHorizontal:x,colorSplit:H,lineWidth:V,textPaddingInline:k,orientationMargin:D,verticalMarginInline:j}=c;return{[y]:Object.assign(Object.assign({},(0,te.Wf)(c)),{borderBlockStart:`${V}px solid ${H}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:j,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${V}px solid ${H}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${c.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${y}-with-text`]:{display:"flex",alignItems:"center",margin:`${c.dividerHorizontalWithTextGutterMargin}px 0`,color:c.colorTextHeading,fontWeight:500,fontSize:c.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${H}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${V}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${y}-with-text-left`]:{"&::before":{width:`${D*100}%`},"&::after":{width:`${100-D*100}%`}},[`&-horizontal${y}-with-text-right`]:{"&::before":{width:`${100-D*100}%`},"&::after":{width:`${D*100}%`}},[`${y}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:k},"&-dashed":{background:"none",borderColor:H,borderStyle:"dashed",borderWidth:`${V}px 0 0`},[`&-horizontal${y}-with-text${y}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${y}-dashed`]:{borderInlineStartWidth:V,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${y}-with-text`]:{color:c.colorText,fontWeight:"normal",fontSize:c.fontSize},[`&-horizontal${y}-with-text-left${y}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${y}-inner-text`]:{paddingInlineStart:x}},[`&-horizontal${y}-with-text-right${y}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${y}-inner-text`]:{paddingInlineEnd:x}}})}};var a=(0,ee.Z)("Divider",c=>{const y=(0,xe.TS)(c,{dividerHorizontalWithTextGutterMargin:c.margin,dividerHorizontalGutterMargin:c.marginLG,sizePaddingEdgeHorizontal:0});return[de(y)]},c=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:c.marginXS})),N=function(c,y){var x={};for(var H in c)Object.prototype.hasOwnProperty.call(c,H)&&y.indexOf(H)<0&&(x[H]=c[H]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,H=Object.getOwnPropertySymbols(c);V<H.length;V++)y.indexOf(H[V])<0&&Object.prototype.propertyIsEnumerable.call(c,H[V])&&(x[H[V]]=c[H[V]]);return x},E=c=>{const{getPrefixCls:y,direction:x,divider:H}=be.useContext(ke.E_),{prefixCls:V,type:k="horizontal",orientation:D="center",orientationMargin:j,className:oe,rootClassName:w,children:K,dashed:se,plain:X,style:_e}=c,he=N(c,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),pe=y("divider",V),[Ce,M]=a(pe),I=D.length>0?`-${D}`:D,U=!!K,R=D==="left"&&j!=null,q=D==="right"&&j!=null,$=ie()(pe,H==null?void 0:H.className,M,`${pe}-${k}`,{[`${pe}-with-text`]:U,[`${pe}-with-text${I}`]:U,[`${pe}-dashed`]:!!se,[`${pe}-plain`]:!!X,[`${pe}-rtl`]:x==="rtl",[`${pe}-no-default-orientation-margin-left`]:R,[`${pe}-no-default-orientation-margin-right`]:q},oe,w),m=be.useMemo(()=>typeof j=="number"?j:/^\d+$/.test(j)?Number(j):j,[j]),v=Object.assign(Object.assign({},R&&{marginLeft:m}),q&&{marginRight:m});return Ce(be.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},H==null?void 0:H.style),_e)},he,{role:"separator"}),K&&k!=="vertical"&&be.createElement("span",{className:`${pe}-inner-text`,style:v},K)))}},91857:function(Mt,Qe,S){"use strict";var Z=S(59301),ie=S(38819),be=S(92310),ke=S.n(be),te=S(31561),ee=S(70425),xe=S(18929),de=S(2738),a=S(79676),N=S(53487),P=S(92343),E=S(36355),c=S(20834),y=S(40875),x=S(88088),H=S(47211);const V=null,k=w=>{const{menu:K,arrow:se,prefixCls:X,children:_e,trigger:he,disabled:pe,dropdownRender:Ce,getPopupContainer:M,overlayClassName:I,rootClassName:U,open:R,onOpenChange:q,visible:$,onVisibleChange:m,mouseEnterDelay:v=.15,mouseLeaveDelay:L=.1,autoAdjustOverflow:re=!0,placement:Ie="",overlay:Be,transitionName:Oe}=w,{getPopupContainer:je,getPrefixCls:at,direction:et}=Z.useContext(E.E_),rt=Z.useMemo(()=>{const Me=at();return Oe!==void 0?Oe:Ie.includes("top")?`${Me}-slide-down`:`${Me}-slide-up`},[at,Ie,Oe]),Tt=Z.useMemo(()=>Ie?Ie.includes("Center")?Ie.slice(0,Ie.indexOf("Center")):Ie:et==="rtl"?"bottomRight":"bottomLeft",[Ie,et]),At=at("dropdown",X),[Ot,yt]=(0,H.Z)(At),[,Rt]=(0,x.Z)(),Ct=Z.Children.only(_e),ue=(0,P.Tm)(Ct,{className:ke()(`${At}-trigger`,{[`${At}-rtl`]:et==="rtl"},Ct.props.className),disabled:pe}),ye=pe?[]:he;let J;ye&&ye.includes("contextMenu")&&(J=!0);const[Pe,$e]=(0,xe.Z)(!1,{value:R!=null?R:$}),O=(0,ee.useEvent)(Me=>{q==null||q(Me),m==null||m(Me),$e(Me)}),ae=ke()(I,U,yt,{[`${At}-rtl`]:et==="rtl"}),ve=(0,a.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:re,offset:Rt.marginXXS,arrowWidth:se?Rt.sizePopupArrow:0,borderRadius:Rt.borderRadius}),we=Z.useCallback(()=>{$e(!1)},[]),De=()=>{let Me;return K!=null&&K.items?Me=Z.createElement(c.default,Object.assign({},K)):typeof Be=="function"?Me=Be():Me=Be,Ce&&(Me=Ce(Me)),Me=Z.Children.only(typeof Me=="string"?Z.createElement("span",null,Me):Me),Z.createElement(y.J,{prefixCls:`${At}-menu`,expandIcon:Z.createElement("span",{className:`${At}-menu-submenu-arrow`},Z.createElement(ie.Z,{className:`${At}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:we,validator:Ye=>{let{mode:tt}=Ye}},Me)};return Ot(Z.createElement(te.Z,Object.assign({alignPoint:J},(0,de.Z)(w,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:L,visible:Pe,builtinPlacements:ve,arrow:!!se,overlayClassName:ae,prefixCls:At,getPopupContainer:M||je,transitionName:rt,trigger:ye,overlay:De,placement:Tt,onVisibleChange:O}),ue))};function D(w){return Object.assign(Object.assign({},w),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const j=(0,N.Z)(k,"dropdown",w=>w,D),oe=w=>Z.createElement(j,Object.assign({},w),Z.createElement("span",null));k._InternalPanelDoNotUseOrYouWillBeFired=oe,Qe.Z=k},47211:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return P}});var Z=S(17313),ie=S(13826),be=S(92899),ke=S(29878),te=S(19447),ee=S(83116),xe=S(37613),a=E=>{const{componentCls:c,menuCls:y,colorError:x,colorTextLightSolid:H}=E,V=`${y}-item`;return{[`${c}, ${c}-menu-submenu`]:{[`${y} ${V}`]:{[`&${V}-danger:not(${V}-disabled)`]:{color:x,"&:hover":{color:H,backgroundColor:x}}}}}};const N=E=>{const{componentCls:c,menuCls:y,zIndexPopup:x,dropdownArrowDistance:H,sizePopupArrow:V,antCls:k,iconCls:D,motionDurationMid:j,dropdownPaddingVertical:oe,fontSize:w,dropdownEdgeChildPadding:K,colorTextDisabled:se,fontSizeIcon:X,controlPaddingHorizontal:_e,colorBgElevated:he}=E;return[{[c]:Object.assign(Object.assign({},(0,Z.Wf)(E)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x,display:"block","&::before":{position:"absolute",insetBlock:-H+V/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${k}-btn`]:{[`& > ${D}-down, & > ${k}-btn-icon > ${D}-down`]:{fontSize:X}},[`${c}-wrap`]:{position:"relative",[`${k}-btn > ${D}-down`]:{fontSize:X},[`${D}-down::before`]:{transition:`transform ${j}`}},[`${c}-wrap-open`]:{[`${D}-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:ie.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:ie.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:ie.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:ie.ly}})},(0,te.ZP)(E,{colorBg:he,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${c} ${y}`]:{position:"relative",margin:0},[`${y}-submenu-popup`]:{position:"absolute",zIndex:x,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${c}, ${c}-menu-submenu`]:{[y]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:E.borderRadiusLG,outline:"none",boxShadow:E.boxShadowSecondary},(0,Z.Qy)(E)),{[`${y}-item-group-title`]:{padding:`${oe}px ${_e}px`,color:E.colorTextDescription,transition:`all ${j}`},[`${y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${y}-item-icon`]:{minWidth:w,marginInlineEnd:E.marginXS,fontSize:E.fontSizeSM},[`${y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${j}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${y}-item, ${y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${_e}px`,color:E.colorText,fontWeight:"normal",fontSize:w,lineHeight:E.lineHeight,cursor:"pointer",transition:`all ${j}`,borderRadius:E.borderRadiusSM,"&:hover, &-active":{backgroundColor:E.controlItemBgHover}},(0,Z.Qy)(E)),{"&-selected":{color:E.colorPrimary,backgroundColor:E.controlItemBgActive,"&:hover, &-active":{backgroundColor:E.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${E.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:E.colorSplit},[`${c}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:E.paddingXS,[`${c}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:E.colorTextDescription,fontSize:X,fontStyle:"normal"}}}),[`${y}-item-group-list`]:{margin:`0 ${E.marginXS}px`,padding:0,listStyle:"none"},[`${y}-submenu-title`]:{paddingInlineEnd:_e+E.fontSizeSM},[`${y}-submenu-vertical`]:{position:"relative"},[`${y}-submenu${y}-submenu-disabled ${c}-menu-submenu-title`]:{[`&, ${c}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:he,cursor:"not-allowed"}},[`${y}-submenu-selected ${c}-menu-submenu-title`]:{color:E.colorPrimary}})}},[(0,ie.oN)(E,"slide-up"),(0,ie.oN)(E,"slide-down"),(0,be.Fm)(E,"move-up"),(0,be.Fm)(E,"move-down"),(0,ke._y)(E,"zoom-big")]]};var P=(0,ee.Z)("Dropdown",(E,c)=>{let{rootPrefixCls:y}=c;const{marginXXS:x,sizePopupArrow:H,controlHeight:V,fontSize:k,lineHeight:D,paddingXXS:j,componentCls:oe,borderRadiusLG:w}=E,K=(V-k*D)/2,{dropdownArrowOffset:se}=(0,te.fS)({contentRadius:w}),X=(0,xe.TS)(E,{menuCls:`${oe}-menu`,rootPrefixCls:y,dropdownArrowDistance:H/2+x,dropdownArrowOffset:se,dropdownPaddingVertical:K,dropdownEdgeChildPadding:j});return[N(X),a(X)]},E=>({zIndexPopup:E.zIndexPopupBase+50}))},5871:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return ht}});var Z=S(84105),ie=S(87395),be=S(92310),ke=S.n(be),te=S(96663),ee=S(90493),xe=S(20135),de=S(72071),a=S(6620),N=S(52884),P=S(95727);function E(){return typeof BigInt=="function"}function c(Re){return!Re&&Re!==0&&!Number.isNaN(Re)||!String(Re).trim()}function y(Re){var Ne=Re.trim(),Ke=Ne.startsWith("-");Ke&&(Ne=Ne.slice(1)),Ne=Ne.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ne.startsWith(".")&&(Ne="0".concat(Ne));var Ve=Ne||"0",nt=Ve.split("."),ft=nt[0]||"0",ot=nt[1]||"0";ft==="0"&&ot==="0"&&(Ke=!1);var _=Ke?"-":"";return{negative:Ke,negativeStr:_,trimStr:Ve,integerStr:ft,decimalStr:ot,fullStr:"".concat(_).concat(Ve)}}function x(Re){var Ne=String(Re);return!Number.isNaN(Number(Ne))&&Ne.includes("e")}function H(Re){var Ne=String(Re);if(x(Re)){var Ke=Number(Ne.slice(Ne.indexOf("e-")+2)),Ve=Ne.match(/\.(\d+)/);return Ve!=null&&Ve[1]&&(Ke+=Ve[1].length),Ke}return Ne.includes(".")&&k(Ne)?Ne.length-Ne.indexOf(".")-1:0}function V(Re){var Ne=String(Re);if(x(Re)){if(Re>Number.MAX_SAFE_INTEGER)return String(E()?BigInt(Re).toString():Number.MAX_SAFE_INTEGER);if(Re<Number.MIN_SAFE_INTEGER)return String(E()?BigInt(Re).toString():Number.MIN_SAFE_INTEGER);Ne=Re.toFixed(H(Ne))}return y(Ne).fullStr}function k(Re){return typeof Re=="number"?!Number.isNaN(Re):Re?/^\s*-?\d+(\.\d+)?\s*$/.test(Re)||/^\s*-?\d+\.\s*$/.test(Re)||/^\s*-?\.\d+\s*$/.test(Re):!1}var D=function(){function Re(Ne){if((0,N.Z)(this,Re),(0,ee.Z)(this,"origin",""),(0,ee.Z)(this,"negative",void 0),(0,ee.Z)(this,"integer",void 0),(0,ee.Z)(this,"decimal",void 0),(0,ee.Z)(this,"decimalLen",void 0),(0,ee.Z)(this,"empty",void 0),(0,ee.Z)(this,"nan",void 0),c(Ne)){this.empty=!0;return}if(this.origin=String(Ne),Ne==="-"||Number.isNaN(Ne)){this.nan=!0;return}var Ke=Ne;if(x(Ke)&&(Ke=Number(Ke)),Ke=typeof Ke=="string"?Ke:V(Ke),k(Ke)){var Ve=y(Ke);this.negative=Ve.negative;var nt=Ve.trimStr.split(".");this.integer=BigInt(nt[0]);var ft=nt[1]||"0";this.decimal=BigInt(ft),this.decimalLen=ft.length}else this.nan=!0}return(0,P.Z)(Re,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Ke){var Ve="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Ke,"0"));return BigInt(Ve)}},{key:"negate",value:function(){var Ke=new Re(this.toString());return Ke.negative=!Ke.negative,Ke}},{key:"cal",value:function(Ke,Ve,nt){var ft=Math.max(this.getDecimalStr().length,Ke.getDecimalStr().length),ot=this.alignDecimal(ft),_=Ke.alignDecimal(ft),T=Ve(ot,_).toString(),qe=nt(ft),G=y(T),ge=G.negativeStr,Nt=G.trimStr,Te="".concat(ge).concat(Nt.padStart(qe+1,"0"));return new Re("".concat(Te.slice(0,-qe),".").concat(Te.slice(-qe)))}},{key:"add",value:function(Ke){if(this.isInvalidate())return new Re(Ke);var Ve=new Re(Ke);return Ve.isInvalidate()?this:this.cal(Ve,function(nt,ft){return nt+ft},function(nt){return nt})}},{key:"multi",value:function(Ke){var Ve=new Re(Ke);return this.isInvalidate()||Ve.isInvalidate()?new Re(NaN):this.cal(Ve,function(nt,ft){return nt*ft},function(nt){return nt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Ke){return this.toString()===(Ke==null?void 0:Ke.toString())}},{key:"lessEquals",value:function(Ke){return this.add(Ke.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ke?this.isInvalidate()?"":y("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Re}(),j=function(){function Re(Ne){if((0,N.Z)(this,Re),(0,ee.Z)(this,"origin",""),(0,ee.Z)(this,"number",void 0),(0,ee.Z)(this,"empty",void 0),c(Ne)){this.empty=!0;return}this.origin=String(Ne),this.number=Number(Ne)}return(0,P.Z)(Re,[{key:"negate",value:function(){return new Re(-this.toNumber())}},{key:"add",value:function(Ke){if(this.isInvalidate())return new Re(Ke);var Ve=Number(Ke);if(Number.isNaN(Ve))return this;var nt=this.number+Ve;if(nt>Number.MAX_SAFE_INTEGER)return new Re(Number.MAX_SAFE_INTEGER);if(nt<Number.MIN_SAFE_INTEGER)return new Re(Number.MIN_SAFE_INTEGER);var ft=Math.max(H(this.number),H(Ve));return new Re(nt.toFixed(ft))}},{key:"multi",value:function(Ke){var Ve=Number(Ke);if(this.isInvalidate()||Number.isNaN(Ve))return new Re(NaN);var nt=this.number*Ve;if(nt>Number.MAX_SAFE_INTEGER)return new Re(Number.MAX_SAFE_INTEGER);if(nt<Number.MIN_SAFE_INTEGER)return new Re(Number.MIN_SAFE_INTEGER);var ft=Math.max(H(this.number),H(Ve));return new Re(nt.toFixed(ft))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Ke){return this.toNumber()===(Ke==null?void 0:Ke.toNumber())}},{key:"lessEquals",value:function(Ke){return this.add(Ke.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ke?this.isInvalidate()?"":V(this.number):this.origin}}]),Re}();function oe(Re){return E()?new D(Re):new j(Re)}function w(Re,Ne,Ke){var Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Re==="")return"";var nt=y(Re),ft=nt.negativeStr,ot=nt.integerStr,_=nt.decimalStr,T="".concat(Ne).concat(_),qe="".concat(ft).concat(ot);if(Ke>=0){var G=Number(_[Ke]);if(G>=5&&!Ve){var ge=oe(Re).add("".concat(ft,"0.").concat("0".repeat(Ke)).concat(10-G));return w(ge.toString(),Ne,Ke,Ve)}return Ke===0?qe:"".concat(qe).concat(Ne).concat(_.padEnd(Ke,"0").slice(0,Ke))}return T===".0"?qe:"".concat(qe).concat(T)}var K=oe,se=S(93681),X=S(34280),_e=S(8654),he=S(59301),pe=S(48736);function Ce(Re,Ne){var Ke=(0,he.useRef)(null);function Ve(){try{var ft=Re.selectionStart,ot=Re.selectionEnd,_=Re.value,T=_.substring(0,ft),qe=_.substring(ot);Ke.current={start:ft,end:ot,value:_,beforeTxt:T,afterTxt:qe}}catch(G){}}function nt(){if(Re&&Ke.current&&Ne)try{var ft=Re.value,ot=Ke.current,_=ot.beforeTxt,T=ot.afterTxt,qe=ot.start,G=ft.length;if(ft.endsWith(T))G=ft.length-Ke.current.afterTxt.length;else if(ft.startsWith(_))G=_.length;else{var ge=_[qe-1],Nt=ft.indexOf(ge,qe-1);Nt!==-1&&(G=Nt+1)}Re.setSelectionRange(G,G)}catch(Te){(0,pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Te.message))}}return[Ve,nt]}var M=S(49658),I=function(){var Ne=(0,he.useState)(!1),Ke=(0,de.Z)(Ne,2),Ve=Ke[0],nt=Ke[1];return(0,X.Z)(function(){nt((0,M.Z)())},[]),Ve},U=I,R=S(16089),q=200,$=600;function m(Re){var Ne=Re.prefixCls,Ke=Re.upNode,Ve=Re.downNode,nt=Re.upDisabled,ft=Re.downDisabled,ot=Re.onStep,_=he.useRef(),T=he.useRef([]),qe=he.useRef();qe.current=ot;var G=function(){clearTimeout(_.current)},ge=function(ze,W){ze.preventDefault(),G(),qe.current(W);function bt(){qe.current(W),_.current=setTimeout(bt,q)}_.current=setTimeout(bt,$)};he.useEffect(function(){return function(){G(),T.current.forEach(function(Ee){return R.Z.cancel(Ee)})}},[]);var Nt=U();if(Nt)return null;var Te="".concat(Ne,"-handler"),He=ke()(Te,"".concat(Te,"-up"),(0,ee.Z)({},"".concat(Te,"-up-disabled"),nt)),Ze=ke()(Te,"".concat(Te,"-down"),(0,ee.Z)({},"".concat(Te,"-down-disabled"),ft)),Y=function(){return T.current.push((0,R.Z)(G))},ce={unselectable:"on",role:"button",onMouseUp:Y,onMouseLeave:Y};return he.createElement("div",{className:"".concat(Te,"-wrap")},he.createElement("span",(0,te.Z)({},ce,{onMouseDown:function(ze){ge(ze,!0)},"aria-label":"Increase Value","aria-disabled":nt,className:He}),Ke||he.createElement("span",{unselectable:"on",className:"".concat(Ne,"-handler-up-inner")})),he.createElement("span",(0,te.Z)({},ce,{onMouseDown:function(ze){ge(ze,!1)},"aria-label":"Decrease Value","aria-disabled":ft,className:Ze}),Ve||he.createElement("span",{unselectable:"on",className:"".concat(Ne,"-handler-down-inner")})))}function v(Re){var Ne=typeof Re=="number"?V(Re):y(Re).fullStr,Ke=Ne.includes(".");return Ke?y(Ne.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Re+"0"}var L=S(5643),re=function(){var Re=(0,he.useRef)(0),Ne=function(){R.Z.cancel(Re.current)};return(0,he.useEffect)(function(){return Ne},[]),function(Ke){Ne(),Re.current=(0,R.Z)(function(){Ke()})}},Ie=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Be=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Oe=function(Ne,Ke){return Ne||Ke.isEmpty()?Ke.toString():Ke.toNumber()},je=function(Ne){var Ke=K(Ne);return Ke.isInvalidate()?null:Ke},at=he.forwardRef(function(Re,Ne){var Ke,Ve=Re.prefixCls,nt=Ve===void 0?"rc-input-number":Ve,ft=Re.className,ot=Re.style,_=Re.min,T=Re.max,qe=Re.step,G=qe===void 0?1:qe,ge=Re.defaultValue,Nt=Re.value,Te=Re.disabled,He=Re.readOnly,Ze=Re.upHandler,Y=Re.downHandler,ce=Re.keyboard,Ee=Re.controls,ze=Ee===void 0?!0:Ee,W=Re.classNames,bt=Re.stringMode,Ae=Re.parser,Dt=Re.formatter,Ht=Re.precision,Xt=Re.decimalSeparator,mr=Re.onChange,Bt=Re.onInput,Ft=Re.onPressEnter,fr=Re.onStep,Br=(0,a.Z)(Re,Ie),Ur="".concat(nt,"-input"),kr=he.useRef(null),Kt=he.useState(!1),lr=(0,de.Z)(Kt,2),br=lr[0],Vr=lr[1],Lr=he.useRef(!1),Yr=he.useRef(!1),xr=he.useRef(!1),kn=he.useState(function(){return K(Nt!=null?Nt:ge)}),sn=(0,de.Z)(kn,2),Gt=sn[0],Ut=sn[1];function pr(Wt){Nt===void 0&&Ut(Wt)}var Hr=he.useCallback(function(Wt,Ue){if(!Ue)return Ht>=0?Ht:Math.max(H(Wt),H(G))},[Ht,G]),gr=he.useCallback(function(Wt){var Ue=String(Wt);if(Ae)return Ae(Ue);var jt=Ue;return Xt&&(jt=jt.replace(Xt,".")),jt.replace(/[^\w.-]+/g,"")},[Ae,Xt]),rn=he.useRef(""),Wn=he.useCallback(function(Wt,Ue){if(Dt)return Dt(Wt,{userTyping:Ue,input:String(rn.current)});var jt=typeof Wt=="number"?V(Wt):Wt;if(!Ue){var Jt=Hr(jt,Ue);if(k(jt)&&(Xt||Jt>=0)){var jr=Xt||".";jt=w(jt,jr,Jt)}}return jt},[Dt,Hr,Xt]),Qr=he.useState(function(){var Wt=ge!=null?ge:Nt;return Gt.isInvalidate()&&["string","number"].includes((0,xe.Z)(Wt))?Number.isNaN(Wt)?"":Wt:Wn(Gt.toString(),!1)}),rr=(0,de.Z)(Qr,2),it=rr[0],st=rr[1];rn.current=it;function gt(Wt,Ue){st(Wn(Wt.isInvalidate()?Wt.toString(!1):Wt.toString(!Ue),Ue))}var St=he.useMemo(function(){return je(T)},[T,Ht]),mt=he.useMemo(function(){return je(_)},[_,Ht]),wt=he.useMemo(function(){return!St||!Gt||Gt.isInvalidate()?!1:St.lessEquals(Gt)},[St,Gt]),_t=he.useMemo(function(){return!mt||!Gt||Gt.isInvalidate()?!1:Gt.lessEquals(mt)},[mt,Gt]),Yt=Ce(kr.current,br),ir=(0,de.Z)(Yt,2),Qt=ir[0],vr=ir[1],wr=function(Ue){return St&&!Ue.lessEquals(St)?St:mt&&!mt.lessEquals(Ue)?mt:null},Sr=function(Ue){return!wr(Ue)},sr=function(Ue,jt){var Jt=Ue,jr=Sr(Jt)||Jt.isEmpty();if(!Jt.isEmpty()&&!jt&&(Jt=wr(Jt)||Jt,jr=!0),!He&&!Te&&jr){var pn=Jt.toString(),En=Hr(pn,jt);return En>=0&&(Jt=K(w(pn,".",En)),Sr(Jt)||(Jt=K(w(pn,".",En,!0)))),Jt.equals(Gt)||(pr(Jt),mr==null||mr(Jt.isEmpty()?null:Oe(bt,Jt)),Nt===void 0&>(Jt,jt)),Jt}return Gt},ar=re(),Wr=function Wt(Ue){if(Qt(),rn.current=Ue,st(Ue),!Yr.current){var jt=gr(Ue),Jt=K(jt);Jt.isNaN()||sr(Jt,!0)}Bt==null||Bt(Ue),ar(function(){var jr=Ue;Ae||(jr=Ue.replace(/。/g,".")),jr!==Ue&&Wt(jr)})},Er=function(){Yr.current=!0},Xr=function(){Yr.current=!1,Wr(kr.current.value)},Fr=function(Ue){Wr(Ue.target.value)},Or=function(Ue){var jt;if(!(Ue&&wt||!Ue&&_t)){Lr.current=!1;var Jt=K(xr.current?v(G):G);Ue||(Jt=Jt.negate());var jr=(Gt||K(0)).add(Jt.toString()),pn=sr(jr,!1);fr==null||fr(Oe(bt,pn),{offset:xr.current?v(G):G,type:Ue?"up":"down"}),(jt=kr.current)===null||jt===void 0||jt.focus()}},Tr=function(Ue){var jt=K(gr(it)),Jt=jt;jt.isNaN()?Jt=sr(Gt,Ue):Jt=sr(jt,Ue),Nt!==void 0?gt(Gt,!1):Jt.isNaN()||gt(Jt,!1)},Dr=function(){Lr.current=!0},$r=function(Ue){var jt=Ue.key,Jt=Ue.shiftKey;Lr.current=!0,xr.current=Jt,jt==="Enter"&&(Yr.current||(Lr.current=!1),Tr(!1),Ft==null||Ft(Ue)),ce!==!1&&!Yr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(jt)&&(Or(jt==="Up"||jt==="ArrowUp"),Ue.preventDefault())},fn=function(){Lr.current=!1,xr.current=!1},Gr=function(){Tr(!1),Vr(!1),Lr.current=!1};return(0,X.o)(function(){Gt.isInvalidate()||gt(Gt,!1)},[Ht]),(0,X.o)(function(){var Wt=K(Nt);Ut(Wt);var Ue=K(gr(it));(!Wt.equals(Ue)||!Lr.current||Dt)&>(Wt,Lr.current)},[Nt]),(0,X.o)(function(){Dt&&vr()},[it]),he.createElement("div",{className:ke()(nt,W==null?void 0:W.input,ft,(Ke={},(0,ee.Z)(Ke,"".concat(nt,"-focused"),br),(0,ee.Z)(Ke,"".concat(nt,"-disabled"),Te),(0,ee.Z)(Ke,"".concat(nt,"-readonly"),He),(0,ee.Z)(Ke,"".concat(nt,"-not-a-number"),Gt.isNaN()),(0,ee.Z)(Ke,"".concat(nt,"-out-of-range"),!Gt.isInvalidate()&&!Sr(Gt)),Ke)),style:ot,onFocus:function(){Vr(!0)},onBlur:Gr,onKeyDown:$r,onKeyUp:fn,onCompositionStart:Er,onCompositionEnd:Xr,onBeforeInput:Dr},ze&&he.createElement(m,{prefixCls:nt,upNode:Ze,downNode:Y,upDisabled:wt,downDisabled:_t,onStep:Or}),he.createElement("div",{className:"".concat(Ur,"-wrap")},he.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":_,"aria-valuemax":T,"aria-valuenow":Gt.isInvalidate()?null:Gt.toString(),step:G},Br,{ref:(0,_e.sQ)(kr,Ne),className:Ur,value:it,onChange:Fr,disabled:Te,readOnly:He}))))}),et=he.forwardRef(function(Re,Ne){var Ke=Re.disabled,Ve=Re.style,nt=Re.prefixCls,ft=Re.value,ot=Re.prefix,_=Re.suffix,T=Re.addonBefore,qe=Re.addonAfter,G=Re.classes,ge=Re.className,Nt=Re.classNames,Te=(0,a.Z)(Re,Be),He=he.useRef(null),Ze=function(ce){He.current&&(0,L.nH)(He.current,ce)};return he.createElement(se.BaseInput,{inputElement:he.createElement(at,(0,te.Z)({prefixCls:nt,disabled:Ke,classNames:Nt,ref:(0,_e.sQ)(He,Ne)},Te)),className:ge,triggerFocus:Ze,prefixCls:nt,value:ft,disabled:Ke,style:Ve,prefix:ot,suffix:_,addonAfter:qe,addonBefore:T,classes:G,classNames:Nt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});et.displayName="InputNumber";var rt=et,Tt=rt,At=S(19080),Ot=S(36355),yt=S(92736),Rt=S(1684),Ct=S(19716),ue=S(32441),ye=S(33234),J=S(9937),Pe=S(17313),$e=S(74207),O=S(83116),ae=S(37613);const ve=(Re,Ne)=>{let{componentCls:Ke,borderRadiusSM:Ve,borderRadiusLG:nt}=Re;const ft=Ne==="lg"?nt:Ve;return{[`&-${Ne}`]:{[`${Ke}-handler-wrap`]:{borderStartEndRadius:ft,borderEndEndRadius:ft},[`${Ke}-handler-up`]:{borderStartEndRadius:ft},[`${Ke}-handler-down`]:{borderEndEndRadius:ft}}}},we=Re=>{const{componentCls:Ne,lineWidth:Ke,lineType:Ve,colorBorder:nt,borderRadius:ft,fontSizeLG:ot,controlHeightLG:_,controlHeightSM:T,colorError:qe,paddingInlineSM:G,colorTextDescription:ge,motionDurationMid:Nt,handleHoverColor:Te,paddingInline:He,paddingBlock:Ze,handleBg:Y,handleActiveBg:ce,colorTextDisabled:Ee,borderRadiusSM:ze,borderRadiusLG:W,controlWidth:bt,handleVisible:Ae,handleBorderColor:Dt}=Re;return[{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Re)),(0,J.ik)(Re)),(0,J.bi)(Re,Ne)),{display:"inline-block",width:bt,margin:0,padding:0,border:`${Ke}px ${Ve} ${nt}`,borderRadius:ft,"&-rtl":{direction:"rtl",[`${Ne}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ot,borderRadius:W,[`input${Ne}-input`]:{height:_-2*Ke}},"&-sm":{padding:0,borderRadius:ze,[`input${Ne}-input`]:{height:T-2*Ke,padding:`0 ${G}px`}},"&:hover":Object.assign({},(0,J.pU)(Re)),"&-focused":Object.assign({},(0,J.M1)(Re)),"&-out-of-range":{[`${Ne}-input-wrap`]:{input:{color:qe}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Re)),(0,J.s7)(Re)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ne}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ne}-group-addon`]:{borderRadius:W,fontSize:Re.fontSizeLG}},"&-sm":{[`${Ne}-group-addon`]:{borderRadius:ze}},[`${Ne}-wrapper-disabled > ${Ne}-group-addon`]:Object.assign({},(0,J.Xy)(Re))}}),[`&-disabled ${Ne}-input`]:{cursor:"not-allowed"},[Ne]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Re)),{width:"100%",padding:`${Ze}px ${He}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ft,outline:0,transition:`all ${Nt} linear`,appearance:"textfield",fontSize:"inherit"}),(0,J.nz)(Re.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ne]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ne}-handler-wrap, &-focused ${Ne}-handler-wrap`]:{opacity:1},[`${Ne}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Re.handleWidth,height:"100%",background:Y,borderStartStartRadius:0,borderStartEndRadius:ft,borderEndEndRadius:ft,borderEndStartRadius:0,opacity:Ae===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Nt} linear ${Nt}`,[`${Ne}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
${Ne}-handler-up-inner,
|
|
${Ne}-handler-down-inner
|
|
`]:{marginInlineEnd:0,fontSize:Re.handleFontSize}}},[`${Ne}-handler`]:{height:"50%",overflow:"hidden",color:ge,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ke}px ${Ve} ${Dt}`,transition:`all ${Nt} linear`,"&:active":{background:ce},"&:hover":{height:"60%",[`
|
|
${Ne}-handler-up-inner,
|
|
${Ne}-handler-down-inner
|
|
`]:{color:Te}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Pe.Ro)()),{color:ge,transition:`all ${Nt} linear`,userSelect:"none"})},[`${Ne}-handler-up`]:{borderStartEndRadius:ft},[`${Ne}-handler-down`]:{borderBlockStart:`${Ke}px ${Ve} ${Dt}`,borderEndEndRadius:ft}},ve(Re,"lg")),ve(Re,"sm")),{"&-disabled, &-readonly":{[`${Ne}-handler-wrap`]:{display:"none"},[`${Ne}-input`]:{color:"inherit"}},[`
|
|
${Ne}-handler-up-disabled,
|
|
${Ne}-handler-down-disabled
|
|
`]:{cursor:"not-allowed"},[`
|
|
${Ne}-handler-up-disabled:hover &-handler-up-inner,
|
|
${Ne}-handler-down-disabled:hover &-handler-down-inner
|
|
`]:{color:Ee}})},{[`${Ne}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ne}-handler-down`]:{borderBlockStartWidth:0}}}]},De=Re=>{const{componentCls:Ne,paddingBlock:Ke,paddingInline:Ve,inputAffixPadding:nt,controlWidth:ft,borderRadiusLG:ot,borderRadiusSM:_}=Re;return{[`${Ne}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,J.ik)(Re)),(0,J.bi)(Re,`${Ne}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ft,padding:0,paddingInlineStart:Ve,"&-lg":{borderRadius:ot},"&-sm":{borderRadius:_},[`&:not(${Ne}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,J.pU)(Re)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ne}-disabled`]:{background:"transparent"},[`> div${Ne}`]:{width:"100%",border:"none",outline:"none",[`&${Ne}-focused`]:{boxShadow:"none !important"}},[`input${Ne}-input`]:{padding:`${Ke}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ne}-handler-wrap`]:{zIndex:2},[Ne]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:nt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ve,marginInlineStart:nt}}})}};var Me=(0,O.Z)("InputNumber",Re=>{const Ne=(0,ae.TS)(Re,(0,J.e5)(Re));return[we(Ne),De(Ne),(0,$e.c)(Ne)]},Re=>Object.assign(Object.assign({},(0,J.TM)(Re)),{controlWidth:90,handleWidth:Re.controlHeightSM-Re.lineWidth*2,handleFontSize:Re.fontSize/2,handleVisible:"auto",handleActiveBg:Re.colorFillAlter,handleBg:Re.colorBgContainer,handleHoverColor:Re.colorPrimary,handleBorderColor:Re.colorBorder})),Ye=function(Re,Ne){var Ke={};for(var Ve in Re)Object.prototype.hasOwnProperty.call(Re,Ve)&&Ne.indexOf(Ve)<0&&(Ke[Ve]=Re[Ve]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ve=Object.getOwnPropertySymbols(Re);nt<Ve.length;nt++)Ne.indexOf(Ve[nt])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ve[nt])&&(Ke[Ve[nt]]=Re[Ve[nt]]);return Ke};const tt=he.forwardRef((Re,Ne)=>{const{getPrefixCls:Ke,direction:Ve}=he.useContext(Ot.E_),nt=he.useRef(null);he.useImperativeHandle(Ne,()=>nt.current);const{className:ft,rootClassName:ot,size:_,disabled:T,prefixCls:qe,addonBefore:G,addonAfter:ge,prefix:Nt,bordered:Te=!0,readOnly:He,status:Ze,controls:Y}=Re,ce=Ye(Re,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Ee=Ke("input-number",qe),[ze,W]=Me(Ee),{compactSize:bt,compactItemClassnames:Ae}=(0,ye.ri)(Ee,Ve);let Dt=he.createElement(ie.Z,{className:`${Ee}-handler-up-inner`}),Ht=he.createElement(Z.Z,{className:`${Ee}-handler-down-inner`});const Xt=typeof Y=="boolean"?Y:void 0;typeof Y=="object"&&(Dt=typeof Y.upIcon=="undefined"?Dt:he.createElement("span",{className:`${Ee}-handler-up-inner`},Y.upIcon),Ht=typeof Y.downIcon=="undefined"?Ht:he.createElement("span",{className:`${Ee}-handler-down-inner`},Y.downIcon));const{hasFeedback:mr,status:Bt,isFormItemInput:Ft,feedbackIcon:fr}=he.useContext(ue.aM),Br=(0,At.F)(Bt,Ze),Ur=(0,Ct.Z)(Lr=>{var Yr;return(Yr=_!=null?_:bt)!==null&&Yr!==void 0?Yr:Lr}),kr=he.useContext(Rt.Z),Kt=T!=null?T:kr,lr=ke()({[`${Ee}-lg`]:Ur==="large",[`${Ee}-sm`]:Ur==="small",[`${Ee}-rtl`]:Ve==="rtl",[`${Ee}-borderless`]:!Te,[`${Ee}-in-form-item`]:Ft},(0,At.Z)(Ee,Br),Ae,W),br=`${Ee}-group`,Vr=he.createElement(Tt,Object.assign({ref:nt,disabled:Kt,className:ke()(ft,ot),upHandler:Dt,downHandler:Ht,prefixCls:Ee,readOnly:He,controls:Xt,prefix:Nt,suffix:mr&&fr,addonAfter:ge&&he.createElement(ye.BR,null,he.createElement(ue.Ux,{override:!0,status:!0},ge)),addonBefore:G&&he.createElement(ye.BR,null,he.createElement(ue.Ux,{override:!0,status:!0},G)),classNames:{input:lr},classes:{affixWrapper:ke()((0,At.Z)(`${Ee}-affix-wrapper`,Br,mr),{[`${Ee}-affix-wrapper-sm`]:Ur==="small",[`${Ee}-affix-wrapper-lg`]:Ur==="large",[`${Ee}-affix-wrapper-rtl`]:Ve==="rtl",[`${Ee}-affix-wrapper-borderless`]:!Te},W),wrapper:ke()({[`${br}-rtl`]:Ve==="rtl",[`${Ee}-wrapper-disabled`]:Kt},W),group:ke()({[`${Ee}-group-wrapper-sm`]:Ur==="small",[`${Ee}-group-wrapper-lg`]:Ur==="large",[`${Ee}-group-wrapper-rtl`]:Ve==="rtl"},(0,At.Z)(`${Ee}-group-wrapper`,Br,mr),W)}},ce));return ze(Vr)}),Xe=tt,We=Re=>he.createElement(yt.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},he.createElement(tt,Object.assign({},Re)));Xe._InternalPanelDoNotUseOrYouWillBeFired=We;var ht=Xe},9432:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return D},n:function(){return V}});var Z=S(19248),ie=S(92310),be=S.n(ie),ke=S(93681),te=S(8654),ee=S(59301),xe=S(19080),de=S(36355),a=S(1684),N=S(19716),P=S(32441),E=S(33234),c=S(59412),y=S(9937);function x(j){return!!(j.prefix||j.suffix||j.allowClear)}var H=function(j,oe){var w={};for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&oe.indexOf(K)<0&&(w[K]=j[K]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,K=Object.getOwnPropertySymbols(j);se<K.length;se++)oe.indexOf(K[se])<0&&Object.prototype.propertyIsEnumerable.call(j,K[se])&&(w[K[se]]=j[K[se]]);return w};function V(j,oe){if(!j)return;j.focus(oe);const{cursor:w}=oe||{};if(w){const K=j.value.length;switch(w){case"start":j.setSelectionRange(0,0);break;case"end":j.setSelectionRange(K,K);break;default:j.setSelectionRange(0,K);break}}}var D=(0,ee.forwardRef)((j,oe)=>{var w;const{prefixCls:K,bordered:se=!0,status:X,size:_e,disabled:he,onBlur:pe,onFocus:Ce,suffix:M,allowClear:I,addonAfter:U,addonBefore:R,className:q,style:$,styles:m,rootClassName:v,onChange:L,classNames:re}=j,Ie=H(j,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Be,direction:Oe,input:je}=ee.useContext(de.E_),at=Be("input",K),et=(0,ee.useRef)(null),[rt,Tt]=(0,y.ZP)(at),{compactSize:At,compactItemClassnames:Ot}=(0,E.ri)(at,Oe),yt=(0,N.Z)(tt=>{var Xe;return(Xe=_e!=null?_e:At)!==null&&Xe!==void 0?Xe:tt}),Rt=ee.useContext(a.Z),Ct=he!=null?he:Rt,{status:ue,hasFeedback:ye,feedbackIcon:J}=(0,ee.useContext)(P.aM),Pe=(0,xe.F)(ue,X),$e=x(j)||!!ye,O=(0,ee.useRef)($e);(0,ee.useEffect)(()=>{var tt;$e&&O.current,O.current=$e},[$e]);const ae=(0,c.Z)(et,!0),ve=tt=>{ae(),pe==null||pe(tt)},we=tt=>{ae(),Ce==null||Ce(tt)},De=tt=>{ae(),L==null||L(tt)},Me=(ye||M)&&ee.createElement(ee.Fragment,null,M,ye&&J);let Ye;return typeof I=="object"&&(I!=null&&I.clearIcon)?Ye=I:I&&(Ye={clearIcon:ee.createElement(Z.Z,null)}),rt(ee.createElement(ke.default,Object.assign({ref:(0,te.sQ)(oe,et),prefixCls:at,autoComplete:je==null?void 0:je.autoComplete},Ie,{disabled:Ct,onBlur:ve,onFocus:we,style:Object.assign(Object.assign({},je==null?void 0:je.style),$),styles:Object.assign(Object.assign({},je==null?void 0:je.styles),m),suffix:Me,allowClear:Ye,className:be()(q,v,Ot,je==null?void 0:je.className),onChange:De,addonAfter:U&&ee.createElement(E.BR,null,ee.createElement(P.Ux,{override:!0,status:!0},U)),addonBefore:R&&ee.createElement(E.BR,null,ee.createElement(P.Ux,{override:!0,status:!0},R)),classNames:Object.assign(Object.assign(Object.assign({},re),je==null?void 0:je.classNames),{input:be()({[`${at}-sm`]:yt==="small",[`${at}-lg`]:yt==="large",[`${at}-rtl`]:Oe==="rtl",[`${at}-borderless`]:!se},!$e&&(0,xe.Z)(at,Pe),re==null?void 0:re.input,(w=je==null?void 0:je.classNames)===null||w===void 0?void 0:w.input,Tt)}),classes:{affixWrapper:be()({[`${at}-affix-wrapper-sm`]:yt==="small",[`${at}-affix-wrapper-lg`]:yt==="large",[`${at}-affix-wrapper-rtl`]:Oe==="rtl",[`${at}-affix-wrapper-borderless`]:!se},(0,xe.Z)(`${at}-affix-wrapper`,Pe,ye),Tt),wrapper:be()({[`${at}-group-rtl`]:Oe==="rtl"},Tt),group:be()({[`${at}-group-wrapper-sm`]:yt==="small",[`${at}-group-wrapper-lg`]:yt==="large",[`${at}-group-wrapper-rtl`]:Oe==="rtl",[`${at}-group-wrapper-disabled`]:Ct},(0,xe.Z)(`${at}-group-wrapper`,Pe,ye),Tt)}})))})},1643:function(Mt,Qe,S){"use strict";var Z=S(19248),ie=S(92310),be=S.n(ie),ke=S(9296),te=S(59301),ee=S(19080),xe=S(36355),de=S(1684),a=S(19716),N=S(32441),P=S(9432),E=S(9937),c=function(x,H){var V={};for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&H.indexOf(k)<0&&(V[k]=x[k]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,k=Object.getOwnPropertySymbols(x);D<k.length;D++)H.indexOf(k[D])<0&&Object.prototype.propertyIsEnumerable.call(x,k[D])&&(V[k[D]]=x[k[D]]);return V};const y=(0,te.forwardRef)((x,H)=>{const{prefixCls:V,bordered:k=!0,size:D,disabled:j,status:oe,allowClear:w,showCount:K,classNames:se,rootClassName:X,className:_e}=x,he=c(x,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:pe,direction:Ce}=te.useContext(xe.E_),M=(0,a.Z)(D),I=te.useContext(de.Z),U=j!=null?j:I,{status:R,hasFeedback:q,feedbackIcon:$}=te.useContext(N.aM),m=(0,ee.F)(R,oe),v=te.useRef(null);te.useImperativeHandle(H,()=>{var Oe;return{resizableTextArea:(Oe=v.current)===null||Oe===void 0?void 0:Oe.resizableTextArea,focus:je=>{var at,et;(0,P.n)((et=(at=v.current)===null||at===void 0?void 0:at.resizableTextArea)===null||et===void 0?void 0:et.textArea,je)},blur:()=>{var je;return(je=v.current)===null||je===void 0?void 0:je.blur()}}});const L=pe("input",V);let re;typeof w=="object"&&(w!=null&&w.clearIcon)?re=w:w&&(re={clearIcon:te.createElement(Z.Z,null)});const[Ie,Be]=(0,E.ZP)(L);return Ie(te.createElement(ke.default,Object.assign({},he,{disabled:U,allowClear:re,className:be()(_e,X),classes:{affixWrapper:be()(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:Ce==="rtl",[`${L}-affix-wrapper-borderless`]:!k,[`${L}-affix-wrapper-sm`]:M==="small",[`${L}-affix-wrapper-lg`]:M==="large",[`${L}-textarea-show-count`]:K},(0,ee.Z)(`${L}-affix-wrapper`,m),Be)},classNames:Object.assign(Object.assign({},se),{textarea:be()({[`${L}-borderless`]:!k,[`${L}-sm`]:M==="small",[`${L}-lg`]:M==="large"},(0,ee.Z)(L,m),Be,se==null?void 0:se.textarea)}),prefixCls:L,suffix:q&&te.createElement("span",{className:`${L}-textarea-suffix`},$),showCount:K,ref:v})))});Qe.Z=y},59412:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return ie}});var Z=S(59301);function ie(be,ke){const te=(0,Z.useRef)([]),ee=()=>{te.current.push(setTimeout(()=>{var xe,de,a,N;!((xe=be.current)===null||xe===void 0)&&xe.input&&((de=be.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&(!((a=be.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((N=be.current)===null||N===void 0||N.input.removeAttribute("value"))}))};return(0,Z.useEffect)(()=>(ke&&ee(),()=>te.current.forEach(xe=>{xe&&clearTimeout(xe)})),[]),ee}},92832:function(Mt,Qe,S){"use strict";S.d(Qe,{default:function(){return M}});var Z=S(92310),ie=S.n(Z),be=S(59301),ke=S(36355),te=S(32441),ee=S(9937),de=I=>{const{getPrefixCls:U,direction:R}=(0,be.useContext)(ke.E_),{prefixCls:q,className:$}=I,m=U("input-group",q),v=U("input"),[L,re]=(0,ee.ZP)(v),Ie=ie()(m,{[`${m}-lg`]:I.size==="large",[`${m}-sm`]:I.size==="small",[`${m}-compact`]:I.compact,[`${m}-rtl`]:R==="rtl"},re,$),Be=(0,be.useContext)(te.aM),Oe=(0,be.useMemo)(()=>Object.assign(Object.assign({},Be),{isFormItemInput:!1}),[Be]);return L(be.createElement("span",{className:Ie,style:I.style,onMouseEnter:I.onMouseEnter,onMouseLeave:I.onMouseLeave,onFocus:I.onFocus,onBlur:I.onBlur},be.createElement(te.aM.Provider,{value:Oe},I.children)))},a=S(9432),N=S(73331),P=S(15277),E=S(2738),c=S(8654),y=S(59412),x=function(I,U){var R={};for(var q in I)Object.prototype.hasOwnProperty.call(I,q)&&U.indexOf(q)<0&&(R[q]=I[q]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,q=Object.getOwnPropertySymbols(I);$<q.length;$++)U.indexOf(q[$])<0&&Object.prototype.propertyIsEnumerable.call(I,q[$])&&(R[q[$]]=I[q[$]]);return R};const H=I=>I?be.createElement(P.Z,null):be.createElement(N.Z,null),V={click:"onClick",hover:"onMouseOver"};var D=be.forwardRef((I,U)=>{const{visibilityToggle:R=!0}=I,q=typeof R=="object"&&R.visible!==void 0,[$,m]=(0,be.useState)(()=>q?R.visible:!1),v=(0,be.useRef)(null);be.useEffect(()=>{q&&m(R.visible)},[q,R]);const L=(0,y.Z)(v),re=()=>{const{disabled:Ct}=I;Ct||($&&L(),m(ue=>{var ye;const J=!ue;return typeof R=="object"&&((ye=R.onVisibleChange)===null||ye===void 0||ye.call(R,J)),J}))},Ie=Ct=>{const{action:ue="click",iconRender:ye=H}=I,J=V[ue]||"",Pe=ye($),$e={[J]:re,className:`${Ct}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return be.cloneElement(be.isValidElement(Pe)?Pe:be.createElement("span",null,Pe),$e)},{className:Be,prefixCls:Oe,inputPrefixCls:je,size:at}=I,et=x(I,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rt}=be.useContext(ke.E_),Tt=rt("input",je),At=rt("input-password",Oe),Ot=R&&Ie(At),yt=ie()(At,Be,{[`${At}-${at}`]:!!at}),Rt=Object.assign(Object.assign({},(0,E.Z)(et,["suffix","iconRender","visibilityToggle"])),{type:$?"text":"password",className:yt,prefixCls:Tt,suffix:Ot});return at&&(Rt.size=at),be.createElement(a.Z,Object.assign({ref:(0,c.sQ)(U,v)},Rt))}),j=S(47472),oe=S(92343),w=S(3113),K=S(19716),se=S(33234),X=function(I,U){var R={};for(var q in I)Object.prototype.hasOwnProperty.call(I,q)&&U.indexOf(q)<0&&(R[q]=I[q]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,q=Object.getOwnPropertySymbols(I);$<q.length;$++)U.indexOf(q[$])<0&&Object.prototype.propertyIsEnumerable.call(I,q[$])&&(R[q[$]]=I[q[$]]);return R},he=be.forwardRef((I,U)=>{const{prefixCls:R,inputPrefixCls:q,className:$,size:m,suffix:v,enterButton:L=!1,addonAfter:re,loading:Ie,disabled:Be,onSearch:Oe,onChange:je,onCompositionStart:at,onCompositionEnd:et}=I,rt=X(I,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Tt,direction:At}=be.useContext(ke.E_),Ot=be.useRef(!1),yt=Tt("input-search",R),Rt=Tt("input",q),{compactSize:Ct}=(0,se.ri)(yt,At),ue=(0,K.Z)(We=>{var ht;return(ht=m!=null?m:Ct)!==null&&ht!==void 0?ht:We}),ye=be.useRef(null),J=We=>{We&&We.target&&We.type==="click"&&Oe&&Oe(We.target.value,We,{source:"clear"}),je&&je(We)},Pe=We=>{var ht;document.activeElement===((ht=ye.current)===null||ht===void 0?void 0:ht.input)&&We.preventDefault()},$e=We=>{var ht,Re;Oe&&Oe((Re=(ht=ye.current)===null||ht===void 0?void 0:ht.input)===null||Re===void 0?void 0:Re.value,We,{source:"input"})},O=We=>{Ot.current||Ie||$e(We)},ae=typeof L=="boolean"?be.createElement(j.Z,null):null,ve=`${yt}-button`;let we;const De=L||{},Me=De.type&&De.type.__ANT_BUTTON===!0;Me||De.type==="button"?we=(0,oe.Tm)(De,Object.assign({onMouseDown:Pe,onClick:We=>{var ht,Re;(Re=(ht=De==null?void 0:De.props)===null||ht===void 0?void 0:ht.onClick)===null||Re===void 0||Re.call(ht,We),$e(We)},key:"enterButton"},Me?{className:ve,size:ue}:{})):we=be.createElement(w.ZP,{className:ve,type:L?"primary":void 0,size:ue,disabled:Be,key:"enterButton",onMouseDown:Pe,onClick:$e,loading:Ie,icon:ae},L),re&&(we=[we,(0,oe.Tm)(re,{key:"addonAfter"})]);const Ye=ie()(yt,{[`${yt}-rtl`]:At==="rtl",[`${yt}-${ue}`]:!!ue,[`${yt}-with-button`]:!!L},$),tt=We=>{Ot.current=!0,at==null||at(We)},Xe=We=>{Ot.current=!1,et==null||et(We)};return be.createElement(a.Z,Object.assign({ref:(0,c.sQ)(ye,U),onPressEnter:O},rt,{size:ue,onCompositionStart:tt,onCompositionEnd:Xe,prefixCls:Rt,addonAfter:we,suffix:v,onChange:J,className:Ye,disabled:Be}))}),pe=S(1643);const Ce=a.Z;Ce.Group=de,Ce.Search=he,Ce.TextArea=pe.Z,Ce.Password=D;var M=Ce},9937:function(Mt,Qe,S){"use strict";S.d(Qe,{M1:function(){return xe},TM:function(){return oe},Xy:function(){return de},bi:function(){return P},e5:function(){return j},ik:function(){return E},nz:function(){return te},pU:function(){return ee},s7:function(){return c},x0:function(){return N}});var Z=S(17313),ie=S(74207),be=S(37613),ke=S(83116);const te=w=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:w,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ee=w=>({borderColor:w.hoverBorderColor}),xe=w=>({borderColor:w.activeBorderColor,boxShadow:w.activeShadow,outline:0}),de=w=>({color:w.colorTextDisabled,backgroundColor:w.colorBgContainerDisabled,borderColor:w.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ee((0,be.TS)(w,{hoverBorderColor:w.colorBorder})))}),a=w=>{const{paddingBlockLG:K,fontSizeLG:se,lineHeightLG:X,borderRadiusLG:_e,paddingInlineLG:he}=w;return{padding:`${K}px ${he}px`,fontSize:se,lineHeight:X,borderRadius:_e}},N=w=>({padding:`${w.paddingBlockSM}px ${w.paddingInlineSM}px`,borderRadius:w.borderRadiusSM}),P=(w,K)=>{const{componentCls:se,colorError:X,colorWarning:_e,errorActiveShadow:he,warningActiveShadow:pe,colorErrorBorderHover:Ce,colorWarningBorderHover:M}=w;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:X,"&:hover":{borderColor:Ce},"&:focus, &-focused":Object.assign({},xe((0,be.TS)(w,{activeBorderColor:X,activeShadow:he}))),[`${se}-prefix, ${se}-suffix`]:{color:X}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:_e,"&:hover":{borderColor:M},"&:focus, &-focused":Object.assign({},xe((0,be.TS)(w,{activeBorderColor:_e,activeShadow:pe}))),[`${se}-prefix, ${se}-suffix`]:{color:_e}}}},E=w=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${w.paddingBlock}px ${w.paddingInline}px`,color:w.colorText,fontSize:w.fontSize,lineHeight:w.lineHeight,backgroundColor:w.colorBgContainer,backgroundImage:"none",borderWidth:w.lineWidth,borderStyle:w.lineType,borderColor:w.colorBorder,borderRadius:w.borderRadius,transition:`all ${w.motionDurationMid}`},te(w.colorTextPlaceholder)),{"&:hover":Object.assign({},ee(w)),"&:focus, &-focused":Object.assign({},xe(w)),"&-disabled, &[disabled]":Object.assign({},de(w)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:w.controlHeight,lineHeight:w.lineHeight,verticalAlign:"bottom",transition:`all ${w.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},a(w)),"&-sm":Object.assign({},N(w)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),c=w=>{const{componentCls:K,antCls:se}=w;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:w.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${K}, &-lg > ${K}-group-addon`]:Object.assign({},a(w)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},N(w)),[`&-lg ${se}-select-single ${se}-select-selector`]:{height:w.controlHeightLG},[`&-sm ${se}-select-single ${se}-select-selector`]:{height:w.controlHeightSM},[`> ${K}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${K}-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 ${w.paddingInline}px`,color:w.colorText,fontWeight:"normal",fontSize:w.fontSize,textAlign:"center",backgroundColor:w.colorFillAlter,border:`${w.lineWidth}px ${w.lineType} ${w.colorBorder}`,borderRadius:w.borderRadius,transition:`all ${w.motionDurationSlow}`,lineHeight:1,[`${se}-select`]:{margin:`-${w.paddingBlock+1}px -${w.paddingInline}px`,[`&${se}-select-single:not(${se}-select-customize-input)`]:{[`${se}-select-selector`]:{backgroundColor:"inherit",border:`${w.lineWidth}px ${w.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${se}-select-selector`]:{color:w.colorPrimary}}},[`${se}-cascader-picker`]:{margin:`-9px -${w.paddingInline}px`,backgroundColor:"transparent",[`${se}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${K}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${K}-search-with-button &`]:{zIndex:0}}},[`> ${K}:first-child, ${K}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}-affix-wrapper`]:{[`&:not(:first-child) ${K}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${K}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}:last-child, ${K}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${K}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${K}-search &`]:{borderStartStartRadius:w.borderRadius,borderEndStartRadius:w.borderRadius}},[`&:not(:first-child), ${K}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${K}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,Z.dF)()),{[`${K}-group-addon, ${K}-group-wrap, > ${K}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:w.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
& > ${K}-affix-wrapper,
|
|
& > ${K}-number-affix-wrapper,
|
|
& > ${se}-picker-range
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-w.lineWidth,borderInlineEndWidth:w.lineWidth},[`${K}`]:{float:"none"},[`& > ${se}-select > ${se}-select-selector,
|
|
& > ${se}-select-auto-complete ${K},
|
|
& > ${se}-cascader-picker ${K},
|
|
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:w.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${se}-select-focused`]:{zIndex:1},[`& > ${se}-select > ${se}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
& > ${se}-select:first-child > ${se}-select-selector,
|
|
& > ${se}-select-auto-complete:first-child ${K},
|
|
& > ${se}-cascader-picker:first-child ${K}`]:{borderStartStartRadius:w.borderRadius,borderEndStartRadius:w.borderRadius},[`& > *:last-child,
|
|
& > ${se}-select:last-child > ${se}-select-selector,
|
|
& > ${se}-cascader-picker:last-child ${K},
|
|
& > ${se}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:w.lineWidth,borderStartEndRadius:w.borderRadius,borderEndEndRadius:w.borderRadius},[`& > ${se}-select-auto-complete ${K}`]:{verticalAlign:"top"},[`${K}-group-wrapper + ${K}-group-wrapper`]:{marginInlineStart:-w.lineWidth,[`${K}-affix-wrapper`]:{borderRadius:0}},[`${K}-group-wrapper:not(:last-child)`]:{[`&${K}-search > ${K}-group`]:{[`& > ${K}-group-addon > ${K}-search-button`]:{borderRadius:0},[`& > ${K}`]:{borderStartStartRadius:w.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:w.borderRadius}}}})}},y=w=>{const{componentCls:K,controlHeightSM:se,lineWidth:X}=w,he=(se-X*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(w)),E(w)),P(w,K)),{'&[type="color"]':{height:w.controlHeight,[`&${K}-lg`]:{height:w.controlHeightLG},[`&${K}-sm`]:{height:se,paddingTop:he,paddingBottom:he}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},x=w=>{const{componentCls:K}=w;return{[`${K}-clear-icon`]:{margin:0,color:w.colorTextQuaternary,fontSize:w.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${w.motionDurationSlow}`,"&:hover":{color:w.colorTextTertiary},"&:active":{color:w.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${w.inputAffixPadding}px`}}}},H=w=>{const{componentCls:K,inputAffixPadding:se,colorTextDescription:X,motionDurationSlow:_e,colorIcon:he,colorIconHover:pe,iconCls:Ce}=w;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E(w)),{display:"inline-flex",[`&:not(${K}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ee(w)),{zIndex:1,[`${K}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${K}[disabled]`]:{background:"transparent"}},[`> input${K}`]:{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"'},[`${K}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:w.paddingXS}},"&-show-count-suffix":{color:X},"&-show-count-has-suffix":{marginInlineEnd:w.paddingXXS},"&-prefix":{marginInlineEnd:se},"&-suffix":{marginInlineStart:se}}}),x(w)),{[`${Ce}${K}-password-icon`]:{color:he,cursor:"pointer",transition:`all ${_e}`,"&:hover":{color:pe}}}),P(w,`${K}-affix-wrapper`))}},V=w=>{const{componentCls:K,colorError:se,colorWarning:X,borderRadiusLG:_e,borderRadiusSM:he}=w;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(w)),c(w)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${K}-group-addon`]:{borderRadius:_e,fontSize:w.fontSizeLG}},"&-sm":{[`${K}-group-addon`]:{borderRadius:he}},"&-status-error":{[`${K}-group-addon`]:{color:se,borderColor:se}},"&-status-warning":{[`${K}-group-addon`]:{color:X,borderColor:X}},"&-disabled":{[`${K}-group-addon`]:Object.assign({},de(w))},[`&:not(${K}-compact-first-item):not(${K}-compact-last-item)${K}-compact-item`]:{[`${K}, ${K}-group-addon`]:{borderRadius:0}},[`&:not(${K}-compact-last-item)${K}-compact-first-item`]:{[`${K}, ${K}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${K}-compact-first-item)${K}-compact-last-item`]:{[`${K}, ${K}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},k=w=>{const{componentCls:K,antCls:se}=w,X=`${K}-search`;return{[X]:{[`${K}`]:{"&:hover, &:focus":{borderColor:w.colorPrimaryHover,[`+ ${K}-group-addon ${X}-button:not(${se}-btn-primary)`]:{borderInlineStartColor:w.colorPrimaryHover}}},[`${K}-affix-wrapper`]:{borderRadius:0},[`${K}-lg`]:{lineHeight:w.lineHeightLG-2e-4},[`> ${K}-group`]:{[`> ${K}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${X}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:w.borderRadius,borderEndEndRadius:w.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${X}-button:not(${se}-btn-primary)`]:{color:w.colorTextDescription,"&:hover":{color:w.colorPrimaryHover},"&:active":{color:w.colorPrimaryActive},[`&${se}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${X}-button`]:{height:w.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${X}-button`]:{height:w.controlHeightLG},[`&-small ${X}-button`]:{height:w.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${K}-compact-item`]:{[`&:not(${K}-compact-last-item)`]:{[`${K}-group-addon`]:{[`${K}-search-button`]:{marginInlineEnd:-w.lineWidth,borderRadius:0}}},[`&:not(${K}-compact-first-item)`]:{[`${K},${K}-affix-wrapper`]:{borderRadius:0}},[`> ${K}-group-addon ${K}-search-button,
|
|
> ${K},
|
|
${K}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${K}-affix-wrapper-focused`]:{zIndex:2}}}}},D=w=>{const{componentCls:K,paddingLG:se}=w,X=`${K}-textarea`;return{[X]:{position:"relative","&-show-count":{[`> ${K}`]:{height:"100%"},[`${K}-data-count`]:{position:"absolute",bottom:-w.fontSize*w.lineHeight,insetInlineEnd:0,color:w.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${K}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${X}-has-feedback`]:{[`${K}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${K}-affix-wrapper`]:{padding:0,[`> textarea${K}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${K}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${K}-clear-icon`]:{position:"absolute",insetInlineEnd:w.paddingXS,insetBlockStart:w.paddingXS},[`${X}-suffix`]:{position:"absolute",top:0,insetInlineEnd:w.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function j(w){return(0,be.TS)(w,{inputAffixPadding:w.paddingXXS})}const oe=w=>{const{controlHeight:K,fontSize:se,lineHeight:X,lineWidth:_e,controlHeightSM:he,controlHeightLG:pe,fontSizeLG:Ce,lineHeightLG:M,paddingSM:I,controlPaddingHorizontalSM:U,controlPaddingHorizontal:R,colorFillAlter:q,colorPrimaryHover:$,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:L,colorWarningOutline:re}=w;return{paddingBlock:Math.max(Math.round((K-se*X)/2*10)/10-_e,3),paddingBlockSM:Math.max(Math.round((he-se*X)/2*10)/10-_e,0),paddingBlockLG:Math.ceil((pe-Ce*M)/2*10)/10-_e,paddingInline:I-_e,paddingInlineSM:U-_e,paddingInlineLG:R-_e,addonBg:q,activeBorderColor:$,hoverBorderColor:$,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${L}`,warningActiveShadow:`0 0 0 ${m}px ${re}`}};Qe.ZP=(0,ke.Z)("Input",w=>{const K=(0,be.TS)(w,j(w));return[y(K),D(K),H(K),V(K),k(K),(0,ie.c)(K)]},oe)},45818:function(Mt,Qe,S){"use strict";S.d(Qe,{D:function(){return j},Z:function(){return K}});var Z=S(96663),ie=S(59301),be={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"},ke=be,te=S(7657),ee=function(X,_e){return ie.createElement(te.Z,(0,Z.Z)({},X,{ref:_e,icon:ke}))},xe=ie.forwardRef(ee),de=xe,a=S(33853),N=S(38819),P=S(92310),E=S.n(P),c=S(2738),x=se=>!isNaN(parseFloat(se))&&isFinite(se),H=S(36355),V=S(84966),k=function(se,X){var _e={};for(var he in se)Object.prototype.hasOwnProperty.call(se,he)&&X.indexOf(he)<0&&(_e[he]=se[he]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,he=Object.getOwnPropertySymbols(se);pe<he.length;pe++)X.indexOf(he[pe])<0&&Object.prototype.propertyIsEnumerable.call(se,he[pe])&&(_e[he[pe]]=se[he[pe]]);return _e};const D={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},j=ie.createContext({}),oe=(()=>{let se=0;return function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${X}${se}`}})();var K=ie.forwardRef((se,X)=>{const{prefixCls:_e,className:he,trigger:pe,children:Ce,defaultCollapsed:M=!1,theme:I="dark",style:U={},collapsible:R=!1,reverseArrow:q=!1,width:$=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:L,onCollapse:re,onBreakpoint:Ie}=se,Be=k(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Oe}=(0,ie.useContext)(V.Gs),[je,at]=(0,ie.useState)("collapsed"in se?se.collapsed:M),[et,rt]=(0,ie.useState)(!1);(0,ie.useEffect)(()=>{"collapsed"in se&&at(se.collapsed)},[se.collapsed]);const Tt=(ue,ye)=>{"collapsed"in se||at(ue),re==null||re(ue,ye)},At=(0,ie.useRef)();At.current=ue=>{rt(ue.matches),Ie==null||Ie(ue.matches),je!==ue.matches&&Tt(ue.matches,"responsive")},(0,ie.useEffect)(()=>{function ue(J){return At.current(J)}let ye;if(typeof window!="undefined"){const{matchMedia:J}=window;if(J&&L&&L in D){ye=J(`(max-width: ${D[L]})`);try{ye.addEventListener("change",ue)}catch(Pe){ye.addListener(ue)}ue(ye)}}return()=>{try{ye==null||ye.removeEventListener("change",ue)}catch(J){ye==null||ye.removeListener(ue)}}},[L]),(0,ie.useEffect)(()=>{const ue=oe("ant-sider-");return Oe.addSider(ue),()=>Oe.removeSider(ue)},[]);const Ot=()=>{Tt(!je,"clickTrigger")},{getPrefixCls:yt}=(0,ie.useContext)(H.E_),Rt=()=>{const ue=yt("layout-sider",_e),ye=(0,c.Z)(Be,["collapsed"]),J=je?m:$,Pe=x(J)?`${J}px`:String(J),$e=parseFloat(String(m||0))===0?ie.createElement("span",{onClick:Ot,className:E()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${q?"right":"left"}`),style:v},pe||ie.createElement(de,null)):null,ve={expanded:q?ie.createElement(N.Z,null):ie.createElement(a.Z,null),collapsed:q?ie.createElement(a.Z,null):ie.createElement(N.Z,null)}[je?"collapsed":"expanded"],we=pe!==null?$e||ie.createElement("div",{className:`${ue}-trigger`,onClick:Ot,style:{width:Pe}},pe||ve):null,De=Object.assign(Object.assign({},U),{flex:`0 0 ${Pe}`,maxWidth:Pe,minWidth:Pe,width:Pe}),Me=E()(ue,`${ue}-${I}`,{[`${ue}-collapsed`]:!!je,[`${ue}-has-trigger`]:R&&pe!==null&&!$e,[`${ue}-below`]:!!et,[`${ue}-zero-width`]:parseFloat(Pe)===0},he);return ie.createElement("aside",Object.assign({className:Me},ye,{style:De,ref:X}),ie.createElement("div",{className:`${ue}-children`},Ce),R||et&&$e?we:null)},Ct=ie.useMemo(()=>({siderCollapsed:je}),[je]);return ie.createElement(j.Provider,{value:Ct},Rt())})},84966:function(Mt,Qe,S){"use strict";S.d(Qe,{VY:function(){return j},$_:function(){return D},h4:function(){return k},Gs:function(){return c},ZP:function(){return oe}});var Z=S(19127),ie=S(92310),be=S.n(ie),ke=S(2738),te=S(59301),ee=S(36355),xe=S(83116),a=w=>{const{componentCls:K,bodyBg:se,lightSiderBg:X,lightTriggerBg:_e,lightTriggerColor:he}=w;return{[`${K}-sider-light`]:{background:X,[`${K}-sider-trigger`]:{color:he,background:_e},[`${K}-sider-zero-width-trigger`]:{color:he,background:_e,border:`1px solid ${se}`,borderInlineStart:0}}}};const N=w=>{const{antCls:K,componentCls:se,colorText:X,triggerColor:_e,footerBg:he,triggerBg:pe,headerHeight:Ce,headerPadding:M,headerColor:I,footerPadding:U,triggerHeight:R,zeroTriggerHeight:q,zeroTriggerWidth:$,motionDurationMid:m,motionDurationSlow:v,fontSize:L,borderRadius:re,bodyBg:Ie,headerBg:Be,siderBg:Oe}=w;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ie,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:Oe,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:R},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:R,color:_e,lineHeight:`${R}px`,textAlign:"center",background:pe,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ce,insetInlineEnd:-$,zIndex:1,width:$,height:q,color:_e,fontSize:w.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Oe,borderStartStartRadius:0,borderStartEndRadius:re,borderEndEndRadius:re,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-$,borderStartStartRadius:re,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:re}}}}},a(w)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:Ce,padding:M,color:I,lineHeight:`${Ce}px`,background:Be,[`${K}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:U,color:X,fontSize:L,background:he},[`${se}-content`]:{flex:"auto",minHeight:0}}};var P=(0,xe.Z)("Layout",w=>[N(w)],w=>{const{colorBgLayout:K,controlHeight:se,controlHeightLG:X,colorText:_e,controlHeightSM:he,marginXXS:pe,colorTextLightSolid:Ce,colorBgContainer:M}=w,I=X*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${I}px`,headerColor:_e,footerPadding:`${he}px ${I}px`,footerBg:K,siderBg:"#001529",triggerHeight:X+pe*2,triggerBg:"#002140",triggerColor:Ce,zeroTriggerWidth:X,zeroTriggerHeight:X,lightSiderBg:M,lightTriggerBg:M,lightTriggerColor:_e}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),E=function(w,K){var se={};for(var X in w)Object.prototype.hasOwnProperty.call(w,X)&&K.indexOf(X)<0&&(se[X]=w[X]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,X=Object.getOwnPropertySymbols(w);_e<X.length;_e++)K.indexOf(X[_e])<0&&Object.prototype.propertyIsEnumerable.call(w,X[_e])&&(se[X[_e]]=w[X[_e]]);return se};const c=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function y(w){let{suffixCls:K,tagName:se,displayName:X}=w;return _e=>te.forwardRef((pe,Ce)=>te.createElement(_e,Object.assign({ref:Ce,suffixCls:K,tagName:se},pe)))}const x=te.forwardRef((w,K)=>{const{prefixCls:se,suffixCls:X,className:_e,tagName:he}=w,pe=E(w,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ce}=te.useContext(ee.E_),M=Ce("layout",se),[I,U]=P(M),R=X?`${M}-${X}`:M;return I(te.createElement(he,Object.assign({className:be()(se||R,_e,U),ref:K},pe)))}),H=te.forwardRef((w,K)=>{const{direction:se}=te.useContext(ee.E_),[X,_e]=te.useState([]),{prefixCls:he,className:pe,rootClassName:Ce,children:M,hasSider:I,tagName:U,style:R}=w,q=E(w,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),$=(0,ke.Z)(q,["suffixCls"]),{getPrefixCls:m,layout:v}=te.useContext(ee.E_),L=m("layout",he),[re,Ie]=P(L),Be=be()(L,{[`${L}-has-sider`]:typeof I=="boolean"?I:X.length>0,[`${L}-rtl`]:se==="rtl"},v==null?void 0:v.className,pe,Ce,Ie),Oe=te.useMemo(()=>({siderHook:{addSider:je=>{_e(at=>[].concat((0,Z.Z)(at),[je]))},removeSider:je=>{_e(at=>at.filter(et=>et!==je))}}}),[]);return re(te.createElement(c.Provider,{value:Oe},te.createElement(U,Object.assign({ref:K,className:Be,style:Object.assign(Object.assign({},v==null?void 0:v.style),R)},$),M)))}),V=y({tagName:"div",displayName:"Layout"})(H),k=y({suffixCls:"header",tagName:"header",displayName:"Header"})(x),D=y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(x),j=y({suffixCls:"content",tagName:"main",displayName:"Content"})(x);var oe=V},40875:function(Mt,Qe,S){"use strict";S.d(Qe,{J:function(){return ee}});var Z=S(59301),ie=S(33234),be=S(70425),ke=function(xe,de){var a={};for(var N in xe)Object.prototype.hasOwnProperty.call(xe,N)&&de.indexOf(N)<0&&(a[N]=xe[N]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,N=Object.getOwnPropertySymbols(xe);P<N.length;P++)de.indexOf(N[P])<0&&Object.prototype.propertyIsEnumerable.call(xe,N[P])&&(a[N[P]]=xe[N[P]]);return a};const te=Z.createContext(null),ee=Z.forwardRef((xe,de)=>{const{children:a}=xe,N=ke(xe,["children"]),P=Z.useContext(te),E=Z.useMemo(()=>Object.assign(Object.assign({},P),N),[P,N.prefixCls,N.mode,N.selectable]);return Z.createElement(te.Provider,{value:E},Z.createElement(ie.BR,null,(0,be.supportNodeRef)(a)?Z.cloneElement(a,{ref:de}):a))});Qe.Z=te},20834:function(Mt,Qe,S){"use strict";S.d(Qe,{default:function(){return Ct}});var Z=S(15285),ie=S(59301),be=S(45818),ke=S(92310),te=S.n(ke),ee=S(36355),xe=function(ue,ye){var J={};for(var Pe in ue)Object.prototype.hasOwnProperty.call(ue,Pe)&&ye.indexOf(Pe)<0&&(J[Pe]=ue[Pe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Pe=Object.getOwnPropertySymbols(ue);$e<Pe.length;$e++)ye.indexOf(Pe[$e])<0&&Object.prototype.propertyIsEnumerable.call(ue,Pe[$e])&&(J[Pe[$e]]=ue[Pe[$e]]);return J},a=ue=>{const{prefixCls:ye,className:J,dashed:Pe}=ue,$e=xe(ue,["prefixCls","className","dashed"]),{getPrefixCls:O}=ie.useContext(ee.E_),ae=O("menu",ye),ve=te()({[`${ae}-item-divider-dashed`]:!!Pe},J);return ie.createElement(Z.iz,Object.assign({className:ve},$e))},N=S(11592),P=S(2738),E=S(6848),c=S(92343),x=(0,ie.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),V=ue=>{var ye;const{className:J,children:Pe,icon:$e,title:O,danger:ae}=ue,{prefixCls:ve,firstLevel:we,direction:De,disableMenuItemTitleTooltip:Me,inlineCollapsed:Ye}=ie.useContext(x),tt=Ke=>{const Ve=ie.createElement("span",{className:`${ve}-title-content`},Pe);return(!$e||(0,c.l$)(Pe)&&Pe.type==="span")&&Pe&&Ke&&we&&typeof Pe=="string"?ie.createElement("div",{className:`${ve}-inline-collapsed-noicon`},Pe.charAt(0)):Ve},{siderCollapsed:Xe}=ie.useContext(be.D);let We=O;typeof O=="undefined"?We=we?Pe:"":O===!1&&(We="");const ht={title:We};!Xe&&!Ye&&(ht.title=null,ht.open=!1);const Re=(0,N.Z)(Pe).length;let Ne=ie.createElement(Z.ck,Object.assign({},(0,P.Z)(ue,["title","icon","danger"]),{className:te()({[`${ve}-item-danger`]:ae,[`${ve}-item-only-child`]:($e?Re+1:Re)===1},J),title:typeof O=="string"?O:void 0}),(0,c.Tm)($e,{className:te()((0,c.l$)($e)?(ye=$e.props)===null||ye===void 0?void 0:ye.className:"",`${ve}-item-icon`)}),tt(Ye));return Me||(Ne=ie.createElement(E.Z,Object.assign({},ht,{placement:De==="rtl"?"left":"right",overlayClassName:`${ve}-inline-collapsed-tooltip`}),Ne)),Ne},D=ue=>{var ye;const{popupClassName:J,icon:Pe,title:$e,theme:O}=ue,ae=ie.useContext(x),{prefixCls:ve,inlineCollapsed:we,theme:De}=ae,Me=(0,Z.Xl)();let Ye;if(!Pe)Ye=we&&!Me.length&&$e&&typeof $e=="string"?ie.createElement("div",{className:`${ve}-inline-collapsed-noicon`},$e.charAt(0)):ie.createElement("span",{className:`${ve}-title-content`},$e);else{const Xe=(0,c.l$)($e)&&$e.type==="span";Ye=ie.createElement(ie.Fragment,null,(0,c.Tm)(Pe,{className:te()((0,c.l$)(Pe)?(ye=Pe.props)===null||ye===void 0?void 0:ye.className:"",`${ve}-item-icon`)}),Xe?$e:ie.createElement("span",{className:`${ve}-title-content`},$e))}const tt=ie.useMemo(()=>Object.assign(Object.assign({},ae),{firstLevel:!1}),[ae]);return ie.createElement(x.Provider,{value:tt},ie.createElement(Z.Wd,Object.assign({},(0,P.Z)(ue,["icon"]),{title:Ye,popupClassName:te()(ve,J,`${ve}-${O||De}`)})))},j=S(18785),oe=S(70425),w=S(62892),K=S(40875),se=function(ue,ye){var J={};for(var Pe in ue)Object.prototype.hasOwnProperty.call(ue,Pe)&&ye.indexOf(Pe)<0&&(J[Pe]=ue[Pe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Pe=Object.getOwnPropertySymbols(ue);$e<Pe.length;$e++)ye.indexOf(Pe[$e])<0&&Object.prototype.propertyIsEnumerable.call(ue,Pe[$e])&&(J[Pe[$e]]=ue[Pe[$e]]);return J};function X(ue){return(ue||[]).map((ye,J)=>{if(ye&&typeof ye=="object"){const Pe=ye,{label:$e,children:O,key:ae,type:ve}=Pe,we=se(Pe,["label","children","key","type"]),De=ae!=null?ae:`tmp-${J}`;return O||ve==="group"?ve==="group"?ie.createElement(Z.BW,Object.assign({key:De},we,{title:$e}),X(O)):ie.createElement(D,Object.assign({key:De},we,{title:$e}),X(O)):ve==="divider"?ie.createElement(a,Object.assign({key:De},we)):ie.createElement(V,Object.assign({key:De},we),$e)}return null}).filter(ye=>ye)}function _e(ue){return ie.useMemo(()=>ue&&X(ue),[ue])}var he=S(64993),pe=S(17313),Ce=S(8378),M=S(13826),I=S(29878),U=S(83116),R=S(37613),$=ue=>{const{componentCls:ye,motionDurationSlow:J,horizontalLineHeight:Pe,colorSplit:$e,lineWidth:O,lineType:ae,itemPaddingInline:ve}=ue;return{[`${ye}-horizontal`]:{lineHeight:Pe,border:0,borderBottom:`${O}px ${ae} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ye}-item, ${ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ve},[`> ${ye}-item:hover,
|
|
> ${ye}-item-active,
|
|
> ${ye}-submenu ${ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ye}-item, ${ye}-submenu-title`]:{transition:[`border-color ${J}`,`background ${J}`].join(",")},[`${ye}-submenu-arrow`]:{display:"none"}}}},v=ue=>{let{componentCls:ye,menuArrowOffset:J}=ue;return{[`${ye}-rtl`]:{direction:"rtl"},[`${ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ye}-rtl${ye}-vertical,
|
|
${ye}-submenu-rtl ${ye}-vertical`]:{[`${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${J})`},"&::after":{transform:`rotate(45deg) translateY(${J})`}}}}};const L=ue=>Object.assign({},(0,pe.oN)(ue));var Ie=(ue,ye)=>{const{componentCls:J,itemColor:Pe,itemSelectedColor:$e,groupTitleColor:O,itemBg:ae,subMenuItemBg:ve,itemSelectedBg:we,activeBarHeight:De,activeBarWidth:Me,activeBarBorderWidth:Ye,motionDurationSlow:tt,motionEaseInOut:Xe,motionEaseOut:We,itemPaddingInline:ht,motionDurationMid:Re,itemHoverColor:Ne,lineType:Ke,colorSplit:Ve,itemDisabledColor:nt,dangerItemColor:ft,dangerItemHoverColor:ot,dangerItemSelectedColor:_,dangerItemActiveBg:T,dangerItemSelectedBg:qe,itemHoverBg:G,itemActiveBg:ge,menuSubMenuBg:Nt,horizontalItemSelectedColor:Te,horizontalItemSelectedBg:He,horizontalItemBorderRadius:Ze,horizontalItemHoverBg:Y,popupBg:ce}=ue;return{[`${J}-${ye}, ${J}-${ye} > ${J}`]:{color:Pe,background:ae,[`&${J}-root:focus-visible`]:Object.assign({},L(ue)),[`${J}-item-group-title`]:{color:O},[`${J}-submenu-selected`]:{[`> ${J}-submenu-title`]:{color:$e}},[`${J}-item-disabled, ${J}-submenu-disabled`]:{color:`${nt} !important`},[`${J}-item:not(${J}-item-selected):not(${J}-submenu-selected)`]:{[`&:hover, > ${J}-submenu-title:hover`]:{color:Ne}},[`&:not(${J}-horizontal)`]:{[`${J}-item:not(${J}-item-selected)`]:{"&:hover":{backgroundColor:G},"&:active":{backgroundColor:ge}},[`${J}-submenu-title`]:{"&:hover":{backgroundColor:G},"&:active":{backgroundColor:ge}}},[`${J}-item-danger`]:{color:ft,[`&${J}-item:hover`]:{[`&:not(${J}-item-selected):not(${J}-submenu-selected)`]:{color:ot}},[`&${J}-item:active`]:{background:T}},[`${J}-item a`]:{"&, &:hover":{color:"inherit"}},[`${J}-item-selected`]:{color:$e,[`&${J}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${J}-item-selected`]:{backgroundColor:we,[`&${J}-item-danger`]:{backgroundColor:qe}},[`${J}-item, ${J}-submenu-title`]:{[`&:not(${J}-item-disabled):focus-visible`]:Object.assign({},L(ue))},[`&${J}-submenu > ${J}`]:{backgroundColor:Nt},[`&${J}-popup > ${J}`]:{backgroundColor:ce},[`&${J}-horizontal`]:Object.assign(Object.assign({},ye==="dark"?{borderBottom:0}:{}),{[`> ${J}-item, > ${J}-submenu`]:{top:Ye,marginTop:-Ye,marginBottom:0,borderRadius:Ze,"&::after":{position:"absolute",insetInline:ht,bottom:0,borderBottom:`${De}px solid transparent`,transition:`border-color ${tt} ${Xe}`,content:'""'},"&:hover, &-active, &-open":{background:Y,"&::after":{borderBottomWidth:De,borderBottomColor:Te}},"&-selected":{color:Te,backgroundColor:He,"&:hover":{backgroundColor:He},"&::after":{borderBottomWidth:De,borderBottomColor:Te}}}}),[`&${J}-root`]:{[`&${J}-inline, &${J}-vertical`]:{borderInlineEnd:`${Ye}px ${Ke} ${Ve}`}},[`&${J}-inline`]:{[`${J}-sub${J}-inline`]:{background:ve},[`${J}-item, ${J}-submenu-title`]:Ye&&Me?{width:`calc(100% + ${Ye}px)`}:{},[`${J}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Me}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Re} ${We}`,`opacity ${Re} ${We}`].join(","),content:'""'},[`&${J}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${J}-selected, ${J}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Re} ${Xe}`,`opacity ${Re} ${Xe}`].join(",")}}}}}};const Be=ue=>{const{componentCls:ye,itemHeight:J,itemMarginInline:Pe,padding:$e,menuArrowSize:O,marginXS:ae,itemMarginBlock:ve}=ue,we=$e+O+ae;return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:J,lineHeight:`${J}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:Pe,marginBlock:ve,width:`calc(100% - ${Pe*2}px)`},[`> ${ye}-item,
|
|
> ${ye}-submenu > ${ye}-submenu-title`]:{height:J,lineHeight:`${J}px`},[`${ye}-item-group-list ${ye}-submenu-title,
|
|
${ye}-submenu-title`]:{paddingInlineEnd:we}}};var je=ue=>{const{componentCls:ye,iconCls:J,itemHeight:Pe,colorTextLightSolid:$e,dropdownWidth:O,controlHeightLG:ae,motionDurationMid:ve,motionEaseOut:we,paddingXL:De,itemMarginInline:Me,fontSizeLG:Ye,motionDurationSlow:tt,paddingXS:Xe,boxShadowSecondary:We,collapsedWidth:ht,collapsedIconSize:Re}=ue,Ne={height:Pe,lineHeight:`${Pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},Be(ue))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},Be(ue)),{boxShadow:We})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:O,maxHeight:`calc(100vh - ${ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ye}-inline`]:{width:"100%",[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${tt}`,`background ${tt}`,`padding ${ve} ${we}`].join(","),[`> ${ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ye}-sub${ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ye}-submenu > ${ye}-submenu-title`]:Ne,[`& ${ye}-item-group-title`]:{paddingInlineStart:De}},[`${ye}-item`]:Ne}},{[`${ye}-inline-collapsed`]:{width:ht,[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu ${ye}-submenu-title`]:{[`> ${ye}-inline-collapsed-noicon`]:{fontSize:Ye,textAlign:"center"}}},[`> ${ye}-item,
|
|
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-item,
|
|
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-submenu > ${ye}-submenu-title,
|
|
> ${ye}-submenu > ${ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ye/2}px - ${Me}px)`,textOverflow:"clip",[`
|
|
${ye}-submenu-arrow,
|
|
${ye}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ye}-item-icon, ${J}`]:{margin:0,fontSize:Re,lineHeight:`${Pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ye}-item-icon, ${J}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ye}-item-icon, ${J}`]:{display:"none"},"a, a:hover":{color:$e}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},pe.vS),{paddingInline:Xe})}}]};const at=ue=>{const{componentCls:ye,motionDurationSlow:J,motionDurationMid:Pe,motionEaseInOut:$e,motionEaseOut:O,iconCls:ae,iconSize:ve,iconMarginInlineEnd:we}=ue;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${J}`,`background ${J}`,`padding ${J} ${$e}`].join(","),[`${ye}-item-icon, ${ae}`]:{minWidth:ve,fontSize:ve,transition:[`font-size ${Pe} ${O}`,`margin ${J} ${$e}`,`color ${J}`].join(","),"+ span":{marginInlineStart:we,opacity:1,transition:[`opacity ${J} ${$e}`,`margin ${J}`,`color ${J}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,pe.Ro)()),[`&${ye}-item-only-child`]:{[`> ${ae}, > ${ye}-item-icon`]:{marginInlineEnd:0}}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},et=ue=>{const{componentCls:ye,motionDurationSlow:J,motionEaseInOut:Pe,borderRadius:$e,menuArrowSize:O,menuArrowOffset:ae}=ue;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ue.margin,width:O,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${J} ${Pe}, opacity ${J}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:O*.6,height:O*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${J} ${Pe}`,`transform ${J} ${Pe}`,`top ${J} ${Pe}`,`color ${J} ${Pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ae})`},"&::after":{transform:`rotate(-45deg) translateY(${ae})`}}}}},rt=ue=>{const{antCls:ye,componentCls:J,fontSize:Pe,motionDurationSlow:$e,motionDurationMid:O,motionEaseInOut:ae,paddingXS:ve,padding:we,colorSplit:De,lineWidth:Me,zIndexPopup:Ye,borderRadiusLG:tt,subMenuItemBorderRadius:Xe,menuArrowSize:We,menuArrowOffset:ht,lineType:Re,menuPanelMaskInset:Ne,groupTitleLineHeight:Ke,groupTitleFontSize:Ve}=ue;return[{"":{[`${J}`]:Object.assign(Object.assign({},(0,pe.dF)()),{"&-hidden":{display:"none"}})},[`${J}-submenu-hidden`]:{display:"none"}},{[J]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(ue)),(0,pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${J}-item`]:{flex:"none"}},[`${J}-item, ${J}-submenu, ${J}-submenu-title`]:{borderRadius:ue.itemBorderRadius},[`${J}-item-group-title`]:{padding:`${ve}px ${we}px`,fontSize:Ve,lineHeight:Ke,transition:`all ${$e}`},[`&-horizontal ${J}-submenu`]:{transition:[`border-color ${$e} ${ae}`,`background ${$e} ${ae}`].join(",")},[`${J}-submenu, ${J}-submenu-inline`]:{transition:[`border-color ${$e} ${ae}`,`background ${$e} ${ae}`,`padding ${O} ${ae}`].join(",")},[`${J}-submenu ${J}-sub`]:{cursor:"initial",transition:[`background ${$e} ${ae}`,`padding ${$e} ${ae}`].join(",")},[`${J}-title-content`]:{transition:`color ${$e}`},[`${J}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${J}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:De,borderStyle:Re,borderWidth:0,borderTopWidth:Me,marginBlock:Me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),at(ue)),{[`${J}-item-group`]:{[`${J}-item-group-list`]:{margin:0,padding:0,[`${J}-item, ${J}-submenu-title`]:{paddingInline:`${Pe*2}px ${we}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ye,borderRadius:tt,boxShadow:"none",transformOrigin:"0 0",[`&${J}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ne}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ne},"\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:ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ue.paddingXS},[`> ${J}`]:Object.assign(Object.assign(Object.assign({borderRadius:tt},at(ue)),et(ue)),{[`${J}-item, ${J}-submenu > ${J}-submenu-title`]:{borderRadius:Xe},[`${J}-submenu-title::after`]:{transition:`transform ${$e} ${ae}`}})}}),et(ue)),{[`&-inline-collapsed ${J}-submenu-arrow,
|
|
&-inline ${J}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ht})`},"&::after":{transform:`rotate(45deg) translateX(-${ht})`}},[`${J}-submenu-open${J}-submenu-inline > ${J}-submenu-title > ${J}-submenu-arrow`]:{transform:`translateY(-${We*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ht})`},"&::before":{transform:`rotate(45deg) translateX(${ht})`}}})},{[`${ye}-layout-header`]:{[J]:{lineHeight:"inherit"}}}]};var Tt=(ue,ye)=>(0,U.Z)("Menu",Pe=>{if(ye===!1)return[];const{colorBgElevated:$e,colorPrimary:O,colorTextLightSolid:ae,controlHeightLG:ve,fontSize:we,darkItemColor:De,darkDangerItemColor:Me,darkItemBg:Ye,darkSubMenuItemBg:tt,darkItemSelectedColor:Xe,darkItemSelectedBg:We,darkDangerItemSelectedBg:ht,darkItemHoverBg:Re,darkGroupTitleColor:Ne,darkItemHoverColor:Ke,darkItemDisabledColor:Ve,darkDangerItemHoverColor:nt,darkDangerItemSelectedColor:ft,darkDangerItemActiveBg:ot}=Pe,_=we/7*5,T=(0,R.TS)(Pe,{menuArrowSize:_,menuHorizontalHeight:ve*1.15,menuArrowOffset:`${_*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),qe=(0,R.TS)(T,{itemColor:De,itemHoverColor:Ke,groupTitleColor:Ne,itemSelectedColor:Xe,itemBg:Ye,popupBg:Ye,subMenuItemBg:tt,itemActiveBg:"transparent",itemSelectedBg:We,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Re,itemDisabledColor:Ve,dangerItemColor:Me,dangerItemHoverColor:nt,dangerItemSelectedColor:ft,dangerItemActiveBg:ot,dangerItemSelectedBg:ht,menuSubMenuBg:tt,horizontalItemSelectedColor:ae,horizontalItemSelectedBg:O});return[rt(T),$(T),je(T),Ie(T,"light"),Ie(qe,"dark"),v(T),(0,Ce.Z)(T),(0,M.oN)(T,"slide-up"),(0,M.oN)(T,"slide-down"),(0,I._y)(T,"zoom-big")]},Pe=>{const{colorPrimary:$e,colorError:O,colorTextDisabled:ae,colorErrorBg:ve,colorText:we,colorTextDescription:De,colorBgContainer:Me,colorFillAlter:Ye,colorFillContent:tt,lineWidth:Xe,lineWidthBold:We,controlItemBgActive:ht,colorBgTextHover:Re,controlHeightLG:Ne,lineHeight:Ke,colorBgElevated:Ve,marginXXS:nt,padding:ft,fontSize:ot,controlHeightSM:_,fontSizeLG:T,colorTextLightSolid:qe,colorErrorHover:G}=Pe,ge=new he.C(qe).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pe.zIndexPopupBase+50,radiusItem:Pe.borderRadiusLG,itemBorderRadius:Pe.borderRadiusLG,radiusSubMenuItem:Pe.borderRadiusSM,subMenuItemBorderRadius:Pe.borderRadiusSM,colorItemText:we,itemColor:we,colorItemTextHover:we,itemHoverColor:we,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:De,groupTitleColor:De,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:Me,itemBg:Me,colorItemBgHover:Re,itemHoverBg:Re,colorItemBgActive:tt,itemActiveBg:ht,colorSubItemBg:Ye,subMenuItemBg:Ye,colorItemBgSelected:ht,itemSelectedBg:ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:We,activeBarHeight:We,colorActiveBarBorderSize:Xe,activeBarBorderWidth:Xe,colorItemTextDisabled:ae,itemDisabledColor:ae,colorDangerItemText:O,dangerItemColor:O,colorDangerItemTextHover:O,dangerItemHoverColor:O,colorDangerItemTextSelected:O,dangerItemSelectedColor:O,colorDangerItemBgActive:ve,dangerItemActiveBg:ve,colorDangerItemBgSelected:ve,dangerItemSelectedBg:ve,itemMarginInline:Pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ne,groupTitleLineHeight:Ke,collapsedWidth:Ne*2,popupBg:Ve,itemMarginBlock:nt,itemPaddingInline:ft,horizontalLineHeight:`${Ne*1.15}px`,iconSize:ot,iconMarginInlineEnd:_-ot,collapsedIconSize:T,groupTitleFontSize:ot,darkItemDisabledColor:new he.C(qe).setAlpha(.25).toRgbString(),darkItemColor:ge,darkDangerItemColor:O,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:qe,darkItemSelectedBg:$e,darkDangerItemSelectedBg:O,darkItemHoverBg:"transparent",darkGroupTitleColor:ge,darkItemHoverColor:qe,darkDangerItemHoverColor:G,darkDangerItemSelectedColor:qe,darkDangerItemActiveBg:O}},{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"]]})(ue),At=function(ue,ye){var J={};for(var Pe in ue)Object.prototype.hasOwnProperty.call(ue,Pe)&&ye.indexOf(Pe)<0&&(J[Pe]=ue[Pe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Pe=Object.getOwnPropertySymbols(ue);$e<Pe.length;$e++)ye.indexOf(Pe[$e])<0&&Object.prototype.propertyIsEnumerable.call(ue,Pe[$e])&&(J[Pe[$e]]=ue[Pe[$e]]);return J},yt=(0,ie.forwardRef)((ue,ye)=>{var J,Pe;const $e=ie.useContext(K.Z),O=$e||{},{getPrefixCls:ae,getPopupContainer:ve,direction:we,menu:De}=ie.useContext(ee.E_),Me=ae(),{prefixCls:Ye,className:tt,style:Xe,theme:We="light",expandIcon:ht,_internalDisableMenuItemTitleTooltip:Re,inlineCollapsed:Ne,siderCollapsed:Ke,items:Ve,children:nt,rootClassName:ft,mode:ot,selectable:_,onClick:T,overflowedIndicatorPopupClassName:qe}=ue,G=At(ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ge=(0,P.Z)(G,["collapsedWidth"]),Nt=_e(Ve)||nt;(J=O.validator)===null||J===void 0||J.call(O,{mode:ot});const Te=(0,oe.useEvent)(function(){var Ht;T==null||T.apply(void 0,arguments),(Ht=O.onClick)===null||Ht===void 0||Ht.call(O)}),He=O.mode||ot,Ze=_!=null?_:O.selectable,Y=ie.useMemo(()=>Ke!==void 0?Ke:Ne,[Ne,Ke]),ce={horizontal:{motionName:`${Me}-slide-up`},inline:(0,w.Z)(Me),other:{motionName:`${Me}-zoom-big`}},Ee=ae("menu",Ye||O.prefixCls),[ze,W]=Tt(Ee,!$e),bt=te()(`${Ee}-${We}`,De==null?void 0:De.className,tt);let Ae;if(typeof ht=="function")Ae=ht;else if(ht===null||ht===!1)Ae=null;else if(O.expandIcon===null||O.expandIcon===!1)Ae=null;else{const Ht=ht!=null?ht:O.expandIcon;Ae=(0,c.Tm)(Ht,{className:te()(`${Ee}-submenu-expand-icon`,(0,c.l$)(Ht)?(Pe=Ht.props)===null||Pe===void 0?void 0:Pe.className:"")})}const Dt=ie.useMemo(()=>({prefixCls:Ee,inlineCollapsed:Y||!1,direction:we,firstLevel:!0,theme:We,mode:He,disableMenuItemTitleTooltip:Re}),[Ee,Y,we,Re,We]);return ze(ie.createElement(K.Z.Provider,{value:null},ie.createElement(x.Provider,{value:Dt},ie.createElement(Z.ZP,Object.assign({getPopupContainer:ve,overflowedIndicator:ie.createElement(j.Z,null),overflowedIndicatorPopupClassName:te()(Ee,`${Ee}-${We}`,qe),mode:He,selectable:Ze,onClick:Te},ge,{inlineCollapsed:Y,style:Object.assign(Object.assign({},De==null?void 0:De.style),Xe),className:bt,prefixCls:Ee,direction:we,defaultMotions:ce,expandIcon:Ae,ref:ye,rootClassName:te()(ft,W)}),Nt))))});const Rt=(0,ie.forwardRef)((ue,ye)=>{const J=(0,ie.useRef)(null),Pe=ie.useContext(be.D);return(0,ie.useImperativeHandle)(ye,()=>({menu:J.current,focus:$e=>{var O;(O=J.current)===null||O===void 0||O.focus($e)}})),ie.createElement(yt,Object.assign({ref:J},ue,Pe))});Rt.Item=V,Rt.SubMenu=D,Rt.Divider=a,Rt.ItemGroup=Z.BW;var Ct=Rt},5112:function(Mt,Qe,S){"use strict";S.d(Qe,{ZP:function(){return v}});var Z=S(92310),ie=S.n(Z),be=S(18929),ke=S(26112),te=S(59301),ee=S(36355),xe=S(19716);const de=te.createContext(null),a=de.Provider;var N=de;const P=te.createContext(null),E=P.Provider;var c=S(5630),y=S(8654),x=S(1684),H=S(32441),V=S(17313),k=S(83116),D=S(37613);const j=L=>{const{componentCls:re,antCls:Ie}=L,Be=`${re}-group`;return{[Be]:Object.assign(Object.assign({},(0,V.Wf)(L)),{display:"inline-block",fontSize:0,[`&${Be}-rtl`]:{direction:"rtl"},[`${Ie}-badge ${Ie}-badge-count`]:{zIndex:1},[`> ${Ie}-badge:not(:first-child) > ${Ie}-button-wrapper`]:{borderInlineStart:"none"}})}},oe=L=>{const{componentCls:re,wrapperMarginInlineEnd:Ie,colorPrimary:Be,radioSize:Oe,motionDurationSlow:je,motionDurationMid:at,motionEaseInOutCirc:et,colorBgContainer:rt,colorBorder:Tt,lineWidth:At,dotSize:Ot,colorBgContainerDisabled:yt,colorTextDisabled:Rt,paddingXS:Ct,dotColorDisabled:ue,lineType:ye,radioDotDisabledSize:J,wireframe:Pe,colorWhite:$e}=L,O=`${re}-inner`;return{[`${re}-wrapper`]:Object.assign(Object.assign({},(0,V.Wf)(L)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ie,cursor:"pointer",[`&${re}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:L.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${re}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${At}px ${ye} ${Be}`,borderRadius:"50%",visibility:"hidden",content:'""'},[re]:Object.assign(Object.assign({},(0,V.Wf)(L)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${re}-wrapper:hover &,
|
|
&:hover ${O}`]:{borderColor:Be},[`${re}-input:focus-visible + ${O}`]:Object.assign({},(0,V.oN)(L)),[`${re}:hover::after, ${re}-wrapper:hover &::after`]:{visibility:"visible"},[`${re}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Oe,height:Oe,marginBlockStart:Oe/-2,marginInlineStart:Oe/-2,backgroundColor:Pe?Be:$e,borderBlockStart:0,borderInlineStart:0,borderRadius:Oe,transform:"scale(0)",opacity:0,transition:`all ${je} ${et}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Oe,height:Oe,backgroundColor:rt,borderColor:Tt,borderStyle:"solid",borderWidth:At,borderRadius:"50%",transition:`all ${at}`},[`${re}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${re}-checked`]:{[O]:{borderColor:Be,backgroundColor:Pe?rt:Be,"&::after":{transform:`scale(${Ot/Oe})`,opacity:1,transition:`all ${je} ${et}`}}},[`${re}-disabled`]:{cursor:"not-allowed",[O]:{backgroundColor:yt,borderColor:Tt,cursor:"not-allowed","&::after":{backgroundColor:ue}},[`${re}-input`]:{cursor:"not-allowed"},[`${re}-disabled + span`]:{color:Rt,cursor:"not-allowed"},[`&${re}-checked`]:{[O]:{"&::after":{transform:`scale(${J/Oe})`}}}},[`span${re} + *`]:{paddingInlineStart:Ct,paddingInlineEnd:Ct}})}},w=L=>{const{buttonColor:re,controlHeight:Ie,componentCls:Be,lineWidth:Oe,lineType:je,colorBorder:at,motionDurationSlow:et,motionDurationMid:rt,buttonPaddingInline:Tt,fontSize:At,buttonBg:Ot,fontSizeLG:yt,controlHeightLG:Rt,controlHeightSM:Ct,paddingXS:ue,borderRadius:ye,borderRadiusSM:J,borderRadiusLG:Pe,buttonCheckedBg:$e,buttonSolidCheckedColor:O,colorTextDisabled:ae,colorBgContainerDisabled:ve,buttonCheckedBgDisabled:we,buttonCheckedColorDisabled:De,colorPrimary:Me,colorPrimaryHover:Ye,colorPrimaryActive:tt,buttonSolidCheckedBg:Xe,buttonSolidCheckedHoverBg:We,buttonSolidCheckedActiveBg:ht}=L;return{[`${Be}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ie,margin:0,paddingInline:Tt,paddingBlock:0,color:re,fontSize:At,lineHeight:`${Ie-Oe*2}px`,background:Ot,border:`${Oe}px ${je} ${at}`,borderBlockStartWidth:Oe+.02,borderInlineStartWidth:0,borderInlineEndWidth:Oe,cursor:"pointer",transition:[`color ${rt}`,`background ${rt}`,`box-shadow ${rt}`].join(","),a:{color:re},[`> ${Be}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Oe,insetInlineStart:-Oe,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Oe,paddingInline:0,backgroundColor:at,transition:`background-color ${et}`,content:'""'}},"&:first-child":{borderInlineStart:`${Oe}px ${je} ${at}`,borderStartStartRadius:ye,borderEndStartRadius:ye},"&:last-child":{borderStartEndRadius:ye,borderEndEndRadius:ye},"&:first-child:last-child":{borderRadius:ye},[`${Be}-group-large &`]:{height:Rt,fontSize:yt,lineHeight:`${Rt-Oe*2}px`,"&:first-child":{borderStartStartRadius:Pe,borderEndStartRadius:Pe},"&:last-child":{borderStartEndRadius:Pe,borderEndEndRadius:Pe}},[`${Be}-group-small &`]:{height:Ct,paddingInline:ue-Oe,paddingBlock:0,lineHeight:`${Ct-Oe*2}px`,"&:first-child":{borderStartStartRadius:J,borderEndStartRadius:J},"&:last-child":{borderStartEndRadius:J,borderEndEndRadius:J}},"&:hover":{position:"relative",color:Me},"&:has(:focus-visible)":Object.assign({},(0,V.oN)(L)),[`${Be}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Be}-button-wrapper-disabled)`]:{zIndex:1,color:Me,background:$e,borderColor:Me,"&::before":{backgroundColor:Me},"&:first-child":{borderColor:Me},"&:hover":{color:Ye,borderColor:Ye,"&::before":{backgroundColor:Ye}},"&:active":{color:tt,borderColor:tt,"&::before":{backgroundColor:tt}}},[`${Be}-group-solid &-checked:not(${Be}-button-wrapper-disabled)`]:{color:O,background:Xe,borderColor:Xe,"&:hover":{color:O,background:We,borderColor:We},"&:active":{color:O,background:ht,borderColor:ht}},"&-disabled":{color:ae,backgroundColor:ve,borderColor:at,cursor:"not-allowed","&:first-child, &:hover":{color:ae,backgroundColor:ve,borderColor:at}},[`&-disabled${Be}-button-wrapper-checked`]:{color:De,backgroundColor:we,borderColor:at,boxShadow:"none"}}}},K=L=>L-4*2;var se=(0,k.Z)("Radio",L=>{const{controlOutline:re,controlOutlineWidth:Ie,radioSize:Be}=L,Oe=`0 0 0 ${Ie}px ${re}`,je=Oe,at=K(Be),et=(0,D.TS)(L,{radioDotDisabledSize:at,radioFocusShadow:Oe,radioButtonFocusShadow:je});return[j(et),oe(et),w(et)]},L=>{const{wireframe:re,padding:Ie,marginXS:Be,lineWidth:Oe,fontSizeLG:je,colorText:at,colorBgContainer:et,colorTextDisabled:rt,controlItemBgActiveDisabled:Tt,colorTextLightSolid:At,colorPrimary:Ot,colorPrimaryHover:yt,colorPrimaryActive:Rt}=L,Ct=4,ue=je,ye=re?K(ue):ue-(Ct+Oe)*2;return{radioSize:ue,dotSize:ye,dotColorDisabled:rt,buttonSolidCheckedColor:At,buttonSolidCheckedBg:Ot,buttonSolidCheckedHoverBg:yt,buttonSolidCheckedActiveBg:Rt,buttonBg:et,buttonCheckedBg:et,buttonColor:at,buttonCheckedBgDisabled:Tt,buttonCheckedColorDisabled:rt,buttonPaddingInline:Ie-Oe,wrapperMarginInlineEnd:Be}}),X=S(14088),_e=S(4572),he=function(L,re){var Ie={};for(var Be in L)Object.prototype.hasOwnProperty.call(L,Be)&&re.indexOf(Be)<0&&(Ie[Be]=L[Be]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Be=Object.getOwnPropertySymbols(L);Oe<Be.length;Oe++)re.indexOf(Be[Oe])<0&&Object.prototype.propertyIsEnumerable.call(L,Be[Oe])&&(Ie[Be[Oe]]=L[Be[Oe]]);return Ie};const pe=(L,re)=>{var Ie,Be;const Oe=te.useContext(N),je=te.useContext(P),{getPrefixCls:at,direction:et,radio:rt}=te.useContext(ee.E_),Tt=te.useRef(null),At=(0,y.sQ)(re,Tt),{isFormItemInput:Ot}=te.useContext(H.aM),yt=tt=>{var Xe,We;(Xe=L.onChange)===null||Xe===void 0||Xe.call(L,tt),(We=Oe==null?void 0:Oe.onChange)===null||We===void 0||We.call(Oe,tt)},{prefixCls:Rt,className:Ct,rootClassName:ue,children:ye,style:J}=L,Pe=he(L,["prefixCls","className","rootClassName","children","style"]),$e=at("radio",Rt),O=((Oe==null?void 0:Oe.optionType)||je)==="button",ae=O?`${$e}-button`:$e,[ve,we]=se($e),De=Object.assign({},Pe),Me=te.useContext(x.Z);Oe&&(De.name=Oe.name,De.onChange=yt,De.checked=L.value===Oe.value,De.disabled=(Ie=De.disabled)!==null&&Ie!==void 0?Ie:Oe.disabled),De.disabled=(Be=De.disabled)!==null&&Be!==void 0?Be:Me;const Ye=ie()(`${ae}-wrapper`,{[`${ae}-wrapper-checked`]:De.checked,[`${ae}-wrapper-disabled`]:De.disabled,[`${ae}-wrapper-rtl`]:et==="rtl",[`${ae}-wrapper-in-form-item`]:Ot},rt==null?void 0:rt.className,Ct,ue,we);return ve(te.createElement(X.Z,{component:"Radio",disabled:De.disabled},te.createElement("label",{className:Ye,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),J),onMouseEnter:L.onMouseEnter,onMouseLeave:L.onMouseLeave},te.createElement(c.Z,Object.assign({},De,{className:ie()(De.className,!O&&_e.A),type:"radio",prefixCls:ae,ref:At})),ye!==void 0?te.createElement("span",null,ye):null)))};var M=te.forwardRef(pe);const I=te.forwardRef((L,re)=>{const{getPrefixCls:Ie,direction:Be}=te.useContext(ee.E_),[Oe,je]=(0,be.Z)(L.defaultValue,{value:L.value}),at=Xe=>{const We=Oe,ht=Xe.target.value;"value"in L||je(ht);const{onChange:Re}=L;Re&&ht!==We&&Re(Xe)},{prefixCls:et,className:rt,rootClassName:Tt,options:At,buttonStyle:Ot="outline",disabled:yt,children:Rt,size:Ct,style:ue,id:ye,onMouseEnter:J,onMouseLeave:Pe,onFocus:$e,onBlur:O}=L,ae=Ie("radio",et),ve=`${ae}-group`,[we,De]=se(ae);let Me=Rt;At&&At.length>0&&(Me=At.map(Xe=>typeof Xe=="string"||typeof Xe=="number"?te.createElement(M,{key:Xe.toString(),prefixCls:ae,disabled:yt,value:Xe,checked:Oe===Xe},Xe):te.createElement(M,{key:`radio-group-value-options-${Xe.value}`,prefixCls:ae,disabled:Xe.disabled||yt,value:Xe.value,checked:Oe===Xe.value,title:Xe.title,style:Xe.style},Xe.label)));const Ye=(0,xe.Z)(Ct),tt=ie()(ve,`${ve}-${Ot}`,{[`${ve}-${Ye}`]:Ye,[`${ve}-rtl`]:Be==="rtl"},rt,Tt,De);return we(te.createElement("div",Object.assign({},(0,ke.Z)(L,{aria:!0,data:!0}),{className:tt,style:ue,onMouseEnter:J,onMouseLeave:Pe,onFocus:$e,onBlur:O,id:ye,ref:re}),te.createElement(a,{value:{onChange:at,value:Oe,disabled:L.disabled,name:L.name,optionType:L.optionType}},Me)))});var U=te.memo(I),R=function(L,re){var Ie={};for(var Be in L)Object.prototype.hasOwnProperty.call(L,Be)&&re.indexOf(Be)<0&&(Ie[Be]=L[Be]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Be=Object.getOwnPropertySymbols(L);Oe<Be.length;Oe++)re.indexOf(Be[Oe])<0&&Object.prototype.propertyIsEnumerable.call(L,Be[Oe])&&(Ie[Be[Oe]]=L[Be[Oe]]);return Ie};const q=(L,re)=>{const{getPrefixCls:Ie}=te.useContext(ee.E_),{prefixCls:Be}=L,Oe=R(L,["prefixCls"]),je=Ie("radio",Be);return te.createElement(E,{value:"button"},te.createElement(M,Object.assign({prefixCls:je},Oe,{type:"radio",ref:re})))};var $=te.forwardRef(q);const m=M;m.Button=$,m.Group=U,m.__ANT_RADIO=!0;var v=m},8378:function(Mt,Qe){"use strict";const S=Z=>({[Z.componentCls]:{[`${Z.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${Z.motionDurationMid} ${Z.motionEaseInOut},
|
|
opacity ${Z.motionDurationMid} ${Z.motionEaseInOut} !important`}},[`${Z.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${Z.motionDurationMid} ${Z.motionEaseInOut},
|
|
opacity ${Z.motionDurationMid} ${Z.motionEaseInOut} !important`}}});Qe.Z=S},92899:function(Mt,Qe,S){"use strict";S.d(Qe,{Fm:function(){return E}});var Z=S(93083),ie=S(95406);const be=new Z.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new Z.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),te=new Z.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ee=new Z.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),xe=new Z.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new Z.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),a=new Z.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N=new Z.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),P={"move-up":{inKeyframes:a,outKeyframes:N},"move-down":{inKeyframes:be,outKeyframes:ke},"move-left":{inKeyframes:te,outKeyframes:ee},"move-right":{inKeyframes:xe,outKeyframes:de}},E=(c,y)=>{const{antCls:x}=c,H=`${x}-${y}`,{inKeyframes:V,outKeyframes:k}=P[y];return[(0,ie.R)(H,V,k,c.motionDurationMid),{[`
|
|
${H}-enter,
|
|
${H}-appear
|
|
`]:{opacity:0,animationTimingFunction:c.motionEaseOutCirc},[`${H}-leave`]:{animationTimingFunction:c.motionEaseInOutCirc}}]}},13826:function(Mt,Qe,S){"use strict";S.d(Qe,{Qt:function(){return te},Uw:function(){return ke},fJ:function(){return be},ly:function(){return ee},oN:function(){return E}});var Z=S(93083),ie=S(95406);const be=new Z.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ke=new Z.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),te=new Z.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ee=new Z.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),xe=new Z.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new Z.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),a=new Z.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),N=new Z.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),P={"slide-up":{inKeyframes:be,outKeyframes:ke},"slide-down":{inKeyframes:te,outKeyframes:ee},"slide-left":{inKeyframes:xe,outKeyframes:de},"slide-right":{inKeyframes:a,outKeyframes:N}},E=(c,y)=>{const{antCls:x}=c,H=`${x}-${y}`,{inKeyframes:V,outKeyframes:k}=P[y];return[(0,ie.R)(H,V,k,c.motionDurationMid),{[`
|
|
${H}-enter,
|
|
${H}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:c.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${H}-leave`]:{animationTimingFunction:c.motionEaseInQuint}}]}},19447:function(Mt,Qe,S){"use strict";S.d(Qe,{ZP:function(){return te},fS:function(){return be},qN:function(){return ie}});var Z=S(47585);const ie=8;function be(ee){const xe=ie,{contentRadius:de,limitVerticalRadius:a}=ee,N=de>12?de+2:12;return{dropdownArrowOffset:N,dropdownArrowOffsetVertical:a?xe:N}}function ke(ee,xe){return ee?xe:{}}function te(ee,xe){const{componentCls:de,sizePopupArrow:a,borderRadiusXS:N,borderRadiusOuter:P,boxShadowPopoverArrow:E}=ee,{colorBg:c,contentRadius:y=ee.borderRadiusLG,limitVerticalRadius:x,arrowDistance:H=0,arrowPlacement:V={left:!0,right:!0,top:!0,bottom:!0}}=xe,{dropdownArrowOffsetVertical:k,dropdownArrowOffset:D}=be({contentRadius:y,limitVerticalRadius:x});return{[de]:Object.assign(Object.assign(Object.assign(Object.assign({[`${de}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,Z.r)(a,N,P,c,E)),{"&:before":{background:c}})]},ke(!!V.top,{[[`&-placement-top ${de}-arrow`,`&-placement-topLeft ${de}-arrow`,`&-placement-topRight ${de}-arrow`].join(",")]:{bottom:H,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${de}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${de}-arrow`]:{left:{_skip_check_:!0,value:D}},[`&-placement-topRight ${de}-arrow`]:{right:{_skip_check_:!0,value:D}}})),ke(!!V.bottom,{[[`&-placement-bottom ${de}-arrow`,`&-placement-bottomLeft ${de}-arrow`,`&-placement-bottomRight ${de}-arrow`].join(",")]:{top:H,transform:"translateY(-100%)"},[`&-placement-bottom ${de}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${de}-arrow`]:{left:{_skip_check_:!0,value:D}},[`&-placement-bottomRight ${de}-arrow`]:{right:{_skip_check_:!0,value:D}}})),ke(!!V.left,{[[`&-placement-left ${de}-arrow`,`&-placement-leftTop ${de}-arrow`,`&-placement-leftBottom ${de}-arrow`].join(",")]:{right:{_skip_check_:!0,value:H},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${de}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${de}-arrow`]:{top:k},[`&-placement-leftBottom ${de}-arrow`]:{bottom:k}})),ke(!!V.right,{[[`&-placement-right ${de}-arrow`,`&-placement-rightTop ${de}-arrow`,`&-placement-rightBottom ${de}-arrow`].join(",")]:{left:{_skip_check_:!0,value:H},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${de}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${de}-arrow`]:{top:k},[`&-placement-rightBottom ${de}-arrow`]:{bottom:k}}))}}},47585:function(Mt,Qe,S){"use strict";S.d(Qe,{r:function(){return Z}});const Z=(ie,be,ke,te,ee)=>{const xe=ie/2,de=0,a=xe,N=ke*1/Math.sqrt(2),P=xe-ke*(1-1/Math.sqrt(2)),E=xe-be*(1/Math.sqrt(2)),c=ke*(Math.sqrt(2)-1)+be*(1/Math.sqrt(2)),y=2*xe-E,x=c,H=2*xe-N,V=P,k=2*xe-de,D=a,j=xe*Math.sqrt(2)+ke*(Math.sqrt(2)-2),oe=ke*(Math.sqrt(2)-1);return{pointerEvents:"none",width:ie,height:ie,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:ie,height:ie/2,background:te,clipPath:{_multi_value_:!0,value:[`polygon(${oe}px 100%, 50% ${oe}px, ${2*xe-oe}px 100%, ${oe}px 100%)`,`path('M ${de} ${a} A ${ke} ${ke} 0 0 0 ${N} ${P} L ${E} ${c} A ${be} ${be} 0 0 1 ${y} ${x} L ${H} ${V} A ${ke} ${ke} 0 0 0 ${k} ${D} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:j,height:j,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${be}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:ee,zIndex:0,background:"transparent"}}}},33166:function(Mt,Qe,S){"use strict";S.d(Qe,{i:function(){return Z}});const Z=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return ie}});var Z=S(33166);function ie(be,ke){return Z.i.reduce((te,ee)=>{const xe=be[`${ee}1`],de=be[`${ee}3`],a=be[`${ee}6`],N=be[`${ee}7`];return Object.assign(Object.assign({},te),ke(ee,{lightColor:xe,lightBorderColor:de,darkColor:a,textColor:N}))},{})}},6848:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return pe}});var Z=S(59301),ie=S(92310),be=S.n(ie),ke=S(55477),te=S(18929),ee=S(62892),xe=S(79676),de=S(92343),a=S(36355),N=S(33234),P=S(88088),E=S(17313),c=S(29878),y=S(19447),x=S(45157),H=S(37613),V=S(83116);const k=Ce=>{const{componentCls:M,tooltipMaxWidth:I,tooltipColor:U,tooltipBg:R,tooltipBorderRadius:q,zIndexPopup:$,controlHeight:m,boxShadowSecondary:v,paddingSM:L,paddingXS:re,tooltipRadiusOuter:Ie}=Ce;return[{[M]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(Ce)),{position:"absolute",zIndex:$,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,[`${M}-inner`]:{minWidth:m,minHeight:m,padding:`${L/2}px ${re}px`,color:U,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:R,borderRadius:q,boxShadow:v,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${M}-inner`]:{borderRadius:Math.min(q,y.qN)}},[`${M}-content`]:{position:"relative"}}),(0,x.Z)(Ce,(Be,Oe)=>{let{darkColor:je}=Oe;return{[`&${M}-${Be}`]:{[`${M}-inner`]:{backgroundColor:je},[`${M}-arrow`]:{"--antd-arrow-background-color":je}}}})),{"&-rtl":{direction:"rtl"}})},(0,y.ZP)((0,H.TS)(Ce,{borderRadiusOuter:Ie}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:q,limitVerticalRadius:!0}),{[`${M}-pure`]:{position:"relative",maxWidth:"none",margin:Ce.sizePopupArrow}}]};var D=(Ce,M)=>(0,V.Z)("Tooltip",U=>{if(M===!1)return[];const{borderRadius:R,colorTextLightSolid:q,colorBgDefault:$,borderRadiusOuter:m}=U,v=(0,H.TS)(U,{tooltipMaxWidth:250,tooltipColor:q,tooltipBorderRadius:R,tooltipBg:$,tooltipRadiusOuter:m>4?4:m});return[k(v),(0,c._y)(U,"zoom-big-fast")]},U=>{let{zIndexPopupBase:R,colorBgSpotlight:q}=U;return{zIndexPopup:R+70,colorBgDefault:q}},{resetStyle:!1})(Ce),j=S(36785);function oe(Ce,M){const I=(0,j.o2)(M),U=be()({[`${Ce}-${M}`]:M&&I}),R={},q={};return M&&!I&&(R.background=M,q["--antd-arrow-background-color"]=M),{className:U,overlayStyle:R,arrowStyle:q}}var K=Ce=>{const{prefixCls:M,className:I,placement:U="top",title:R,color:q,overlayInnerStyle:$}=Ce,{getPrefixCls:m}=Z.useContext(a.E_),v=m("tooltip",M),[L,re]=D(v,!0),Ie=oe(v,q),Be=Ie.arrowStyle,Oe=Object.assign(Object.assign({},$),Ie.overlayStyle),je=be()(re,v,`${v}-pure`,`${v}-placement-${U}`,I,Ie.className);return L(Z.createElement("div",{className:je,style:Be},Z.createElement("div",{className:`${v}-arrow`}),Z.createElement(ke.G,Object.assign({},Ce,{className:re,prefixCls:v,overlayInnerStyle:Oe}),R)))},se=function(Ce,M){var I={};for(var U in Ce)Object.prototype.hasOwnProperty.call(Ce,U)&&M.indexOf(U)<0&&(I[U]=Ce[U]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,U=Object.getOwnPropertySymbols(Ce);R<U.length;R++)M.indexOf(U[R])<0&&Object.prototype.propertyIsEnumerable.call(Ce,U[R])&&(I[U[R]]=Ce[U[R]]);return I};const X=(Ce,M)=>{const I={},U=Object.assign({},Ce);return M.forEach(R=>{Ce&&R in Ce&&(I[R]=Ce[R],delete U[R])}),{picked:I,omitted:U}};function _e(Ce,M){const I=Ce.type;if((I.__ANT_BUTTON===!0||Ce.type==="button")&&Ce.props.disabled||I.__ANT_SWITCH===!0&&(Ce.props.disabled||Ce.props.loading)||I.__ANT_RADIO===!0&&Ce.props.disabled){const{picked:U,omitted:R}=X(Ce.props.style,["position","left","right","top","bottom","float","display","zIndex"]),q=Object.assign(Object.assign({display:"inline-block"},U),{cursor:"not-allowed",width:Ce.props.block?"100%":void 0}),$=Object.assign(Object.assign({},R),{pointerEvents:"none"}),m=(0,de.Tm)(Ce,{style:$,className:null});return Z.createElement("span",{style:q,className:be()(Ce.props.className,`${M}-disabled-compatible-wrapper`)},m)}return Ce}const he=Z.forwardRef((Ce,M)=>{var I,U;const{prefixCls:R,openClassName:q,getTooltipContainer:$,overlayClassName:m,color:v,overlayInnerStyle:L,children:re,afterOpenChange:Ie,afterVisibleChange:Be,destroyTooltipOnHide:Oe,arrow:je=!0,title:at,overlay:et,builtinPlacements:rt,arrowPointAtCenter:Tt=!1,autoAdjustOverflow:At=!0}=Ce,Ot=!!je,[,yt]=(0,P.Z)(),{getPopupContainer:Rt,getPrefixCls:Ct,direction:ue}=Z.useContext(a.E_),ye=Z.useRef(null),J=()=>{var He;(He=ye.current)===null||He===void 0||He.forceAlign()};Z.useImperativeHandle(M,()=>({forceAlign:J,forcePopupAlign:()=>{J()}}));const[Pe,$e]=(0,te.Z)(!1,{value:(I=Ce.open)!==null&&I!==void 0?I:Ce.visible,defaultValue:(U=Ce.defaultOpen)!==null&&U!==void 0?U:Ce.defaultVisible}),O=!at&&!et&&at!==0,ae=He=>{var Ze,Y;$e(O?!1:He),O||((Ze=Ce.onOpenChange)===null||Ze===void 0||Ze.call(Ce,He),(Y=Ce.onVisibleChange)===null||Y===void 0||Y.call(Ce,He))},ve=Z.useMemo(()=>{var He,Ze;let Y=Tt;return typeof je=="object"&&(Y=(Ze=(He=je.pointAtCenter)!==null&&He!==void 0?He:je.arrowPointAtCenter)!==null&&Ze!==void 0?Ze:Tt),rt||(0,xe.Z)({arrowPointAtCenter:Y,autoAdjustOverflow:At,arrowWidth:Ot?yt.sizePopupArrow:0,borderRadius:yt.borderRadius,offset:yt.marginXXS,visibleFirst:!0})},[Tt,je,rt,yt]),we=Z.useMemo(()=>at===0?at:et||at||"",[et,at]),De=Z.createElement(N.BR,null,typeof we=="function"?we():we),{getPopupContainer:Me,placement:Ye="top",mouseEnterDelay:tt=.1,mouseLeaveDelay:Xe=.1,overlayStyle:We,rootClassName:ht}=Ce,Re=se(Ce,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ne=Ct("tooltip",R),Ke=Ct(),Ve=Ce["data-popover-inject"];let nt=Pe;!("open"in Ce)&&!("visible"in Ce)&&O&&(nt=!1);const ft=_e((0,de.l$)(re)&&!(0,de.M2)(re)?re:Z.createElement("span",null,re),Ne),ot=ft.props,_=!ot.className||typeof ot.className=="string"?be()(ot.className,q||`${Ne}-open`):ot.className,[T,qe]=D(Ne,!Ve),G=oe(Ne,v),ge=G.arrowStyle,Nt=Object.assign(Object.assign({},L),G.overlayStyle),Te=be()(m,{[`${Ne}-rtl`]:ue==="rtl"},G.className,ht,qe);return T(Z.createElement(ke.Z,Object.assign({},Re,{showArrow:Ot,placement:Ye,mouseEnterDelay:tt,mouseLeaveDelay:Xe,prefixCls:Ne,overlayClassName:Te,overlayStyle:Object.assign(Object.assign({},ge),We),getTooltipContainer:Me||$||Rt,ref:ye,builtinPlacements:ve,overlay:De,visible:nt,onVisibleChange:ae,afterVisibleChange:Ie!=null?Ie:Be,overlayInnerStyle:Nt,arrowContent:Z.createElement("span",{className:`${Ne}-arrow-content`}),motion:{motionName:(0,ee.m)(Ke,"zoom-big-fast",Ce.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Oe}),nt?(0,de.Tm)(ft,{className:_}):ft))});he._InternalPanelDoNotUseOrYouWillBeFired=K;var pe=he},64018:function(){var Mt,Qe,S,Z=!1,ie,be;window.PR_SHOULD_USE_CONTINUATION=!0;var ke,te;(function(){var ee=window,xe=["break,continue,do,else,for,if,return,while"],de=[xe,"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"],a=[de,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],N=[a,"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"],P=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],E=[a,"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",y=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],x="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",H=[xe,"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"],V=[xe,"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=[xe,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],D=[N,E,P,y,x,H,V,k],j=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,oe="str",w="kwd",K="com",se="typ",X="lit",_e="pun",he="pln",pe="tag",Ce="dec",M="src",I="atn",U="atv",R="nocode",q="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function $(ue){for(var ye=0,J=!1,Pe=!1,$e=0,O=ue.length;$e<O;++$e){var ae=ue[$e];if(ae.ignoreCase)Pe=!0;else if(/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){J=!0,Pe=!1;break}}var ve={b:8,t:9,n:10,v:11,f:12,r:13};function we(Xe){var We=Xe.charCodeAt(0);if(We!==92)return We;var ht=Xe.charAt(1);return We=ve[ht],We||("0"<=ht&&ht<="7"?parseInt(Xe.substring(1),8):ht==="u"||ht==="x"?parseInt(Xe.substring(2),16):Xe.charCodeAt(1))}function De(Xe){if(Xe<32)return(Xe<16?"\\x0":"\\x")+Xe.toString(16);var We=String.fromCharCode(Xe);return We==="\\"||We==="-"||We==="]"||We==="^"?"\\"+We:We}function Me(Xe){var We=Xe.substring(1,Xe.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")),ht=[],Re=We[0]==="^",Ne=["["];Re&&Ne.push("^");for(var Ke=Re?1:0,Ve=We.length;Ke<Ve;++Ke){var nt=We[Ke];if(/\\[bdsw]/i.test(nt))Ne.push(nt);else{var ft=we(nt),ot;Ke+2<Ve&&We[Ke+1]==="-"?(ot=we(We[Ke+2]),Ke+=2):ot=ft,ht.push([ft,ot]),ot<65||ft>122||(ot<65||ft>90||ht.push([Math.max(65,ft)|32,Math.min(ot,90)|32]),ot<97||ft>122||ht.push([Math.max(97,ft)&-33,Math.min(ot,122)&-33]))}}ht.sort(function(G,ge){return G[0]-ge[0]||ge[1]-G[1]});for(var _=[],T=[],Ke=0;Ke<ht.length;++Ke){var qe=ht[Ke];qe[0]<=T[1]+1?T[1]=Math.max(T[1],qe[1]):_.push(T=qe)}for(var Ke=0;Ke<_.length;++Ke){var qe=_[Ke];Ne.push(De(qe[0])),qe[1]>qe[0]&&(qe[1]+1>qe[0]&&Ne.push("-"),Ne.push(De(qe[1])))}return Ne.push("]"),Ne.join("")}function Ye(Xe){for(var We=Xe.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")),ht=We.length,Re=[],Ne=0,Ke=0;Ne<ht;++Ne){var Ve=We[Ne];if(Ve==="(")++Ke;else if(Ve.charAt(0)==="\\"){var nt=+Ve.substring(1);nt&&(nt<=Ke?Re[nt]=-1:We[Ne]=De(nt))}}for(var Ne=1;Ne<Re.length;++Ne)Re[Ne]===-1&&(Re[Ne]=++ye);for(var Ne=0,Ke=0;Ne<ht;++Ne){var Ve=We[Ne];if(Ve==="(")++Ke,Re[Ke]||(We[Ne]="(?:");else if(Ve.charAt(0)==="\\"){var nt=+Ve.substring(1);nt&&nt<=Ke&&(We[Ne]="\\"+Re[nt])}}for(var Ne=0;Ne<ht;++Ne)We[Ne]==="^"&&We[Ne+1]!=="^"&&(We[Ne]="");if(Xe.ignoreCase&&J)for(var Ne=0;Ne<ht;++Ne){var Ve=We[Ne],ft=Ve.charAt(0);Ve.length>=2&&ft==="["?We[Ne]=Me(Ve):ft!=="\\"&&(We[Ne]=Ve.replace(/[a-zA-Z]/g,function(T){var qe=T.charCodeAt(0);return"["+String.fromCharCode(qe&-33,qe|32)+"]"}))}return We.join("")}for(var tt=[],$e=0,O=ue.length;$e<O;++$e){var ae=ue[$e];if(ae.global||ae.multiline)throw new Error(""+ae);tt.push("(?:"+Ye(ae)+")")}return new RegExp(tt.join("|"),Pe?"gi":"g")}function m(ue,ye){var J=/(?:^|\s)nocode(?:\s|$)/,Pe=[],$e=0,O=[],ae=0;function ve(we){var De=we.nodeType;if(De==1){if(J.test(we.className))return;for(var Me=we.firstChild;Me;Me=Me.nextSibling)ve(Me);var Ye=we.nodeName.toLowerCase();(Ye==="br"||Ye==="li")&&(Pe[ae]=`
|
|
`,O[ae<<1]=$e++,O[ae++<<1|1]=we)}else if(De==3||De==4){var tt=we.nodeValue;tt.length&&(ye?tt=tt.replace(/\r\n?/g,`
|
|
`):tt=tt.replace(/[ \t\r\n]+/g," "),Pe[ae]=tt,O[ae<<1]=$e,$e+=tt.length,O[ae++<<1|1]=we)}}return ve(ue),{sourceCode:Pe.join("").replace(/\n$/,""),spans:O}}function v(ue,ye,J,Pe,$e){if(J){var O={sourceNode:ue,pre:1,langExtension:null,numberLines:null,sourceCode:J,spans:null,basePos:ye,decorations:null};Pe(O),$e.push.apply($e,O.decorations)}}var L=/\S/;function re(ue){for(var ye=void 0,J=ue.firstChild;J;J=J.nextSibling){var Pe=J.nodeType;ye=Pe===1?ye?ue:J:Pe===3&&L.test(J.nodeValue)?ue:ye}return ye===ue?void 0:ye}function Ie(ue,ye){var J={},Pe;(function(){for(var ae=ue.concat(ye),ve=[],we={},De=0,Me=ae.length;De<Me;++De){var Ye=ae[De],tt=Ye[3];if(tt)for(var Xe=tt.length;--Xe>=0;)J[tt.charAt(Xe)]=Ye;var We=Ye[1],ht=""+We;we.hasOwnProperty(ht)||(ve.push(We),we[ht]=null)}ve.push(/[\0-\uffff]/),Pe=$(ve)})();var $e=ye.length,O=function(ae){for(var ve=ae.sourceCode,we=ae.basePos,De=ae.sourceNode,Me=[we,he],Ye=0,tt=ve.match(Pe)||[],Xe={},We=0,ht=tt.length;We<ht;++We){var Re=tt[We],Ne=Xe[Re],Ke=void 0,Ve;if(typeof Ne=="string")Ve=!1;else{var nt=J[Re.charAt(0)];if(nt)Ke=Re.match(nt[1]),Ne=nt[0];else{for(var ft=0;ft<$e;++ft)if(nt=ye[ft],Ke=Re.match(nt[1]),Ke){Ne=nt[0];break}Ke||(Ne=he)}Ve=Ne.length>=5&&Ne.substring(0,5)==="lang-",Ve&&!(Ke&&typeof Ke[1]=="string")&&(Ve=!1,Ne=M),Ve||(Xe[Re]=Ne)}var ot=Ye;if(Ye+=Re.length,!Ve)Me.push(we+ot,Ne);else{var _=Ke[1],T=Re.indexOf(_),qe=T+_.length;Ke[2]&&(qe=Re.length-Ke[2].length,T=qe-_.length);var G=Ne.substring(5);v(De,we+ot,Re.substring(0,T),O,Me),v(De,we+ot+T,_,Tt(G,_),Me),v(De,we+ot+qe,Re.substring(qe),O,Me)}}ae.decorations=Me};return O}function Be(ue){var ye=[],J=[];ue.tripleQuotedStrings?ye.push([oe,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ue.multiLineStrings?ye.push([oe,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ye.push([oe,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ue.verbatimStrings&&J.push([oe,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Pe=ue.hashComments;Pe&&(ue.cStyleComments?(Pe>1?ye.push([K,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ye.push([K,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),J.push([oe,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ye.push([K,/^#[^\r\n]*/,null,"#"])),ue.cStyleComments&&(J.push([K,/^\/\/[^\r\n]*/,null]),J.push([K,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var $e=ue.regexLiterals;if($e){var O=$e>1?"":`
|
|
\r`,ae=O?".":"[\\S\\s]",ve="/(?=[^/*"+O+"])(?:[^/\\x5B\\x5C"+O+"]|\\x5C"+ae+"|\\x5B(?:[^\\x5C\\x5D"+O+"]|\\x5C"+ae+")*(?:\\x5D|$))+/";J.push(["lang-regex",RegExp("^"+q+"("+ve+")")])}var we=ue.types;we&&J.push([se,we]);var De=(""+ue.keywords).replace(/^ | $/g,"");De.length&&J.push([w,new RegExp("^(?:"+De.replace(/[\s,]+/g,"|")+")\\b"),null]),ye.push([he,/^\s+/,null,` \r
|
|
\xA0`]);var Me="^.[^\\s\\w.$@'\"`/\\\\]*";return ue.regexLiterals&&(Me+="(?!s*/)"),J.push([X,/^@[a-z_$][a-z_$@0-9]*/i,null],[se,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[he,/^[a-z_$][a-z_$@0-9]*/i,null],[X,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[he,/^\\[\s\S]?/,null],[_e,new RegExp(Me),null]),Ie(ye,J)}var Oe=Be({keywords:D,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function je(ue,ye,J){for(var Pe=/(?:^|\s)nocode(?:\s|$)/,$e=/\r\n?|\n/,O=ue.ownerDocument,ae=O.createElement("li");ue.firstChild;)ae.appendChild(ue.firstChild);var ve=[ae];function we(We){var ht=We.nodeType;if(ht==1&&!Pe.test(We.className))if(We.nodeName==="br")De(We),We.parentNode&&We.parentNode.removeChild(We);else for(var Re=We.firstChild;Re;Re=Re.nextSibling)we(Re);else if((ht==3||ht==4)&&J){var Ne=We.nodeValue,Ke=Ne.match($e);if(Ke){var Ve=Ne.substring(0,Ke.index);We.nodeValue=Ve;var nt=Ne.substring(Ke.index+Ke[0].length);if(nt){var ft=We.parentNode;ft.insertBefore(O.createTextNode(nt),We.nextSibling)}De(We),Ve||We.parentNode.removeChild(We)}}}function De(We){for(;!We.nextSibling;)if(We=We.parentNode,!We)return;function ht(Ke,Ve){var nt=Ve?Ke.cloneNode(!1):Ke,ft=Ke.parentNode;if(ft){var ot=ht(ft,1),_=Ke.nextSibling;ot.appendChild(nt);for(var T=_;T;T=_)_=T.nextSibling,ot.appendChild(T)}return nt}for(var Re=ht(We.nextSibling,0),Ne;(Ne=Re.parentNode)&&Ne.nodeType===1;)Re=Ne;ve.push(Re)}for(var Me=0;Me<ve.length;++Me)we(ve[Me]);ye===(ye|0)&&ve[0].setAttribute("value",ye);var Ye=O.createElement("ol");Ye.className="linenums";for(var tt=Math.max(0,ye-1|0)||0,Me=0,Xe=ve.length;Me<Xe;++Me)ae=ve[Me],ae.className="L"+(Me+tt)%10,ae.firstChild||ae.appendChild(O.createTextNode("\xA0")),Ye.appendChild(ae);ue.appendChild(Ye)}function at(ue){var ye=/\bMSIE\s(\d+)/.exec(navigator.userAgent);ye=ye&&+ye[1]<=8;var J=/\n/g,Pe=ue.sourceCode,$e=Pe.length,O=0,ae=ue.spans,ve=ae.length,we=0,De=ue.decorations,Me=De.length,Ye=0;De[Me]=$e;var tt,Xe;for(Xe=tt=0;Xe<Me;)De[Xe]!==De[Xe+2]?(De[tt++]=De[Xe++],De[tt++]=De[Xe++]):Xe+=2;for(Me=tt,Xe=tt=0;Xe<Me;){for(var We=De[Xe],ht=De[Xe+1],Re=Xe+2;Re+2<=Me&&De[Re+1]===ht;)Re+=2;De[tt++]=We,De[tt++]=ht,Xe=Re}Me=De.length=tt;var Ne=ue.sourceNode,Ke="";Ne&&(Ke=Ne.style.display,Ne.style.display="none");try{for(var Ve=null;we<ve;){var nt=ae[we],ft=ae[we+2]||$e,ot=De[Ye+2]||$e,Re=Math.min(ft,ot),_=ae[we+1],T;if(_.nodeType!==1&&(T=Pe.substring(O,Re))){ye&&(T=T.replace(J,"\r")),_.nodeValue=T;var qe=_.ownerDocument,G=qe.createElement("span");G.className=De[Ye+1];var ge=_.parentNode;ge.replaceChild(G,_),G.appendChild(_),O<ft&&(ae[we+1]=_=qe.createTextNode(Pe.substring(Re,ft)),ge.insertBefore(_,G.nextSibling))}O=Re,O>=ft&&(we+=2),O>=ot&&(Ye+=2)}}finally{Ne&&(Ne.style.display=Ke)}}var et={};function rt(ue,ye){for(var J=ye.length;--J>=0;){var Pe=ye[J];et.hasOwnProperty(Pe)?ee.console&&console.warn("cannot override language handler %s",Pe):et[Pe]=ue}}function Tt(ue,ye){return ue&&et.hasOwnProperty(ue)||(ue=/^\s*</.test(ye)?"default-markup":"default-code"),et[ue]}rt(Oe,["default-code"]),rt(Ie([],[[he,/^[^<?]+/],[Ce,/^<!\w[^>]*(?:>|$)/],[K,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_e,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),rt(Ie([[he,/^[\s]+/,null,` \r
|
|
`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[pe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_e,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),rt(Ie([],[[U,/^[\s\S]+/]]),["uq.val"]),rt(Be({keywords:N,hashComments:!0,cStyleComments:!0,types:j}),["c","cc","cpp","cxx","cyc","m"]),rt(Be({keywords:"null,true,false"}),["json"]),rt(Be({keywords:E,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:j}),["cs"]),rt(Be({keywords:P,cStyleComments:!0}),["java"]),rt(Be({keywords:k,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),rt(Be({keywords:H,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),rt(Be({keywords:x,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),rt(Be({keywords:V,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),rt(Be({keywords:y,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),rt(Be({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),rt(Ie([],[[oe,/^[\s\S]+/]]),["regex"]);function At(ue){var ye=ue.langExtension;try{var J=m(ue.sourceNode,ue.pre),Pe=J.sourceCode;ue.sourceCode=Pe,ue.spans=J.spans,ue.basePos=0,Tt(ye,Pe)(ue),at(ue)}catch($e){ee.console&&console.log($e&&$e.stack||$e)}}function Ot(ue,ye,J){var Pe=J||!1,$e=ye||null,O=document.createElement("div");O.innerHTML="<pre>"+ue+"</pre>",O=O.firstChild,Pe&&je(O,Pe,!0);var ae={langExtension:$e,numberLines:Pe,sourceNode:O,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return At(ae),O.innerHTML}function yt(ue,ye){var J=ye||document.body,Pe=J.ownerDocument||document;function $e(nt){return J.getElementsByTagName(nt)}for(var O=[$e("pre"),$e("code"),$e("xmp")],ae=[],ve=0;ve<O.length;++ve)for(var we=0,De=O[ve].length;we<De;++we)ae.push(O[ve][we]);O=null;var Me=Date;Me.now||(Me={now:function(){return+new Date}});var Ye=0,tt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Xe=/\bprettyprint\b/,We=/\bprettyprinted\b/,ht=/pre|xmp/i,Re=/^code$/i,Ne=/^(?:pre|code|xmp)$/i,Ke={};function Ve(){for(var nt=ee.PR_SHOULD_USE_CONTINUATION?Me.now()+250:1/0;Ye<ae.length&&Me.now()<nt;Ye++){for(var ft=ae[Ye],ot=Ke,_=ft;_=_.previousSibling;){var T=_.nodeType,qe=(T===7||T===8)&&_.nodeValue;if(qe?!/^\??prettify\b/.test(qe):T!==3||/\S/.test(_.nodeValue))break;if(qe){ot={},qe.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ae,Dt,Ht){ot[Dt]=Ht});break}}var G=ft.className;if((ot!==Ke||Xe.test(G))&&!We.test(G)){for(var ge=!1,Nt=ft.parentNode;Nt;Nt=Nt.parentNode){var Te=Nt.tagName;if(Ne.test(Te)&&Nt.className&&Xe.test(Nt.className)){ge=!0;break}}if(!ge){ft.className+=" prettyprinted";var He=ot.lang;if(!He){He=G.match(tt);var Ze;!He&&(Ze=re(ft))&&Re.test(Ze.tagName)&&(He=Ze.className.match(tt)),He&&(He=He[1])}var Y;if(ht.test(ft.tagName))Y=1;else{var ce=ft.currentStyle,Ee=Pe.defaultView,ze=ce?ce.whiteSpace:Ee&&Ee.getComputedStyle?Ee.getComputedStyle(ft,null).getPropertyValue("white-space"):0;Y=ze&&ze.substring(0,3)==="pre"}var W=ot.linenums;(W=W==="true"||+W)||(W=G.match(/\blinenums\b(?::(\d+))?/),W=W?W[1]&&W[1].length?+W[1]:!0:!1),W&&je(ft,W,Y);var bt={langExtension:He,sourceNode:ft,numberLines:W,pre:Y,sourceCode:null,basePos:null,spans:null,decorations:null};At(bt)}}}Ye<ae.length?ee.setTimeout(Ve,250):typeof ue=="function"&&ue()}Ve()}var Rt=ee.PR={createSimpleLexer:Ie,registerLangHandler:rt,sourceDecorator:Be,PR_ATTRIB_NAME:I,PR_ATTRIB_VALUE:U,PR_COMMENT:K,PR_DECLARATION:Ce,PR_KEYWORD:w,PR_LITERAL:X,PR_NOCODE:R,PR_PLAIN:he,PR_PUNCTUATION:_e,PR_SOURCE:M,PR_STRING:oe,PR_TAG:pe,PR_TYPE:se,prettyPrintOne:Z?ee.prettyPrintOne=Ot:ke=Ot,prettyPrint:te=Z?ee.prettyPrint=yt:te=yt},Ct=ee.define;typeof Ct=="function"&&Ct.amd&&Ct("google-code-prettify",[],function(){return Rt})})()},25769:function(Mt,Qe,S){"use strict";var Z=S(98040),ie={"text/plain":"Text","text/html":"Url",default:"Text"},be="Copy to clipboard: #{key}, Enter";function ke(ee){var xe=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return ee.replace(/#{\s*key\s*}/g,xe)}function te(ee,xe){var de,a,N,P,E,c,y=!1;xe||(xe={}),de=xe.debug||!1;try{N=Z(),P=document.createRange(),E=document.getSelection(),c=document.createElement("span"),c.textContent=ee,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(H){if(H.stopPropagation(),xe.format)if(H.preventDefault(),typeof H.clipboardData=="undefined"){de&&console.warn("unable to use e.clipboardData"),de&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var V=ie[xe.format]||ie.default;window.clipboardData.setData(V,ee)}else H.clipboardData.clearData(),H.clipboardData.setData(xe.format,ee);xe.onCopy&&(H.preventDefault(),xe.onCopy(H.clipboardData))}),document.body.appendChild(c),P.selectNodeContents(c),E.addRange(P);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");y=!0}catch(H){de&&console.error("unable to copy using execCommand: ",H),de&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(xe.format||"text",ee),xe.onCopy&&xe.onCopy(window.clipboardData),y=!0}catch(V){de&&console.error("unable to copy using clipboardData: ",V),de&&console.error("falling back to prompt"),a=ke("message"in xe?xe.message:be),window.prompt(a,ee)}}finally{E&&(typeof E.removeRange=="function"?E.removeRange(P):E.removeAllRanges()),c&&document.body.removeChild(c),N()}return y}Mt.exports=te},53184:function(Mt,Qe,S){"use strict";var Z,ie;function be(ke,te,ee){var xe=function(de,a){return ke.js_beautify(de,a)};return xe.js=ke.js_beautify,xe.css=te.css_beautify,xe.html=ee.html_beautify,xe.js_beautify=ke.js_beautify,xe.css_beautify=te.css_beautify,xe.html_beautify=ee.html_beautify,xe}Z=[S(58553),S(87804),S(40998)],ie=function(ke,te,ee){return be(ke,te,ee)}.apply(Qe,Z),ie!==void 0&&(Mt.exports=ie)},87804:function(Mt,Qe){var S,Z;(function(){var ie;(function(){"use strict";var ke=[,,function(de){function a(E){this.__parent=E,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var E=new a(this.__parent);return E.set_indent(this.__indent_count,this.__alignment_count),E},a.prototype.item=function(E){return E<0?this.__items[this.__items.length+E]:this.__items[E]},a.prototype.has_match=function(E){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(E))return!0;return!1},a.prototype.set_indent=function(E,c){this.is_empty()&&(this.__indent_count=E||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.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)},a.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},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var E=this.__parent.current_line;return E.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),E.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),E.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,E.__items[0]===" "&&(E.__items.splice(0,1),E.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(E){this.__items.push(E);var c=E.lastIndexOf(`
|
|
`);c!==-1?this.__character_count=E.length-c:this.__character_count+=E.length},a.prototype.pop=function(){var E=null;return this.is_empty()||(E=this.__items.pop(),this.__character_count-=E.length),E},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var E="";return this.is_empty()?this.__parent.indent_empty_lines&&(E=this.__parent.get_indent_string(this.__indent_count)):(E=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),E+=this.__items.join("")),E};function N(E,c){this.__cache=[""],this.__indent_size=E.indent_size,this.__indent_string=E.indent_char,E.indent_with_tabs||(this.__indent_string=new Array(E.indent_size+1).join(E.indent_char)),c=c||"",E.indent_level>0&&(c=new Array(E.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}N.prototype.get_indent_size=function(E,c){var y=this.__base_string_length;return c=c||0,E<0&&(y=0),y+=E*this.__indent_size,y+=c,y},N.prototype.get_indent_string=function(E,c){var y=this.__base_string;return c=c||0,E<0&&(E=0,y=""),c+=E*this.__indent_size,this.__ensure_cache(c),y+=this.__cache[c],y},N.prototype.__ensure_cache=function(E){for(;E>=this.__cache.length;)this.__add_column()},N.prototype.__add_column=function(){var E=this.__cache.length,c=0,y="";this.__indent_size&&E>=this.__indent_size&&(c=Math.floor(E/this.__indent_size),E-=c*this.__indent_size,y=new Array(c+1).join(this.__indent_string)),E&&(y+=new Array(E+1).join(" ")),this.__cache.push(y)};function P(E,c){this.__indent_cache=new N(E,c),this.raw=!1,this._end_with_newline=E.end_with_newline,this.indent_size=E.indent_size,this.wrap_line_length=E.wrap_line_length,this.indent_empty_lines=E.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}P.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},P.prototype.get_line_number=function(){return this.__lines.length},P.prototype.get_indent_string=function(E,c){return this.__indent_cache.get_indent_string(E,c)},P.prototype.get_indent_size=function(E,c){return this.__indent_cache.get_indent_size(E,c)},P.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},P.prototype.add_new_line=function(E){return this.is_empty()||!E&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},P.prototype.get_code=function(E){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 y=this.__lines.join(`
|
|
`);return E!==`
|
|
`&&(y=y.replace(/[\n]/g,E)),y},P.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},P.prototype.set_indent=function(E,c){return E=E||0,c=c||0,this.next_line.set_indent(E,c),this.__lines.length>1?(this.current_line.set_indent(E,c),!0):(this.current_line.set_indent(),!1)},P.prototype.add_raw_token=function(E){for(var c=0;c<E.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(E.whitespace_before),this.current_line.push(E.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},P.prototype.add_token=function(E){this.__add_space_before_token(),this.current_line.push(E),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},P.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(" "))},P.prototype.remove_indent=function(E){for(var c=this.__lines.length;E<c;)this.__lines[E]._remove_indent(),E++;this.current_line._remove_wrap_indent()},P.prototype.trim=function(E){for(E=E===void 0?!1:E,this.current_line.trim();E&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},P.prototype.just_added_newline=function(){return this.current_line.is_empty()},P.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},P.prototype.ensure_empty_line_above=function(E,c){for(var y=this.__lines.length-2;y>=0;){var x=this.__lines[y];if(x.is_empty())break;if(x.item(0).indexOf(E)!==0&&x.item(-1)!==c){this.__lines.splice(y+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},de.exports.Output=P},,,,function(de){function a(E,c){this.raw_options=N(E,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"])}a.prototype._get_array=function(E,c){var y=this.raw_options[E],x=c||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(x=y.concat()):typeof y=="string"&&(x=y.split(/[^a-zA-Z0-9_\/\-]+/)),x},a.prototype._get_boolean=function(E,c){var y=this.raw_options[E],x=y===void 0?!!c:!!y;return x},a.prototype._get_characters=function(E,c){var y=this.raw_options[E],x=c||"";return typeof y=="string"&&(x=y.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),x},a.prototype._get_number=function(E,c){var y=this.raw_options[E];c=parseInt(c,10),isNaN(c)&&(c=0);var x=parseInt(y,10);return isNaN(x)&&(x=c),x},a.prototype._get_selection=function(E,c,y){var x=this._get_selection_list(E,c,y);if(x.length!==1)throw new Error("Invalid Option Value: The option '"+E+`' can only be one of the following values:
|
|
`+c+`
|
|
You passed in: '`+this.raw_options[E]+"'");return x[0]},a.prototype._get_selection_list=function(E,c,y){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[c[0]],!this._is_valid_selection(y,c))throw new Error("Invalid Default Value!");var x=this._get_array(E,y);if(!this._is_valid_selection(x,c))throw new Error("Invalid Option Value: The option '"+E+`' can contain only the following values:
|
|
`+c+`
|
|
You passed in: '`+this.raw_options[E]+"'");return x},a.prototype._is_valid_selection=function(E,c){return E.length&&c.length&&!E.some(function(y){return c.indexOf(y)===-1})};function N(E,c){var y={};E=P(E);var x;for(x in E)x!==c&&(y[x]=E[x]);if(c&&E[c])for(x in E[c])y[x]=E[c][x];return y}function P(E){var c={},y;for(y in E){var x=y.replace(/-/g,"_");c[x]=E[y]}return c}de.exports.Options=a,de.exports.normalizeOpts=P,de.exports.mergeOpts=N},,function(de){var a=RegExp.prototype.hasOwnProperty("sticky");function N(P){this.__input=P||"",this.__input_length=this.__input.length,this.__position=0}N.prototype.restart=function(){this.__position=0},N.prototype.back=function(){this.__position>0&&(this.__position-=1)},N.prototype.hasNext=function(){return this.__position<this.__input_length},N.prototype.next=function(){var P=null;return this.hasNext()&&(P=this.__input.charAt(this.__position),this.__position+=1),P},N.prototype.peek=function(P){var E=null;return P=P||0,P+=this.__position,P>=0&&P<this.__input_length&&(E=this.__input.charAt(P)),E},N.prototype.__match=function(P,E){P.lastIndex=E;var c=P.exec(this.__input);return c&&!(a&&P.sticky)&&c.index!==E&&(c=null),c},N.prototype.test=function(P,E){return E=E||0,E+=this.__position,E>=0&&E<this.__input_length?!!this.__match(P,E):!1},N.prototype.testChar=function(P,E){var c=this.peek(E);return P.lastIndex=0,c!==null&&P.test(c)},N.prototype.match=function(P){var E=this.__match(P,this.__position);return E?this.__position+=E[0].length:E=null,E},N.prototype.read=function(P,E,c){var y="",x;return P&&(x=this.match(P),x&&(y+=x[0])),E&&(x||!P)&&(y+=this.readUntil(E,c)),y},N.prototype.readUntil=function(P,E){var c="",y=this.__position;P.lastIndex=this.__position;var x=P.exec(this.__input);return x?(y=x.index,E&&(y+=x[0].length)):y=this.__input_length,c=this.__input.substring(this.__position,y),this.__position=y,c},N.prototype.readUntilAfter=function(P){return this.readUntil(P,!0)},N.prototype.get_regexp=function(P,E){var c=null,y="g";return E&&a&&(y="y"),typeof P=="string"&&P!==""?c=new RegExp(P,y):P&&(c=new RegExp(P.source,y)),c},N.prototype.get_literal_regexp=function(P){return RegExp(P.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},N.prototype.peekUntilAfter=function(P){var E=this.__position,c=this.readUntilAfter(P);return this.__position=E,c},N.prototype.lookBack=function(P){var E=this.__position-1;return E>=P.length&&this.__input.substring(E-P.length,E).toLowerCase()===P},de.exports.InputScanner=N},,,,,function(de){function a(N,P){N=typeof N=="string"?N:N.source,P=typeof P=="string"?P:P.source,this.__directives_block_pattern=new RegExp(N+/ beautify( \w+[:]\w+)+ /.source+P,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(N+/\sbeautify\signore:end\s/.source+P,"g")}a.prototype.get_directives=function(N){if(!N.match(this.__directives_block_pattern))return null;var P={};this.__directive_pattern.lastIndex=0;for(var E=this.__directive_pattern.exec(N);E;)P[E[1]]=E[2],E=this.__directive_pattern.exec(N);return P},a.prototype.readIgnored=function(N){return N.readUntilAfter(this.__directives_end_ignore_pattern)},de.exports.Directives=a},,function(de,a,N){var P=N(16).Beautifier,E=N(17).Options;function c(y,x){var H=new P(y,x);return H.beautify()}de.exports=c,de.exports.defaultOptions=function(){return new E}},function(de,a,N){var P=N(17).Options,E=N(2).Output,c=N(8).InputScanner,y=N(13).Directives,x=new y(/\/\*/,/\*\//),H=/\r\n|[\r\n]/,V=/\r\n|[\r\n]/g,k=/\s/,D=/(?:\s|\n)+/g,j=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,oe=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(K,se){this._source_text=K||"",this._options=new P(se),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}w.prototype.eatString=function(K){var se="";for(this._ch=this._input.next();this._ch;){if(se+=this._ch,this._ch==="\\")se+=this._input.next();else if(K.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return se},w.prototype.eatWhitespace=function(K){for(var se=k.test(this._input.peek()),X=0;k.test(this._input.peek());)this._ch=this._input.next(),K&&this._ch===`
|
|
`&&(X===0||X<this._options.max_preserve_newlines)&&(X++,this._output.add_new_line(!0));return se},w.prototype.foundNestedPseudoClass=function(){for(var K=0,se=1,X=this._input.peek(se);X;){if(X==="{")return!0;if(X==="(")K+=1;else if(X===")"){if(K===0)return!1;K-=1}else if(X===";"||X==="}")return!1;se++,X=this._input.peek(se)}return!1},w.prototype.print_string=function(K){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(K)},w.prototype.preserveSingleSpace=function(K){K&&(this._output.space_before_token=!0)},w.prototype.indent=function(){this._indentLevel++},w.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var K=this._source_text,se=this._options.eol;se==="auto"&&(se=`
|
|
`,K&&H.test(K||"")&&(se=K.match(H)[0])),K=K.replace(V,`
|
|
`);var X=K.match(/^[\t ]*/)[0];this._output=new E(this._options,X),this._input=new c(K),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var _e=0,he=!1,pe=!1,Ce=!1,M=!1,I=!1,U=this._ch,R=!1,q,$,m;q=this._input.read(D),$=q!=="",m=U,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),U=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(j),L=x.get_directives(v);L&&L.ignore==="start"&&(v+=x.readIgnored(this._input)),this.print_string(v),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(oe)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace($),this.print_string(this._ch);var re=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);re.match(/[ :]$/)&&(re=this.eatString(": ").replace(/\s+$/,""),this.print_string(re),this._output.space_before_token=!0),_e===0&&re.indexOf(":")!==-1&&(pe=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace($),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Ie=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Ie.match(/[ :]$/)&&(Ie=this.eatString(": ").replace(/\s+$/,""),this.print_string(Ie),this._output.space_before_token=!0),_e===0&&Ie.indexOf(":")!==-1?(pe=!0,this.indent()):Ie in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ie in this.CONDITIONAL_GROUP_RULE&&(Ce=!0)):_e===0&&!pe&&(M=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace($),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")pe&&(pe=!1,this.outdent()),M=!1,Ce?(Ce=!1,he=this._indentLevel>=this._nestedLevel):he=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&he&&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),pe&&(this.outdent(),pe=!1),this.print_string(this._ch),he=!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 Be=0;Be<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Be++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Be])){R=!0;break}(he||Ce)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!M&&_e===0?(this.print_string(":"),pe||(pe=!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 Oe=m==='"'||m==="'";this.preserveSingleSpace(Oe||$),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")R=!1,_e===0?(pe&&(this.outdent(),pe=!1),M=!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(),_e++,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(")")),_e&&(_e--,this.outdent()));else{var je=!1;this._input.lookBack("with")&&(je=!0),this.preserveSingleSpace($||je),this.print_string(this._ch),pe&&m==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),I=!0):(this.eatWhitespace(),_e++,this.indent())}else if(this._ch===")")_e&&(_e--,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&&(!pe||I)&&_e===0&&!M?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!pe&&_e===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($),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 at=m==='"'||m==="'";this.preserveSingleSpace(at||$),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&R&&this._output.add_new_line()}var et=this._output.get_code(se);return et},de.exports.Beautifier=w},function(de,a,N){var P=N(6).Options;function E(c){P.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 y=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||y;var x=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var H=0;H<x.length;H++)x[H]!=="expand"?this.brace_style="collapse":this.brace_style=x[H]}E.prototype=new P,de.exports.Options=E}],te={};function ee(de){var a=te[de];if(a!==void 0)return a.exports;var N=te[de]={exports:{}};return ke[de](N,N.exports,ee),N.exports}var xe=ee(15);ie=xe})();var be=ie;S=[],Z=function(){return{css_beautify:be}}.apply(Qe,S),Z!==void 0&&(Mt.exports=Z)})()},40998:function(Mt,Qe,S){var Z,ie;(function(){var be;(function(){"use strict";var xe=[,,function(P){function E(x){this.__parent=x,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=[]}E.prototype.clone_empty=function(){var x=new E(this.__parent);return x.set_indent(this.__indent_count,this.__alignment_count),x},E.prototype.item=function(x){return x<0?this.__items[this.__items.length+x]:this.__items[x]},E.prototype.has_match=function(x){for(var H=this.__items.length-1;H>=0;H--)if(this.__items[H].match(x))return!0;return!1},E.prototype.set_indent=function(x,H){this.is_empty()&&(this.__indent_count=x||0,this.__alignment_count=H||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},E.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)},E.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},E.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var x=this.__parent.current_line;return x.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),x.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),x.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,x.__items[0]===" "&&(x.__items.splice(0,1),x.__character_count-=1),!0}return!1},E.prototype.is_empty=function(){return this.__items.length===0},E.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},E.prototype.push=function(x){this.__items.push(x);var H=x.lastIndexOf(`
|
|
`);H!==-1?this.__character_count=x.length-H:this.__character_count+=x.length},E.prototype.pop=function(){var x=null;return this.is_empty()||(x=this.__items.pop(),this.__character_count-=x.length),x},E.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},E.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},E.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},E.prototype.toString=function(){var x="";return this.is_empty()?this.__parent.indent_empty_lines&&(x=this.__parent.get_indent_string(this.__indent_count)):(x=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),x+=this.__items.join("")),x};function c(x,H){this.__cache=[""],this.__indent_size=x.indent_size,this.__indent_string=x.indent_char,x.indent_with_tabs||(this.__indent_string=new Array(x.indent_size+1).join(x.indent_char)),H=H||"",x.indent_level>0&&(H=new Array(x.indent_level+1).join(this.__indent_string)),this.__base_string=H,this.__base_string_length=H.length}c.prototype.get_indent_size=function(x,H){var V=this.__base_string_length;return H=H||0,x<0&&(V=0),V+=x*this.__indent_size,V+=H,V},c.prototype.get_indent_string=function(x,H){var V=this.__base_string;return H=H||0,x<0&&(x=0,V=""),H+=x*this.__indent_size,this.__ensure_cache(H),V+=this.__cache[H],V},c.prototype.__ensure_cache=function(x){for(;x>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var x=this.__cache.length,H=0,V="";this.__indent_size&&x>=this.__indent_size&&(H=Math.floor(x/this.__indent_size),x-=H*this.__indent_size,V=new Array(H+1).join(this.__indent_string)),x&&(V+=new Array(x+1).join(" ")),this.__cache.push(V)};function y(x,H){this.__indent_cache=new c(x,H),this.raw=!1,this._end_with_newline=x.end_with_newline,this.indent_size=x.indent_size,this.wrap_line_length=x.wrap_line_length,this.indent_empty_lines=x.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new E(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}y.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},y.prototype.get_line_number=function(){return this.__lines.length},y.prototype.get_indent_string=function(x,H){return this.__indent_cache.get_indent_string(x,H)},y.prototype.get_indent_size=function(x,H){return this.__indent_cache.get_indent_size(x,H)},y.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},y.prototype.add_new_line=function(x){return this.is_empty()||!x&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},y.prototype.get_code=function(x){this.trim(!0);var H=this.current_line.pop();H&&(H[H.length-1]===`
|
|
`&&(H=H.replace(/\n+$/g,"")),this.current_line.push(H)),this._end_with_newline&&this.__add_outputline();var V=this.__lines.join(`
|
|
`);return x!==`
|
|
`&&(V=V.replace(/[\n]/g,x)),V},y.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},y.prototype.set_indent=function(x,H){return x=x||0,H=H||0,this.next_line.set_indent(x,H),this.__lines.length>1?(this.current_line.set_indent(x,H),!0):(this.current_line.set_indent(),!1)},y.prototype.add_raw_token=function(x){for(var H=0;H<x.newlines;H++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(x.whitespace_before),this.current_line.push(x.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},y.prototype.add_token=function(x){this.__add_space_before_token(),this.current_line.push(x),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},y.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(" "))},y.prototype.remove_indent=function(x){for(var H=this.__lines.length;x<H;)this.__lines[x]._remove_indent(),x++;this.current_line._remove_wrap_indent()},y.prototype.trim=function(x){for(x=x===void 0?!1:x,this.current_line.trim();x&&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},y.prototype.just_added_newline=function(){return this.current_line.is_empty()},y.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},y.prototype.ensure_empty_line_above=function(x,H){for(var V=this.__lines.length-2;V>=0;){var k=this.__lines[V];if(k.is_empty())break;if(k.item(0).indexOf(x)!==0&&k.item(-1)!==H){this.__lines.splice(V+1,0,new E(this)),this.previous_line=this.__lines[this.__lines.length-2];break}V--}},P.exports.Output=y},function(P){function E(c,y,x,H){this.type=c,this.text=y,this.comments_before=null,this.newlines=x||0,this.whitespace_before=H||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}P.exports.Token=E},,,function(P){function E(x,H){this.raw_options=c(x,H),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"])}E.prototype._get_array=function(x,H){var V=this.raw_options[x],k=H||[];return typeof V=="object"?V!==null&&typeof V.concat=="function"&&(k=V.concat()):typeof V=="string"&&(k=V.split(/[^a-zA-Z0-9_\/\-]+/)),k},E.prototype._get_boolean=function(x,H){var V=this.raw_options[x],k=V===void 0?!!H:!!V;return k},E.prototype._get_characters=function(x,H){var V=this.raw_options[x],k=H||"";return typeof V=="string"&&(k=V.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),k},E.prototype._get_number=function(x,H){var V=this.raw_options[x];H=parseInt(H,10),isNaN(H)&&(H=0);var k=parseInt(V,10);return isNaN(k)&&(k=H),k},E.prototype._get_selection=function(x,H,V){var k=this._get_selection_list(x,H,V);if(k.length!==1)throw new Error("Invalid Option Value: The option '"+x+`' can only be one of the following values:
|
|
`+H+`
|
|
You passed in: '`+this.raw_options[x]+"'");return k[0]},E.prototype._get_selection_list=function(x,H,V){if(!H||H.length===0)throw new Error("Selection list cannot be empty.");if(V=V||[H[0]],!this._is_valid_selection(V,H))throw new Error("Invalid Default Value!");var k=this._get_array(x,V);if(!this._is_valid_selection(k,H))throw new Error("Invalid Option Value: The option '"+x+`' can contain only the following values:
|
|
`+H+`
|
|
You passed in: '`+this.raw_options[x]+"'");return k},E.prototype._is_valid_selection=function(x,H){return x.length&&H.length&&!x.some(function(V){return H.indexOf(V)===-1})};function c(x,H){var V={};x=y(x);var k;for(k in x)k!==H&&(V[k]=x[k]);if(H&&x[H])for(k in x[H])V[k]=x[H][k];return V}function y(x){var H={},V;for(V in x){var k=V.replace(/-/g,"_");H[k]=x[V]}return H}P.exports.Options=E,P.exports.normalizeOpts=y,P.exports.mergeOpts=c},,function(P){var E=RegExp.prototype.hasOwnProperty("sticky");function c(y){this.__input=y||"",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 y=null;return this.hasNext()&&(y=this.__input.charAt(this.__position),this.__position+=1),y},c.prototype.peek=function(y){var x=null;return y=y||0,y+=this.__position,y>=0&&y<this.__input_length&&(x=this.__input.charAt(y)),x},c.prototype.__match=function(y,x){y.lastIndex=x;var H=y.exec(this.__input);return H&&!(E&&y.sticky)&&H.index!==x&&(H=null),H},c.prototype.test=function(y,x){return x=x||0,x+=this.__position,x>=0&&x<this.__input_length?!!this.__match(y,x):!1},c.prototype.testChar=function(y,x){var H=this.peek(x);return y.lastIndex=0,H!==null&&y.test(H)},c.prototype.match=function(y){var x=this.__match(y,this.__position);return x?this.__position+=x[0].length:x=null,x},c.prototype.read=function(y,x,H){var V="",k;return y&&(k=this.match(y),k&&(V+=k[0])),x&&(k||!y)&&(V+=this.readUntil(x,H)),V},c.prototype.readUntil=function(y,x){var H="",V=this.__position;y.lastIndex=this.__position;var k=y.exec(this.__input);return k?(V=k.index,x&&(V+=k[0].length)):V=this.__input_length,H=this.__input.substring(this.__position,V),this.__position=V,H},c.prototype.readUntilAfter=function(y){return this.readUntil(y,!0)},c.prototype.get_regexp=function(y,x){var H=null,V="g";return x&&E&&(V="y"),typeof y=="string"&&y!==""?H=new RegExp(y,V):y&&(H=new RegExp(y.source,V)),H},c.prototype.get_literal_regexp=function(y){return RegExp(y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(y){var x=this.__position,H=this.readUntilAfter(y);return this.__position=x,H},c.prototype.lookBack=function(y){var x=this.__position-1;return x>=y.length&&this.__input.substring(x-y.length,x).toLowerCase()===y},P.exports.InputScanner=c},function(P,E,c){var y=c(8).InputScanner,x=c(3).Token,H=c(10).TokenStream,V=c(11).WhitespacePattern,k={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},D=function(j,oe){this._input=new y(j),this._options=oe||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new V(this._input)};D.prototype.tokenize=function(){this._input.restart(),this.__tokens=new H,this._reset();for(var j,oe=new x(k.START,""),w=null,K=[],se=new H;oe.type!==k.EOF;){for(j=this._get_next_token(oe,w);this._is_comment(j);)se.add(j),j=this._get_next_token(oe,w);se.isEmpty()||(j.comments_before=se,se=new H),j.parent=w,this._is_opening(j)?(K.push(w),w=j):w&&this._is_closing(j,w)&&(j.opened=w,w.closed=j,w=K.pop(),j.parent=w),j.previous=oe,oe.next=j,this.__tokens.add(j),oe=j}return this.__tokens},D.prototype._is_first_token=function(){return this.__tokens.isEmpty()},D.prototype._reset=function(){},D.prototype._get_next_token=function(j,oe){this._readWhitespace();var w=this._input.read(/.+/g);return w?this._create_token(k.RAW,w):this._create_token(k.EOF,"")},D.prototype._is_comment=function(j){return!1},D.prototype._is_opening=function(j){return!1},D.prototype._is_closing=function(j,oe){return!1},D.prototype._create_token=function(j,oe){var w=new x(j,oe,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return w},D.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},P.exports.Tokenizer=D,P.exports.TOKEN=k},function(P){function E(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}E.prototype.restart=function(){this.__position=0},E.prototype.isEmpty=function(){return this.__tokens_length===0},E.prototype.hasNext=function(){return this.__position<this.__tokens_length},E.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},E.prototype.peek=function(c){var y=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(y=this.__tokens[c]),y},E.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},P.exports.TokenStream=E},function(P,E,c){var y=c(12).Pattern;function x(H,V){y.call(this,H,V),V?this._line_regexp=this._input.get_regexp(V._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}x.prototype=new y,x.prototype.__set_whitespace_patterns=function(H,V){H+="\\t ",V+="\\n\\r",this._match_pattern=this._input.get_regexp("["+H+V+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+V+"]")},x.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var H=this._input.read(this._match_pattern);if(H===" ")this.whitespace_before_token=" ";else if(H){var V=this.__split(this._newline_regexp,H);this.newline_count=V.length-1,this.whitespace_before_token=V[this.newline_count]}return H},x.prototype.matching=function(H,V){var k=this._create();return k.__set_whitespace_patterns(H,V),k._update(),k},x.prototype._create=function(){return new x(this._input,this)},x.prototype.__split=function(H,V){H.lastIndex=0;for(var k=0,D=[],j=H.exec(V);j;)D.push(V.substring(k,j.index)),k=j.index+j[0].length,j=H.exec(V);return k<V.length?D.push(V.substring(k,V.length)):D.push(""),D},P.exports.WhitespacePattern=x},function(P){function E(c,y){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,y&&(this._starting_pattern=this._input.get_regexp(y._starting_pattern,!0),this._match_pattern=this._input.get_regexp(y._match_pattern,!0),this._until_pattern=this._input.get_regexp(y._until_pattern),this._until_after=y._until_after)}E.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},E.prototype.read_match=function(){return this._input.match(this._match_pattern)},E.prototype.until_after=function(c){var y=this._create();return y._until_after=!0,y._until_pattern=this._input.get_regexp(c),y._update(),y},E.prototype.until=function(c){var y=this._create();return y._until_after=!1,y._until_pattern=this._input.get_regexp(c),y._update(),y},E.prototype.starting_with=function(c){var y=this._create();return y._starting_pattern=this._input.get_regexp(c,!0),y._update(),y},E.prototype.matching=function(c){var y=this._create();return y._match_pattern=this._input.get_regexp(c,!0),y._update(),y},E.prototype._create=function(){return new E(this._input,this)},E.prototype._update=function(){},P.exports.Pattern=E},function(P){function E(c,y){c=typeof c=="string"?c:c.source,y=typeof y=="string"?y:y.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+y,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+y,"g")}E.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var y={};this.__directive_pattern.lastIndex=0;for(var x=this.__directive_pattern.exec(c);x;)y[x[1]]=x[2],x=this.__directive_pattern.exec(c);return y},E.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},P.exports.Directives=E},function(P,E,c){var y=c(12).Pattern,x={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function H(V,k){y.call(this,V,k),this.__template_pattern=null,this._disabled=Object.assign({},x),this._excluded=Object.assign({},x),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 D=new y(V);this.__patterns={handlebars_comment:D.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:D.starting_with(/{{{/).until_after(/}}}/),handlebars:D.starting_with(/{{/).until_after(/}}/),php:D.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:D.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:D.starting_with(/{%/).until_after(/%}/),django_value:D.starting_with(/{{/).until_after(/}}/),django_comment:D.starting_with(/{#/).until_after(/#}/),smarty:D.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:D.starting_with(/{\*/).until_after(/\*}/),smarty_literal:D.starting_with(/{literal}/).until_after(/{\/literal}/)}}H.prototype=new y,H.prototype._create=function(){return new H(this._input,this)},H.prototype._update=function(){this.__set_templated_pattern()},H.prototype.disable=function(V){var k=this._create();return k._disabled[V]=!0,k._update(),k},H.prototype.read_options=function(V){var k=this._create();for(var D in x)k._disabled[D]=V.templating.indexOf(D)===-1;return k._update(),k},H.prototype.exclude=function(V){var k=this._create();return k._excluded[V]=!0,k._update(),k},H.prototype.read=function(){var V="";this._match_pattern?V=this._input.read(this._starting_pattern):V=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),V+=k,k=this._read_template();return this._until_after&&(V+=this._input.readUntilAfter(this._until_pattern)),V},H.prototype.__set_templated_pattern=function(){var V=[];this._disabled.php||V.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||V.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(V.push(this.__patterns.django._starting_pattern.source),V.push(this.__patterns.django_value._starting_pattern.source),V.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||V.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&V.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+V.join("|")+")")},H.prototype._read_template=function(){var V="",k=this._input.peek();if(k==="<"){var D=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&D==="?"&&(V=V||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&D==="%"&&(V=V||this.__patterns.erb.read())}else k==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(V=V||this.__patterns.handlebars_comment.read(),V=V||this.__patterns.handlebars_unescaped.read(),V=V||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(V=V||this.__patterns.django_value.read()),this._excluded.django||(V=V||this.__patterns.django_comment.read(),V=V||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(V=V||this.__patterns.smarty_comment.read(),V=V||this.__patterns.smarty_literal.read(),V=V||this.__patterns.smarty.read()));return V},P.exports.TemplatablePattern=H},,,,function(P,E,c){var y=c(19).Beautifier,x=c(20).Options;function H(V,k,D,j){var oe=new y(V,k,D,j);return oe.beautify()}P.exports=H,P.exports.defaultOptions=function(){return new x}},function(P,E,c){var y=c(20).Options,x=c(2).Output,H=c(21).Tokenizer,V=c(21).TOKEN,k=/\r\n|[\r\n]/,D=/\r\n|[\r\n]/g,j=function(M,I){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=M.max_preserve_newlines,this.preserve_newlines=M.preserve_newlines,this._output=new x(M,I)};j.prototype.current_line_has_match=function(M){return this._output.current_line.has_match(M)},j.prototype.set_space_before_token=function(M,I){this._output.space_before_token=M,this._output.non_breaking_space=I},j.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},j.prototype.add_raw_token=function(M){this._output.add_raw_token(M)},j.prototype.print_preserved_newlines=function(M){var I=0;M.type!==V.TEXT&&M.previous.type!==V.TEXT&&(I=M.newlines?1:0),this.preserve_newlines&&(I=M.newlines<this.max_preserve_newlines+1?M.newlines:this.max_preserve_newlines+1);for(var U=0;U<I;U++)this.print_newline(U>0);return I!==0},j.prototype.traverse_whitespace=function(M){return M.whitespace_before||M.newlines?(this.print_preserved_newlines(M)||(this._output.space_before_token=!0),!0):!1},j.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},j.prototype.print_newline=function(M){this._output.add_new_line(M)},j.prototype.print_token=function(M){M.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(M.text))},j.prototype.indent=function(){this.indent_level++},j.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},j.prototype.get_full_indent=function(M){return M=this.indent_level+(M||0),M<1?"":this._output.get_indent_string(M)};var oe=function(M){for(var I=null,U=M.next;U.type!==V.EOF&&M.closed!==U;){if(U.type===V.ATTRIBUTE&&U.text==="type"){U.next&&U.next.type===V.EQUALS&&U.next.next&&U.next.next.type===V.VALUE&&(I=U.next.next.text);break}U=U.next}return I},w=function(M,I){var U=null,R=null;return I.closed?(M==="script"?U="text/javascript":M==="style"&&(U="text/css"),U=oe(I)||U,U.search("text/css")>-1?R="css":U.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?R="javascript":U.search(/(text|application|dojo)\/(x-)?(html)/)>-1?R="html":U.search(/test\/null/)>-1&&(R="null"),R):null};function K(M,I){return I.indexOf(M)!==-1}function se(M,I,U){this.parent=M||null,this.tag=I?I.tag_name:"",this.indent_level=U||0,this.parser_token=I||null}function X(M){this._printer=M,this._current_frame=null}X.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},X.prototype.record_tag=function(M){var I=new se(this._current_frame,M,this._printer.indent_level);this._current_frame=I},X.prototype._try_pop_frame=function(M){var I=null;return M&&(I=M.parser_token,this._printer.indent_level=M.indent_level,this._current_frame=M.parent),I},X.prototype._get_frame=function(M,I){for(var U=this._current_frame;U&&M.indexOf(U.tag)===-1;){if(I&&I.indexOf(U.tag)!==-1){U=null;break}U=U.parent}return U},X.prototype.try_pop=function(M,I){var U=this._get_frame([M],I);return this._try_pop_frame(U)},X.prototype.indent_to_tag=function(M){var I=this._get_frame(M);I&&(this._printer.indent_level=I.indent_level)};function _e(M,I,U,R){this._source_text=M||"",I=I||{},this._js_beautify=U,this._css_beautify=R,this._tag_stack=null;var q=new y(I,"html");this._options=q,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"}_e.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var M=this._source_text,I=this._options.eol;this._options.eol==="auto"&&(I=`
|
|
`,M&&k.test(M)&&(I=M.match(k)[0])),M=M.replace(D,`
|
|
`);var U=M.match(/^[\t ]*/)[0],R={text:"",type:""},q=new he(this._options),$=new j(this._options,U),m=new H(M,this._options).tokenize();this._tag_stack=new X($);for(var v=null,L=m.next();L.type!==V.EOF;)L.type===V.TAG_OPEN||L.type===V.COMMENT?(v=this._handle_tag_open($,L,q,R,m),q=v):L.type===V.ATTRIBUTE||L.type===V.EQUALS||L.type===V.VALUE||L.type===V.TEXT&&!q.tag_complete?v=this._handle_inside_tag($,L,q,R):L.type===V.TAG_CLOSE?v=this._handle_tag_close($,L,q):L.type===V.TEXT?v=this._handle_text($,L,q):L.type===V.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open($,L):L.type===V.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close($,L):$.add_raw_token(L),R=v,L=m.next();var re=$._output.get_code(I);return re},_e.prototype._handle_control_flow_open=function(M,I){var U={text:I.text,type:I.type};return M.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),I.newlines?M.print_preserved_newlines(I):M.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),M.print_token(I),M.indent(),U},_e.prototype._handle_control_flow_close=function(M,I){var U={text:I.text,type:I.type};return M.deindent(),I.newlines?M.print_preserved_newlines(I):M.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),M.print_token(I),U},_e.prototype._handle_tag_close=function(M,I,U){var R={text:I.text,type:I.type};return M.alignment_size=0,U.tag_complete=!0,M.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),U.is_unformatted?M.add_raw_token(I):(U.tag_start_char==="<"&&(M.set_space_before_token(I.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&U.has_wrapped_attrs&&M.print_newline(!1)),M.print_token(I)),U.indent_content&&!(U.is_unformatted||U.is_content_unformatted)&&(M.indent(),U.indent_content=!1),!U.is_inline_element&&!(U.is_unformatted||U.is_content_unformatted)&&M.set_wrap_point(),R},_e.prototype._handle_inside_tag=function(M,I,U,R){var q=U.has_wrapped_attrs,$={text:I.text,type:I.type};return M.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),U.is_unformatted?M.add_raw_token(I):U.tag_start_char==="{"&&I.type===V.TEXT?M.print_preserved_newlines(I)?(I.newlines=0,M.add_raw_token(I)):M.print_token(I):(I.type===V.ATTRIBUTE?M.set_space_before_token(!0):(I.type===V.EQUALS||I.type===V.VALUE&&I.previous.type===V.EQUALS)&&M.set_space_before_token(!1),I.type===V.ATTRIBUTE&&U.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(M.traverse_whitespace(I),q=q||I.newlines!==0),this._is_wrap_attributes_force&&U.attr_count>=this._options.wrap_attributes_min_attrs&&(R.type!==V.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(M.print_newline(!1),q=!0)),M.print_token(I),q=q||M.previous_token_wrapped(),U.has_wrapped_attrs=q),$},_e.prototype._handle_text=function(M,I,U){var R={text:I.text,type:"TK_CONTENT"};return U.custom_beautifier_name?this._print_custom_beatifier_text(M,I,U):U.is_unformatted||U.is_content_unformatted?M.add_raw_token(I):(M.traverse_whitespace(I),M.print_token(I)),R},_e.prototype._print_custom_beatifier_text=function(M,I,U){var R=this;if(I.text!==""){var q=I.text,$,m=1,v="",L="";U.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?$=this._js_beautify:U.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?$=this._css_beautify:U.custom_beautifier_name==="html"&&($=function(at,et){var rt=new _e(at,et,R._js_beautify,R._css_beautify);return rt.beautify()}),this._options.indent_scripts==="keep"?m=0:this._options.indent_scripts==="separate"&&(m=-M.indent_level);var re=M.get_full_indent(m);if(q=q.replace(/\n[ \t]*$/,""),U.custom_beautifier_name!=="html"&&q[0]==="<"&&q.match(/^(<!--|<!\[CDATA\[)/)){var Ie=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(q);if(!Ie){M.add_raw_token(I);return}v=re+Ie[1]+`
|
|
`,q=Ie[4],Ie[5]&&(L=re+Ie[5]),q=q.replace(/\n[ \t]*$/,""),(Ie[2]||Ie[3].indexOf(`
|
|
`)!==-1)&&(Ie=Ie[3].match(/[ \t]+$/),Ie&&(I.whitespace_before=Ie[0]))}if(q)if($){var Be=function(){this.eol=`
|
|
`};Be.prototype=this._options.raw_options;var Oe=new Be;q=$(re+q,Oe)}else{var je=I.whitespace_before;je&&(q=q.replace(new RegExp(`
|
|
(`+je+")?","g"),`
|
|
`)),q=re+q.replace(/\n/g,`
|
|
`+re)}v&&(q?q=v+q+`
|
|
`+L:q=v+L),M.print_newline(!1),q&&(I.text=q,I.whitespace_before="",I.newlines=0,M.add_raw_token(I),M.print_newline(!0))}},_e.prototype._handle_tag_open=function(M,I,U,R,q){var $=this._get_tag_open_token(I);if((U.is_unformatted||U.is_content_unformatted)&&!U.is_empty_element&&I.type===V.TAG_OPEN&&!$.is_start_tag?(M.add_raw_token(I),$.start_tag_token=this._tag_stack.try_pop($.tag_name)):(M.traverse_whitespace(I),this._set_tag_position(M,I,$,U,R),$.is_inline_element||M.set_wrap_point(),M.print_token(I)),$.is_start_tag&&this._is_wrap_attributes_force){var m=0,v;do v=q.peek(m),v.type===V.ATTRIBUTE&&($.attr_count+=1),m+=1;while(v.type!==V.EOF&&v.type!==V.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&($.alignment_size=I.text.length+1),!$.tag_complete&&!$.is_unformatted&&(M.alignment_size=$.alignment_size),$};var he=function(M,I,U){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="",!U)this.tag_complete=!0;else{var R;this.tag_start_char=U.text[0],this.text=U.text,this.tag_start_char==="<"?(R=U.text.match(/^<([^\s>]*)/),this.tag_check=R?R[1]:""):(R=U.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=R?R[1]:"",(U.text.startsWith("{{#>")||U.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&U.next!==null?this.tag_check=U.next.text.split(" ")[0]:this.tag_check=U.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),U.type===V.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||U.closed&&U.closed.text==="/>";var q=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(q=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!M.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(q)))}};_e.prototype._get_tag_open_token=function(M){var I=new he(this._options,this._tag_stack.get_parser_token(),M);return I.alignment_size=this._options.wrap_attributes_indent_size,I.is_end_tag=I.is_end_tag||K(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&&K(I.tag_check,this._options.unformatted),I.is_content_unformatted=!I.is_empty_element&&K(I.tag_check,this._options.content_unformatted),I.is_inline_element=K(I.tag_name,this._options.inline)||this._options.inline_custom_elements&&I.tag_name.includes("-")||I.tag_start_char==="{",I},_e.prototype._set_tag_position=function(M,I,U,R,q){if(U.is_empty_element||(U.is_end_tag?U.start_tag_token=this._tag_stack.try_pop(U.tag_name):(this._do_optional_end_element(U)&&(U.is_inline_element||M.print_newline(!1)),this._tag_stack.record_tag(U),(U.tag_name==="script"||U.tag_name==="style")&&!(U.is_unformatted||U.is_content_unformatted)&&(U.custom_beautifier_name=w(U.tag_check,I)))),K(U.tag_check,this._options.extra_liners)&&(M.print_newline(!1),M._output.just_added_blankline()||M.print_newline(!0)),U.is_empty_element){if(U.tag_start_char==="{"&&U.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),U.indent_content=!0;var $=M.current_line_has_match(/{{#if/);$||M.print_newline(!1)}U.tag_name==="!--"&&q.type===V.TAG_CLOSE&&R.is_end_tag&&U.text.indexOf(`
|
|
`)===-1||(U.is_inline_element||U.is_unformatted||M.print_newline(!1),this._calcluate_parent_multiline(M,U))}else if(U.is_end_tag){var m=!1;m=U.start_tag_token&&U.start_tag_token.multiline_content,m=m||!U.is_inline_element&&!(R.is_inline_element||R.is_unformatted)&&!(q.type===V.TAG_CLOSE&&U.start_tag_token===R)&&q.type!=="TK_CONTENT",(U.is_content_unformatted||U.is_unformatted)&&(m=!1),m&&M.print_newline(!1)}else U.indent_content=!U.custom_beautifier_name,U.tag_start_char==="<"&&(U.tag_name==="html"?U.indent_content=this._options.indent_inner_html:U.tag_name==="head"?U.indent_content=this._options.indent_head_inner_html:U.tag_name==="body"&&(U.indent_content=this._options.indent_body_inner_html)),!(U.is_inline_element||U.is_unformatted)&&(q.type!=="TK_CONTENT"||U.is_content_unformatted)&&M.print_newline(!1),this._calcluate_parent_multiline(M,U)},_e.prototype._calcluate_parent_multiline=function(M,I){I.parent&&M._output.just_added_newline()&&!((I.is_inline_element||I.is_unformatted)&&I.parent.is_inline_element)&&(I.parent.multiline_content=!0)};var pe=["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"],Ce=["a","audio","del","ins","map","noscript","video"];_e.prototype._do_optional_end_element=function(M){var I=null;if(!(M.is_empty_element||!M.is_start_tag||!M.parent)){if(M.tag_name==="body")I=I||this._tag_stack.try_pop("head");else if(M.tag_name==="li")I=I||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(M.tag_name==="dd"||M.tag_name==="dt")I=I||this._tag_stack.try_pop("dt",["dl"]),I=I||this._tag_stack.try_pop("dd",["dl"]);else if(M.parent.tag_name==="p"&&pe.indexOf(M.tag_name)!==-1){var U=M.parent.parent;(!U||Ce.indexOf(U.tag_name)===-1)&&(I=I||this._tag_stack.try_pop("p"))}else M.tag_name==="rp"||M.tag_name==="rt"?(I=I||this._tag_stack.try_pop("rt",["ruby","rtc"]),I=I||this._tag_stack.try_pop("rp",["ruby","rtc"])):M.tag_name==="optgroup"?I=I||this._tag_stack.try_pop("optgroup",["select"]):M.tag_name==="option"?I=I||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):M.tag_name==="colgroup"?I=I||this._tag_stack.try_pop("caption",["table"]):M.tag_name==="thead"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"])):M.tag_name==="tbody"||M.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"])):M.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"])):(M.tag_name==="th"||M.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 M.parent=this._tag_stack.get_parser_token(),I}},P.exports.Beautifier=_e},function(P,E,c){var y=c(6).Options;function x(H){y.call(this,H,"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"])}x.prototype=new y,P.exports.Options=x},function(P,E,c){var y=c(9).Tokenizer,x=c(9).TOKEN,H=c(13).Directives,V=c(14).TemplatablePattern,k=c(12).Pattern,D={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:x.START,RAW:x.RAW,EOF:x.EOF},j=new H(/<\!--/,/-->/),oe=function(w,K){y.call(this,w,K),this._current_tag_name="";var se=new V(this._input).read_options(this._options),X=new k(this._input);if(this.__patterns={word:se.until(/[\n\r\t <]/),word_control_flow_close_excluded:se.until(/[\n\r\t <}]/),single_quote:se.until_after(/'/),double_quote:se.until_after(/"/),attribute:se.until(/[\n\r\t =>]|\/>/),element_name:se.until(/[\n\r\t >\/]/),angular_control_flow_start:X.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:X.starting_with(/{{!--/).until_after(/--}}/),handlebars:X.starting_with(/{{/).until_after(/}}/),handlebars_open:X.until(/[\n\r\t }]/),handlebars_raw_close:X.until(/}}/),comment:X.starting_with(/<!--/).until_after(/-->/),cdata:X.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:X.starting_with(/<!\[/).until_after(/]>/),processing:X.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 _e=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=X.matching(_e).until_after(_e)}};oe.prototype=new y,oe.prototype._is_comment=function(w){return!1},oe.prototype._is_opening=function(w){return w.type===D.TAG_OPEN||w.type===D.CONTROL_FLOW_OPEN},oe.prototype._is_closing=function(w,K){return w.type===D.TAG_CLOSE&&K&&((w.text===">"||w.text==="/>")&&K.text[0]==="<"||w.text==="}}"&&K.text[0]==="{"&&K.text[1]==="{")||w.type===D.CONTROL_FLOW_CLOSE&&w.text==="}"&&K.text.endsWith("{")},oe.prototype._reset=function(){this._current_tag_name=""},oe.prototype._get_next_token=function(w,K){var se=null;this._readWhitespace();var X=this._input.peek();return X===null?this._create_token(D.EOF,""):(se=se||this._read_open_handlebars(X,K),se=se||this._read_attribute(X,w,K),se=se||this._read_close(X,K),se=se||this._read_script_and_style(X,w),se=se||this._read_control_flows(X,K),se=se||this._read_raw_content(X,w,K),se=se||this._read_content_word(X,K),se=se||this._read_comment_or_cdata(X),se=se||this._read_processing(X),se=se||this._read_open(X,K),se=se||this._create_token(D.UNKNOWN,this._input.next()),se)},oe.prototype._read_comment_or_cdata=function(w){var K=null,se=null,X=null;if(w==="<"){var _e=this._input.peek(1);_e==="!"&&(se=this.__patterns.comment.read(),se?(X=j.get_directives(se),X&&X.ignore==="start"&&(se+=j.readIgnored(this._input))):se=this.__patterns.cdata.read()),se&&(K=this._create_token(D.COMMENT,se),K.directives=X)}return K},oe.prototype._read_processing=function(w){var K=null,se=null,X=null;if(w==="<"){var _e=this._input.peek(1);(_e==="!"||_e==="?")&&(se=this.__patterns.conditional_comment.read(),se=se||this.__patterns.processing.read()),se&&(K=this._create_token(D.COMMENT,se),K.directives=X)}return K},oe.prototype._read_open=function(w,K){var se=null,X=null;return(!K||K.type===D.CONTROL_FLOW_OPEN)&&w==="<"&&(se=this._input.next(),this._input.peek()==="/"&&(se+=this._input.next()),se+=this.__patterns.element_name.read(),X=this._create_token(D.TAG_OPEN,se)),X},oe.prototype._read_open_handlebars=function(w,K){var se=null,X=null;return(!K||K.type===D.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&w==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(se=this.__patterns.handlebars_comment.read(),se=se||this.__patterns.handlebars.read(),X=this._create_token(D.COMMENT,se)):(se=this.__patterns.handlebars_open.read(),X=this._create_token(D.TAG_OPEN,se))),X},oe.prototype._read_control_flows=function(w,K){var se="",X=null;if(!this._options.templating.includes("angular"))return X;if(w==="@"){if(se=this.__patterns.angular_control_flow_start.read(),se==="")return X;for(var _e=se.endsWith("(")?1:0,he=0;!(se.endsWith("{")&&_e===he);){var pe=this._input.next();if(pe===null)break;pe==="("?_e++:pe===")"&&he++,se+=pe}X=this._create_token(D.CONTROL_FLOW_OPEN,se)}else w==="}"&&K&&K.type===D.CONTROL_FLOW_OPEN&&(se=this._input.next(),X=this._create_token(D.CONTROL_FLOW_CLOSE,se));return X},oe.prototype._read_close=function(w,K){var se=null,X=null;return K&&K.type===D.TAG_OPEN&&(K.text[0]==="<"&&(w===">"||w==="/"&&this._input.peek(1)===">")?(se=this._input.next(),w==="/"&&(se+=this._input.next()),X=this._create_token(D.TAG_CLOSE,se)):K.text[0]==="{"&&w==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),X=this._create_token(D.TAG_CLOSE,"}}"))),X},oe.prototype._read_attribute=function(w,K,se){var X=null,_e="";if(se&&se.text[0]==="<")if(w==="=")X=this._create_token(D.EQUALS,this._input.next());else if(w==='"'||w==="'"){var he=this._input.next();w==='"'?he+=this.__patterns.double_quote.read():he+=this.__patterns.single_quote.read(),X=this._create_token(D.VALUE,he)}else _e=this.__patterns.attribute.read(),_e&&(K.type===D.EQUALS?X=this._create_token(D.VALUE,_e):X=this._create_token(D.ATTRIBUTE,_e));return X},oe.prototype._is_content_unformatted=function(w){return this._options.void_elements.indexOf(w)===-1&&(this._options.content_unformatted.indexOf(w)!==-1||this._options.unformatted.indexOf(w)!==-1)},oe.prototype._read_raw_content=function(w,K,se){var X="";if(se&&se.text[0]==="{")X=this.__patterns.handlebars_raw_close.read();else if(K.type===D.TAG_CLOSE&&K.opened.text[0]==="<"&&K.text[0]!=="/"){var _e=K.opened.text.substr(1).toLowerCase();this._is_content_unformatted(_e)&&(X=this._input.readUntil(new RegExp("</"+_e+"[\\n\\r\\t ]*?>","ig")))}return X?this._create_token(D.TEXT,X):null},oe.prototype._read_script_and_style=function(w,K){if(K.type===D.TAG_CLOSE&&K.opened.text[0]==="<"&&K.text[0]!=="/"){var se=K.opened.text.substr(1).toLowerCase();if(se==="script"||se==="style"){var X=this._read_comment_or_cdata(w);if(X)return X.type=D.TEXT,X;var _e=this._input.readUntil(new RegExp("</"+se+"[\\n\\r\\t ]*?>","ig"));if(_e)return this._create_token(D.TEXT,_e)}}return null},oe.prototype._read_content_word=function(w,K){var se="";return this._options.unformatted_content_delimiter&&w===this._options.unformatted_content_delimiter[0]&&(se=this.__patterns.unformatted_content_delimiter.read()),se||(se=K&&K.type===D.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),se?this._create_token(D.TEXT,se):null},P.exports.Tokenizer=oe,P.exports.TOKEN=D}],de={};function a(P){var E=de[P];if(E!==void 0)return E.exports;var c=de[P]={exports:{}};return xe[P](c,c.exports,a),c.exports}var N=a(18);be=N})();var ke=be;if(1)Z=[S,S(58553),S(87804)],ie=function(xe){var de=S(58553),a=S(87804);return{html_beautify:function(N,P){return ke(N,P,de.js_beautify,a.css_beautify)}}}.apply(Qe,Z),ie!==void 0&&(Mt.exports=ie);else var te,ee})()},58553:function(Mt,Qe){var S,Z;(function(){var ie;(function(){"use strict";var ke=[function(de,a,N){var P=N(1).Beautifier,E=N(5).Options;function c(y,x){var H=new P(y,x);return H.beautify()}de.exports=c,de.exports.defaultOptions=function(){return new E}},function(de,a,N){var P=N(2).Output,E=N(3).Token,c=N(4),y=N(5).Options,x=N(7).Tokenizer,H=N(7).line_starters,V=N(7).positionable_operators,k=N(7).TOKEN;function D(v,L){return L.indexOf(v)!==-1}function j(v){return v.replace(/^\s+/g,"")}function oe(v){for(var L={},re=0;re<v.length;re++)L[v[re].replace(/-/g,"_")]=v[re];return L}function w(v,L){return v&&v.type===k.RESERVED&&v.text===L}function K(v,L){return v&&v.type===k.RESERVED&&D(v.text,L)}var se=["case","return","do","if","throw","else","await","break","continue","async"],X=["before-newline","after-newline","preserve-newline"],_e=oe(X),he=[_e.before_newline,_e.preserve_newline],pe={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Ce(v,L){L.multiline_frame||L.mode===pe.ForInitializer||L.mode===pe.Conditional||v.remove_indent(L.start_line_index)}function M(v){v=v.replace(c.allLineBreaks,`
|
|
`);for(var L=[],re=v.indexOf(`
|
|
`);re!==-1;)L.push(v.substring(0,re)),v=v.substring(re+1),re=v.indexOf(`
|
|
`);return v.length&&L.push(v),L}function I(v){return v===pe.ArrayLiteral}function U(v){return D(v,[pe.Expression,pe.ForInitializer,pe.Conditional])}function R(v,L){for(var re=0;re<v.length;re++){var Ie=v[re].trim();if(Ie.charAt(0)!==L)return!1}return!0}function q(v,L){for(var re=0,Ie=v.length,Be;re<Ie;re++)if(Be=v[re],Be&&Be.indexOf(L)!==0)return!1;return!0}function $(v,L){L=L||{},this._source_text=v||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new y(L)}$.prototype.create_flags=function(v,L){var re=0;v&&(re=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>re&&(re=v.line_indent_level));var Ie={mode:L,parent:v,last_token:v?v.last_token:new E(k.START_BLOCK,""),last_word:v?v.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:re,alignment:0,line_indent_level:v?v.line_indent_level:re,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ie},$.prototype._reset=function(v){var L=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new P(this._options,L),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(pe.BlockStatement);var re=new x(v,this._options);return this._tokens=re.tokenize(),v},$.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,L=this._reset(this._source_text),re=this._options.eol;this._options.eol==="auto"&&(re=`
|
|
`,L&&c.lineBreak.test(L||"")&&(re=L.match(c.lineBreak)[0]));for(var Ie=this._tokens.next();Ie;)this.handle_token(Ie),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ie,Ie=this._tokens.next();return v=this._output.get_code(re),v},$.prototype.handle_token=function(v,L){v.type===k.START_EXPR?this.handle_start_expr(v):v.type===k.END_EXPR?this.handle_end_expr(v):v.type===k.START_BLOCK?this.handle_start_block(v):v.type===k.END_BLOCK?this.handle_end_block(v):v.type===k.WORD?this.handle_word(v):v.type===k.RESERVED?this.handle_word(v):v.type===k.SEMICOLON?this.handle_semicolon(v):v.type===k.STRING?this.handle_string(v):v.type===k.EQUALS?this.handle_equals(v):v.type===k.OPERATOR?this.handle_operator(v):v.type===k.COMMA?this.handle_comma(v):v.type===k.BLOCK_COMMENT?this.handle_block_comment(v,L):v.type===k.COMMENT?this.handle_comment(v,L):v.type===k.DOT?this.handle_dot(v):v.type===k.EOF?this.handle_eof(v):v.type===k.UNKNOWN?this.handle_unknown(v,L):this.handle_unknown(v,L)},$.prototype.handle_whitespace_and_comments=function(v,L){var re=v.newlines,Ie=this._options.keep_array_indentation&&I(this._flags.mode);if(v.comments_before)for(var Be=v.comments_before.next();Be;)this.handle_whitespace_and_comments(Be,L),this.handle_token(Be,L),Be=v.comments_before.next();if(Ie)for(var Oe=0;Oe<re;Oe+=1)this.print_newline(Oe>0,L);else if(this._options.max_preserve_newlines&&re>this._options.max_preserve_newlines&&(re=this._options.max_preserve_newlines),this._options.preserve_newlines&&re>1){this.print_newline(!1,L);for(var je=1;je<re;je+=1)this.print_newline(!0,L)}};var m=["async","break","continue","return","throw","yield"];$.prototype.allow_wrap_or_preserved_newline=function(v,L){if(L=L===void 0?!1:L,!this._output.just_added_newline()){var re=this._options.preserve_newlines&&v.newlines||L,Ie=D(this._flags.last_token.text,V)||D(v.text,V);if(Ie){var Be=D(this._flags.last_token.text,V)&&D(this._options.operator_position,he)||D(v.text,V);re=re&&Be}if(re)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(K(this._flags.last_token,m))return;this._output.set_wrap_point()}}},$.prototype.print_newline=function(v,L){if(!L&&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 re=this._tokens.peek();this._flags.mode===pe.Statement&&!(this._flags.if_block&&w(re,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},$.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||I(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(v.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},$.prototype.print_token=function(v){if(this._output.raw){this._output.add_raw_token(v);return}if(this._options.comma_first&&v.previous&&v.previous.type===k.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var L=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(L),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(v),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(v),this._output.non_breaking_space=!0,this._output.add_token(v.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},$.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.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))},$.prototype.set_mode=function(v){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,v),this._flags=this.create_flags(this._previous_flags,v),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===pe.Statement&&Ce(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.start_of_object_property=function(){return this._flags.parent.mode===pe.ObjectLiteral&&this._flags.mode===pe.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||K(this._flags.last_token,["get","set"]))},$.prototype.start_of_statement=function(v){var L=!1;return L=L||K(this._flags.last_token,["var","let","const"])&&v.type===k.WORD,L=L||w(this._flags.last_token,"do"),L=L||!(this._flags.parent.mode===pe.ObjectLiteral&&this._flags.mode===pe.Statement)&&K(this._flags.last_token,m)&&!v.newlines,L=L||w(this._flags.last_token,"else")&&!(w(v,"if")&&!v.comments_before),L=L||this._flags.last_token.type===k.END_EXPR&&(this._previous_flags.mode===pe.ForInitializer||this._previous_flags.mode===pe.Conditional),L=L||this._flags.last_token.type===k.WORD&&this._flags.mode===pe.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==k.WORD&&v.type!==k.RESERVED,L=L||this._flags.mode===pe.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||K(this._flags.last_token,["get","set"])),L?(this.set_mode(pe.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,K(v,["do","for","if","while"])),!0):!1},$.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var L=pe.Expression;if(v.text==="["){if(this._flags.last_token.type===k.WORD||this._flags.last_token.text===")"){K(this._flags.last_token,H)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(L),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}L=pe.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()),D(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,L=pe.ForInitializer):D(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,L=pe.Conditional):D(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&v.whitespace_before===""?this._output.space_before_token=!1:(D(this._flags.last_token.text,H)||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(v);else if(this._flags.last_token.type===k.WORD){this._output.space_before_token=!1;var re=this._tokens.peek(-3);if(this._options.space_after_named_function&&re){var Ie=this._tokens.peek(-4);K(re,["async","function"])||re.text==="*"&&K(Ie,["async","function"])?this._output.space_before_token=!0:this._flags.mode===pe.ObjectLiteral?(re.text==="{"||re.text===","||re.text==="*"&&(Ie.text==="{"||Ie.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(v);(this._flags.last_token.type===k.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(D(this._last_last_text,["function","yield"])||this._flags.mode===pe.ObjectLiteral&&D(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===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(v,v.newlines),this.print_token(v),this.set_mode(L),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},$.prototype.handle_end_expr=function(v){for(;this._flags.mode===pe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.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(v),this.restore_mode(),Ce(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===pe.Conditional&&(this._previous_flags.mode=pe.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},$.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var L=this._tokens.peek(),re=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===k.END_EXPR?(this.set_mode(pe.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(pe.BlockStatement):re&&(D(re.text,[":",","])&&D(L.type,[k.STRING,k.WORD,k.RESERVED])||D(L.text,["get","set","..."])&&D(re.type,[k.WORD,k.RESERVED]))?D(this._last_last_text,["class","interface"])&&!D(re.text,[":",","])?this.set_mode(pe.BlockStatement):this.set_mode(pe.ObjectLiteral):this._flags.last_token.type===k.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(pe.BlockStatement):D(this._flags.last_token.type,[k.EQUALS,k.START_EXPR,k.COMMA,k.OPERATOR])||K(this._flags.last_token,["return","throw","import","default"])?this.set_mode(pe.ObjectLiteral):this.set_mode(pe.BlockStatement),this._flags.last_token&&K(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Ie=!L.comments_before&&L.text==="}",Be=Ie&&this._flags.last_word==="function"&&this._flags.last_token.type===k.END_EXPR;if(this._options.brace_preserve_inline){var Oe=0,je=null;this._flags.inline_frame=!0;do if(Oe+=1,je=this._tokens.peek(Oe-1),je.newlines){this._flags.inline_frame=!1;break}while(je.type!==k.EOF&&!(je.type===k.END_BLOCK&&je.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==k.OPERATOR&&(Be||this._flags.last_token.type===k.EQUALS||K(this._flags.last_token,se)&&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(v),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==k.OPERATOR&&this._flags.last_token.type!==k.START_EXPR&&(D(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(v),this.indent(),!Ie&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},$.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===pe.Statement;)this.restore_mode();var L=this._flags.last_token.type===k.START_BLOCK;this._flags.inline_frame&&!L?this._output.space_before_token=!0:this._options.brace_style==="expand"?L||this.print_newline():L||(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(v)},$.prototype.handle_word=function(v){if(v.type===k.RESERVED){if(D(v.text,["set","get"])&&this._flags.mode!==pe.ObjectLiteral)v.type=k.WORD;else if(v.text==="import"&&D(this._tokens.peek().text,["(","."]))v.type=k.WORD;else if(D(v.text,["as","from"])&&!this._flags.import_block)v.type=k.WORD;else if(this._flags.mode===pe.ObjectLiteral){var L=this._tokens.peek();L.text===":"&&(v.type=k.WORD)}}if(this.start_of_statement(v)?K(this._flags.last_token,["var","let","const"])&&v.type===k.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!U(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||!K(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(v),this.print_newline()):this.handle_whitespace_and_comments(v),this._flags.do_block&&!this._flags.do_while)if(w(v,"while")){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&w(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===pe.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&K(v,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(v),this._flags.in_case=!0;return}if((this._flags.last_token.type===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()&&!(D(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===pe.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),w(v,"function")){(D(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(D(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===k.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===k.RESERVED||this._flags.last_token.type===k.WORD?K(this._flags.last_token,["get","set","new","export"])||K(this._flags.last_token,m)?this._output.space_before_token=!0:w(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===k.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(U(this._flags.mode)||I(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var re="NONE";if(this._flags.last_token.type===k.END_BLOCK?this._previous_flags.inline_frame?re="SPACE":K(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?re="NEWLINE":(re="SPACE",this._output.space_before_token=!0):re="NEWLINE":this._flags.last_token.type===k.SEMICOLON&&this._flags.mode===pe.BlockStatement?re="NEWLINE":this._flags.last_token.type===k.SEMICOLON&&U(this._flags.mode)?re="SPACE":this._flags.last_token.type===k.STRING?re="NEWLINE":this._flags.last_token.type===k.RESERVED||this._flags.last_token.type===k.WORD||this._flags.last_token.text==="*"&&(D(this._last_last_text,["function","yield"])||this._flags.mode===pe.ObjectLiteral&&D(this._last_last_text,["{",","]))?re="SPACE":this._flags.last_token.type===k.START_BLOCK?this._flags.inline_frame?re="SPACE":re="NEWLINE":this._flags.last_token.type===k.END_EXPR&&(this._output.space_before_token=!0,re="NEWLINE"),K(v,H)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?re="SPACE":re="NEWLINE"),K(v,["else","catch","finally"]))if((!(this._flags.last_token.type===k.END_BLOCK&&this._previous_flags.mode===pe.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Ie=this._output.current_line;Ie.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else re==="NEWLINE"?K(this._flags.last_token,se)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&K(v,["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||!K(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(v,"if")&&w(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):K(v,H)&&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():re==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===k.WORD||v.previous.type===k.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===k.RESERVED&&(v.text==="do"?this._flags.do_block=!0:v.text==="if"?this._flags.if_block=!0:v.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(v,"from")&&(this._flags.import_block=!1))},$.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var L=this._tokens.peek();this._flags.mode===pe.Statement&&!(this._flags.if_block&&w(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},$.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===k.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),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(v):v.text.startsWith("`")&&this._flags.last_token.type===k.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},$.prototype.handle_equals=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0},$.prototype.handle_comma=function(v){this.handle_whitespace_and_comments(v,!0),this.print_token(v),this._output.space_before_token=!0,this._flags.declaration_statement?(U(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)):this._flags.mode===pe.ObjectLiteral||this._flags.mode===pe.Statement&&this._flags.parent.mode===pe.ObjectLiteral?(this._flags.mode===pe.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},$.prototype.handle_operator=function(v){var L=v.text==="*"&&(K(this._flags.last_token,["function","yield"])||D(this._flags.last_token.type,[k.START_BLOCK,k.COMMA,k.END_BLOCK,k.SEMICOLON])),re=D(v.text,["-","+"])&&(D(this._flags.last_token.type,[k.START_BLOCK,k.START_EXPR,k.EQUALS,k.OPERATOR])||D(this._flags.last_token.text,H)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var Ie=!L;this.handle_whitespace_and_comments(v,Ie)}if(v.text==="*"&&this._flags.last_token.type===k.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(D(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===k.OPERATOR&&D(this._options.operator_position,he)&&this.allow_wrap_or_preserved_newline(v),v.text===":"&&this._flags.in_case){this.print_token(v),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==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 Be=!0,Oe=!0,je=!1;if(v.text===":"?this._flags.ternary_depth===0?Be=!1:(this._flags.ternary_depth-=1,je=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!re&&!L&&this._options.preserve_newlines&&D(v.text,V)){var at=v.text===":",et=at&&je,rt=at&&!je;switch(this._options.operator_position){case _e.before_newline:this._output.space_before_token=!rt,this.print_token(v),(!at||et)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case _e.after_newline:this._output.space_before_token=!0,!at||et?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(v):this._output.space_before_token=!1,this.print_token(v),this._output.space_before_token=!0;return;case _e.preserve_newline:rt||this.allow_wrap_or_preserved_newline(v),Be=!(this._output.just_added_newline()||rt),this._output.space_before_token=Be,this.print_token(v),this._output.space_before_token=!0;return}}if(L){this.allow_wrap_or_preserved_newline(v),Be=!1;var Tt=this._tokens.peek();Oe=Tt&&D(Tt.type,[k.WORD,k.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),Be=this._flags.last_token.type===k.START_BLOCK,Oe=!1;else if(D(v.text,["--","++","!","~"])||re){if((this._flags.last_token.type===k.COMMA||this._flags.last_token.type===k.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),Be=!1,Oe=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var At=K(this._flags.last_token,se)&&v.newlines;At&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(At,!0)}this._flags.last_token.text===";"&&U(this._flags.mode)&&(Be=!0),this._flags.last_token.type===k.RESERVED?Be=!0:this._flags.last_token.type===k.END_EXPR?Be=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===k.OPERATOR&&(Be=D(v.text,["--","-","++","+"])&&D(this._flags.last_token.text,["--","-","++","+"]),D(v.text,["+","-"])&&D(this._flags.last_token.text,["--","++"])&&(Oe=!0)),(this._flags.mode===pe.BlockStatement&&!this._flags.inline_frame||this._flags.mode===pe.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Be,this.print_token(v),this._output.space_before_token=Oe},$.prototype.handle_block_comment=function(v,L){if(this._output.raw){this._output.add_raw_token(v),v.directives&&v.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(v.directives){this.print_newline(!1,L),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!c.newline.test(v.text)&&!v.newlines){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0;return}else this.print_block_commment(v,L)},$.prototype.print_block_commment=function(v,L){var re=M(v.text),Ie,Be=!1,Oe=!1,je=v.whitespace_before,at=je.length;if(this.print_newline(!1,L),this.print_token_line_indentation(v),this._output.add_token(re[0]),this.print_newline(!1,L),re.length>1){for(re=re.slice(1),Be=R(re,"*"),Oe=q(re,je),Be&&(this._flags.alignment=1),Ie=0;Ie<re.length;Ie++)Be?(this.print_token_line_indentation(v),this._output.add_token(j(re[Ie]))):Oe&&re[Ie]?(this.print_token_line_indentation(v),this._output.add_token(re[Ie].substring(at))):(this._output.current_line.set_indent(-1),this._output.add_token(re[Ie])),this.print_newline(!1,L);this._flags.alignment=0}},$.prototype.handle_comment=function(v,L){v.newlines?this.print_newline(!1,L):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,L)},$.prototype.handle_dot=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),K(this._flags.last_token,se)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(v,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(v)},$.prototype.handle_unknown=function(v,L){this.print_token(v),v.text[v.text.length-1]===`
|
|
`&&this.print_newline(!1,L)},$.prototype.handle_eof=function(v){for(;this._flags.mode===pe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},de.exports.Beautifier=$},function(de){function a(E){this.__parent=E,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}a.prototype.clone_empty=function(){var E=new a(this.__parent);return E.set_indent(this.__indent_count,this.__alignment_count),E},a.prototype.item=function(E){return E<0?this.__items[this.__items.length+E]:this.__items[E]},a.prototype.has_match=function(E){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(E))return!0;return!1},a.prototype.set_indent=function(E,c){this.is_empty()&&(this.__indent_count=E||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.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)},a.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},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var E=this.__parent.current_line;return E.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),E.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),E.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,E.__items[0]===" "&&(E.__items.splice(0,1),E.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return this.__items.length===0},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(E){this.__items.push(E);var c=E.lastIndexOf(`
|
|
`);c!==-1?this.__character_count=E.length-c:this.__character_count+=E.length},a.prototype.pop=function(){var E=null;return this.is_empty()||(E=this.__items.pop(),this.__character_count-=E.length),E},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var E="";return this.is_empty()?this.__parent.indent_empty_lines&&(E=this.__parent.get_indent_string(this.__indent_count)):(E=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),E+=this.__items.join("")),E};function N(E,c){this.__cache=[""],this.__indent_size=E.indent_size,this.__indent_string=E.indent_char,E.indent_with_tabs||(this.__indent_string=new Array(E.indent_size+1).join(E.indent_char)),c=c||"",E.indent_level>0&&(c=new Array(E.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}N.prototype.get_indent_size=function(E,c){var y=this.__base_string_length;return c=c||0,E<0&&(y=0),y+=E*this.__indent_size,y+=c,y},N.prototype.get_indent_string=function(E,c){var y=this.__base_string;return c=c||0,E<0&&(E=0,y=""),c+=E*this.__indent_size,this.__ensure_cache(c),y+=this.__cache[c],y},N.prototype.__ensure_cache=function(E){for(;E>=this.__cache.length;)this.__add_column()},N.prototype.__add_column=function(){var E=this.__cache.length,c=0,y="";this.__indent_size&&E>=this.__indent_size&&(c=Math.floor(E/this.__indent_size),E-=c*this.__indent_size,y=new Array(c+1).join(this.__indent_string)),E&&(y+=new Array(E+1).join(" ")),this.__cache.push(y)};function P(E,c){this.__indent_cache=new N(E,c),this.raw=!1,this._end_with_newline=E.end_with_newline,this.indent_size=E.indent_size,this.wrap_line_length=E.wrap_line_length,this.indent_empty_lines=E.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}P.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},P.prototype.get_line_number=function(){return this.__lines.length},P.prototype.get_indent_string=function(E,c){return this.__indent_cache.get_indent_string(E,c)},P.prototype.get_indent_size=function(E,c){return this.__indent_cache.get_indent_size(E,c)},P.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},P.prototype.add_new_line=function(E){return this.is_empty()||!E&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},P.prototype.get_code=function(E){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 y=this.__lines.join(`
|
|
`);return E!==`
|
|
`&&(y=y.replace(/[\n]/g,E)),y},P.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},P.prototype.set_indent=function(E,c){return E=E||0,c=c||0,this.next_line.set_indent(E,c),this.__lines.length>1?(this.current_line.set_indent(E,c),!0):(this.current_line.set_indent(),!1)},P.prototype.add_raw_token=function(E){for(var c=0;c<E.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(E.whitespace_before),this.current_line.push(E.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},P.prototype.add_token=function(E){this.__add_space_before_token(),this.current_line.push(E),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},P.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(" "))},P.prototype.remove_indent=function(E){for(var c=this.__lines.length;E<c;)this.__lines[E]._remove_indent(),E++;this.current_line._remove_wrap_indent()},P.prototype.trim=function(E){for(E=E===void 0?!1:E,this.current_line.trim();E&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},P.prototype.just_added_newline=function(){return this.current_line.is_empty()},P.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},P.prototype.ensure_empty_line_above=function(E,c){for(var y=this.__lines.length-2;y>=0;){var x=this.__lines[y];if(x.is_empty())break;if(x.item(0).indexOf(E)!==0&&x.item(-1)!==c){this.__lines.splice(y+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}y--}},de.exports.Output=P},function(de){function a(N,P,E,c){this.type=N,this.text=P,this.comments_before=null,this.newlines=E||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}de.exports.Token=a},function(de,a){var N="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",P="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",E="\\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",y="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",x="(?:"+y+"|["+N+E+"])",H="(?:"+y+"|["+P+E+c+"])*";a.identifier=new RegExp(x+H,"g"),a.identifierStart=new RegExp(x),a.identifierMatch=new RegExp("(?:"+y+"|["+P+E+c+"])+");var V=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;a.newline=/[\n\r\u2028\u2029]/,a.lineBreak=new RegExp(`\r
|
|
|`+a.newline.source),a.allLineBreaks=new RegExp(a.lineBreak.source,"g")},function(de,a,N){var P=N(6).Options,E=["before-newline","after-newline","preserve-newline"];function c(y){P.call(this,y,"js");var x=this.raw_options.brace_style||null;x==="expand-strict"?this.raw_options.brace_style="expand":x==="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 H=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var V=0;V<H.length;V++)H[V]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=H[V];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",E),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}c.prototype=new P,de.exports.Options=c},function(de){function a(E,c){this.raw_options=N(E,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"])}a.prototype._get_array=function(E,c){var y=this.raw_options[E],x=c||[];return typeof y=="object"?y!==null&&typeof y.concat=="function"&&(x=y.concat()):typeof y=="string"&&(x=y.split(/[^a-zA-Z0-9_\/\-]+/)),x},a.prototype._get_boolean=function(E,c){var y=this.raw_options[E],x=y===void 0?!!c:!!y;return x},a.prototype._get_characters=function(E,c){var y=this.raw_options[E],x=c||"";return typeof y=="string"&&(x=y.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),x},a.prototype._get_number=function(E,c){var y=this.raw_options[E];c=parseInt(c,10),isNaN(c)&&(c=0);var x=parseInt(y,10);return isNaN(x)&&(x=c),x},a.prototype._get_selection=function(E,c,y){var x=this._get_selection_list(E,c,y);if(x.length!==1)throw new Error("Invalid Option Value: The option '"+E+`' can only be one of the following values:
|
|
`+c+`
|
|
You passed in: '`+this.raw_options[E]+"'");return x[0]},a.prototype._get_selection_list=function(E,c,y){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(y=y||[c[0]],!this._is_valid_selection(y,c))throw new Error("Invalid Default Value!");var x=this._get_array(E,y);if(!this._is_valid_selection(x,c))throw new Error("Invalid Option Value: The option '"+E+`' can contain only the following values:
|
|
`+c+`
|
|
You passed in: '`+this.raw_options[E]+"'");return x},a.prototype._is_valid_selection=function(E,c){return E.length&&c.length&&!E.some(function(y){return c.indexOf(y)===-1})};function N(E,c){var y={};E=P(E);var x;for(x in E)x!==c&&(y[x]=E[x]);if(c&&E[c])for(x in E[c])y[x]=E[c][x];return y}function P(E){var c={},y;for(y in E){var x=y.replace(/-/g,"_");c[x]=E[y]}return c}de.exports.Options=a,de.exports.normalizeOpts=P,de.exports.mergeOpts=N},function(de,a,N){var P=N(8).InputScanner,E=N(9).Tokenizer,c=N(9).TOKEN,y=N(13).Directives,x=N(4),H=N(12).Pattern,V=N(14).TemplatablePattern;function k(R,q){return q.indexOf(R)!==-1}var D={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:c.START,RAW:c.RAW,EOF:c.EOF},j=new y(/\/\*/,/\*\//),oe=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,K=/[^\d\.]/,se=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),X=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";X=X.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),X="\\?\\.(?!\\d) "+X,X=X.replace(/ /g,"|");var _e=new RegExp(X),he="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),pe=he.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Ce=new RegExp("^(?:"+pe.join("|")+")$"),M,I=function(R,q){E.call(this,R,q),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var $=new H(this._input),m=new V(this._input).read_options(this._options);this.__patterns={template:m,identifier:m.starting_with(x.identifier).matching(x.identifierMatch),number:$.matching(oe),punct:$.matching(_e),comment:$.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:$.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:$.matching(/<!--/),html_comment_end:$.matching(/-->/),include:$.starting_with(/#include/).until_after(x.lineBreak),shebang:$.starting_with(/#!/).until_after(x.lineBreak),xml:$.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 E,I.prototype._is_comment=function(R){return R.type===D.COMMENT||R.type===D.BLOCK_COMMENT||R.type===D.UNKNOWN},I.prototype._is_opening=function(R){return R.type===D.START_BLOCK||R.type===D.START_EXPR},I.prototype._is_closing=function(R,q){return(R.type===D.END_BLOCK||R.type===D.END_EXPR)&&q&&(R.text==="]"&&q.text==="["||R.text===")"&&q.text==="("||R.text==="}"&&q.text==="{")},I.prototype._reset=function(){M=!1},I.prototype._get_next_token=function(R,q){var $=null;this._readWhitespace();var m=this._input.peek();return m===null?this._create_token(D.EOF,""):($=$||this._read_non_javascript(m),$=$||this._read_string(m),$=$||this._read_pair(m,this._input.peek(1)),$=$||this._read_word(R),$=$||this._read_singles(m),$=$||this._read_comment(m),$=$||this._read_regexp(m,R),$=$||this._read_xml(m,R),$=$||this._read_punctuation(),$=$||this._create_token(D.UNKNOWN,this._input.next()),$)},I.prototype._read_word=function(R){var q;if(q=this.__patterns.identifier.read(),q!=="")return q=q.replace(x.allLineBreaks,`
|
|
`),!(R.type===D.DOT||R.type===D.RESERVED&&(R.text==="set"||R.text==="get"))&&Ce.test(q)?(q==="in"||q==="of")&&(R.type===D.WORD||R.type===D.STRING)?this._create_token(D.OPERATOR,q):this._create_token(D.RESERVED,q):this._create_token(D.WORD,q);if(q=this.__patterns.number.read(),q!=="")return this._create_token(D.WORD,q)},I.prototype._read_singles=function(R){var q=null;return R==="("||R==="["?q=this._create_token(D.START_EXPR,R):R===")"||R==="]"?q=this._create_token(D.END_EXPR,R):R==="{"?q=this._create_token(D.START_BLOCK,R):R==="}"?q=this._create_token(D.END_BLOCK,R):R===";"?q=this._create_token(D.SEMICOLON,R):R==="."&&K.test(this._input.peek(1))?q=this._create_token(D.DOT,R):R===","&&(q=this._create_token(D.COMMA,R)),q&&this._input.next(),q},I.prototype._read_pair=function(R,q){var $=null;return R==="#"&&q==="{"&&($=this._create_token(D.START_BLOCK,R+q)),$&&(this._input.next(),this._input.next()),$},I.prototype._read_punctuation=function(){var R=this.__patterns.punct.read();if(R!=="")return R==="="?this._create_token(D.EQUALS,R):R==="?."?this._create_token(D.DOT,R):this._create_token(D.OPERATOR,R)},I.prototype._read_non_javascript=function(R){var q="";if(R==="#"){if(this._is_first_token()&&(q=this.__patterns.shebang.read(),q))return this._create_token(D.UNKNOWN,q.trim()+`
|
|
`);if(q=this.__patterns.include.read(),q)return this._create_token(D.UNKNOWN,q.trim()+`
|
|
`);R=this._input.next();var $="#";if(this._input.hasNext()&&this._input.testChar(w)){do R=this._input.next(),$+=R;while(this._input.hasNext()&&R!=="#"&&R!=="=");return R==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?($+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&($+="{}",this._input.next(),this._input.next())),this._create_token(D.WORD,$)}this._input.back()}else if(R==="<"&&this._is_first_token()){if(q=this.__patterns.html_comment_start.read(),q){for(;this._input.hasNext()&&!this._input.testChar(x.newline);)q+=this._input.next();return M=!0,this._create_token(D.COMMENT,q)}}else if(M&&R==="-"&&(q=this.__patterns.html_comment_end.read(),q))return M=!1,this._create_token(D.COMMENT,q);return null},I.prototype._read_comment=function(R){var q=null;if(R==="/"){var $="";if(this._input.peek(1)==="*"){$=this.__patterns.block_comment.read();var m=j.get_directives($);m&&m.ignore==="start"&&($+=j.readIgnored(this._input)),$=$.replace(x.allLineBreaks,`
|
|
`),q=this._create_token(D.BLOCK_COMMENT,$),q.directives=m}else this._input.peek(1)==="/"&&($=this.__patterns.comment.read(),q=this._create_token(D.COMMENT,$))}return q},I.prototype._read_string=function(R){if(R==="`"||R==="'"||R==='"'){var q=this._input.next();return this.has_char_escapes=!1,R==="`"?q+=this._read_string_recursive("`",!0,"${"):q+=this._read_string_recursive(R),this.has_char_escapes&&this._options.unescape_strings&&(q=U(q)),this._input.peek()===R&&(q+=this._input.next()),q=q.replace(x.allLineBreaks,`
|
|
`),this._create_token(D.STRING,q)}return null},I.prototype._allow_regexp_or_xml=function(R){return R.type===D.RESERVED&&k(R.text,["return","case","throw","else","do","typeof","yield"])||R.type===D.END_EXPR&&R.text===")"&&R.opened.previous.type===D.RESERVED&&k(R.opened.previous.text,["if","while","for"])||k(R.type,[D.COMMENT,D.START_EXPR,D.START_BLOCK,D.START,D.END_BLOCK,D.OPERATOR,D.EQUALS,D.EOF,D.SEMICOLON,D.COMMA])},I.prototype._read_regexp=function(R,q){if(R==="/"&&this._allow_regexp_or_xml(q)){for(var $=this._input.next(),m=!1,v=!1;this._input.hasNext()&&(m||v||this._input.peek()!==R)&&!this._input.testChar(x.newline);)$+=this._input.peek(),m?m=!1:(m=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===R&&($+=this._input.next(),$+=this._input.read(x.identifier)),this._create_token(D.STRING,$)}return null},I.prototype._read_xml=function(R,q){if(this._options.e4x&&R==="<"&&this._allow_regexp_or_xml(q)){var $="",m=this.__patterns.xml.read_match();if(m){for(var v=m[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),L=v.indexOf("{")===0,re=0;m;){var Ie=!!m[1],Be=m[2],Oe=!!m[m.length-1]||Be.slice(0,8)==="![CDATA[";if(!Oe&&(Be===v||L&&Be.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ie?--re:++re),$+=m[0],re<=0)break;m=this.__patterns.xml.read_match()}return m||($+=this._input.match(/[\s\S]*/g)[0]),$=$.replace(x.allLineBreaks,`
|
|
`),this._create_token(D.STRING,$)}}return null};function U(R){for(var q="",$=0,m=new P(R),v=null;m.hasNext();)if(v=m.match(/([\s]|[^\\]|\\\\)+/g),v&&(q+=v[0]),m.peek()==="\\"){if(m.next(),m.peek()==="x")v=m.match(/x([0-9A-Fa-f]{2})/g);else if(m.peek()==="u")v=m.match(/u([0-9A-Fa-f]{4})/g),v||(v=m.match(/u\{([0-9A-Fa-f]+)\}/g));else{q+="\\",m.hasNext()&&(q+=m.next());continue}if(!v||($=parseInt(v[1],16),$>126&&$<=255&&v[0].indexOf("x")===0))return R;$>=0&&$<32||$>1114111?q+="\\"+v[0]:$===34||$===39||$===92?q+="\\"+String.fromCharCode($):q+=String.fromCharCode($)}return q}I.prototype._read_string_recursive=function(R,q,$){var m,v;R==="'"?v=this.__patterns.single_quote:R==='"'?v=this.__patterns.double_quote:R==="`"?v=this.__patterns.template_text:R==="}"&&(v=this.__patterns.template_expression);for(var L=v.read(),re="";this._input.hasNext();){if(re=this._input.next(),re===R||!q&&x.newline.test(re)){this._input.back();break}else re==="\\"&&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(),re+=this._input.next()):$&&($==="${"&&re==="$"&&this._input.peek()==="{"&&(re+=this._input.next()),$===re&&(R==="`"?re+=this._read_string_recursive("}",q,"`"):re+=this._read_string_recursive("`",q,"${"),this._input.hasNext()&&(re+=this._input.next())));re+=v.read(),L+=re}return L},de.exports.Tokenizer=I,de.exports.TOKEN=D,de.exports.positionable_operators=se.slice(),de.exports.line_starters=he.slice()},function(de){var a=RegExp.prototype.hasOwnProperty("sticky");function N(P){this.__input=P||"",this.__input_length=this.__input.length,this.__position=0}N.prototype.restart=function(){this.__position=0},N.prototype.back=function(){this.__position>0&&(this.__position-=1)},N.prototype.hasNext=function(){return this.__position<this.__input_length},N.prototype.next=function(){var P=null;return this.hasNext()&&(P=this.__input.charAt(this.__position),this.__position+=1),P},N.prototype.peek=function(P){var E=null;return P=P||0,P+=this.__position,P>=0&&P<this.__input_length&&(E=this.__input.charAt(P)),E},N.prototype.__match=function(P,E){P.lastIndex=E;var c=P.exec(this.__input);return c&&!(a&&P.sticky)&&c.index!==E&&(c=null),c},N.prototype.test=function(P,E){return E=E||0,E+=this.__position,E>=0&&E<this.__input_length?!!this.__match(P,E):!1},N.prototype.testChar=function(P,E){var c=this.peek(E);return P.lastIndex=0,c!==null&&P.test(c)},N.prototype.match=function(P){var E=this.__match(P,this.__position);return E?this.__position+=E[0].length:E=null,E},N.prototype.read=function(P,E,c){var y="",x;return P&&(x=this.match(P),x&&(y+=x[0])),E&&(x||!P)&&(y+=this.readUntil(E,c)),y},N.prototype.readUntil=function(P,E){var c="",y=this.__position;P.lastIndex=this.__position;var x=P.exec(this.__input);return x?(y=x.index,E&&(y+=x[0].length)):y=this.__input_length,c=this.__input.substring(this.__position,y),this.__position=y,c},N.prototype.readUntilAfter=function(P){return this.readUntil(P,!0)},N.prototype.get_regexp=function(P,E){var c=null,y="g";return E&&a&&(y="y"),typeof P=="string"&&P!==""?c=new RegExp(P,y):P&&(c=new RegExp(P.source,y)),c},N.prototype.get_literal_regexp=function(P){return RegExp(P.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},N.prototype.peekUntilAfter=function(P){var E=this.__position,c=this.readUntilAfter(P);return this.__position=E,c},N.prototype.lookBack=function(P){var E=this.__position-1;return E>=P.length&&this.__input.substring(E-P.length,E).toLowerCase()===P},de.exports.InputScanner=N},function(de,a,N){var P=N(8).InputScanner,E=N(3).Token,c=N(10).TokenStream,y=N(11).WhitespacePattern,x={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},H=function(V,k){this._input=new P(V),this._options=k||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new y(this._input)};H.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var V,k=new E(x.START,""),D=null,j=[],oe=new c;k.type!==x.EOF;){for(V=this._get_next_token(k,D);this._is_comment(V);)oe.add(V),V=this._get_next_token(k,D);oe.isEmpty()||(V.comments_before=oe,oe=new c),V.parent=D,this._is_opening(V)?(j.push(D),D=V):D&&this._is_closing(V,D)&&(V.opened=D,D.closed=V,D=j.pop(),V.parent=D),V.previous=k,k.next=V,this.__tokens.add(V),k=V}return this.__tokens},H.prototype._is_first_token=function(){return this.__tokens.isEmpty()},H.prototype._reset=function(){},H.prototype._get_next_token=function(V,k){this._readWhitespace();var D=this._input.read(/.+/g);return D?this._create_token(x.RAW,D):this._create_token(x.EOF,"")},H.prototype._is_comment=function(V){return!1},H.prototype._is_opening=function(V){return!1},H.prototype._is_closing=function(V,k){return!1},H.prototype._create_token=function(V,k){var D=new E(V,k,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return D},H.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},de.exports.Tokenizer=H,de.exports.TOKEN=x},function(de){function a(N){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=N}a.prototype.restart=function(){this.__position=0},a.prototype.isEmpty=function(){return this.__tokens_length===0},a.prototype.hasNext=function(){return this.__position<this.__tokens_length},a.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__tokens[this.__position],this.__position+=1),N},a.prototype.peek=function(N){var P=null;return N=N||0,N+=this.__position,N>=0&&N<this.__tokens_length&&(P=this.__tokens[N]),P},a.prototype.add=function(N){this.__parent_token&&(N.parent=this.__parent_token),this.__tokens.push(N),this.__tokens_length+=1},de.exports.TokenStream=a},function(de,a,N){var P=N(12).Pattern;function E(c,y){P.call(this,c,y),y?this._line_regexp=this._input.get_regexp(y._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}E.prototype=new P,E.prototype.__set_whitespace_patterns=function(c,y){c+="\\t ",y+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+y+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+y+"]")},E.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 y=this.__split(this._newline_regexp,c);this.newline_count=y.length-1,this.whitespace_before_token=y[this.newline_count]}return c},E.prototype.matching=function(c,y){var x=this._create();return x.__set_whitespace_patterns(c,y),x._update(),x},E.prototype._create=function(){return new E(this._input,this)},E.prototype.__split=function(c,y){c.lastIndex=0;for(var x=0,H=[],V=c.exec(y);V;)H.push(y.substring(x,V.index)),x=V.index+V[0].length,V=c.exec(y);return x<y.length?H.push(y.substring(x,y.length)):H.push(""),H},de.exports.WhitespacePattern=E},function(de){function a(N,P){this._input=N,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,P&&(this._starting_pattern=this._input.get_regexp(P._starting_pattern,!0),this._match_pattern=this._input.get_regexp(P._match_pattern,!0),this._until_pattern=this._input.get_regexp(P._until_pattern),this._until_after=P._until_after)}a.prototype.read=function(){var N=this._input.read(this._starting_pattern);return(!this._starting_pattern||N)&&(N+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),N},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(N){var P=this._create();return P._until_after=!0,P._until_pattern=this._input.get_regexp(N),P._update(),P},a.prototype.until=function(N){var P=this._create();return P._until_after=!1,P._until_pattern=this._input.get_regexp(N),P._update(),P},a.prototype.starting_with=function(N){var P=this._create();return P._starting_pattern=this._input.get_regexp(N,!0),P._update(),P},a.prototype.matching=function(N){var P=this._create();return P._match_pattern=this._input.get_regexp(N,!0),P._update(),P},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},de.exports.Pattern=a},function(de){function a(N,P){N=typeof N=="string"?N:N.source,P=typeof P=="string"?P:P.source,this.__directives_block_pattern=new RegExp(N+/ beautify( \w+[:]\w+)+ /.source+P,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(N+/\sbeautify\signore:end\s/.source+P,"g")}a.prototype.get_directives=function(N){if(!N.match(this.__directives_block_pattern))return null;var P={};this.__directive_pattern.lastIndex=0;for(var E=this.__directive_pattern.exec(N);E;)P[E[1]]=E[2],E=this.__directive_pattern.exec(N);return P},a.prototype.readIgnored=function(N){return N.readUntilAfter(this.__directives_end_ignore_pattern)},de.exports.Directives=a},function(de,a,N){var P=N(12).Pattern,E={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function c(y,x){P.call(this,y,x),this.__template_pattern=null,this._disabled=Object.assign({},E),this._excluded=Object.assign({},E),x&&(this.__template_pattern=this._input.get_regexp(x.__template_pattern),this._excluded=Object.assign(this._excluded,x._excluded),this._disabled=Object.assign(this._disabled,x._disabled));var H=new P(y);this.__patterns={handlebars_comment:H.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:H.starting_with(/{{{/).until_after(/}}}/),handlebars:H.starting_with(/{{/).until_after(/}}/),php:H.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:H.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:H.starting_with(/{%/).until_after(/%}/),django_value:H.starting_with(/{{/).until_after(/}}/),django_comment:H.starting_with(/{#/).until_after(/#}/),smarty:H.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:H.starting_with(/{\*/).until_after(/\*}/),smarty_literal:H.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new P,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(y){var x=this._create();return x._disabled[y]=!0,x._update(),x},c.prototype.read_options=function(y){var x=this._create();for(var H in E)x._disabled[H]=y.templating.indexOf(H)===-1;return x._update(),x},c.prototype.exclude=function(y){var x=this._create();return x._excluded[y]=!0,x._update(),x},c.prototype.read=function(){var y="";this._match_pattern?y=this._input.read(this._starting_pattern):y=this._input.read(this._starting_pattern,this.__template_pattern);for(var x=this._read_template();x;)this._match_pattern?x+=this._input.read(this._match_pattern):x+=this._input.readUntil(this.__template_pattern),y+=x,x=this._read_template();return this._until_after&&(y+=this._input.readUntilAfter(this._until_pattern)),y},c.prototype.__set_templated_pattern=function(){var y=[];this._disabled.php||y.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||y.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(y.push(this.__patterns.django._starting_pattern.source),y.push(this.__patterns.django_value._starting_pattern.source),y.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||y.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&y.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+y.join("|")+")")},c.prototype._read_template=function(){var y="",x=this._input.peek();if(x==="<"){var H=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&H==="?"&&(y=y||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&H==="%"&&(y=y||this.__patterns.erb.read())}else x==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(y=y||this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars_unescaped.read(),y=y||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(y=y||this.__patterns.django_value.read()),this._excluded.django||(y=y||this.__patterns.django_comment.read(),y=y||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(y=y||this.__patterns.smarty_comment.read(),y=y||this.__patterns.smarty_literal.read(),y=y||this.__patterns.smarty.read()));return y},de.exports.TemplatablePattern=c}],te={};function ee(de){var a=te[de];if(a!==void 0)return a.exports;var N=te[de]={exports:{}};return ke[de](N,N.exports,ee),N.exports}var xe=ee(0);ie=xe})();var be=ie;S=[],Z=function(){return{js_beautify:be}}.apply(Qe,S),Z!==void 0&&(Mt.exports=Z)})()},15342:function(Mt){(function(S,Z){Mt.exports=Z()})(typeof self!="undefined"?self:this,function(){return function(Qe){var S={};function Z(ie){if(S[ie])return S[ie].exports;var be=S[ie]={i:ie,l:!1,exports:{}};return Qe[ie].call(be.exports,be,be.exports,Z),be.l=!0,be.exports}return Z.m=Qe,Z.c=S,Z.d=function(ie,be,ke){Z.o(ie,be)||Object.defineProperty(ie,be,{enumerable:!0,get:ke})},Z.r=function(ie){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ie,"__esModule",{value:!0})},Z.t=function(ie,be){if(be&1&&(ie=Z(ie)),be&8||be&4&&typeof ie=="object"&&ie&&ie.__esModule)return ie;var ke=Object.create(null);if(Z.r(ke),Object.defineProperty(ke,"default",{enumerable:!0,value:ie}),be&2&&typeof ie!="string")for(var te in ie)Z.d(ke,te,function(ee){return ie[ee]}.bind(null,te));return ke},Z.n=function(ie){var be=ie&&ie.__esModule?function(){return ie.default}:function(){return ie};return Z.d(be,"a",be),be},Z.o=function(ie,be){return Object.prototype.hasOwnProperty.call(ie,be)},Z.p="",Z(Z.s=1)}([function(Qe,S,Z){},function(Qe,S,Z){"use strict";Z.r(S);var ie=Z(0),be=function(){function F(l,h,d){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=h,this.end=d}return F.range=function(h,d){return d?!h||!h.loc||!d.loc||h.loc.lexer!==d.loc.lexer?null:new F(h.loc.lexer,h.loc.start,d.loc.end):h&&h.loc},F}(),ke=function(){function F(h,d){this.text=void 0,this.loc=void 0,this.text=h,this.loc=d}var l=F.prototype;return l.range=function(d,p){return new F(p,be.range(this,d))},F}(),te=function F(l,h){this.position=void 0;var d="KaTeX parse error: "+l,p,C=h&&h.loc;if(C&&C.start<=C.end){var B=C.lexer.input;p=C.start;var fe=C.end;p===B.length?d+=" at end of input: ":d+=" at position "+(p+1)+": ";var Se=B.slice(p,fe).replace(/[^]/g,"$&\u0332"),Fe;p>15?Fe="\u2026"+B.slice(p-15,p):Fe=B.slice(0,p);var Je;fe+15<B.length?Je=B.slice(fe,fe+15)+"\u2026":Je=B.slice(fe),d+=Fe+Se+Je}var ct=new Error(d);return ct.name="ParseError",ct.__proto__=F.prototype,ct.position=p,ct};te.prototype.__proto__=Error.prototype;var ee=te,xe=function(l,h){return l.indexOf(h)!==-1},de=function(l,h){return l===void 0?h:l},a=/([A-Z])/g,N=function(l){return l.replace(a,"-$1").toLowerCase()},P={"&":"&",">":">","<":"<",'"':""","'":"'"},E=/[&><"']/g;function c(F){return String(F).replace(E,function(l){return P[l]})}var y=function F(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?F(l.body[0]):l:l.type==="font"?F(l.body):l},x=function(l){var h=y(l);return h.type==="mathord"||h.type==="textord"||h.type==="atom"},H=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},V=function(l){var h=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(l);return h!=null?h[1]:"_relative"},k={contains:xe,deflt:de,escape:c,hyphenate:N,getBaseElem:y,isCharacterBox:x,protocolFromUrl:V},D=function(){function F(h){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,h=h||{},this.displayMode=k.deflt(h.displayMode,!1),this.output=k.deflt(h.output,"htmlAndMathml"),this.leqno=k.deflt(h.leqno,!1),this.fleqn=k.deflt(h.fleqn,!1),this.throwOnError=k.deflt(h.throwOnError,!0),this.errorColor=k.deflt(h.errorColor,"#cc0000"),this.macros=h.macros||{},this.minRuleThickness=Math.max(0,k.deflt(h.minRuleThickness,0)),this.colorIsTextColor=k.deflt(h.colorIsTextColor,!1),this.strict=k.deflt(h.strict,"warn"),this.trust=k.deflt(h.trust,!1),this.maxSize=Math.max(0,k.deflt(h.maxSize,1/0)),this.maxExpand=Math.max(0,k.deflt(h.maxExpand,1e3))}var l=F.prototype;return l.reportNonstrict=function(d,p,C){var B=this.strict;if(typeof B=="function"&&(B=B(d,p,C)),!(!B||B==="ignore")){if(B===!0||B==="error")throw new ee("LaTeX-incompatible input and strict mode is set to 'error': "+(p+" ["+d+"]"),C);B==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(p+" ["+d+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+B+"': "+p+" ["+d+"]"))}},l.useStrictBehavior=function(d,p,C){var B=this.strict;if(typeof B=="function")try{B=B(d,p,C)}catch(fe){B="error"}return!B||B==="ignore"?!1:B===!0||B==="error"?!0:B==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(p+" ["+d+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+B+"': "+p+" ["+d+"]")),!1)},l.isTrusted=function(d){d.url&&!d.protocol&&(d.protocol=k.protocolFromUrl(d.url));var p=typeof this.trust=="function"?this.trust(d):this.trust;return!!p},F}(),j=function(){function F(h,d,p){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=h,this.size=d,this.cramped=p}var l=F.prototype;return l.sup=function(){return Ce[M[this.id]]},l.sub=function(){return Ce[I[this.id]]},l.fracNum=function(){return Ce[U[this.id]]},l.fracDen=function(){return Ce[R[this.id]]},l.cramp=function(){return Ce[q[this.id]]},l.text=function(){return Ce[$[this.id]]},l.isTight=function(){return this.size>=2},F}(),oe=0,w=1,K=2,se=3,X=4,_e=5,he=6,pe=7,Ce=[new j(oe,0,!1),new j(w,0,!0),new j(K,1,!1),new j(se,1,!0),new j(X,2,!1),new j(_e,2,!0),new j(he,3,!1),new j(pe,3,!0)],M=[X,_e,X,_e,he,pe,he,pe],I=[_e,_e,_e,_e,pe,pe,pe,pe],U=[K,se,X,_e,he,pe,he,pe],R=[se,se,_e,_e,pe,pe,pe,pe],q=[w,w,se,se,_e,_e,pe,pe],$=[oe,w,K,se,K,se,K,se],m={DISPLAY:Ce[oe],TEXT:Ce[K],SCRIPT:Ce[X],SCRIPTSCRIPT:Ce[he]},v=[{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 L(F){for(var l=0;l<v.length;l++)for(var h=v[l],d=0;d<h.blocks.length;d++){var p=h.blocks[d];if(F>=p[0]&&F<=p[1])return h.name}return null}var re=[];v.forEach(function(F){return F.blocks.forEach(function(l){return re.push.apply(re,l)})});function Ie(F){for(var l=0;l<re.length;l+=2)if(F>=re[l]&&F<=re[l+1])return!0;return!1}var Be=80,Oe=function(l,h){return"M95,"+(622+l+h)+`
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
l`+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)+" "+h+"h400000v"+(40+l)+"h-400000z"},je=function(l,h){return"M263,"+(601+l+h)+`c0.7,0,18,39.7,52,119
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
l`+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)+" "+h+"h400000v"+(40+l)+"h-400000z"},at=function(l,h){return"M983 "+(10+l+h)+`
|
|
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)+" "+h+"h400000v"+(40+l)+"h-400000z"},et=function(l,h){return"M424,"+(2398+l+h)+`
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
l`+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)+" "+h+`
|
|
h400000v`+(40+l)+"h-400000z"},rt=function(l,h){return"M473,"+(2713+l+h)+`
|
|
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)+" "+h+"h400000v"+(40+l)+"H1017.7z"},Tt=function(l,h,d){var p=d-54-h-l;return"M702 "+(l+h)+"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 `+h+"H400000v"+(40+l)+"H742z"},At=function(l,h,d){h=1e3*h;var p="";switch(l){case"sqrtMain":p=Oe(h,Be);break;case"sqrtSize1":p=je(h,Be);break;case"sqrtSize2":p=at(h,Be);break;case"sqrtSize3":p=et(h,Be);break;case"sqrtSize4":p=rt(h,Be);break;case"sqrtTall":p=Tt(h,Be,d)}return p},Ot={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`},yt=function(){function F(h){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=h,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=F.prototype;return l.hasClass=function(d){return k.contains(this.classes,d)},l.toNode=function(){for(var d=document.createDocumentFragment(),p=0;p<this.children.length;p++)d.appendChild(this.children[p].toNode());return d},l.toMarkup=function(){for(var d="",p=0;p<this.children.length;p++)d+=this.children[p].toMarkup();return d},l.toText=function(){var d=function(C){return C.toText()};return this.children.map(d).join("")},F}(),Rt=function(l){return l.filter(function(h){return h}).join(" ")},Ct=function(l,h,d){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=d||{},h){h.style.isTight()&&this.classes.push("mtight");var p=h.getColor();p&&(this.style.color=p)}},ue=function(l){var h=document.createElement(l);h.className=Rt(this.classes);for(var d in this.style)this.style.hasOwnProperty(d)&&(h.style[d]=this.style[d]);for(var p in this.attributes)this.attributes.hasOwnProperty(p)&&h.setAttribute(p,this.attributes[p]);for(var C=0;C<this.children.length;C++)h.appendChild(this.children[C].toNode());return h},ye=function(l){var h="<"+l;this.classes.length&&(h+=' class="'+k.escape(Rt(this.classes))+'"');var d="";for(var p in this.style)this.style.hasOwnProperty(p)&&(d+=k.hyphenate(p)+":"+this.style[p]+";");d&&(h+=' style="'+k.escape(d)+'"');for(var C in this.attributes)this.attributes.hasOwnProperty(C)&&(h+=" "+C+'="'+k.escape(this.attributes[C])+'"');h+=">";for(var B=0;B<this.children.length;B++)h+=this.children[B].toMarkup();return h+="</"+l+">",h},J=function(){function F(h,d,p,C){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,Ct.call(this,h,p,C),this.children=d||[]}var l=F.prototype;return l.setAttribute=function(d,p){this.attributes[d]=p},l.hasClass=function(d){return k.contains(this.classes,d)},l.toNode=function(){return ue.call(this,"span")},l.toMarkup=function(){return ye.call(this,"span")},F}(),Pe=function(){function F(h,d,p,C){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,Ct.call(this,d,C),this.children=p||[],this.setAttribute("href",h)}var l=F.prototype;return l.setAttribute=function(d,p){this.attributes[d]=p},l.hasClass=function(d){return k.contains(this.classes,d)},l.toNode=function(){return ue.call(this,"a")},l.toMarkup=function(){return ye.call(this,"a")},F}(),$e=function(){function F(h,d,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=d,this.src=h,this.classes=["mord"],this.style=p}var l=F.prototype;return l.hasClass=function(d){return k.contains(this.classes,d)},l.toNode=function(){var d=document.createElement("img");d.src=this.src,d.alt=this.alt,d.className="mord";for(var p in this.style)this.style.hasOwnProperty(p)&&(d.style[p]=this.style[p]);return d},l.toMarkup=function(){var d="<img src='"+this.src+" 'alt='"+this.alt+"' ",p="";for(var C in this.style)this.style.hasOwnProperty(C)&&(p+=k.hyphenate(C)+":"+this.style[C]+";");return p&&(d+=' style="'+k.escape(p)+'"'),d+="'/>",d},F}(),O={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},ae=function(){function F(h,d,p,C,B,fe,Se,Fe){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=h,this.height=d||0,this.depth=p||0,this.italic=C||0,this.skew=B||0,this.width=fe||0,this.classes=Se||[],this.style=Fe||{},this.maxFontSize=0;var Je=L(this.text.charCodeAt(0));Je&&this.classes.push(Je+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=O[this.text])}var l=F.prototype;return l.hasClass=function(d){return k.contains(this.classes,d)},l.toNode=function(){var d=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 C in this.style)this.style.hasOwnProperty(C)&&(p=p||document.createElement("span"),p.style[C]=this.style[C]);return p?(p.appendChild(d),p):d},l.toMarkup=function(){var d=!1,p="<span";this.classes.length&&(d=!0,p+=' class="',p+=k.escape(Rt(this.classes)),p+='"');var C="";this.italic>0&&(C+="margin-right:"+this.italic+"em;");for(var B in this.style)this.style.hasOwnProperty(B)&&(C+=k.hyphenate(B)+":"+this.style[B]+";");C&&(d=!0,p+=' style="'+k.escape(C)+'"');var fe=k.escape(this.text);return d?(p+=">",p+=fe,p+="</span>",p):fe},F}(),ve=function(){function F(h,d){this.children=void 0,this.attributes=void 0,this.children=h||[],this.attributes=d||{}}var l=F.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",p=document.createElementNS(d,"svg");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&p.setAttribute(C,this.attributes[C]);for(var B=0;B<this.children.length;B++)p.appendChild(this.children[B].toNode());return p},l.toMarkup=function(){var d="<svg";for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(d+=" "+p+"='"+this.attributes[p]+"'");d+=">";for(var C=0;C<this.children.length;C++)d+=this.children[C].toMarkup();return d+="</svg>",d},F}(),we=function(){function F(h,d){this.pathName=void 0,this.alternate=void 0,this.pathName=h,this.alternate=d}var l=F.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",p=document.createElementNS(d,"path");return this.alternate?p.setAttribute("d",this.alternate):p.setAttribute("d",Ot[this.pathName]),p},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Ot[this.pathName]+"'/>"},F}(),De=function(){function F(h){this.attributes=void 0,this.attributes=h||{}}var l=F.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",p=document.createElementNS(d,"line");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&p.setAttribute(C,this.attributes[C]);return p},l.toMarkup=function(){var d="<line";for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(d+=" "+p+"='"+this.attributes[p]+"'");return d+="/>",d},F}();function Me(F){if(F instanceof ae)return F;throw new Error("Expected symbolNode but got "+String(F)+".")}function Ye(F){if(F instanceof J)return F;throw new Error("Expected span<HtmlDomNode> but got "+String(F)+".")}var tt={"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]}},Xe={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]},We={\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 ht(F,l){tt[F]=l}function Re(F,l,h){if(!tt[l])throw new Error("Font metrics not found for font: "+l+".");var d=F.charCodeAt(0),p=tt[l][d];if(!p&&F[0]in We&&(d=We[F[0]].charCodeAt(0),p=tt[l][d]),!p&&h==="text"&&Ie(d)&&(p=tt[l][77]),p)return{depth:p[0],height:p[1],italic:p[2],skew:p[3],width:p[4]}}var Ne={};function Ke(F){var l;if(F>=5?l=0:F>=3?l=1:l=2,!Ne[l]){var h=Ne[l]={cssEmPerMu:Xe.quad[l]/18};for(var d in Xe)Xe.hasOwnProperty(d)&&(h[d]=Xe[d][l])}return Ne[l]}var Ve={bin:1,close:1,inner:1,open:1,punct:1,rel:1},nt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ft={math:{},text:{}},ot=ft;function _(F,l,h,d,p,C){ft[F][p]={font:l,group:h,replace:d},C&&d&&(ft[F][d]=ft[F][p])}var T="math",qe="text",G="main",ge="ams",Nt="accent-token",Te="bin",He="close",Ze="inner",Y="mathord",ce="op-token",Ee="open",ze="punct",W="rel",bt="spacing",Ae="textord";_(T,G,W,"\u2261","\\equiv",!0),_(T,G,W,"\u227A","\\prec",!0),_(T,G,W,"\u227B","\\succ",!0),_(T,G,W,"\u223C","\\sim",!0),_(T,G,W,"\u22A5","\\perp"),_(T,G,W,"\u2AAF","\\preceq",!0),_(T,G,W,"\u2AB0","\\succeq",!0),_(T,G,W,"\u2243","\\simeq",!0),_(T,G,W,"\u2223","\\mid",!0),_(T,G,W,"\u226A","\\ll",!0),_(T,G,W,"\u226B","\\gg",!0),_(T,G,W,"\u224D","\\asymp",!0),_(T,G,W,"\u2225","\\parallel"),_(T,G,W,"\u22C8","\\bowtie",!0),_(T,G,W,"\u2323","\\smile",!0),_(T,G,W,"\u2291","\\sqsubseteq",!0),_(T,G,W,"\u2292","\\sqsupseteq",!0),_(T,G,W,"\u2250","\\doteq",!0),_(T,G,W,"\u2322","\\frown",!0),_(T,G,W,"\u220B","\\ni",!0),_(T,G,W,"\u221D","\\propto",!0),_(T,G,W,"\u22A2","\\vdash",!0),_(T,G,W,"\u22A3","\\dashv",!0),_(T,G,W,"\u220B","\\owns"),_(T,G,ze,".","\\ldotp"),_(T,G,ze,"\u22C5","\\cdotp"),_(T,G,Ae,"#","\\#"),_(qe,G,Ae,"#","\\#"),_(T,G,Ae,"&","\\&"),_(qe,G,Ae,"&","\\&"),_(T,G,Ae,"\u2135","\\aleph",!0),_(T,G,Ae,"\u2200","\\forall",!0),_(T,G,Ae,"\u210F","\\hbar",!0),_(T,G,Ae,"\u2203","\\exists",!0),_(T,G,Ae,"\u2207","\\nabla",!0),_(T,G,Ae,"\u266D","\\flat",!0),_(T,G,Ae,"\u2113","\\ell",!0),_(T,G,Ae,"\u266E","\\natural",!0),_(T,G,Ae,"\u2663","\\clubsuit",!0),_(T,G,Ae,"\u2118","\\wp",!0),_(T,G,Ae,"\u266F","\\sharp",!0),_(T,G,Ae,"\u2662","\\diamondsuit",!0),_(T,G,Ae,"\u211C","\\Re",!0),_(T,G,Ae,"\u2661","\\heartsuit",!0),_(T,G,Ae,"\u2111","\\Im",!0),_(T,G,Ae,"\u2660","\\spadesuit",!0),_(qe,G,Ae,"\xA7","\\S",!0),_(qe,G,Ae,"\xB6","\\P",!0),_(T,G,Ae,"\u2020","\\dag"),_(qe,G,Ae,"\u2020","\\dag"),_(qe,G,Ae,"\u2020","\\textdagger"),_(T,G,Ae,"\u2021","\\ddag"),_(qe,G,Ae,"\u2021","\\ddag"),_(qe,G,Ae,"\u2021","\\textdaggerdbl"),_(T,G,He,"\u23B1","\\rmoustache",!0),_(T,G,Ee,"\u23B0","\\lmoustache",!0),_(T,G,He,"\u27EF","\\rgroup",!0),_(T,G,Ee,"\u27EE","\\lgroup",!0),_(T,G,Te,"\u2213","\\mp",!0),_(T,G,Te,"\u2296","\\ominus",!0),_(T,G,Te,"\u228E","\\uplus",!0),_(T,G,Te,"\u2293","\\sqcap",!0),_(T,G,Te,"\u2217","\\ast"),_(T,G,Te,"\u2294","\\sqcup",!0),_(T,G,Te,"\u25EF","\\bigcirc"),_(T,G,Te,"\u2219","\\bullet"),_(T,G,Te,"\u2021","\\ddagger"),_(T,G,Te,"\u2240","\\wr",!0),_(T,G,Te,"\u2A3F","\\amalg"),_(T,G,Te,"&","\\And"),_(T,G,W,"\u27F5","\\longleftarrow",!0),_(T,G,W,"\u21D0","\\Leftarrow",!0),_(T,G,W,"\u27F8","\\Longleftarrow",!0),_(T,G,W,"\u27F6","\\longrightarrow",!0),_(T,G,W,"\u21D2","\\Rightarrow",!0),_(T,G,W,"\u27F9","\\Longrightarrow",!0),_(T,G,W,"\u2194","\\leftrightarrow",!0),_(T,G,W,"\u27F7","\\longleftrightarrow",!0),_(T,G,W,"\u21D4","\\Leftrightarrow",!0),_(T,G,W,"\u27FA","\\Longleftrightarrow",!0),_(T,G,W,"\u21A6","\\mapsto",!0),_(T,G,W,"\u27FC","\\longmapsto",!0),_(T,G,W,"\u2197","\\nearrow",!0),_(T,G,W,"\u21A9","\\hookleftarrow",!0),_(T,G,W,"\u21AA","\\hookrightarrow",!0),_(T,G,W,"\u2198","\\searrow",!0),_(T,G,W,"\u21BC","\\leftharpoonup",!0),_(T,G,W,"\u21C0","\\rightharpoonup",!0),_(T,G,W,"\u2199","\\swarrow",!0),_(T,G,W,"\u21BD","\\leftharpoondown",!0),_(T,G,W,"\u21C1","\\rightharpoondown",!0),_(T,G,W,"\u2196","\\nwarrow",!0),_(T,G,W,"\u21CC","\\rightleftharpoons",!0),_(T,ge,W,"\u226E","\\nless",!0),_(T,ge,W,"\uE010","\\@nleqslant"),_(T,ge,W,"\uE011","\\@nleqq"),_(T,ge,W,"\u2A87","\\lneq",!0),_(T,ge,W,"\u2268","\\lneqq",!0),_(T,ge,W,"\uE00C","\\@lvertneqq"),_(T,ge,W,"\u22E6","\\lnsim",!0),_(T,ge,W,"\u2A89","\\lnapprox",!0),_(T,ge,W,"\u2280","\\nprec",!0),_(T,ge,W,"\u22E0","\\npreceq",!0),_(T,ge,W,"\u22E8","\\precnsim",!0),_(T,ge,W,"\u2AB9","\\precnapprox",!0),_(T,ge,W,"\u2241","\\nsim",!0),_(T,ge,W,"\uE006","\\@nshortmid"),_(T,ge,W,"\u2224","\\nmid",!0),_(T,ge,W,"\u22AC","\\nvdash",!0),_(T,ge,W,"\u22AD","\\nvDash",!0),_(T,ge,W,"\u22EA","\\ntriangleleft"),_(T,ge,W,"\u22EC","\\ntrianglelefteq",!0),_(T,ge,W,"\u228A","\\subsetneq",!0),_(T,ge,W,"\uE01A","\\@varsubsetneq"),_(T,ge,W,"\u2ACB","\\subsetneqq",!0),_(T,ge,W,"\uE017","\\@varsubsetneqq"),_(T,ge,W,"\u226F","\\ngtr",!0),_(T,ge,W,"\uE00F","\\@ngeqslant"),_(T,ge,W,"\uE00E","\\@ngeqq"),_(T,ge,W,"\u2A88","\\gneq",!0),_(T,ge,W,"\u2269","\\gneqq",!0),_(T,ge,W,"\uE00D","\\@gvertneqq"),_(T,ge,W,"\u22E7","\\gnsim",!0),_(T,ge,W,"\u2A8A","\\gnapprox",!0),_(T,ge,W,"\u2281","\\nsucc",!0),_(T,ge,W,"\u22E1","\\nsucceq",!0),_(T,ge,W,"\u22E9","\\succnsim",!0),_(T,ge,W,"\u2ABA","\\succnapprox",!0),_(T,ge,W,"\u2246","\\ncong",!0),_(T,ge,W,"\uE007","\\@nshortparallel"),_(T,ge,W,"\u2226","\\nparallel",!0),_(T,ge,W,"\u22AF","\\nVDash",!0),_(T,ge,W,"\u22EB","\\ntriangleright"),_(T,ge,W,"\u22ED","\\ntrianglerighteq",!0),_(T,ge,W,"\uE018","\\@nsupseteqq"),_(T,ge,W,"\u228B","\\supsetneq",!0),_(T,ge,W,"\uE01B","\\@varsupsetneq"),_(T,ge,W,"\u2ACC","\\supsetneqq",!0),_(T,ge,W,"\uE019","\\@varsupsetneqq"),_(T,ge,W,"\u22AE","\\nVdash",!0),_(T,ge,W,"\u2AB5","\\precneqq",!0),_(T,ge,W,"\u2AB6","\\succneqq",!0),_(T,ge,W,"\uE016","\\@nsubseteqq"),_(T,ge,Te,"\u22B4","\\unlhd"),_(T,ge,Te,"\u22B5","\\unrhd"),_(T,ge,W,"\u219A","\\nleftarrow",!0),_(T,ge,W,"\u219B","\\nrightarrow",!0),_(T,ge,W,"\u21CD","\\nLeftarrow",!0),_(T,ge,W,"\u21CF","\\nRightarrow",!0),_(T,ge,W,"\u21AE","\\nleftrightarrow",!0),_(T,ge,W,"\u21CE","\\nLeftrightarrow",!0),_(T,ge,W,"\u25B3","\\vartriangle"),_(T,ge,Ae,"\u210F","\\hslash"),_(T,ge,Ae,"\u25BD","\\triangledown"),_(T,ge,Ae,"\u25CA","\\lozenge"),_(T,ge,Ae,"\u24C8","\\circledS"),_(T,ge,Ae,"\xAE","\\circledR"),_(qe,ge,Ae,"\xAE","\\circledR"),_(T,ge,Ae,"\u2221","\\measuredangle",!0),_(T,ge,Ae,"\u2204","\\nexists"),_(T,ge,Ae,"\u2127","\\mho"),_(T,ge,Ae,"\u2132","\\Finv",!0),_(T,ge,Ae,"\u2141","\\Game",!0),_(T,ge,Ae,"\u2035","\\backprime"),_(T,ge,Ae,"\u25B2","\\blacktriangle"),_(T,ge,Ae,"\u25BC","\\blacktriangledown"),_(T,ge,Ae,"\u25A0","\\blacksquare"),_(T,ge,Ae,"\u29EB","\\blacklozenge"),_(T,ge,Ae,"\u2605","\\bigstar"),_(T,ge,Ae,"\u2222","\\sphericalangle",!0),_(T,ge,Ae,"\u2201","\\complement",!0),_(T,ge,Ae,"\xF0","\\eth",!0),_(T,ge,Ae,"\u2571","\\diagup"),_(T,ge,Ae,"\u2572","\\diagdown"),_(T,ge,Ae,"\u25A1","\\square"),_(T,ge,Ae,"\u25A1","\\Box"),_(T,ge,Ae,"\u25CA","\\Diamond"),_(T,ge,Ae,"\xA5","\\yen",!0),_(qe,ge,Ae,"\xA5","\\yen",!0),_(T,ge,Ae,"\u2713","\\checkmark",!0),_(qe,ge,Ae,"\u2713","\\checkmark"),_(T,ge,Ae,"\u2136","\\beth",!0),_(T,ge,Ae,"\u2138","\\daleth",!0),_(T,ge,Ae,"\u2137","\\gimel",!0),_(T,ge,Ae,"\u03DD","\\digamma",!0),_(T,ge,Ae,"\u03F0","\\varkappa"),_(T,ge,Ee,"\u250C","\\ulcorner",!0),_(T,ge,He,"\u2510","\\urcorner",!0),_(T,ge,Ee,"\u2514","\\llcorner",!0),_(T,ge,He,"\u2518","\\lrcorner",!0),_(T,ge,W,"\u2266","\\leqq",!0),_(T,ge,W,"\u2A7D","\\leqslant",!0),_(T,ge,W,"\u2A95","\\eqslantless",!0),_(T,ge,W,"\u2272","\\lesssim",!0),_(T,ge,W,"\u2A85","\\lessapprox",!0),_(T,ge,W,"\u224A","\\approxeq",!0),_(T,ge,Te,"\u22D6","\\lessdot"),_(T,ge,W,"\u22D8","\\lll",!0),_(T,ge,W,"\u2276","\\lessgtr",!0),_(T,ge,W,"\u22DA","\\lesseqgtr",!0),_(T,ge,W,"\u2A8B","\\lesseqqgtr",!0),_(T,ge,W,"\u2251","\\doteqdot"),_(T,ge,W,"\u2253","\\risingdotseq",!0),_(T,ge,W,"\u2252","\\fallingdotseq",!0),_(T,ge,W,"\u223D","\\backsim",!0),_(T,ge,W,"\u22CD","\\backsimeq",!0),_(T,ge,W,"\u2AC5","\\subseteqq",!0),_(T,ge,W,"\u22D0","\\Subset",!0),_(T,ge,W,"\u228F","\\sqsubset",!0),_(T,ge,W,"\u227C","\\preccurlyeq",!0),_(T,ge,W,"\u22DE","\\curlyeqprec",!0),_(T,ge,W,"\u227E","\\precsim",!0),_(T,ge,W,"\u2AB7","\\precapprox",!0),_(T,ge,W,"\u22B2","\\vartriangleleft"),_(T,ge,W,"\u22B4","\\trianglelefteq"),_(T,ge,W,"\u22A8","\\vDash",!0),_(T,ge,W,"\u22AA","\\Vvdash",!0),_(T,ge,W,"\u2323","\\smallsmile"),_(T,ge,W,"\u2322","\\smallfrown"),_(T,ge,W,"\u224F","\\bumpeq",!0),_(T,ge,W,"\u224E","\\Bumpeq",!0),_(T,ge,W,"\u2267","\\geqq",!0),_(T,ge,W,"\u2A7E","\\geqslant",!0),_(T,ge,W,"\u2A96","\\eqslantgtr",!0),_(T,ge,W,"\u2273","\\gtrsim",!0),_(T,ge,W,"\u2A86","\\gtrapprox",!0),_(T,ge,Te,"\u22D7","\\gtrdot"),_(T,ge,W,"\u22D9","\\ggg",!0),_(T,ge,W,"\u2277","\\gtrless",!0),_(T,ge,W,"\u22DB","\\gtreqless",!0),_(T,ge,W,"\u2A8C","\\gtreqqless",!0),_(T,ge,W,"\u2256","\\eqcirc",!0),_(T,ge,W,"\u2257","\\circeq",!0),_(T,ge,W,"\u225C","\\triangleq",!0),_(T,ge,W,"\u223C","\\thicksim"),_(T,ge,W,"\u2248","\\thickapprox"),_(T,ge,W,"\u2AC6","\\supseteqq",!0),_(T,ge,W,"\u22D1","\\Supset",!0),_(T,ge,W,"\u2290","\\sqsupset",!0),_(T,ge,W,"\u227D","\\succcurlyeq",!0),_(T,ge,W,"\u22DF","\\curlyeqsucc",!0),_(T,ge,W,"\u227F","\\succsim",!0),_(T,ge,W,"\u2AB8","\\succapprox",!0),_(T,ge,W,"\u22B3","\\vartriangleright"),_(T,ge,W,"\u22B5","\\trianglerighteq"),_(T,ge,W,"\u22A9","\\Vdash",!0),_(T,ge,W,"\u2223","\\shortmid"),_(T,ge,W,"\u2225","\\shortparallel"),_(T,ge,W,"\u226C","\\between",!0),_(T,ge,W,"\u22D4","\\pitchfork",!0),_(T,ge,W,"\u221D","\\varpropto"),_(T,ge,W,"\u25C0","\\blacktriangleleft"),_(T,ge,W,"\u2234","\\therefore",!0),_(T,ge,W,"\u220D","\\backepsilon"),_(T,ge,W,"\u25B6","\\blacktriangleright"),_(T,ge,W,"\u2235","\\because",!0),_(T,ge,W,"\u22D8","\\llless"),_(T,ge,W,"\u22D9","\\gggtr"),_(T,ge,Te,"\u22B2","\\lhd"),_(T,ge,Te,"\u22B3","\\rhd"),_(T,ge,W,"\u2242","\\eqsim",!0),_(T,G,W,"\u22C8","\\Join"),_(T,ge,W,"\u2251","\\Doteq",!0),_(T,ge,Te,"\u2214","\\dotplus",!0),_(T,ge,Te,"\u2216","\\smallsetminus"),_(T,ge,Te,"\u22D2","\\Cap",!0),_(T,ge,Te,"\u22D3","\\Cup",!0),_(T,ge,Te,"\u2A5E","\\doublebarwedge",!0),_(T,ge,Te,"\u229F","\\boxminus",!0),_(T,ge,Te,"\u229E","\\boxplus",!0),_(T,ge,Te,"\u22C7","\\divideontimes",!0),_(T,ge,Te,"\u22C9","\\ltimes",!0),_(T,ge,Te,"\u22CA","\\rtimes",!0),_(T,ge,Te,"\u22CB","\\leftthreetimes",!0),_(T,ge,Te,"\u22CC","\\rightthreetimes",!0),_(T,ge,Te,"\u22CF","\\curlywedge",!0),_(T,ge,Te,"\u22CE","\\curlyvee",!0),_(T,ge,Te,"\u229D","\\circleddash",!0),_(T,ge,Te,"\u229B","\\circledast",!0),_(T,ge,Te,"\u22C5","\\centerdot"),_(T,ge,Te,"\u22BA","\\intercal",!0),_(T,ge,Te,"\u22D2","\\doublecap"),_(T,ge,Te,"\u22D3","\\doublecup"),_(T,ge,Te,"\u22A0","\\boxtimes",!0),_(T,ge,W,"\u21E2","\\dashrightarrow",!0),_(T,ge,W,"\u21E0","\\dashleftarrow",!0),_(T,ge,W,"\u21C7","\\leftleftarrows",!0),_(T,ge,W,"\u21C6","\\leftrightarrows",!0),_(T,ge,W,"\u21DA","\\Lleftarrow",!0),_(T,ge,W,"\u219E","\\twoheadleftarrow",!0),_(T,ge,W,"\u21A2","\\leftarrowtail",!0),_(T,ge,W,"\u21AB","\\looparrowleft",!0),_(T,ge,W,"\u21CB","\\leftrightharpoons",!0),_(T,ge,W,"\u21B6","\\curvearrowleft",!0),_(T,ge,W,"\u21BA","\\circlearrowleft",!0),_(T,ge,W,"\u21B0","\\Lsh",!0),_(T,ge,W,"\u21C8","\\upuparrows",!0),_(T,ge,W,"\u21BF","\\upharpoonleft",!0),_(T,ge,W,"\u21C3","\\downharpoonleft",!0),_(T,ge,W,"\u22B8","\\multimap",!0),_(T,ge,W,"\u21AD","\\leftrightsquigarrow",!0),_(T,ge,W,"\u21C9","\\rightrightarrows",!0),_(T,ge,W,"\u21C4","\\rightleftarrows",!0),_(T,ge,W,"\u21A0","\\twoheadrightarrow",!0),_(T,ge,W,"\u21A3","\\rightarrowtail",!0),_(T,ge,W,"\u21AC","\\looparrowright",!0),_(T,ge,W,"\u21B7","\\curvearrowright",!0),_(T,ge,W,"\u21BB","\\circlearrowright",!0),_(T,ge,W,"\u21B1","\\Rsh",!0),_(T,ge,W,"\u21CA","\\downdownarrows",!0),_(T,ge,W,"\u21BE","\\upharpoonright",!0),_(T,ge,W,"\u21C2","\\downharpoonright",!0),_(T,ge,W,"\u21DD","\\rightsquigarrow",!0),_(T,ge,W,"\u21DD","\\leadsto"),_(T,ge,W,"\u21DB","\\Rrightarrow",!0),_(T,ge,W,"\u21BE","\\restriction"),_(T,G,Ae,"\u2018","`"),_(T,G,Ae,"$","\\$"),_(qe,G,Ae,"$","\\$"),_(qe,G,Ae,"$","\\textdollar"),_(T,G,Ae,"%","\\%"),_(qe,G,Ae,"%","\\%"),_(T,G,Ae,"_","\\_"),_(qe,G,Ae,"_","\\_"),_(qe,G,Ae,"_","\\textunderscore"),_(T,G,Ae,"\u2220","\\angle",!0),_(T,G,Ae,"\u221E","\\infty",!0),_(T,G,Ae,"\u2032","\\prime"),_(T,G,Ae,"\u25B3","\\triangle"),_(T,G,Ae,"\u0393","\\Gamma",!0),_(T,G,Ae,"\u0394","\\Delta",!0),_(T,G,Ae,"\u0398","\\Theta",!0),_(T,G,Ae,"\u039B","\\Lambda",!0),_(T,G,Ae,"\u039E","\\Xi",!0),_(T,G,Ae,"\u03A0","\\Pi",!0),_(T,G,Ae,"\u03A3","\\Sigma",!0),_(T,G,Ae,"\u03A5","\\Upsilon",!0),_(T,G,Ae,"\u03A6","\\Phi",!0),_(T,G,Ae,"\u03A8","\\Psi",!0),_(T,G,Ae,"\u03A9","\\Omega",!0),_(T,G,Ae,"A","\u0391"),_(T,G,Ae,"B","\u0392"),_(T,G,Ae,"E","\u0395"),_(T,G,Ae,"Z","\u0396"),_(T,G,Ae,"H","\u0397"),_(T,G,Ae,"I","\u0399"),_(T,G,Ae,"K","\u039A"),_(T,G,Ae,"M","\u039C"),_(T,G,Ae,"N","\u039D"),_(T,G,Ae,"O","\u039F"),_(T,G,Ae,"P","\u03A1"),_(T,G,Ae,"T","\u03A4"),_(T,G,Ae,"X","\u03A7"),_(T,G,Ae,"\xAC","\\neg",!0),_(T,G,Ae,"\xAC","\\lnot"),_(T,G,Ae,"\u22A4","\\top"),_(T,G,Ae,"\u22A5","\\bot"),_(T,G,Ae,"\u2205","\\emptyset"),_(T,ge,Ae,"\u2205","\\varnothing"),_(T,G,Y,"\u03B1","\\alpha",!0),_(T,G,Y,"\u03B2","\\beta",!0),_(T,G,Y,"\u03B3","\\gamma",!0),_(T,G,Y,"\u03B4","\\delta",!0),_(T,G,Y,"\u03F5","\\epsilon",!0),_(T,G,Y,"\u03B6","\\zeta",!0),_(T,G,Y,"\u03B7","\\eta",!0),_(T,G,Y,"\u03B8","\\theta",!0),_(T,G,Y,"\u03B9","\\iota",!0),_(T,G,Y,"\u03BA","\\kappa",!0),_(T,G,Y,"\u03BB","\\lambda",!0),_(T,G,Y,"\u03BC","\\mu",!0),_(T,G,Y,"\u03BD","\\nu",!0),_(T,G,Y,"\u03BE","\\xi",!0),_(T,G,Y,"\u03BF","\\omicron",!0),_(T,G,Y,"\u03C0","\\pi",!0),_(T,G,Y,"\u03C1","\\rho",!0),_(T,G,Y,"\u03C3","\\sigma",!0),_(T,G,Y,"\u03C4","\\tau",!0),_(T,G,Y,"\u03C5","\\upsilon",!0),_(T,G,Y,"\u03D5","\\phi",!0),_(T,G,Y,"\u03C7","\\chi",!0),_(T,G,Y,"\u03C8","\\psi",!0),_(T,G,Y,"\u03C9","\\omega",!0),_(T,G,Y,"\u03B5","\\varepsilon",!0),_(T,G,Y,"\u03D1","\\vartheta",!0),_(T,G,Y,"\u03D6","\\varpi",!0),_(T,G,Y,"\u03F1","\\varrho",!0),_(T,G,Y,"\u03C2","\\varsigma",!0),_(T,G,Y,"\u03C6","\\varphi",!0),_(T,G,Te,"\u2217","*"),_(T,G,Te,"+","+"),_(T,G,Te,"\u2212","-"),_(T,G,Te,"\u22C5","\\cdot",!0),_(T,G,Te,"\u2218","\\circ"),_(T,G,Te,"\xF7","\\div",!0),_(T,G,Te,"\xB1","\\pm",!0),_(T,G,Te,"\xD7","\\times",!0),_(T,G,Te,"\u2229","\\cap",!0),_(T,G,Te,"\u222A","\\cup",!0),_(T,G,Te,"\u2216","\\setminus"),_(T,G,Te,"\u2227","\\land"),_(T,G,Te,"\u2228","\\lor"),_(T,G,Te,"\u2227","\\wedge",!0),_(T,G,Te,"\u2228","\\vee",!0),_(T,G,Ae,"\u221A","\\surd"),_(T,G,Ee,"(","("),_(T,G,Ee,"[","["),_(T,G,Ee,"\u27E8","\\langle",!0),_(T,G,Ee,"\u2223","\\lvert"),_(T,G,Ee,"\u2225","\\lVert"),_(T,G,He,")",")"),_(T,G,He,"]","]"),_(T,G,He,"?","?"),_(T,G,He,"!","!"),_(T,G,He,"\u27E9","\\rangle",!0),_(T,G,He,"\u2223","\\rvert"),_(T,G,He,"\u2225","\\rVert"),_(T,G,W,"=","="),_(T,G,W,"<","<"),_(T,G,W,">",">"),_(T,G,W,":",":"),_(T,G,W,"\u2248","\\approx",!0),_(T,G,W,"\u2245","\\cong",!0),_(T,G,W,"\u2265","\\ge"),_(T,G,W,"\u2265","\\geq",!0),_(T,G,W,"\u2190","\\gets"),_(T,G,W,">","\\gt"),_(T,G,W,"\u2208","\\in",!0),_(T,G,W,"\uE020","\\@not"),_(T,G,W,"\u2282","\\subset",!0),_(T,G,W,"\u2283","\\supset",!0),_(T,G,W,"\u2286","\\subseteq",!0),_(T,G,W,"\u2287","\\supseteq",!0),_(T,ge,W,"\u2288","\\nsubseteq",!0),_(T,ge,W,"\u2289","\\nsupseteq",!0),_(T,G,W,"\u22A8","\\models"),_(T,G,W,"\u2190","\\leftarrow",!0),_(T,G,W,"\u2264","\\le"),_(T,G,W,"\u2264","\\leq",!0),_(T,G,W,"<","\\lt"),_(T,G,W,"\u2192","\\rightarrow",!0),_(T,G,W,"\u2192","\\to"),_(T,ge,W,"\u2271","\\ngeq",!0),_(T,ge,W,"\u2270","\\nleq",!0),_(T,G,bt,"\xA0","\\ "),_(T,G,bt,"\xA0","~"),_(T,G,bt,"\xA0","\\space"),_(T,G,bt,"\xA0","\\nobreakspace"),_(qe,G,bt,"\xA0","\\ "),_(qe,G,bt,"\xA0","~"),_(qe,G,bt,"\xA0","\\space"),_(qe,G,bt,"\xA0","\\nobreakspace"),_(T,G,bt,null,"\\nobreak"),_(T,G,bt,null,"\\allowbreak"),_(T,G,ze,",",","),_(T,G,ze,";",";"),_(T,ge,Te,"\u22BC","\\barwedge",!0),_(T,ge,Te,"\u22BB","\\veebar",!0),_(T,G,Te,"\u2299","\\odot",!0),_(T,G,Te,"\u2295","\\oplus",!0),_(T,G,Te,"\u2297","\\otimes",!0),_(T,G,Ae,"\u2202","\\partial",!0),_(T,G,Te,"\u2298","\\oslash",!0),_(T,ge,Te,"\u229A","\\circledcirc",!0),_(T,ge,Te,"\u22A1","\\boxdot",!0),_(T,G,Te,"\u25B3","\\bigtriangleup"),_(T,G,Te,"\u25BD","\\bigtriangledown"),_(T,G,Te,"\u2020","\\dagger"),_(T,G,Te,"\u22C4","\\diamond"),_(T,G,Te,"\u22C6","\\star"),_(T,G,Te,"\u25C3","\\triangleleft"),_(T,G,Te,"\u25B9","\\triangleright"),_(T,G,Ee,"{","\\{"),_(qe,G,Ae,"{","\\{"),_(qe,G,Ae,"{","\\textbraceleft"),_(T,G,He,"}","\\}"),_(qe,G,Ae,"}","\\}"),_(qe,G,Ae,"}","\\textbraceright"),_(T,G,Ee,"{","\\lbrace"),_(T,G,He,"}","\\rbrace"),_(T,G,Ee,"[","\\lbrack"),_(qe,G,Ae,"[","\\lbrack"),_(T,G,He,"]","\\rbrack"),_(qe,G,Ae,"]","\\rbrack"),_(T,G,Ee,"(","\\lparen"),_(T,G,He,")","\\rparen"),_(qe,G,Ae,"<","\\textless"),_(qe,G,Ae,">","\\textgreater"),_(T,G,Ee,"\u230A","\\lfloor",!0),_(T,G,He,"\u230B","\\rfloor",!0),_(T,G,Ee,"\u2308","\\lceil",!0),_(T,G,He,"\u2309","\\rceil",!0),_(T,G,Ae,"\\","\\backslash"),_(T,G,Ae,"\u2223","|"),_(T,G,Ae,"\u2223","\\vert"),_(qe,G,Ae,"|","\\textbar"),_(T,G,Ae,"\u2225","\\|"),_(T,G,Ae,"\u2225","\\Vert"),_(qe,G,Ae,"\u2225","\\textbardbl"),_(qe,G,Ae,"~","\\textasciitilde"),_(qe,G,Ae,"\\","\\textbackslash"),_(qe,G,Ae,"^","\\textasciicircum"),_(T,G,W,"\u2191","\\uparrow",!0),_(T,G,W,"\u21D1","\\Uparrow",!0),_(T,G,W,"\u2193","\\downarrow",!0),_(T,G,W,"\u21D3","\\Downarrow",!0),_(T,G,W,"\u2195","\\updownarrow",!0),_(T,G,W,"\u21D5","\\Updownarrow",!0),_(T,G,ce,"\u2210","\\coprod"),_(T,G,ce,"\u22C1","\\bigvee"),_(T,G,ce,"\u22C0","\\bigwedge"),_(T,G,ce,"\u2A04","\\biguplus"),_(T,G,ce,"\u22C2","\\bigcap"),_(T,G,ce,"\u22C3","\\bigcup"),_(T,G,ce,"\u222B","\\int"),_(T,G,ce,"\u222B","\\intop"),_(T,G,ce,"\u222C","\\iint"),_(T,G,ce,"\u222D","\\iiint"),_(T,G,ce,"\u220F","\\prod"),_(T,G,ce,"\u2211","\\sum"),_(T,G,ce,"\u2A02","\\bigotimes"),_(T,G,ce,"\u2A01","\\bigoplus"),_(T,G,ce,"\u2A00","\\bigodot"),_(T,G,ce,"\u222E","\\oint"),_(T,G,ce,"\u222F","\\oiint"),_(T,G,ce,"\u2230","\\oiiint"),_(T,G,ce,"\u2A06","\\bigsqcup"),_(T,G,ce,"\u222B","\\smallint"),_(qe,G,Ze,"\u2026","\\textellipsis"),_(T,G,Ze,"\u2026","\\mathellipsis"),_(qe,G,Ze,"\u2026","\\ldots",!0),_(T,G,Ze,"\u2026","\\ldots",!0),_(T,G,Ze,"\u22EF","\\@cdots",!0),_(T,G,Ze,"\u22F1","\\ddots",!0),_(T,G,Ae,"\u22EE","\\varvdots"),_(T,G,Nt,"\u02CA","\\acute"),_(T,G,Nt,"\u02CB","\\grave"),_(T,G,Nt,"\xA8","\\ddot"),_(T,G,Nt,"~","\\tilde"),_(T,G,Nt,"\u02C9","\\bar"),_(T,G,Nt,"\u02D8","\\breve"),_(T,G,Nt,"\u02C7","\\check"),_(T,G,Nt,"^","\\hat"),_(T,G,Nt,"\u20D7","\\vec"),_(T,G,Nt,"\u02D9","\\dot"),_(T,G,Nt,"\u02DA","\\mathring"),_(T,G,Y,"\u0131","\\imath",!0),_(T,G,Y,"\u0237","\\jmath",!0),_(qe,G,Ae,"\u0131","\\i",!0),_(qe,G,Ae,"\u0237","\\j",!0),_(qe,G,Ae,"\xDF","\\ss",!0),_(qe,G,Ae,"\xE6","\\ae",!0),_(qe,G,Ae,"\xE6","\\ae",!0),_(qe,G,Ae,"\u0153","\\oe",!0),_(qe,G,Ae,"\xF8","\\o",!0),_(qe,G,Ae,"\xC6","\\AE",!0),_(qe,G,Ae,"\u0152","\\OE",!0),_(qe,G,Ae,"\xD8","\\O",!0),_(qe,G,Nt,"\u02CA","\\'"),_(qe,G,Nt,"\u02CB","\\`"),_(qe,G,Nt,"\u02C6","\\^"),_(qe,G,Nt,"\u02DC","\\~"),_(qe,G,Nt,"\u02C9","\\="),_(qe,G,Nt,"\u02D8","\\u"),_(qe,G,Nt,"\u02D9","\\."),_(qe,G,Nt,"\u02DA","\\r"),_(qe,G,Nt,"\u02C7","\\v"),_(qe,G,Nt,"\xA8",'\\"'),_(qe,G,Nt,"\u02DD","\\H"),_(qe,G,Nt,"\u25EF","\\textcircled");var Dt={"--":!0,"---":!0,"``":!0,"''":!0};_(qe,G,Ae,"\u2013","--"),_(qe,G,Ae,"\u2013","\\textendash"),_(qe,G,Ae,"\u2014","---"),_(qe,G,Ae,"\u2014","\\textemdash"),_(qe,G,Ae,"\u2018","`"),_(qe,G,Ae,"\u2018","\\textquoteleft"),_(qe,G,Ae,"\u2019","'"),_(qe,G,Ae,"\u2019","\\textquoteright"),_(qe,G,Ae,"\u201C","``"),_(qe,G,Ae,"\u201C","\\textquotedblleft"),_(qe,G,Ae,"\u201D","''"),_(qe,G,Ae,"\u201D","\\textquotedblright"),_(T,G,Ae,"\xB0","\\degree",!0),_(qe,G,Ae,"\xB0","\\degree"),_(qe,G,Ae,"\xB0","\\textdegree",!0),_(T,G,Y,"\xA3","\\pounds"),_(T,G,Y,"\xA3","\\mathsterling",!0),_(qe,G,Y,"\xA3","\\pounds"),_(qe,G,Y,"\xA3","\\textsterling",!0),_(T,ge,Ae,"\u2720","\\maltese"),_(qe,ge,Ae,"\u2720","\\maltese"),_(qe,G,bt,"\xA0","\\ "),_(qe,G,bt,"\xA0"," "),_(qe,G,bt,"\xA0","~");for(var Ht='0123456789/@."',Xt=0;Xt<Ht.length;Xt++){var mr=Ht.charAt(Xt);_(T,G,Ae,mr,mr)}for(var Bt='0123456789!@*()-=+[]<>|";:?/.,',Ft=0;Ft<Bt.length;Ft++){var fr=Bt.charAt(Ft);_(qe,G,Ae,fr,fr)}for(var Br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ur=0;Ur<Br.length;Ur++){var kr=Br.charAt(Ur);_(T,G,Y,kr,kr),_(qe,G,Ae,kr,kr)}_(T,ge,Ae,"C","\u2102"),_(qe,ge,Ae,"C","\u2102"),_(T,ge,Ae,"H","\u210D"),_(qe,ge,Ae,"H","\u210D"),_(T,ge,Ae,"N","\u2115"),_(qe,ge,Ae,"N","\u2115"),_(T,ge,Ae,"P","\u2119"),_(qe,ge,Ae,"P","\u2119"),_(T,ge,Ae,"Q","\u211A"),_(qe,ge,Ae,"Q","\u211A"),_(T,ge,Ae,"R","\u211D"),_(qe,ge,Ae,"R","\u211D"),_(T,ge,Ae,"Z","\u2124"),_(qe,ge,Ae,"Z","\u2124"),_(T,G,Y,"h","\u210E"),_(qe,G,Y,"h","\u210E");for(var Kt="",lr=0;lr<Br.length;lr++){var br=Br.charAt(lr);Kt=String.fromCharCode(55349,56320+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56372+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56424+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56580+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56736+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56788+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56840+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56944+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),lr<26&&(Kt=String.fromCharCode(55349,56632+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt),Kt=String.fromCharCode(55349,56476+lr),_(T,G,Y,br,Kt),_(qe,G,Ae,br,Kt))}Kt="\u{1D55C}",_(T,G,Y,"k",Kt),_(qe,G,Ae,"k",Kt);for(var Vr=0;Vr<10;Vr++){var Lr=Vr.toString();Kt=String.fromCharCode(55349,57294+Vr),_(T,G,Y,Lr,Kt),_(qe,G,Ae,Lr,Kt),Kt=String.fromCharCode(55349,57314+Vr),_(T,G,Y,Lr,Kt),_(qe,G,Ae,Lr,Kt),Kt=String.fromCharCode(55349,57324+Vr),_(T,G,Y,Lr,Kt),_(qe,G,Ae,Lr,Kt),Kt=String.fromCharCode(55349,57334+Vr),_(T,G,Y,Lr,Kt),_(qe,G,Ae,Lr,Kt)}for(var Yr="\xC7\xD0\xDE\xE7\xFE",xr=0;xr<Yr.length;xr++){var kn=Yr.charAt(xr);_(T,G,Y,kn,kn),_(qe,G,Ae,kn,kn)}_(qe,G,Ae,"\xF0","\xF0"),_(qe,G,Ae,"\u2013","\u2013"),_(qe,G,Ae,"\u2014","\u2014"),_(qe,G,Ae,"\u2018","\u2018"),_(qe,G,Ae,"\u2019","\u2019"),_(qe,G,Ae,"\u201C","\u201C"),_(qe,G,Ae,"\u201D","\u201D");var sn=[["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"]],Ut=function(l,h){var d=l.charCodeAt(0),p=l.charCodeAt(1),C=(d-55296)*1024+(p-56320)+65536,B=h==="math"?0:1;if(119808<=C&&C<120484){var fe=Math.floor((C-119808)/26);return[sn[fe][2],sn[fe][B]]}else if(120782<=C&&C<=120831){var Se=Math.floor((C-120782)/10);return[Gt[Se][2],Gt[Se][B]]}else{if(C===120485||C===120486)return[sn[0][2],sn[0][B]];if(120486<C&&C<120782)return["",""];throw new ee("Unsupported character: "+l)}},pr=[[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]],Hr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],gr=function(l,h){return h.size<2?l:pr[l-1][h.size-1]},rn=function(){function F(h){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=h.style,this.color=h.color,this.size=h.size||F.BASESIZE,this.textSize=h.textSize||this.size,this.phantom=!!h.phantom,this.font=h.font||"",this.fontFamily=h.fontFamily||"",this.fontWeight=h.fontWeight||"",this.fontShape=h.fontShape||"",this.sizeMultiplier=Hr[this.size-1],this.maxSize=h.maxSize,this.minRuleThickness=h.minRuleThickness,this._fontMetrics=void 0}var l=F.prototype;return l.extend=function(d){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 C in d)d.hasOwnProperty(C)&&(p[C]=d[C]);return new F(p)},l.havingStyle=function(d){return this.style===d?this:this.extend({style:d,size:gr(this.textSize,d)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(d){return this.size===d&&this.textSize===d?this:this.extend({style:this.style.text(),size:d,textSize:d,sizeMultiplier:Hr[d-1]})},l.havingBaseStyle=function(d){d=d||this.style.text();var p=gr(F.BASESIZE,d);return this.size===p&&this.textSize===F.BASESIZE&&this.style===d?this:this.extend({style:d,size:p})},l.havingBaseSizing=function(){var d;switch(this.style.id){case 4:case 5:d=3;break;case 6:case 7:d=1;break;default:d=6}return this.extend({style:this.style.text(),size:d})},l.withColor=function(d){return this.extend({color:d})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(d){return this.extend({font:d})},l.withTextFontFamily=function(d){return this.extend({fontFamily:d,font:""})},l.withTextFontWeight=function(d){return this.extend({fontWeight:d,font:""})},l.withTextFontShape=function(d){return this.extend({fontShape:d,font:""})},l.sizingClasses=function(d){return d.size!==this.size?["sizing","reset-size"+d.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==F.BASESIZE?["sizing","reset-size"+this.size,"size"+F.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ke(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},F}();rn.BASESIZE=6;var Wn=rn,Qr={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},rr={ex:!0,em:!0,mu:!0},it=function(l){return typeof l!="string"&&(l=l.unit),l in Qr||l in rr||l==="ex"},st=function(l,h){var d;if(l.unit in Qr)d=Qr[l.unit]/h.fontMetrics().ptPerEm/h.sizeMultiplier;else if(l.unit==="mu")d=h.fontMetrics().cssEmPerMu;else{var p;if(h.style.isTight()?p=h.havingStyle(h.style.text()):p=h,l.unit==="ex")d=p.fontMetrics().xHeight;else if(l.unit==="em")d=p.fontMetrics().quad;else throw new ee("Invalid unit: '"+l.unit+"'");p!==h&&(d*=p.sizeMultiplier/h.sizeMultiplier)}return Math.min(l.number*d,h.maxSize)},gt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],St=function(l,h,d){return ot[d][l]&&ot[d][l].replace&&(l=ot[d][l].replace),{value:l,metrics:Re(l,h,d)}},mt=function(l,h,d,p,C){var B=St(l,h,d),fe=B.metrics;l=B.value;var Se;if(fe){var Fe=fe.italic;(d==="text"||p&&p.font==="mathit")&&(Fe=0),Se=new ae(l,fe.height,fe.depth,Fe,fe.skew,fe.width,C)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+h+"' and mode '"+d+"'")),Se=new ae(l,0,0,0,0,0,C);if(p){Se.maxFontSize=p.sizeMultiplier,p.style.isTight()&&Se.classes.push("mtight");var Je=p.getColor();Je&&(Se.style.color=Je)}return Se},wt=function(l,h,d,p){return p===void 0&&(p=[]),d.font==="boldsymbol"&&St(l,"Main-Bold",h).metrics?mt(l,"Main-Bold",h,d,p.concat(["mathbf"])):l==="\\"||ot[h][l].font==="main"?mt(l,"Main-Regular",h,d,p):mt(l,"AMS-Regular",h,d,p.concat(["amsrm"]))},_t=function(l,h,d,p){return/[0-9]/.test(l.charAt(0))||k.contains(gt,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Yt=function(l,h,d,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"}},ir=function(l,h,d,p){return St(l,"Math-BoldItalic",h).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Qt=function(l,h,d){var p=l.mode,C=l.text,B=["mord"],fe=p==="math"||p==="text"&&h.font,Se=fe?h.font:h.fontFamily;if(C.charCodeAt(0)===55349){var Fe=Ut(C,p),Je=Fe[0],ct=Fe[1];return mt(C,Je,p,h,B.concat(ct))}else if(Se){var vt,kt;if(Se==="boldsymbol"||Se==="mathnormal"){var zt=Se==="boldsymbol"?ir(C,p,h,B):Yt(C,p,h,B);vt=zt.fontName,kt=[zt.fontClass]}else k.contains(gt,C)?(vt="Main-Italic",kt=["mathit"]):fe?(vt=fn[Se].fontName,kt=[Se]):(vt=$r(Se,h.fontWeight,h.fontShape),kt=[Se,h.fontWeight,h.fontShape]);if(St(C,vt,p).metrics)return mt(C,vt,p,h,B.concat(kt));if(Dt.hasOwnProperty(C)&&vt.substr(0,10)==="Typewriter"){for(var qt=[],hr=0;hr<C.length;hr++)qt.push(mt(C[hr],vt,p,h,B.concat(kt)));return Xr(qt)}}if(d==="mathord"){var Ar=_t(C,p,h,B);return mt(C,Ar.fontName,p,h,B.concat([Ar.fontClass]))}else if(d==="textord"){var Rr=ot[p][C]&&ot[p][C].font;if(Rr==="ams"){var Cr=$r("amsrm",h.fontWeight,h.fontShape);return mt(C,Cr,p,h,B.concat("amsrm",h.fontWeight,h.fontShape))}else if(Rr==="main"||!Rr){var mn=$r("textrm",h.fontWeight,h.fontShape);return mt(C,mn,p,h,B.concat(h.fontWeight,h.fontShape))}else{var gn=$r(Rr,h.fontWeight,h.fontShape);return mt(C,gn,p,h,B.concat(gn,h.fontWeight,h.fontShape))}}else throw new Error("unexpected type: "+d+" in makeOrd")},vr=function(l,h){if(Rt(l.classes)!==Rt(h.classes)||l.skew!==h.skew||l.maxFontSize!==h.maxFontSize)return!1;for(var d in l.style)if(l.style.hasOwnProperty(d)&&l.style[d]!==h.style[d])return!1;for(var p in h.style)if(h.style.hasOwnProperty(p)&&l.style[p]!==h.style[p])return!1;return!0},wr=function(l){for(var h=0;h<l.length-1;h++){var d=l[h],p=l[h+1];d instanceof ae&&p instanceof ae&&vr(d,p)&&(d.text+=p.text,d.height=Math.max(d.height,p.height),d.depth=Math.max(d.depth,p.depth),d.italic=p.italic,l.splice(h+1,1),h--)}return l},Sr=function(l){for(var h=0,d=0,p=0,C=0;C<l.children.length;C++){var B=l.children[C];B.height>h&&(h=B.height),B.depth>d&&(d=B.depth),B.maxFontSize>p&&(p=B.maxFontSize)}l.height=h,l.depth=d,l.maxFontSize=p},sr=function(l,h,d,p){var C=new J(l,h,d,p);return Sr(C),C},ar=function(l,h,d,p){return new J(l,h,d,p)},Wr=function(l,h,d){var p=sr([l],[],h);return p.height=Math.max(d||h.fontMetrics().defaultRuleThickness,h.minRuleThickness),p.style.borderBottomWidth=p.height+"em",p.maxFontSize=1,p},Er=function(l,h,d,p){var C=new Pe(l,h,d,p);return Sr(C),C},Xr=function(l){var h=new yt(l);return Sr(h),h},Fr=function(l,h){return l instanceof yt?sr([],[l],h):l},Or=function(l){if(l.positionType==="individualShift"){for(var h=l.children,d=[h[0]],p=-h[0].shift-h[0].elem.depth,C=p,B=1;B<h.length;B++){var fe=-h[B].shift-C-h[B].elem.depth,Se=fe-(h[B-1].elem.height+h[B-1].elem.depth);C=C+fe,d.push({type:"kern",size:Se}),d.push(h[B])}return{children:d,depth:p}}var Fe;if(l.positionType==="top"){for(var Je=l.positionData,ct=0;ct<l.children.length;ct++){var vt=l.children[ct];Je-=vt.type==="kern"?vt.size:vt.elem.height+vt.elem.depth}Fe=Je}else if(l.positionType==="bottom")Fe=-l.positionData;else{var kt=l.children[0];if(kt.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Fe=-kt.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Fe=-kt.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Fe}},Tr=function(l,h){for(var d=Or(l),p=d.children,C=d.depth,B=0,fe=0;fe<p.length;fe++){var Se=p[fe];if(Se.type==="elem"){var Fe=Se.elem;B=Math.max(B,Fe.maxFontSize,Fe.height)}}B+=2;var Je=sr(["pstrut"],[]);Je.style.height=B+"em";for(var ct=[],vt=C,kt=C,zt=C,qt=0;qt<p.length;qt++){var hr=p[qt];if(hr.type==="kern")zt+=hr.size;else{var Ar=hr.elem,Rr=hr.wrapperClasses||[],Cr=hr.wrapperStyle||{},mn=sr(Rr,[Je,Ar],void 0,Cr);mn.style.top=-B-zt-Ar.depth+"em",hr.marginLeft&&(mn.style.marginLeft=hr.marginLeft),hr.marginRight&&(mn.style.marginRight=hr.marginRight),ct.push(mn),zt+=Ar.height+Ar.depth}vt=Math.min(vt,zt),kt=Math.max(kt,zt)}var gn=sr(["vlist"],ct);gn.style.height=kt+"em";var Dn;if(vt<0){var In=sr([],[]),Fn=sr(["vlist"],[In]);Fn.style.height=-vt+"em";var si=sr(["vlist-s"],[new ae("\u200B")]);Dn=[sr(["vlist-r"],[gn,si]),sr(["vlist-r"],[Fn])]}else Dn=[sr(["vlist-r"],[gn])];var ri=sr(["vlist-t"],Dn);return Dn.length===2&&ri.classes.push("vlist-t2"),ri.height=kt,ri.depth=-vt,ri},Dr=function(l,h){var d=sr(["mspace"],[],h),p=st(l,h);return d.style.marginRight=p+"em",d},$r=function(l,h,d){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 C;return h==="textbf"&&d==="textit"?C="BoldItalic":h==="textbf"?C="Bold":h==="textit"?C="Italic":C="Regular",p+"-"+C},fn={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"}},Gr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Wt=function(l,h){var d=Gr[l],p=d[0],C=d[1],B=d[2],fe=new we(p),Se=new ve([fe],{width:C+"em",height:B+"em",style:"width:"+C+"em",viewBox:"0 0 "+1e3*C+" "+1e3*B,preserveAspectRatio:"xMinYMin"}),Fe=ar(["overlay"],[Se],h);return Fe.height=B,Fe.style.height=B+"em",Fe.style.width=C+"em",Fe},Ue={fontMap:fn,makeSymbol:mt,mathsym:wt,makeSpan:sr,makeSvgSpan:ar,makeLineSpan:Wr,makeAnchor:Er,makeFragment:Xr,wrapFragment:Fr,makeVList:Tr,makeOrd:Qt,makeGlue:Dr,staticSvg:Wt,svgData:Gr,tryCombineChars:wr};function jt(F,l){var h=Jt(F,l);if(!h)throw new Error("Expected node of type "+l+", but got "+(F?"node of type "+F.type:String(F)));return h}function Jt(F,l){return F&&F.type===l?F:null}function jr(F,l){var h=pn(F,l);if(!h)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(F?F.type==="atom"?"atom of family "+F.family:"node of type "+F.type:String(F)));return h}function pn(F,l){return F&&F.type==="atom"&&F.family===l?F:null}function En(F){var l=Tn(F);if(!l)throw new Error("Expected node of symbol group type, but got "+(F?"node of type "+F.type:String(F)));return l}function Tn(F){return F&&(F.type==="atom"||nt.hasOwnProperty(F.type))?F:null}var _r={number:3,unit:"mu"},vn={number:4,unit:"mu"},An={number:5,unit:"mu"},Jr={mord:{mop:_r,mbin:vn,mrel:An,minner:_r},mop:{mord:_r,mop:_r,mrel:An,minner:_r},mbin:{mord:vn,mop:vn,mopen:vn,minner:vn},mrel:{mord:An,mop:An,mopen:An,minner:An},mopen:{},mclose:{mop:_r,mbin:vn,mrel:An,minner:_r},mpunct:{mord:_r,mop:_r,mrel:An,mopen:_r,mclose:_r,mpunct:_r,minner:_r},minner:{mord:_r,mop:_r,mbin:vn,mrel:An,mopen:_r,mpunct:_r,minner:_r}},Rn={mord:{mop:_r},mop:{mord:_r,mop:_r},mbin:{},mrel:{},mopen:{},mclose:{mop:_r},mpunct:{},minner:{mop:_r}},di={},Un={},Yn={};function er(F){for(var l=F.type,h=F.names,d=F.props,p=F.handler,C=F.htmlBuilder,B=F.mathmlBuilder,fe={type:l,numArgs:d.numArgs,argTypes:d.argTypes,greediness:d.greediness===void 0?1:d.greediness,allowedInText:!!d.allowedInText,allowedInMath:d.allowedInMath===void 0?!0:d.allowedInMath,numOptionalArgs:d.numOptionalArgs||0,infix:!!d.infix,handler:p},Se=0;Se<h.length;++Se)di[h[Se]]=fe;l&&(C&&(Un[l]=C),B&&(Yn[l]=B))}function un(F){var l=F.type,h=F.htmlBuilder,d=F.mathmlBuilder;er({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:h,mathmlBuilder:d})}var en=function(l){var h=Jt(l,"ordgroup");return h?h.body:[l]},Ln=Ue.makeSpan,fi=["leftmost","mbin","mopen","mrel","mop","mpunct"],Xn=["rightmost","mrel","mclose","mpunct"],_n={display:m.DISPLAY,text:m.TEXT,script:m.SCRIPT,scriptscript:m.SCRIPTSCRIPT},On={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},an=function(l,h,d,p){p===void 0&&(p=[null,null]);for(var C=[],B=0;B<l.length;B++){var fe=Mr(l[B],h);if(fe instanceof yt){var Se=fe.children;C.push.apply(C,Se)}else C.push(fe)}if(!d)return C;var Fe=h;if(l.length===1){var Je=Jt(l[0],"sizing")||Jt(l[0],"styling");Je&&(Je.type==="sizing"?Fe=h.havingSize(Je.size):Je.type==="styling"&&(Fe=h.havingStyle(_n[Je.style])))}var ct=Ln([p[0]||"leftmost"],[],h),vt=Ln([p[1]||"rightmost"],[],h);return ti(C,function(kt,zt){var qt=zt.classes[0],hr=kt.classes[0];qt==="mbin"&&k.contains(Xn,hr)?zt.classes[0]="mord":hr==="mbin"&&k.contains(fi,qt)&&(kt.classes[0]="mord")},{node:ct},vt),ti(C,function(kt,zt){var qt=Gn(zt),hr=Gn(kt),Ar=qt&&hr?kt.hasClass("mtight")?Rn[qt][hr]:Jr[qt][hr]:null;if(Ar)return Ue.makeGlue(Ar,Fe)},{node:ct},vt),C},ti=function F(l,h,d,p){p&&l.push(p);for(var C=0;C<l.length;C++){var B=l[C],fe=Hn(B);if(fe){F(fe.children,h,d);continue}if(B.classes[0]!=="mspace"){var Se=h(B,d.node);Se&&(d.insertAfter?d.insertAfter(Se):(l.unshift(Se),C++)),d.node=B,d.insertAfter=function(Fe){return function(Je){l.splice(Fe+1,0,Je),C++}}(C)}}p&&l.pop()},Hn=function(l){return l instanceof yt||l instanceof Pe?l:null},li=function F(l,h){var d=Hn(l);if(d){var p=d.children;if(p.length){if(h==="right")return F(p[p.length-1],"right");if(h==="left")return F(p[0],"left")}}return l},Gn=function(l,h){return l?(h&&(l=li(l,h)),On[l.classes[0]]||null):null},qn=function(l,h){var d=["nulldelimiter"].concat(l.baseSizingClasses());return Ln(h.concat(d))},Mr=function(l,h,d){if(!l)return Ln();if(Un[l.type]){var p=Un[l.type](l,h);if(d&&h.size!==d.size){p=Ln(h.sizingClasses(d),[p],h);var C=h.sizeMultiplier/d.sizeMultiplier;p.height*=C,p.depth*=C}return p}else throw new ee("Got group of unknown type: '"+l.type+"'")};function ui(F,l){var h=Ln(["base"],F,l),d=Ln(["strut"]);return d.style.height=h.height+h.depth+"em",d.style.verticalAlign=-h.depth+"em",h.children.unshift(d),h}function xi(F,l){var h=null;F.length===1&&F[0].type==="tag"&&(h=F[0].tag,F=F[0].body);for(var d=an(F,l,!0),p=[],C=[],B=0;B<d.length;B++)if(C.push(d[B]),d[B].hasClass("mbin")||d[B].hasClass("mrel")||d[B].hasClass("allowbreak")){for(var fe=!1;B<d.length-1&&d[B+1].hasClass("mspace")&&!d[B+1].hasClass("newline");)B++,C.push(d[B]),d[B].hasClass("nobreak")&&(fe=!0);fe||(p.push(ui(C,l)),C=[])}else d[B].hasClass("newline")&&(C.pop(),C.length>0&&(p.push(ui(C,l)),C=[]),p.push(d[B]));C.length>0&&p.push(ui(C,l));var Se;h&&(Se=ui(an(h,l,!0)),Se.classes=["tag"],p.push(Se));var Fe=Ln(["katex-html"],p);if(Fe.setAttribute("aria-hidden","true"),Se){var Je=Se.children[0];Je.style.height=Fe.height+Fe.depth+"em",Je.style.verticalAlign=-Fe.depth+"em"}return Fe}function Ei(F){return new yt(F)}var yn=function(){function F(h,d){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=h,this.attributes={},this.children=d||[]}var l=F.prototype;return l.setAttribute=function(d,p){this.attributes[d]=p},l.getAttribute=function(d){return this.attributes[d]},l.toNode=function(){var d=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&d.setAttribute(p,this.attributes[p]);for(var C=0;C<this.children.length;C++)d.appendChild(this.children[C].toNode());return d},l.toMarkup=function(){var d="<"+this.type;for(var p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&(d+=" "+p+'="',d+=k.escape(this.attributes[p]),d+='"');d+=">";for(var C=0;C<this.children.length;C++)d+=this.children[C].toMarkup();return d+="</"+this.type+">",d},l.toText=function(){return this.children.map(function(d){return d.toText()}).join("")},F}(),_i=function(){function F(h){this.text=void 0,this.text=h}var l=F.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return k.escape(this.toText())},l.toText=function(){return this.text},F}(),wi=function(){function F(h){this.width=void 0,this.character=void 0,this.width=h,h>=.05555&&h<=.05556?this.character="\u200A":h>=.1666&&h<=.1667?this.character="\u2009":h>=.2222&&h<=.2223?this.character="\u2005":h>=.2777&&h<=.2778?this.character="\u2005\u200A":h>=-.05556&&h<=-.05555?this.character="\u200A\u2063":h>=-.1667&&h<=-.1666?this.character="\u2009\u2063":h>=-.2223&&h<=-.2222?this.character="\u205F\u2063":h>=-.2778&&h<=-.2777?this.character="\u2005\u2063":this.character=null}var l=F.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var d=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return d.setAttribute("width",this.width+"em"),d},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},F}(),$t={MathNode:yn,TextNode:_i,SpaceNode:wi,newDocumentFragment:Ei},jn=function(l,h,d){return ot[h][l]&&ot[h][l].replace&&l.charCodeAt(0)!==55349&&!(Dt.hasOwnProperty(l)&&d&&(d.fontFamily&&d.fontFamily.substr(4,2)==="tt"||d.font&&d.font.substr(4,2)==="tt"))&&(l=ot[h][l].replace),new $t.TextNode(l)},pi=function(l){return l.length===1?l[0]:new $t.MathNode("mrow",l)},ci=function(l,h){if(h.fontFamily==="texttt")return"monospace";if(h.fontFamily==="textsf")return h.fontShape==="textit"&&h.fontWeight==="textbf"?"sans-serif-bold-italic":h.fontShape==="textit"?"sans-serif-italic":h.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(h.fontShape==="textit"&&h.fontWeight==="textbf")return"bold-italic";if(h.fontShape==="textit")return"italic";if(h.fontWeight==="textbf")return"bold";var d=h.font;if(!d||d==="mathnormal")return null;var p=l.mode;if(d==="mathit")return"italic";if(d==="boldsymbol")return"bold-italic";if(d==="mathbf")return"bold";if(d==="mathbb")return"double-struck";if(d==="mathfrak")return"fraktur";if(d==="mathscr"||d==="mathcal")return"script";if(d==="mathsf")return"sans-serif";if(d==="mathtt")return"monospace";var C=l.text;if(k.contains(["\\imath","\\jmath"],C))return null;ot[p][C]&&ot[p][C].replace&&(C=ot[p][C].replace);var B=Ue.fontMap[d].fontName;return Re(C,B,p)?Ue.fontMap[d].variant:null},Pn=function(l,h,d){if(l.length===1){var p=zr(l[0],h);return d&&p instanceof yn&&p.type==="mo"&&(p.setAttribute("lspace","0em"),p.setAttribute("rspace","0em")),[p]}for(var C=[],B,fe=0;fe<l.length;fe++){var Se=zr(l[fe],h);if(Se instanceof yn&&B instanceof yn){if(Se.type==="mtext"&&B.type==="mtext"&&Se.getAttribute("mathvariant")===B.getAttribute("mathvariant")){var Fe;(Fe=B.children).push.apply(Fe,Se.children);continue}else if(Se.type==="mn"&&B.type==="mn"){var Je;(Je=B.children).push.apply(Je,Se.children);continue}else if(Se.type==="mi"&&Se.children.length===1&&B.type==="mn"){var ct=Se.children[0];if(ct instanceof _i&&ct.text==="."){var vt;(vt=B.children).push.apply(vt,Se.children);continue}}else if(B.type==="mi"&&B.children.length===1){var kt=B.children[0];if(kt instanceof _i&&kt.text==="\u0338"&&(Se.type==="mo"||Se.type==="mi"||Se.type==="mn")){var zt=Se.children[0];zt instanceof _i&&zt.text.length>0&&(zt.text=zt.text.slice(0,1)+"\u0338"+zt.text.slice(1),C.pop())}}}C.push(Se),B=Se}return C},bn=function(l,h,d){return pi(Pn(l,h,d))},zr=function(l,h){if(!l)return new $t.MathNode("mrow");if(Yn[l.type]){var d=Yn[l.type](l,h);return d}else throw new ee("Got group of unknown type: '"+l.type+"'")};function wn(F,l,h,d){var p=Pn(F,h),C;p.length===1&&p[0]instanceof yn&&k.contains(["mrow","mtable"],p[0].type)?C=p[0]:C=new $t.MathNode("mrow",p);var B=new $t.MathNode("annotation",[new $t.TextNode(l)]);B.setAttribute("encoding","application/x-tex");var fe=new $t.MathNode("semantics",[C,B]),Se=new $t.MathNode("math",[fe]);Se.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Fe=d?"katex":"katex-mathml";return Ue.makeSpan([Fe],[Se])}var Vn=function(l){return new Wn({style:l.displayMode?m.DISPLAY:m.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Qn=function(l,h){if(h.displayMode){var d=["katex-display"];h.leqno&&d.push("leqno"),h.fleqn&&d.push("fleqn"),l=Ue.makeSpan(d,[l])}return l},Mn=function(l,h,d){var p=Vn(d),C;if(d.output==="mathml")return wn(l,h,p,!0);if(d.output==="html"){var B=xi(l,p);C=Ue.makeSpan(["katex"],[B])}else{var fe=wn(l,h,p,!1),Se=xi(l,p);C=Ue.makeSpan(["katex"],[fe,Se])}return Qn(C,d)},Kn=function(l,h,d){var p=Vn(d),C=xi(l,p),B=Ue.makeSpan(["katex"],[C]);return Qn(B,d)},Ni=Mn,Gi={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"},Si=function(l){var h=new $t.MathNode("mo",[new $t.TextNode(Gi[l.substr(1)])]);return h.setAttribute("stretchy","true"),h},Yi={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]},ki=function(l){return l.type==="ordgroup"?l.body.length:1},Li=function(l,h){function d(){var Se=4e5,Fe=l.label.substr(1);if(k.contains(["widehat","widecheck","widetilde","utilde"],Fe)){var Je=l,ct=ki(Je.base),vt,kt,zt;if(ct>5)Fe==="widehat"||Fe==="widecheck"?(vt=420,Se=2364,zt=.42,kt=Fe+"4"):(vt=312,Se=2340,zt=.34,kt="tilde4");else{var qt=[1,1,2,2,3,3][ct];Fe==="widehat"||Fe==="widecheck"?(Se=[0,1062,2364,2364,2364][qt],vt=[0,239,300,360,420][qt],zt=[0,.24,.3,.3,.36,.42][qt],kt=Fe+qt):(Se=[0,600,1033,2339,2340][qt],vt=[0,260,286,306,312][qt],zt=[0,.26,.286,.3,.306,.34][qt],kt="tilde"+qt)}var hr=new we(kt),Ar=new ve([hr],{width:"100%",height:zt+"em",viewBox:"0 0 "+Se+" "+vt,preserveAspectRatio:"none"});return{span:Ue.makeSvgSpan([],[Ar],h),minWidth:0,height:zt}}else{var Rr=[],Cr=Yi[Fe],mn=Cr[0],gn=Cr[1],Dn=Cr[2],In=Dn/1e3,Fn=mn.length,si,ri;if(Fn===1){var hn=Cr[3];si=["hide-tail"],ri=[hn]}else if(Fn===2)si=["halfarrow-left","halfarrow-right"],ri=["xMinYMin","xMaxYMin"];else if(Fn===3)si=["brace-left","brace-center","brace-right"],ri=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
`+Fn+" children.");for(var Ci=0;Ci<Fn;Ci++){var Ui=new we(mn[Ci]),Ii=new ve([Ui],{width:"400em",height:In+"em",viewBox:"0 0 "+Se+" "+Dn,preserveAspectRatio:ri[Ci]+" slice"}),ai=Ue.makeSvgSpan([si[Ci]],[Ii],h);if(Fn===1)return{span:ai,minWidth:gn,height:In};ai.style.height=In+"em",Rr.push(ai)}return{span:Ue.makeSpan(["stretchy"],Rr,h),minWidth:gn,height:In}}}var p=d(),C=p.span,B=p.minWidth,fe=p.height;return C.height=fe,C.style.height=fe+"em",B>0&&(C.style.minWidth=B+"em"),C},or=function(l,h,d,p){var C,B=l.height+l.depth+2*d;if(/fbox|color/.test(h)){if(C=Ue.makeSpan(["stretchy",h],[],p),h==="fbox"){var fe=p.color&&p.getColor();fe&&(C.style.borderColor=fe)}}else{var Se=[];/^[bx]cancel$/.test(h)&&Se.push(new De({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(h)&&Se.push(new De({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Fe=new ve(Se,{width:"100%",height:B+"em"});C=Ue.makeSvgSpan([],[Fe],p)}return C.height=B,C.style.height=B+"em",C},tr={encloseSpan:or,mathMLnode:Si,svgSpan:Li},Kr=function(l,h){var d,p,C=Jt(l,"supsub"),B;C?(p=jt(C.base,"accent"),d=p.base,C.base=d,B=Ye(Mr(C,h)),C.base=p):(p=jt(l,"accent"),d=p.base);var fe=Mr(d,h.havingCrampedStyle()),Se=p.isShifty&&k.isCharacterBox(d),Fe=0;if(Se){var Je=k.getBaseElem(d),ct=Mr(Je,h.havingCrampedStyle());Fe=Me(ct).skew}var vt=Math.min(fe.height,h.fontMetrics().xHeight),kt;if(p.isStretchy)kt=tr.svgSpan(p,h),kt=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fe},{type:"elem",elem:kt,wrapperClasses:["svg-align"],wrapperStyle:Fe>0?{width:"calc(100% - "+2*Fe+"em)",marginLeft:2*Fe+"em"}:void 0}]},h);else{var zt,qt;p.label==="\\vec"?(zt=Ue.staticSvg("vec",h),qt=Ue.svgData.vec[1]):(zt=Ue.makeOrd({mode:p.mode,text:p.label},h,"textord"),zt=Me(zt),zt.italic=0,qt=zt.width),kt=Ue.makeSpan(["accent-body"],[zt]);var hr=p.label==="\\textcircled";hr&&(kt.classes.push("accent-full"),vt=fe.height);var Ar=Fe;hr||(Ar-=qt/2),kt.style.left=Ar+"em",p.label==="\\textcircled"&&(kt.style.top=".2em"),kt=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fe},{type:"kern",size:-vt},{type:"elem",elem:kt}]},h)}var Rr=Ue.makeSpan(["mord","accent"],[kt],h);return B?(B.children[0]=Rr,B.height=Math.max(Rr.height,B.height),B.classes[0]="mord",B):Rr},Cn=function(l,h){var d=l.isStretchy?tr.mathMLnode(l.label):new $t.MathNode("mo",[jn(l.label,l.mode)]),p=new $t.MathNode("mover",[zr(l.base,h),d]);return p.setAttribute("accent","true"),p},qr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(F){return"\\"+F}).join("|"));er({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,h){var d=h[0],p=!qr.test(l.funcName),C=!p||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:p,isShifty:C,base:d}},htmlBuilder:Kr,mathmlBuilder:Cn}),er({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,h){var d=h[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:d}},htmlBuilder:Kr,mathmlBuilder:Cn}),er({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0];return{type:"accentUnder",mode:d.mode,label:p,base:C}},htmlBuilder:function(l,h){var d=Mr(l.base,h),p=tr.svgSpan(l,h),C=l.label==="\\utilde"?.12:0,B=Ue.makeVList({positionType:"bottom",positionData:p.height+C,children:[{type:"elem",elem:p,wrapperClasses:["svg-align"]},{type:"kern",size:C},{type:"elem",elem:d}]},h);return Ue.makeSpan(["mord","accentunder"],[B],h)},mathmlBuilder:function(l,h){var d=tr.mathMLnode(l.label),p=new $t.MathNode("munder",[zr(l.base,h),d]);return p.setAttribute("accentunder","true"),p}});var ni=function(l){var h=new $t.MathNode("mpadded",l?[l]:[]);return h.setAttribute("width","+0.6em"),h.setAttribute("lspace","0.3em"),h};er({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,h,d){var p=l.parser,C=l.funcName;return{type:"xArrow",mode:p.mode,label:C,body:h[0],below:d[0]}},htmlBuilder:function(l,h){var d=h.style,p=h.havingStyle(d.sup()),C=Ue.wrapFragment(Mr(l.body,p,h),h);C.classes.push("x-arrow-pad");var B;l.below&&(p=h.havingStyle(d.sub()),B=Ue.wrapFragment(Mr(l.below,p,h),h),B.classes.push("x-arrow-pad"));var fe=tr.svgSpan(l,h),Se=-h.fontMetrics().axisHeight+.5*fe.height,Fe=-h.fontMetrics().axisHeight-.5*fe.height-.111;(C.depth>.25||l.label==="\\xleftequilibrium")&&(Fe-=C.depth);var Je;if(B){var ct=-h.fontMetrics().axisHeight+B.height+.5*fe.height+.111;Je=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:Fe},{type:"elem",elem:fe,shift:Se},{type:"elem",elem:B,shift:ct}]},h)}else Je=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:Fe},{type:"elem",elem:fe,shift:Se}]},h);return Je.children[0].children[0].children[1].classes.push("svg-align"),Ue.makeSpan(["mrel","x-arrow"],[Je],h)},mathmlBuilder:function(l,h){var d=tr.mathMLnode(l.label),p;if(l.body){var C=ni(zr(l.body,h));if(l.below){var B=ni(zr(l.below,h));p=new $t.MathNode("munderover",[d,B,C])}else p=new $t.MathNode("mover",[d,C])}else if(l.below){var fe=ni(zr(l.below,h));p=new $t.MathNode("munder",[d,fe])}else p=ni(),p=new $t.MathNode("mover",[d,p]);return p}}),er({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){for(var d=l.parser,p=jt(h[0],"ordgroup"),C=p.body,B="",fe=0;fe<C.length;fe++){var Se=jt(C[fe],"textord");B+=Se.text}var Fe=parseInt(B);if(isNaN(Fe))throw new ee("\\@char has non-numeric argument "+B);return{type:"textord",mode:d.mode,text:String.fromCharCode(Fe)}}});var ji=function(l,h){var d=an(l.body,h.withColor(l.color),!1);return Ue.makeFragment(d)},Bi=function(l,h){var d=Pn(l.body,h.withColor(l.color)),p=new $t.MathNode("mstyle",d);return p.setAttribute("mathcolor",l.color),p};er({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,h){var d=l.parser,p=jt(h[0],"color-token").color,C=h[1];return{type:"color",mode:d.mode,color:p,body:en(C)}},htmlBuilder:ji,mathmlBuilder:Bi}),er({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,h){var d=l.parser,p=l.breakOnTokenText,C=jt(h[0],"color-token").color;d.gullet.macros.set("\\current@color",C);var B=d.parseExpression(!0,p);return{type:"color",mode:d.mode,color:C,body:B}},htmlBuilder:ji,mathmlBuilder:Bi}),er({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,h,d){var p=l.parser,C=l.funcName,B=d[0],fe=C==="\\cr",Se=!1;return fe||(p.settings.displayMode&&p.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Se=!1:Se=!0),{type:"cr",mode:p.mode,newLine:Se,newRow:fe,size:B&&jt(B,"size").value}},htmlBuilder:function(l,h){if(l.newRow)throw new ee("\\cr valid only within a tabular/array environment");var d=Ue.makeSpan(["mspace"],[],h);return l.newLine&&(d.classes.push("newline"),l.size&&(d.style.marginTop=st(l.size,h)+"em")),d},mathmlBuilder:function(l,h){var d=new $t.MathNode("mspace");return l.newLine&&(d.setAttribute("linebreak","newline"),l.size&&d.setAttribute("height",st(l.size,h)+"em")),d}});var yi=function(l,h,d){var p=ot.math[l]&&ot.math[l].replace,C=Re(p||l,h,d);if(!C)throw new Error("Unsupported symbol "+l+" and font size "+h+".");return C},vs=function(l,h,d,p){var C=d.havingBaseStyle(h),B=Ue.makeSpan(p.concat(C.sizingClasses(d)),[l],d),fe=C.sizeMultiplier/d.sizeMultiplier;return B.height*=fe,B.depth*=fe,B.maxFontSize=C.sizeMultiplier,B},Ds=function(l,h,d){var p=h.havingBaseStyle(d),C=(1-h.sizeMultiplier/p.sizeMultiplier)*h.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=C+"em",l.height-=C,l.depth+=C},Rs=function(l,h,d,p,C,B){var fe=Ue.makeSymbol(l,"Main-Regular",C,p),Se=vs(fe,h,p,B);return d&&Ds(Se,p,h),Se},ns=function(l,h,d,p){return Ue.makeSymbol(l,"Size"+h+"-Regular",d,p)},Is=function(l,h,d,p,C,B){var fe=ns(l,h,C,p),Se=vs(Ue.makeSpan(["delimsizing","size"+h],[fe],p),m.TEXT,p,B);return d&&Ds(Se,p,m.TEXT),Se},Ti=function(l,h,d){var p;h==="Size1-Regular"?p="delim-size1":p="delim-size4";var C=Ue.makeSpan(["delimsizinginner",p],[Ue.makeSpan([],[Ue.makeSymbol(l,h,d)])]);return{type:"elem",elem:C}},$n={type:"kern",size:-.005},_s=function(l,h,d,p,C,B){var fe,Se,Fe,Je;fe=Fe=Je=l,Se=null;var ct="Size1-Regular";l==="\\uparrow"?Fe=Je="\u23D0":l==="\\Uparrow"?Fe=Je="\u2016":l==="\\downarrow"?fe=Fe="\u23D0":l==="\\Downarrow"?fe=Fe="\u2016":l==="\\updownarrow"?(fe="\\uparrow",Fe="\u23D0",Je="\\downarrow"):l==="\\Updownarrow"?(fe="\\Uparrow",Fe="\u2016",Je="\\Downarrow"):l==="["||l==="\\lbrack"?(fe="\u23A1",Fe="\u23A2",Je="\u23A3",ct="Size4-Regular"):l==="]"||l==="\\rbrack"?(fe="\u23A4",Fe="\u23A5",Je="\u23A6",ct="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Fe=fe="\u23A2",Je="\u23A3",ct="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(fe="\u23A1",Fe=Je="\u23A2",ct="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Fe=fe="\u23A5",Je="\u23A6",ct="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(fe="\u23A4",Fe=Je="\u23A5",ct="Size4-Regular"):l==="("||l==="\\lparen"?(fe="\u239B",Fe="\u239C",Je="\u239D",ct="Size4-Regular"):l===")"||l==="\\rparen"?(fe="\u239E",Fe="\u239F",Je="\u23A0",ct="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(fe="\u23A7",Se="\u23A8",Je="\u23A9",Fe="\u23AA",ct="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(fe="\u23AB",Se="\u23AC",Je="\u23AD",Fe="\u23AA",ct="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(fe="\u23A7",Je="\u23A9",Fe="\u23AA",ct="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(fe="\u23AB",Je="\u23AD",Fe="\u23AA",ct="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(fe="\u23A7",Je="\u23AD",Fe="\u23AA",ct="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(fe="\u23AB",Je="\u23A9",Fe="\u23AA",ct="Size4-Regular");var vt=yi(fe,ct,C),kt=vt.height+vt.depth,zt=yi(Fe,ct,C),qt=zt.height+zt.depth,hr=yi(Je,ct,C),Ar=hr.height+hr.depth,Rr=0,Cr=1;if(Se!==null){var mn=yi(Se,ct,C);Rr=mn.height+mn.depth,Cr=2}var gn=kt+Ar+Rr,Dn=Math.max(0,Math.ceil((h-gn)/(Cr*qt))),In=gn+Dn*Cr*qt,Fn=p.fontMetrics().axisHeight;d&&(Fn*=p.sizeMultiplier);var si=In/2-Fn,ri=(Dn+1)*.005-qt,hn=[];if(hn.push(Ti(Je,ct,C)),Se===null)for(var Ci=0;Ci<Dn;Ci++)hn.push($n),hn.push(Ti(Fe,ct,C));else{for(var Ui=0;Ui<Dn;Ui++)hn.push($n),hn.push(Ti(Fe,ct,C));hn.push({type:"kern",size:ri}),hn.push(Ti(Fe,ct,C)),hn.push($n),hn.push(Ti(Se,ct,C));for(var Ii=0;Ii<Dn;Ii++)hn.push($n),hn.push(Ti(Fe,ct,C))}hn.push({type:"kern",size:ri}),hn.push(Ti(Fe,ct,C)),hn.push($n),hn.push(Ti(fe,ct,C));var ai=p.havingBaseStyle(m.TEXT),Hi=Ue.makeVList({positionType:"bottom",positionData:si,children:hn},ai);return vs(Ue.makeSpan(["delimsizing","mult"],[Hi],ai),m.TEXT,p,B)},is=80,mi=.08,Ai=function(l,h,d,p,C){var B=At(l,p,d),fe=new we(l,B),Se=new ve([fe],{width:"400em",height:h+"em",viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});return Ue.makeSvgSpan(["hide-tail"],[Se],C)},qs=function(l,h){var d=h.havingBaseSizing(),p=ks("\\surd",l*d.sizeMultiplier,Fi,d),C=d.sizeMultiplier,B=Math.max(0,h.minRuleThickness-h.fontMetrics().sqrtRuleThickness),fe,Se=0,Fe=0,Je=0,ct;return p.type==="small"?(Je=1e3+1e3*B+is,l<1?C=1:l<1.4&&(C=.7),Se=(1+B+mi)/C,Fe=(1+B)/C,fe=Ai("sqrtMain",Se,Je,B,h),fe.style.minWidth="0.853em",ct=.833/C):p.type==="large"?(Je=(1e3+is)*ss[p.size],Fe=(ss[p.size]+B)/C,Se=(ss[p.size]+B+mi)/C,fe=Ai("sqrtSize"+p.size,Se,Je,B,h),fe.style.minWidth="1.02em",ct=1/C):(Se=l+B+mi,Fe=l+B,Je=Math.floor(1e3*l+B)+is,fe=Ai("sqrtTall",Se,Je,B,h),fe.style.minWidth="0.742em",ct=1.056),fe.height=Fe,fe.style.height=Se+"em",{span:fe,advanceWidth:ct,ruleWidth:(h.fontMetrics().sqrtRuleThickness+B)*C}},Di=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Qs=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ys=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ss=[0,1.2,1.8,2.4,3],Js=function(l,h,d,p,C){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),k.contains(Di,l)||k.contains(ys,l))return Is(l,h,!1,d,p,C);if(k.contains(Qs,l))return _s(l,ss[h],!1,d,p,C);throw new ee("Illegal delimiter: '"+l+"'")},zn=[{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"}],Fi=[{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"}],Ki=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.")},ks=function(l,h,d,p){for(var C=Math.min(2,3-p.style.size),B=C;B<d.length&&d[B].type!=="stack";B++){var fe=yi(l,Ki(d[B]),"math"),Se=fe.height+fe.depth;if(d[B].type==="small"){var Fe=p.havingBaseStyle(d[B].style);Se*=Fe.sizeMultiplier}if(Se>h)return d[B]}return d[d.length-1]},cn=function(l,h,d,p,C,B){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var fe;k.contains(ys,l)?fe=zn:k.contains(Di,l)?fe=Fi:fe=Xi;var Se=ks(l,h,fe,p);return Se.type==="small"?Rs(l,Se.style,d,p,C,B):Se.type==="large"?Is(l,Se.size,d,p,C,B):_s(l,h,d,p,C,B)},as=function(l,h,d,p,C,B){var fe=p.fontMetrics().axisHeight*p.sizeMultiplier,Se=901,Fe=5/p.fontMetrics().ptPerEm,Je=Math.max(h-fe,d+fe),ct=Math.max(Je/500*Se,2*Je-Fe);return cn(l,ct,!0,p,C,B)},ii={sqrtImage:qs,sizedDelim:Js,customSizedDelim:cn,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(F,l){var h=Tn(F);if(h&&k.contains(ea,h.text))return h;throw new ee("Invalid delimiter: '"+(h?h.text:JSON.stringify(F))+"' after '"+l.funcName+"'",F)}er({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,h){var d=os(h[0],l);return{type:"delimsizing",mode:l.parser.mode,size:qi[l.funcName].size,mclass:qi[l.funcName].mclass,delim:d.text}},htmlBuilder:function(l,h){return l.delim==="."?Ue.makeSpan([l.mclass]):ii.sizedDelim(l.delim,l.size,h,l.mode,[l.mclass])},mathmlBuilder:function(l){var h=[];l.delim!=="."&&h.push(jn(l.delim,l.mode));var d=new $t.MathNode("mo",h);return l.mclass==="mopen"||l.mclass==="mclose"?d.setAttribute("fence","true"):d.setAttribute("fence","false"),d}});function ls(F){if(!F.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}er({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,h){var d=l.parser.gullet.macros.get("\\current@color");if(d&&typeof d!="string")throw new ee("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:os(h[0],l).text,color:d}}}),er({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,h){var d=os(h[0],l),p=l.parser;++p.leftrightDepth;var C=p.parseExpression(!1);--p.leftrightDepth,p.expect("\\right",!1);var B=jt(p.parseFunction(),"leftright-right");return{type:"leftright",mode:p.mode,body:C,left:d.text,right:B.delim,rightColor:B.color}},htmlBuilder:function(l,h){ls(l);for(var d=an(l.body,h,!0,["mopen","mclose"]),p=0,C=0,B=!1,fe=0;fe<d.length;fe++)d[fe].isMiddle?B=!0:(p=Math.max(d[fe].height,p),C=Math.max(d[fe].depth,C));p*=h.sizeMultiplier,C*=h.sizeMultiplier;var Se;if(l.left==="."?Se=qn(h,["mopen"]):Se=ii.leftRightDelim(l.left,p,C,h,l.mode,["mopen"]),d.unshift(Se),B)for(var Fe=1;Fe<d.length;Fe++){var Je=d[Fe],ct=Je.isMiddle;ct&&(d[Fe]=ii.leftRightDelim(ct.delim,p,C,ct.options,l.mode,[]))}var vt;if(l.right===".")vt=qn(h,["mclose"]);else{var kt=l.rightColor?h.withColor(l.rightColor):h;vt=ii.leftRightDelim(l.right,p,C,kt,l.mode,["mclose"])}return d.push(vt),Ue.makeSpan(["minner"],d,h)},mathmlBuilder:function(l,h){ls(l);var d=Pn(l.body,h);if(l.left!=="."){var p=new $t.MathNode("mo",[jn(l.left,l.mode)]);p.setAttribute("fence","true"),d.unshift(p)}if(l.right!=="."){var C=new $t.MathNode("mo",[jn(l.right,l.mode)]);C.setAttribute("fence","true"),l.rightColor&&C.setAttribute("mathcolor",l.rightColor),d.push(C)}return pi(d)}}),er({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,h){var d=os(h[0],l);if(!l.parser.leftrightDepth)throw new ee("\\middle without preceding \\left",d);return{type:"middle",mode:l.parser.mode,delim:d.text}},htmlBuilder:function(l,h){var d;if(l.delim===".")d=qn(h,[]);else{d=ii.sizedDelim(l.delim,1,h,l.mode,[]);var p={delim:l.delim,options:h};d.isMiddle=p}return d},mathmlBuilder:function(l,h){var d=l.delim==="\\vert"||l.delim==="|"?jn("|","text"):jn(l.delim,l.mode),p=new $t.MathNode("mo",[d]);return p.setAttribute("fence","true"),p.setAttribute("lspace","0.05em"),p.setAttribute("rspace","0.05em"),p}});var us=function(l,h){var d=Ue.wrapFragment(Mr(l.body,h),h),p=l.label.substr(1),C=h.sizeMultiplier,B,fe=0,Se=k.isCharacterBox(l.body);if(p==="sout")B=Ue.makeSpan(["stretchy","sout"]),B.height=h.fontMetrics().defaultRuleThickness/C,fe=-.5*h.fontMetrics().xHeight;else{/cancel/.test(p)?Se||d.classes.push("cancel-pad"):d.classes.push("boxpad");var Fe=0,Je=0;/box/.test(p)?(Je=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness),Fe=h.fontMetrics().fboxsep+(p==="colorbox"?0:Je)):Fe=Se?.2:0,B=tr.encloseSpan(d,p,Fe,h),/fbox|boxed|fcolorbox/.test(p)&&(B.style.borderStyle="solid",B.style.borderWidth=Je+"em"),fe=d.depth+Fe,l.backgroundColor&&(B.style.backgroundColor=l.backgroundColor,l.borderColor&&(B.style.borderColor=l.borderColor))}var ct;return l.backgroundColor?ct=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:B,shift:fe},{type:"elem",elem:d,shift:0}]},h):ct=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:B,shift:fe,wrapperClasses:/cancel/.test(p)?["svg-align"]:[]}]},h),/cancel/.test(p)&&(ct.height=d.height,ct.depth=d.depth),/cancel/.test(p)&&!Se?Ue.makeSpan(["mord","cancel-lap"],[ct],h):Ue.makeSpan(["mord"],[ct],h)},bs=function(l,h){var d=0,p=new $t.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[zr(l.body,h)]);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(d=h.fontMetrics().fboxsep*h.fontMetrics().ptPerEm,p.setAttribute("width","+"+2*d+"pt"),p.setAttribute("height","+"+2*d+"pt"),p.setAttribute("lspace",d+"pt"),p.setAttribute("voffset",d+"pt"),l.label==="\\fcolorbox"){var C=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness);p.setAttribute("style","border: "+C+"em solid "+String(l.borderColor))}break;case"\\xcancel":p.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&p.setAttribute("mathbackground",l.backgroundColor),p};er({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,h,d){var p=l.parser,C=l.funcName,B=jt(h[0],"color-token").color,fe=h[1];return{type:"enclose",mode:p.mode,label:C,backgroundColor:B,body:fe}},htmlBuilder:us,mathmlBuilder:bs}),er({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,h,d){var p=l.parser,C=l.funcName,B=jt(h[0],"color-token").color,fe=jt(h[1],"color-token").color,Se=h[2];return{type:"enclose",mode:p.mode,label:C,backgroundColor:fe,borderColor:B,body:Se}},htmlBuilder:us,mathmlBuilder:bs}),er({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,h){var d=l.parser;return{type:"enclose",mode:d.mode,label:"\\fbox",body:h[0]}}}),er({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,h,d){var p=l.parser,C=l.funcName,B=h[0];return{type:"enclose",mode:p.mode,label:C,body:B}},htmlBuilder:us,mathmlBuilder:bs});var Ls={};function bi(F){for(var l=F.type,h=F.names,d=F.props,p=F.handler,C=F.htmlBuilder,B=F.mathmlBuilder,fe={type:l,numArgs:d.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:p},Se=0;Se<h.length;++Se)Ls[h[Se]]=fe;C&&(Un[l]=C),B&&(Yn[l]=B)}function xs(F){var l=[];F.consumeSpaces();for(var h=F.fetch().text;h==="\\hline"||h==="\\hdashline";)F.consume(),l.push(h==="\\hdashline"),F.consumeSpaces(),h=F.fetch().text;return l}function on(F,l,h){var d=l.hskipBeforeAndAfter,p=l.addJot,C=l.cols,B=l.arraystretch,fe=l.colSeparationType;if(F.gullet.beginGroup(),F.gullet.macros.set("\\\\","\\cr"),!B){var Se=F.gullet.expandMacroAsText("\\arraystretch");if(Se==null)B=1;else if(B=parseFloat(Se),!B||B<0)throw new ee("Invalid \\arraystretch: "+Se)}F.gullet.beginGroup();var Fe=[],Je=[Fe],ct=[],vt=[];for(vt.push(xs(F));;){var kt=F.parseExpression(!1,"\\cr");F.gullet.endGroup(),F.gullet.beginGroup(),kt={type:"ordgroup",mode:F.mode,body:kt},h&&(kt={type:"styling",mode:F.mode,style:h,body:[kt]}),Fe.push(kt);var zt=F.fetch().text;if(zt==="&")F.consume();else if(zt==="\\end"){Fe.length===1&&kt.type==="styling"&&kt.body[0].body.length===0&&Je.pop(),vt.length<Je.length+1&&vt.push([]);break}else if(zt==="\\cr"){var qt=jt(F.parseFunction(),"cr");ct.push(qt.size),vt.push(xs(F)),Fe=[],Je.push(Fe)}else throw new ee("Expected & or \\\\ or \\cr or \\end",F.nextToken)}return F.gullet.endGroup(),F.gullet.endGroup(),{type:"array",mode:F.mode,addJot:p,arraystretch:B,body:Je,cols:C,rowGaps:ct,hskipBeforeAndAfter:d,hLinesBeforeRow:vt,colSeparationType:fe}}function nn(F){return F.substr(0,1)==="d"?"display":"text"}var tn=function(l,h){var d,p,C=l.body.length,B=l.hLinesBeforeRow,fe=0,Se=new Array(C),Fe=[],Je=Math.max(h.fontMetrics().arrayRuleWidth,h.minRuleThickness),ct=1/h.fontMetrics().ptPerEm,vt=5*ct;if(l.colSeparationType&&l.colSeparationType==="small"){var kt=h.havingStyle(m.SCRIPT).sizeMultiplier;vt=.2778*(kt/h.sizeMultiplier)}var zt=12*ct,qt=3*ct,hr=l.arraystretch*zt,Ar=.7*hr,Rr=.3*hr,Cr=0;function mn(va){for(var rs=0;rs<va.length;++rs)rs>0&&(Cr+=.25),Fe.push({pos:Cr,isDashed:va[rs]})}for(mn(B[0]),d=0;d<l.body.length;++d){var gn=l.body[d],Dn=Ar,In=Rr;fe<gn.length&&(fe=gn.length);var Fn=new Array(gn.length);for(p=0;p<gn.length;++p){var si=Mr(gn[p],h);In<si.depth&&(In=si.depth),Dn<si.height&&(Dn=si.height),Fn[p]=si}var ri=l.rowGaps[d],hn=0;ri&&(hn=st(ri,h),hn>0&&(hn+=Rr,In<hn&&(In=hn),hn=0)),l.addJot&&(In+=qt),Fn.height=Dn,Fn.depth=In,Cr+=Dn,Fn.pos=Cr,Cr+=In+hn,Se[d]=Fn,mn(B[d+1])}var Ci=Cr/2+h.fontMetrics().axisHeight,Ui=l.cols||[],Ii=[],ai,Hi;for(p=0,Hi=0;p<fe||Hi<Ui.length;++p,++Hi){for(var Zn=Ui[Hi]||{},Oi=!0;Zn.type==="separator";){if(Oi||(ai=Ue.makeSpan(["arraycolsep"],[]),ai.style.width=h.fontMetrics().doubleRuleSep+"em",Ii.push(ai)),Zn.separator==="|"||Zn.separator===":"){var to=Zn.separator==="|"?"solid":"dashed",ps=Ue.makeSpan(["vertical-separator"],[],h);ps.style.height=Cr+"em",ps.style.borderRightWidth=Je+"em",ps.style.borderRightStyle=to,ps.style.margin="0 -"+Je/2+"em",ps.style.verticalAlign=-(Cr-Ci)+"em",Ii.push(ps)}else throw new ee("Invalid separator type: "+Zn.separator);Hi++,Zn=Ui[Hi]||{},Oi=!1}if(!(p>=fe)){var ms=void 0;(p>0||l.hskipBeforeAndAfter)&&(ms=k.deflt(Zn.pregap,vt),ms!==0&&(ai=Ue.makeSpan(["arraycolsep"],[]),ai.style.width=ms+"em",Ii.push(ai)));var gs=[];for(d=0;d<C;++d){var Ws=Se[d],Vs=Ws[p];if(Vs){var ts=Ws.pos-Ci;Vs.depth=Ws.depth,Vs.height=Ws.height,gs.push({type:"elem",elem:Vs,shift:ts})}}gs=Ue.makeVList({positionType:"individualShift",children:gs},h),gs=Ue.makeSpan(["col-align-"+(Zn.align||"c")],[gs]),Ii.push(gs),(p<fe-1||l.hskipBeforeAndAfter)&&(ms=k.deflt(Zn.postgap,vt),ms!==0&&(ai=Ue.makeSpan(["arraycolsep"],[]),ai.style.width=ms+"em",Ii.push(ai)))}}if(Se=Ue.makeSpan(["mtable"],Ii),Fe.length>0){for(var Na=Ue.makeLineSpan("hline",h,Je),ro=Ue.makeLineSpan("hdashline",h,Je),ma=[{type:"elem",elem:Se,shift:0}];Fe.length>0;){var Zs=Fe.pop(),ga=Zs.pos-Ci;Zs.isDashed?ma.push({type:"elem",elem:ro,shift:ga}):ma.push({type:"elem",elem:Na,shift:ga})}Se=Ue.makeVList({positionType:"individualShift",children:ma},h)}return Ue.makeSpan(["mord"],[Se],h)},Nn={c:"center ",l:"left ",r:"right "},Bn=function(l,h){var d=new $t.MathNode("mtable",l.body.map(function(Cr){return new $t.MathNode("mtr",Cr.map(function(mn){return new $t.MathNode("mtd",[zr(mn,h)])}))})),p=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);d.setAttribute("rowspacing",p+"em");var C="",B="";if(l.cols){var fe=l.cols,Se="",Fe=!1,Je=0,ct=fe.length;fe[0].type==="separator"&&(C+="top ",Je=1),fe[fe.length-1].type==="separator"&&(C+="bottom ",ct-=1);for(var vt=Je;vt<ct;vt++)fe[vt].type==="align"?(B+=Nn[fe[vt].align],Fe&&(Se+="none "),Fe=!0):fe[vt].type==="separator"&&Fe&&(Se+=fe[vt].separator==="|"?"solid ":"dashed ",Fe=!1);d.setAttribute("columnalign",B.trim()),/[sd]/.test(Se)&&d.setAttribute("columnlines",Se.trim())}if(l.colSeparationType==="align"){for(var kt=l.cols||[],zt="",qt=1;qt<kt.length;qt++)zt+=qt%2?"0em ":"1em ";d.setAttribute("columnspacing",zt.trim())}else l.colSeparationType==="alignat"?d.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):d.setAttribute("columnspacing","1em");var hr="",Ar=l.hLinesBeforeRow;C+=Ar[0].length>0?"left ":"",C+=Ar[Ar.length-1].length>0?"right ":"";for(var Rr=1;Rr<Ar.length-1;Rr++)hr+=Ar[Rr].length===0?"none ":Ar[Rr][0]?"dashed ":"solid ";return/[sd]/.test(hr)&&d.setAttribute("rowlines",hr.trim()),C!==""&&(d=new $t.MathNode("menclose",[d]),d.setAttribute("notation",C.trim())),l.arraystretch&&l.arraystretch<1&&(d=new $t.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Qi=function(l,h){var d=[],p=on(l.parser,{cols:d,addJot:!0},"display"),C,B=0,fe={type:"ordgroup",mode:l.mode,body:[]},Se=Jt(h[0],"ordgroup");if(Se){for(var Fe="",Je=0;Je<Se.body.length;Je++){var ct=jt(Se.body[Je],"textord");Fe+=ct.text}C=Number(Fe),B=C*2}var vt=!B;p.body.forEach(function(hr){for(var Ar=1;Ar<hr.length;Ar+=2){var Rr=jt(hr[Ar],"styling"),Cr=jt(Rr.body[0],"ordgroup");Cr.body.unshift(fe)}if(vt)B<hr.length&&(B=hr.length);else{var mn=hr.length/2;if(C<mn)throw new ee("Too many math in a row: "+("expected "+C+", but got "+mn),hr[0])}});for(var kt=0;kt<B;++kt){var zt="r",qt=0;kt%2===1?zt="l":kt>0&&vt&&(qt=1),d[kt]={type:"align",align:zt,pregap:qt,postgap:0}}return p.colSeparationType=vt?"align":"alignat",p};bi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,h){var d=Tn(h[0]),p=d?[h[0]]:jt(h[0],"ordgroup").body,C=p.map(function(fe){var Se=En(fe),Fe=Se.text;if("lcr".indexOf(Fe)!==-1)return{type:"align",align:Fe};if(Fe==="|")return{type:"separator",separator:"|"};if(Fe===":")return{type:"separator",separator:":"};throw new ee("Unknown column alignment: "+Fe,fe)}),B={cols:C,hskipBeforeAndAfter:!0};return on(l.parser,B,nn(l.envName))},htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var h={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],d={hskipBeforeAndAfter:!1},p=on(l.parser,d,nn(l.envName));return h?{type:"leftright",mode:l.mode,body:[p],left:h[0],right:h[1],rightColor:void 0}:p},htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var h={arraystretch:.5},d=on(l.parser,h,"script");return d.colSeparationType="small",d},htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,h){var d=Tn(h[0]),p=d?[h[0]]:jt(h[0],"ordgroup").body,C=p.map(function(fe){var Se=En(fe),Fe=Se.text;if("lc".indexOf(Fe)!==-1)return{type:"align",align:Fe};throw new ee("Unknown column alignment: "+Fe,fe)});if(C.length>1)throw new ee("{subarray} can contain only one column");var B={cols:C,hskipBeforeAndAfter:!1,arraystretch:.5};if(B=on(l.parser,B,"script"),B.body[0].length>1)throw new ee("{subarray} can contain only one column");return B},htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var h={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},d=on(l.parser,h,nn(l.envName));return{type:"leftright",mode:l.mode,body:[d],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["aligned"],props:{numArgs:0},handler:Qi,htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var h={cols:[{type:"align",align:"c"}],addJot:!0};return on(l.parser,h,"display")},htmlBuilder:tn,mathmlBuilder:Bn}),bi({type:"array",names:["alignedat"],props:{numArgs:1},handler:Qi,htmlBuilder:tn,mathmlBuilder:Bn}),er({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,h){throw new ee(l.funcName+" valid only within array environment")}});var Es=Ls,Os=Es;er({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0];if(C.type!=="ordgroup")throw new ee("Invalid environment name",C);for(var B="",fe=0;fe<C.body.length;++fe)B+=jt(C.body[fe],"textord").text;if(p==="\\begin"){if(!Os.hasOwnProperty(B))throw new ee("No such environment: "+B,C);var Se=Os[B],Fe=d.parseArguments("\\begin{"+B+"}",Se),Je=Fe.args,ct=Fe.optArgs,vt={mode:d.mode,envName:B,parser:d},kt=Se.handler(vt,Je,ct);d.expect("\\end",!1);var zt=d.nextToken,qt=jt(d.parseFunction(),"environment");if(qt.name!==B)throw new ee("Mismatch: \\begin{"+B+"} matched by \\end{"+qt.name+"}",zt);return kt}return{type:"environment",mode:d.mode,name:B,nameGroup:C}}});var Ps=Ue.makeSpan;function Ji(F,l){var h=an(F.body,l,!0);return Ps([F.mclass],h,l)}function Wi(F,l){var h,d=Pn(F.body,l);return F.mclass==="minner"?$t.newDocumentFragment(d):(F.mclass==="mord"?F.isCharacterBox?(h=d[0],h.type="mi"):h=new $t.MathNode("mi",d):(F.isCharacterBox?(h=d[0],h.type="mo"):h=new $t.MathNode("mo",d),F.mclass==="mbin"?(h.attributes.lspace="0.22em",h.attributes.rspace="0.22em"):F.mclass==="mpunct"?(h.attributes.lspace="0em",h.attributes.rspace="0.17em"):(F.mclass==="mopen"||F.mclass==="mclose")&&(h.attributes.lspace="0em",h.attributes.rspace="0em")),h)}er({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0];return{type:"mclass",mode:d.mode,mclass:"m"+p.substr(5),body:en(C),isCharacterBox:k.isCharacterBox(C)}},htmlBuilder:Ji,mathmlBuilder:Wi});var It=function(l){var h=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return h.type==="atom"&&(h.family==="bin"||h.family==="rel")?"m"+h.family:"mord"};er({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,h){var d=l.parser;return{type:"mclass",mode:d.mode,mclass:It(h[0]),body:[h[1]],isCharacterBox:k.isCharacterBox(h[1])}}}),er({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[1],B=h[0],fe;p!=="\\stackrel"?fe=It(C):fe="mrel";var Se={type:"op",mode:C.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:p!=="\\stackrel",body:en(C)},Fe={type:"supsub",mode:B.mode,base:Se,sup:p==="\\underset"?null:B,sub:p==="\\underset"?B:null};return{type:"mclass",mode:d.mode,mclass:fe,body:[Fe],isCharacterBox:k.isCharacterBox(Fe)}},htmlBuilder:Ji,mathmlBuilder:Wi});var cs=function(l,h){var d=l.font,p=h.withFont(d);return Mr(l.body,p)},ta=function(l,h){var d=l.font,p=h.withFont(d);return zr(l.body,p)},ya={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};er({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0],B=p;return B in ya&&(B=ya[B]),{type:"font",mode:d.mode,font:B.slice(1),body:C}},htmlBuilder:cs,mathmlBuilder:ta}),er({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,h){var d=l.parser,p=h[0],C=k.isCharacterBox(p);return{type:"mclass",mode:d.mode,mclass:It(p),body:[{type:"font",mode:d.mode,font:"boldsymbol",body:p}],isCharacterBox:C}}}),er({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,h){var d=l.parser,p=l.funcName,C=l.breakOnTokenText,B=d.mode,fe=d.parseExpression(!0,C),Se="math"+p.slice(1);return{type:"font",mode:B,font:Se,body:{type:"ordgroup",mode:d.mode,body:fe}}},htmlBuilder:cs,mathmlBuilder:ta});var ba=function(l,h){var d=h;return l==="display"?d=d.id>=m.SCRIPT.id?d.text():m.DISPLAY:l==="text"&&d.size===m.DISPLAY.size?d=m.TEXT:l==="script"?d=m.SCRIPT:l==="scriptscript"&&(d=m.SCRIPTSCRIPT),d},ra=function(l,h){var d=ba(l.size,h.style),p=d.fracNum(),C=d.fracDen(),B;B=h.havingStyle(p);var fe=Mr(l.numer,B,h);if(l.continued){var Se=8.5/h.fontMetrics().ptPerEm,Fe=3.5/h.fontMetrics().ptPerEm;fe.height=fe.height<Se?Se:fe.height,fe.depth=fe.depth<Fe?Fe:fe.depth}B=h.havingStyle(C);var Je=Mr(l.denom,B,h),ct,vt,kt;l.hasBarLine?(l.barSize?(vt=st(l.barSize,h),ct=Ue.makeLineSpan("frac-line",h,vt)):ct=Ue.makeLineSpan("frac-line",h),vt=ct.height,kt=ct.height):(ct=null,vt=0,kt=h.fontMetrics().defaultRuleThickness);var zt,qt,hr;d.size===m.DISPLAY.size||l.size==="display"?(zt=h.fontMetrics().num1,vt>0?qt=3*kt:qt=7*kt,hr=h.fontMetrics().denom1):(vt>0?(zt=h.fontMetrics().num2,qt=kt):(zt=h.fontMetrics().num3,qt=3*kt),hr=h.fontMetrics().denom2);var Ar;if(ct){var Cr=h.fontMetrics().axisHeight;zt-fe.depth-(Cr+.5*vt)<qt&&(zt+=qt-(zt-fe.depth-(Cr+.5*vt))),Cr-.5*vt-(Je.height-hr)<qt&&(hr+=qt-(Cr-.5*vt-(Je.height-hr)));var mn=-(Cr-.5*vt);Ar=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Je,shift:hr},{type:"elem",elem:ct,shift:mn},{type:"elem",elem:fe,shift:-zt}]},h)}else{var Rr=zt-fe.depth-(Je.height-hr);Rr<qt&&(zt+=.5*(qt-Rr),hr+=.5*(qt-Rr)),Ar=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Je,shift:hr},{type:"elem",elem:fe,shift:-zt}]},h)}B=h.havingStyle(d),Ar.height*=B.sizeMultiplier/h.sizeMultiplier,Ar.depth*=B.sizeMultiplier/h.sizeMultiplier;var gn;d.size===m.DISPLAY.size?gn=h.fontMetrics().delim1:gn=h.fontMetrics().delim2;var Dn,In;return l.leftDelim==null?Dn=qn(h,["mopen"]):Dn=ii.customSizedDelim(l.leftDelim,gn,!0,h.havingStyle(d),l.mode,["mopen"]),l.continued?In=Ue.makeSpan([]):l.rightDelim==null?In=qn(h,["mclose"]):In=ii.customSizedDelim(l.rightDelim,gn,!0,h.havingStyle(d),l.mode,["mclose"]),Ue.makeSpan(["mord"].concat(B.sizingClasses(h)),[Dn,Ue.makeSpan(["mfrac"],[Ar]),In],h)},na=function(l,h){var d=new $t.MathNode("mfrac",[zr(l.numer,h),zr(l.denom,h)]);if(!l.hasBarLine)d.setAttribute("linethickness","0px");else if(l.barSize){var p=st(l.barSize,h);d.setAttribute("linethickness",p+"em")}var C=ba(l.size,h.style);if(C.size!==h.style.size){d=new $t.MathNode("mstyle",[d]);var B=C.size===m.DISPLAY.size?"true":"false";d.setAttribute("displaystyle",B),d.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var fe=[];if(l.leftDelim!=null){var Se=new $t.MathNode("mo",[new $t.TextNode(l.leftDelim.replace("\\",""))]);Se.setAttribute("fence","true"),fe.push(Se)}if(fe.push(d),l.rightDelim!=null){var Fe=new $t.MathNode("mo",[new $t.TextNode(l.rightDelim.replace("\\",""))]);Fe.setAttribute("fence","true"),fe.push(Fe)}return pi(fe)}return d};er({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0],B=h[1],fe,Se=null,Fe=null,Je="auto";switch(p){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":fe=!0;break;case"\\\\atopfrac":fe=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":fe=!1,Se="(",Fe=")";break;case"\\\\bracefrac":fe=!1,Se="\\{",Fe="\\}";break;case"\\\\brackfrac":fe=!1,Se="[",Fe="]";break;default:throw new Error("Unrecognized genfrac command")}switch(p){case"\\cfrac":case"\\dfrac":case"\\dbinom":Je="display";break;case"\\tfrac":case"\\tbinom":Je="text";break}return{type:"genfrac",mode:d.mode,continued:p==="\\cfrac",numer:C,denom:B,hasBarLine:fe,leftDelim:Se,rightDelim:Fe,size:Je,barSize:null}},htmlBuilder:ra,mathmlBuilder:na}),er({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var h=l.parser,d=l.funcName,p=l.token,C;switch(d){case"\\over":C="\\frac";break;case"\\choose":C="\\binom";break;case"\\atop":C="\\\\atopfrac";break;case"\\brace":C="\\\\bracefrac";break;case"\\brack":C="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:h.mode,replaceWith:C,token:p}}});var Ri=["display","text","script","scriptscript"],Ms=function(l){var h=null;return l.length>0&&(h=l,h=h==="."?null:h),h};er({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,h){var d=l.parser,p=h[4],C=h[5],B=Jt(h[0],"atom");B&&(B=jr(h[0],"open"));var fe=B?Ms(B.text):null,Se=Jt(h[1],"atom");Se&&(Se=jr(h[1],"close"));var Fe=Se?Ms(Se.text):null,Je=jt(h[2],"size"),ct,vt=null;Je.isBlank?ct=!0:(vt=Je.value,ct=vt.number>0);var kt="auto",zt=Jt(h[3],"ordgroup");if(zt){if(zt.body.length>0){var qt=jt(zt.body[0],"textord");kt=Ri[Number(qt.text)]}}else zt=jt(h[3],"textord"),kt=Ri[Number(zt.text)];return{type:"genfrac",mode:d.mode,numer:p,denom:C,continued:!1,hasBarLine:ct,barSize:vt,leftDelim:fe,rightDelim:Fe,size:kt}},htmlBuilder:ra,mathmlBuilder:na}),er({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,h){var d=l.parser,p=l.funcName,C=l.token;return{type:"infix",mode:d.mode,replaceWith:"\\\\abovefrac",size:jt(h[0],"size").value,token:C}}}),er({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0],B=H(jt(h[1],"infix").size),fe=h[2],Se=B.number>0;return{type:"genfrac",mode:d.mode,numer:C,denom:fe,continued:!1,hasBarLine:Se,barSize:B,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ra,mathmlBuilder:na});var xa=function(l,h){var d=h.style,p,C,B=Jt(l,"supsub");B?(p=B.sup?Mr(B.sup,h.havingStyle(d.sup()),h):Mr(B.sub,h.havingStyle(d.sub()),h),C=jt(B.base,"horizBrace")):C=jt(l,"horizBrace");var fe=Mr(C.base,h.havingBaseStyle(m.DISPLAY)),Se=tr.svgSpan(C,h),Fe;if(C.isOver?(Fe=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fe},{type:"kern",size:.1},{type:"elem",elem:Se}]},h),Fe.children[0].children[0].children[1].classes.push("svg-align")):(Fe=Ue.makeVList({positionType:"bottom",positionData:fe.depth+.1+Se.height,children:[{type:"elem",elem:Se},{type:"kern",size:.1},{type:"elem",elem:fe}]},h),Fe.children[0].children[0].children[0].classes.push("svg-align")),p){var Je=Ue.makeSpan(["mord",C.isOver?"mover":"munder"],[Fe],h);C.isOver?Fe=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Je},{type:"kern",size:.2},{type:"elem",elem:p}]},h):Fe=Ue.makeVList({positionType:"bottom",positionData:Je.depth+.2+p.height+p.depth,children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:Je}]},h)}return Ue.makeSpan(["mord",C.isOver?"mover":"munder"],[Fe],h)},Ga=function(l,h){var d=tr.mathMLnode(l.label);return new $t.MathNode(l.isOver?"mover":"munder",[zr(l.base,h),d])};er({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,h){var d=l.parser,p=l.funcName;return{type:"horizBrace",mode:d.mode,label:p,isOver:/^\\over/.test(p),base:h[0]}},htmlBuilder:xa,mathmlBuilder:Ga}),er({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,h){var d=l.parser,p=h[1],C=jt(h[0],"url").url;return d.settings.isTrusted({command:"\\href",url:C})?{type:"href",mode:d.mode,href:C,body:en(p)}:d.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,h){var d=an(l.body,h,!1);return Ue.makeAnchor(l.href,[],d,h)},mathmlBuilder:function(l,h){var d=bn(l.body,h);return d instanceof yn||(d=new yn("mrow",[d])),d.setAttribute("href",l.href),d}}),er({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,h){var d=l.parser,p=jt(h[0],"url").url;if(!d.settings.isTrusted({command:"\\url",url:p}))return d.formatUnsupportedCmd("\\url");for(var C=[],B=0;B<p.length;B++){var fe=p[B];fe==="~"&&(fe="\\textasciitilde"),C.push({type:"textord",mode:"text",text:fe})}var Se={type:"text",mode:d.mode,font:"\\texttt",body:C};return{type:"href",mode:d.mode,href:p,body:en(Se)}}}),er({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,h){var d=l.parser;return{type:"htmlmathml",mode:d.mode,html:en(h[0]),mathml:en(h[1])}},htmlBuilder:function(l,h){var d=an(l.html,h,!1);return Ue.makeFragment(d)},mathmlBuilder:function(l,h){return bn(l.mathml,h)}});var Ns=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var h=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!h)throw new ee("Invalid size: '"+l+"' in \\includegraphics");var d={number:+(h[1]+h[2]),unit:h[3]};if(!it(d))throw new ee("Invalid unit: '"+d.unit+"' in \\includegraphics.");return d};er({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,h,d){var p=l.parser,C={number:0,unit:"em"},B={number:.9,unit:"em"},fe={number:0,unit:"em"},Se="";if(d[0])for(var Fe=jt(d[0],"raw").string,Je=Fe.split(","),ct=0;ct<Je.length;ct++){var vt=Je[ct].split("=");if(vt.length===2){var kt=vt[1].trim();switch(vt[0].trim()){case"alt":Se=kt;break;case"width":C=Ns(kt);break;case"height":B=Ns(kt);break;case"totalheight":fe=Ns(kt);break;default:throw new ee("Invalid key: '"+vt[0]+"' in \\includegraphics.")}}}var zt=jt(h[0],"url").url;return Se===""&&(Se=zt,Se=Se.replace(/^.*[\\/]/,""),Se=Se.substring(0,Se.lastIndexOf("."))),p.settings.isTrusted({command:"\\includegraphics",url:zt})?{type:"includegraphics",mode:p.mode,alt:Se,width:C,height:B,totalheight:fe,src:zt}:p.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,h){var d=st(l.height,h),p=0;l.totalheight.number>0&&(p=st(l.totalheight,h)-d,p=Number(p.toFixed(2)));var C=0;l.width.number>0&&(C=st(l.width,h));var B={height:d+p+"em"};C>0&&(B.width=C+"em"),p>0&&(B.verticalAlign=-p+"em");var fe=new $e(l.src,l.alt,B);return fe.height=d,fe.depth=p,fe},mathmlBuilder:function(l,h){var d=new $t.MathNode("mglyph",[]);d.setAttribute("alt",l.alt);var p=st(l.height,h),C=0;if(l.totalheight.number>0&&(C=st(l.totalheight,h)-p,C=C.toFixed(2),d.setAttribute("valign","-"+C+"em")),d.setAttribute("height",p+C+"em"),l.width.number>0){var B=st(l.width,h);d.setAttribute("width",B+"em")}return d.setAttribute("src",l.src),d}}),er({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,h){var d=l.parser,p=l.funcName,C=jt(h[0],"size");if(d.settings.strict){var B=p[1]==="m",fe=C.value.unit==="mu";B?(fe||d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" supports only mu units, "+("not "+C.value.unit+" units")),d.mode!=="math"&&d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" works only in math mode")):fe&&d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" doesn't support mu units")}return{type:"kern",mode:d.mode,dimension:C.value}},htmlBuilder:function(l,h){return Ue.makeGlue(l.dimension,h)},mathmlBuilder:function(l,h){var d=st(l.dimension,h);return new $t.SpaceNode(d)}}),er({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0];return{type:"lap",mode:d.mode,alignment:p.slice(5),body:C}},htmlBuilder:function(l,h){var d;l.alignment==="clap"?(d=Ue.makeSpan([],[Mr(l.body,h)]),d=Ue.makeSpan(["inner"],[d],h)):d=Ue.makeSpan(["inner"],[Mr(l.body,h)]);var p=Ue.makeSpan(["fix"],[]),C=Ue.makeSpan([l.alignment],[d,p],h),B=Ue.makeSpan(["strut"]);return B.style.height=C.height+C.depth+"em",B.style.verticalAlign=-C.depth+"em",C.children.unshift(B),C=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},h),Ue.makeSpan(["mord"],[C],h)},mathmlBuilder:function(l,h){var d=new $t.MathNode("mpadded",[zr(l.body,h)]);if(l.alignment!=="rlap"){var p=l.alignment==="llap"?"-1":"-0.5";d.setAttribute("lspace",p+"width")}return d.setAttribute("width","0px"),d}}),er({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,h){var d=l.funcName,p=l.parser,C=p.mode;p.switchMode("math");var B=d==="\\("?"\\)":"$",fe=p.parseExpression(!1,B);return p.expect(B),p.switchMode(C),{type:"styling",mode:p.mode,style:"text",body:fe}}}),er({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,h){throw new ee("Mismatched "+l.funcName)}});var ia=function(l,h){switch(h.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}};er({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,h){var d=l.parser;return{type:"mathchoice",mode:d.mode,display:en(h[0]),text:en(h[1]),script:en(h[2]),scriptscript:en(h[3])}},htmlBuilder:function(l,h){var d=ia(l,h),p=an(d,h,!1);return Ue.makeFragment(p)},mathmlBuilder:function(l,h){var d=ia(l,h);return bn(d,h)}});var Bs=function(l,h,d,p,C,B,fe){l=Ue.makeSpan([],[l]);var Se,Fe;if(h){var Je=Mr(h,p.havingStyle(C.sup()),p);Fe={elem:Je,kern:Math.max(p.fontMetrics().bigOpSpacing1,p.fontMetrics().bigOpSpacing3-Je.depth)}}if(d){var ct=Mr(d,p.havingStyle(C.sub()),p);Se={elem:ct,kern:Math.max(p.fontMetrics().bigOpSpacing2,p.fontMetrics().bigOpSpacing4-ct.height)}}var vt;if(Fe&&Se){var kt=p.fontMetrics().bigOpSpacing5+Se.elem.height+Se.elem.depth+Se.kern+l.depth+fe;vt=Ue.makeVList({positionType:"bottom",positionData:kt,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:Se.elem,marginLeft:-B+"em"},{type:"kern",size:Se.kern},{type:"elem",elem:l},{type:"kern",size:Fe.kern},{type:"elem",elem:Fe.elem,marginLeft:B+"em"},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else if(Se){var zt=l.height-fe;vt=Ue.makeVList({positionType:"top",positionData:zt,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:Se.elem,marginLeft:-B+"em"},{type:"kern",size:Se.kern},{type:"elem",elem:l}]},p)}else if(Fe){var qt=l.depth+fe;vt=Ue.makeVList({positionType:"bottom",positionData:qt,children:[{type:"elem",elem:l},{type:"kern",size:Fe.kern},{type:"elem",elem:Fe.elem,marginLeft:B+"em"},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else return l;return Ue.makeSpan(["mop","op-limits"],[vt],p)},Ea=["\\smallint"],$i=function(l,h){var d,p,C=!1,B,fe=Jt(l,"supsub");fe?(d=fe.sup,p=fe.sub,B=jt(fe.base,"op"),C=!0):B=jt(l,"op");var Se=h.style,Fe=!1;Se.size===m.DISPLAY.size&&B.symbol&&!k.contains(Ea,B.name)&&(Fe=!0);var Je;if(B.symbol){var ct=Fe?"Size2-Regular":"Size1-Regular",vt="";if((B.name==="\\oiint"||B.name==="\\oiiint")&&(vt=B.name.substr(1),B.name=vt==="oiint"?"\\iint":"\\iiint"),Je=Ue.makeSymbol(B.name,ct,"math",h,["mop","op-symbol",Fe?"large-op":"small-op"]),vt.length>0){var kt=Je.italic,zt=Ue.staticSvg(vt+"Size"+(Fe?"2":"1"),h);Je=Ue.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Je,shift:0},{type:"elem",elem:zt,shift:Fe?.08:0}]},h),B.name="\\"+vt,Je.classes.unshift("mop"),Je.italic=kt}}else if(B.body){var qt=an(B.body,h,!0);qt.length===1&&qt[0]instanceof ae?(Je=qt[0],Je.classes[0]="mop"):Je=Ue.makeSpan(["mop"],Ue.tryCombineChars(qt),h)}else{for(var hr=[],Ar=1;Ar<B.name.length;Ar++)hr.push(Ue.mathsym(B.name[Ar],B.mode,h));Je=Ue.makeSpan(["mop"],hr,h)}var Rr=0,Cr=0;return(Je instanceof ae||B.name==="\\oiint"||B.name==="\\oiiint")&&!B.suppressBaseShift&&(Rr=(Je.height-Je.depth)/2-h.fontMetrics().axisHeight,Cr=Je.italic),C?Bs(Je,d,p,h,Se,Cr,Rr):(Rr&&(Je.style.position="relative",Je.style.top=Rr+"em"),Je)},ws=function(l,h){var d;if(l.symbol)d=new yn("mo",[jn(l.name,l.mode)]),k.contains(Ea,l.name)&&d.setAttribute("largeop","false");else if(l.body)d=new yn("mo",Pn(l.body,h));else{d=new yn("mi",[new _i(l.name.slice(1))]);var p=new yn("mo",[jn("\u2061","text")]);l.parentIsSupSub?d=new yn("mo",[d,p]):d=Ei([d,p])}return d},ja={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};er({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,h){var d=l.parser,p=l.funcName,C=p;return C.length===1&&(C=ja[C]),{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:C}},htmlBuilder:$i,mathmlBuilder:ws}),er({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,h){var d=l.parser,p=h[0];return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:en(p)}},htmlBuilder:$i,mathmlBuilder:ws});var wa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};er({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 h=l.parser,d=l.funcName;return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:d}},htmlBuilder:$i,mathmlBuilder:ws}),er({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var h=l.parser,d=l.funcName;return{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:d}},htmlBuilder:$i,mathmlBuilder:ws}),er({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var h=l.parser,d=l.funcName,p=d;return p.length===1&&(p=wa[p]),{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:p}},htmlBuilder:$i,mathmlBuilder:ws});var sa=function(l,h){var d,p,C=!1,B,fe=Jt(l,"supsub");fe?(d=fe.sup,p=fe.sub,B=jt(fe.base,"operatorname"),C=!0):B=jt(l,"operatorname");var Se;if(B.body.length>0){for(var Fe=B.body.map(function(kt){var zt=kt.text;return typeof zt=="string"?{type:"textord",mode:kt.mode,text:zt}:kt}),Je=an(Fe,h.withFont("mathrm"),!0),ct=0;ct<Je.length;ct++){var vt=Je[ct];vt instanceof ae&&(vt.text=vt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Se=Ue.makeSpan(["mop"],Je,h)}else Se=Ue.makeSpan(["mop"],[],h);return C?Bs(Se,d,p,h,h.style,0,0):Se},Ka=function(l,h){for(var d=Pn(l.body,h.withFont("mathrm")),p=!0,C=0;C<d.length;C++){var B=d[C];if(!(B instanceof $t.SpaceNode))if(B instanceof $t.MathNode)switch(B.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var fe=B.children[0];B.children.length===1&&fe instanceof $t.TextNode?fe.text=fe.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):p=!1;break}default:p=!1}else p=!1}if(p){var Se=d.map(function(ct){return ct.toText()}).join("");d=[new $t.TextNode(Se)]}var Fe=new $t.MathNode("mi",d);Fe.setAttribute("mathvariant","normal");var Je=new $t.MathNode("mo",[jn("\u2061","text")]);return l.parentIsSupSub?new $t.MathNode("mo",[Fe,Je]):$t.newDocumentFragment([Fe,Je])};er({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0];return{type:"operatorname",mode:d.mode,body:en(C),alwaysHandleSupSub:p==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:sa,mathmlBuilder:Ka}),un({type:"ordgroup",htmlBuilder:function(l,h){return l.semisimple?Ue.makeFragment(an(l.body,h,!1)):Ue.makeSpan(["mord"],an(l.body,h,!0),h)},mathmlBuilder:function(l,h){return bn(l.body,h,!0)}}),er({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,h){var d=l.parser,p=h[0];return{type:"overline",mode:d.mode,body:p}},htmlBuilder:function(l,h){var d=Mr(l.body,h.havingCrampedStyle()),p=Ue.makeLineSpan("overline-line",h),C=h.fontMetrics().defaultRuleThickness,B=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:3*C},{type:"elem",elem:p},{type:"kern",size:C}]},h);return Ue.makeSpan(["mord","overline"],[B],h)},mathmlBuilder:function(l,h){var d=new $t.MathNode("mo",[new $t.TextNode("\u203E")]);d.setAttribute("stretchy","true");var p=new $t.MathNode("mover",[zr(l.body,h),d]);return p.setAttribute("accent","true"),p}}),er({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,p=h[0];return{type:"phantom",mode:d.mode,body:en(p)}},htmlBuilder:function(l,h){var d=an(l.body,h.withPhantom(),!1);return Ue.makeFragment(d)},mathmlBuilder:function(l,h){var d=Pn(l.body,h);return new $t.MathNode("mphantom",d)}}),er({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,p=h[0];return{type:"hphantom",mode:d.mode,body:p}},htmlBuilder:function(l,h){var d=Ue.makeSpan([],[Mr(l.body,h.withPhantom())]);if(d.height=0,d.depth=0,d.children)for(var p=0;p<d.children.length;p++)d.children[p].height=0,d.children[p].depth=0;return d=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d}]},h),Ue.makeSpan(["mord"],[d],h)},mathmlBuilder:function(l,h){var d=Pn(en(l.body),h),p=new $t.MathNode("mphantom",d),C=new $t.MathNode("mpadded",[p]);return C.setAttribute("height","0px"),C.setAttribute("depth","0px"),C}}),er({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,p=h[0];return{type:"vphantom",mode:d.mode,body:p}},htmlBuilder:function(l,h){var d=Ue.makeSpan(["inner"],[Mr(l.body,h.withPhantom())]),p=Ue.makeSpan(["fix"],[]);return Ue.makeSpan(["mord","rlap"],[d,p],h)},mathmlBuilder:function(l,h){var d=Pn(en(l.body),h),p=new $t.MathNode("mphantom",d),C=new $t.MathNode("mpadded",[p]);return C.setAttribute("width","0px"),C}}),er({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,h){var d=l.parser,p=jt(h[0],"size").value,C=h[1];return{type:"raisebox",mode:d.mode,dy:p,body:C}},htmlBuilder:function(l,h){var d=Mr(l.body,h),p=st(l.dy,h);return Ue.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:d}]},h)},mathmlBuilder:function(l,h){var d=new $t.MathNode("mpadded",[zr(l.body,h)]),p=l.dy.number+l.dy.unit;return d.setAttribute("voffset",p),d}}),er({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,h,d){var p=l.parser,C=d[0],B=jt(h[0],"size"),fe=jt(h[1],"size");return{type:"rule",mode:p.mode,shift:C&&jt(C,"size").value,width:B.value,height:fe.value}},htmlBuilder:function(l,h){var d=Ue.makeSpan(["mord","rule"],[],h),p=st(l.width,h),C=st(l.height,h),B=l.shift?st(l.shift,h):0;return d.style.borderRightWidth=p+"em",d.style.borderTopWidth=C+"em",d.style.bottom=B+"em",d.width=p,d.height=C+B,d.depth=-B,d.maxFontSize=C*1.125*h.sizeMultiplier,d},mathmlBuilder:function(l,h){var d=st(l.width,h),p=st(l.height,h),C=l.shift?st(l.shift,h):0,B=h.color&&h.getColor()||"black",fe=new $t.MathNode("mspace");fe.setAttribute("mathbackground",B),fe.setAttribute("width",d+"em"),fe.setAttribute("height",p+"em");var Se=new $t.MathNode("mpadded",[fe]);return C>=0?Se.setAttribute("height","+"+C+"em"):(Se.setAttribute("height",C+"em"),Se.setAttribute("depth","+"+-C+"em")),Se.setAttribute("voffset",C+"em"),Se}});function aa(F,l,h){for(var d=an(F,l,!1),p=l.sizeMultiplier/h.sizeMultiplier,C=0;C<d.length;C++){var B=d[C].classes.indexOf("sizing");B<0?Array.prototype.push.apply(d[C].classes,l.sizingClasses(h)):d[C].classes[B+1]==="reset-size"+l.size&&(d[C].classes[B+1]="reset-size"+h.size),d[C].height*=p,d[C].depth*=p}return Ue.makeFragment(d)}var Ss=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Wa=function(l,h){var d=h.havingSize(l.size);return aa(l.body,d,h)};er({type:"sizing",names:Ss,props:{numArgs:0,allowedInText:!0},handler:function(l,h){var d=l.breakOnTokenText,p=l.funcName,C=l.parser,B=C.parseExpression(!1,d);return{type:"sizing",mode:C.mode,size:Ss.indexOf(p)+1,body:B}},htmlBuilder:Wa,mathmlBuilder:function(l,h){var d=h.havingSize(l.size),p=Pn(l.body,d),C=new $t.MathNode("mstyle",p);return C.setAttribute("mathsize",d.sizeMultiplier+"em"),C}}),er({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,h,d){var p=l.parser,C=!1,B=!1,fe=d[0]&&jt(d[0],"ordgroup");if(fe)for(var Se="",Fe=0;Fe<fe.body.length;++Fe){var Je=fe.body[Fe];if(Se=Je.text,Se==="t")C=!0;else if(Se==="b")B=!0;else{C=!1,B=!1;break}}else C=!0,B=!0;var ct=h[0];return{type:"smash",mode:p.mode,body:ct,smashHeight:C,smashDepth:B}},htmlBuilder:function(l,h){var d=Ue.makeSpan([],[Mr(l.body,h)]);if(!l.smashHeight&&!l.smashDepth)return d;if(l.smashHeight&&(d.height=0,d.children))for(var p=0;p<d.children.length;p++)d.children[p].height=0;if(l.smashDepth&&(d.depth=0,d.children))for(var C=0;C<d.children.length;C++)d.children[C].depth=0;var B=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d}]},h);return Ue.makeSpan(["mord"],[B],h)},mathmlBuilder:function(l,h){var d=new $t.MathNode("mpadded",[zr(l.body,h)]);return l.smashHeight&&d.setAttribute("height","0px"),l.smashDepth&&d.setAttribute("depth","0px"),d}}),er({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,h,d){var p=l.parser,C=d[0],B=h[0];return{type:"sqrt",mode:p.mode,body:B,index:C}},htmlBuilder:function(l,h){var d=Mr(l.body,h.havingCrampedStyle());d.height===0&&(d.height=h.fontMetrics().xHeight),d=Ue.wrapFragment(d,h);var p=h.fontMetrics(),C=p.defaultRuleThickness,B=C;h.style.id<m.TEXT.id&&(B=h.fontMetrics().xHeight);var fe=C+B/4,Se=d.height+d.depth+fe+C,Fe=ii.sqrtImage(Se,h),Je=Fe.span,ct=Fe.ruleWidth,vt=Fe.advanceWidth,kt=Je.height-ct;kt>d.height+d.depth+fe&&(fe=(fe+kt-d.height-d.depth)/2);var zt=Je.height-d.height-fe-ct;d.style.paddingLeft=vt+"em";var qt=Ue.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d,wrapperClasses:["svg-align"]},{type:"kern",size:-(d.height+zt)},{type:"elem",elem:Je},{type:"kern",size:ct}]},h);if(l.index){var hr=h.havingStyle(m.SCRIPTSCRIPT),Ar=Mr(l.index,hr,h),Rr=.6*(qt.height-qt.depth),Cr=Ue.makeVList({positionType:"shift",positionData:-Rr,children:[{type:"elem",elem:Ar}]},h),mn=Ue.makeSpan(["root"],[Cr]);return Ue.makeSpan(["mord","sqrt"],[mn,qt],h)}else return Ue.makeSpan(["mord","sqrt"],[qt],h)},mathmlBuilder:function(l,h){var d=l.body,p=l.index;return p?new $t.MathNode("mroot",[zr(d,h),zr(p,h)]):new $t.MathNode("msqrt",[zr(d,h)])}});var Sa={display:m.DISPLAY,text:m.TEXT,script:m.SCRIPT,scriptscript:m.SCRIPTSCRIPT};er({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,h){var d=l.breakOnTokenText,p=l.funcName,C=l.parser,B=C.parseExpression(!0,d),fe=p.slice(1,p.length-5);return{type:"styling",mode:C.mode,style:fe,body:B}},htmlBuilder:function(l,h){var d=Sa[l.style],p=h.havingStyle(d).withFont("");return aa(l.body,p,h)},mathmlBuilder:function(l,h){var d=Sa[l.style],p=h.havingStyle(d),C=Pn(l.body,p),B=new $t.MathNode("mstyle",C),fe={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Se=fe[l.style];return B.setAttribute("scriptlevel",Se[0]),B.setAttribute("displaystyle",Se[1]),B}});var Va=function(l,h){var d=l.base;if(d)if(d.type==="op"){var p=d.limits&&(h.style.size===m.DISPLAY.size||d.alwaysHandleSupSub);return p?$i:null}else if(d.type==="operatorname"){var C=d.alwaysHandleSupSub&&(h.style.size===m.DISPLAY.size||d.limits);return C?sa:null}else{if(d.type==="accent")return k.isCharacterBox(d.base)?Kr:null;if(d.type==="horizBrace"){var B=!l.sub;return B===d.isOver?xa:null}else return null}else return null};un({type:"supsub",htmlBuilder:function(l,h){var d=Va(l,h);if(d)return d(l,h);var p=l.base,C=l.sup,B=l.sub,fe=Mr(p,h),Se,Fe,Je=h.fontMetrics(),ct=0,vt=0,kt=p&&k.isCharacterBox(p);if(C){var zt=h.havingStyle(h.style.sup());Se=Mr(C,zt,h),kt||(ct=fe.height-zt.fontMetrics().supDrop*zt.sizeMultiplier/h.sizeMultiplier)}if(B){var qt=h.havingStyle(h.style.sub());Fe=Mr(B,qt,h),kt||(vt=fe.depth+qt.fontMetrics().subDrop*qt.sizeMultiplier/h.sizeMultiplier)}var hr;h.style===m.DISPLAY?hr=Je.sup1:h.style.cramped?hr=Je.sup3:hr=Je.sup2;var Ar=h.sizeMultiplier,Rr=.5/Je.ptPerEm/Ar+"em",Cr=null;if(Fe){var mn=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(fe instanceof ae||mn)&&(Cr=-fe.italic+"em")}var gn;if(Se&&Fe){ct=Math.max(ct,hr,Se.depth+.25*Je.xHeight),vt=Math.max(vt,Je.sub2);var Dn=Je.defaultRuleThickness,In=4*Dn;if(ct-Se.depth-(Fe.height-vt)<In){vt=In-(ct-Se.depth)+Fe.height;var Fn=.8*Je.xHeight-(ct-Se.depth);Fn>0&&(ct+=Fn,vt-=Fn)}var si=[{type:"elem",elem:Fe,shift:vt,marginRight:Rr,marginLeft:Cr},{type:"elem",elem:Se,shift:-ct,marginRight:Rr}];gn=Ue.makeVList({positionType:"individualShift",children:si},h)}else if(Fe){vt=Math.max(vt,Je.sub1,Fe.height-.8*Je.xHeight);var ri=[{type:"elem",elem:Fe,marginLeft:Cr,marginRight:Rr}];gn=Ue.makeVList({positionType:"shift",positionData:vt,children:ri},h)}else if(Se)ct=Math.max(ct,hr,Se.depth+.25*Je.xHeight),gn=Ue.makeVList({positionType:"shift",positionData:-ct,children:[{type:"elem",elem:Se,marginRight:Rr}]},h);else throw new Error("supsub must have either sup or sub.");var hn=Gn(fe,"right")||"mord";return Ue.makeSpan([hn],[fe,Ue.makeSpan(["msupsub"],[gn])],h)},mathmlBuilder:function(l,h){var d=!1,p,C,B=Jt(l.base,"horizBrace");B&&(C=!!l.sup,C===B.isOver&&(d=!0,p=B.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var fe=[zr(l.base,h)];l.sub&&fe.push(zr(l.sub,h)),l.sup&&fe.push(zr(l.sup,h));var Se;if(d)Se=p?"mover":"munder";else if(l.sub)if(l.sup){var ct=l.base;ct&&ct.type==="op"&&ct.limits&&h.style===m.DISPLAY||ct&&ct.type==="operatorname"&&ct.alwaysHandleSupSub&&(h.style===m.DISPLAY||ct.limits)?Se="munderover":Se="msubsup"}else{var Je=l.base;Je&&Je.type==="op"&&Je.limits&&(h.style===m.DISPLAY||Je.alwaysHandleSupSub)||Je&&Je.type==="operatorname"&&Je.alwaysHandleSupSub&&(Je.limits||h.style===m.DISPLAY)?Se="munder":Se="msub"}else{var Fe=l.base;Fe&&Fe.type==="op"&&Fe.limits&&(h.style===m.DISPLAY||Fe.alwaysHandleSupSub)||Fe&&Fe.type==="operatorname"&&Fe.alwaysHandleSupSub&&(Fe.limits||h.style===m.DISPLAY)?Se="mover":Se="msup"}var vt=new $t.MathNode(Se,fe);return vt}}),un({type:"atom",htmlBuilder:function(l,h){return Ue.mathsym(l.text,l.mode,h,["m"+l.family])},mathmlBuilder:function(l,h){var d=new $t.MathNode("mo",[jn(l.text,l.mode)]);if(l.family==="bin"){var p=ci(l,h);p==="bold-italic"&&d.setAttribute("mathvariant",p)}else l.family==="punct"?d.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&d.setAttribute("stretchy","false");return d}});var Ta={mi:"italic",mn:"normal",mtext:"normal"};un({type:"mathord",htmlBuilder:function(l,h){return Ue.makeOrd(l,h,"mathord")},mathmlBuilder:function(l,h){var d=new $t.MathNode("mi",[jn(l.text,l.mode,h)]),p=ci(l,h)||"italic";return p!==Ta[d.type]&&d.setAttribute("mathvariant",p),d}}),un({type:"textord",htmlBuilder:function(l,h){return Ue.makeOrd(l,h,"textord")},mathmlBuilder:function(l,h){var d=jn(l.text,l.mode,h),p=ci(l,h)||"normal",C;return l.mode==="text"?C=new $t.MathNode("mtext",[d]):/[0-9]/.test(l.text)?C=new $t.MathNode("mn",[d]):l.text==="\\prime"?C=new $t.MathNode("mo",[d]):C=new $t.MathNode("mi",[d]),p!==Ta[C.type]&&C.setAttribute("mathvariant",p),C}});var Fs={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},$s={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};un({type:"spacing",htmlBuilder:function(l,h){if($s.hasOwnProperty(l.text)){var d=$s[l.text].className||"";if(l.mode==="text"){var p=Ue.makeOrd(l,h,"textord");return p.classes.push(d),p}else return Ue.makeSpan(["mspace",d],[Ue.mathsym(l.text,l.mode,h)],h)}else{if(Fs.hasOwnProperty(l.text))return Ue.makeSpan(["mspace",Fs[l.text]],[],h);throw new ee('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,h){var d;if($s.hasOwnProperty(l.text))d=new $t.MathNode("mtext",[new $t.TextNode("\xA0")]);else{if(Fs.hasOwnProperty(l.text))return new $t.MathNode("mspace");throw new ee('Unknown type of space "'+l.text+'"')}return d}});var zs=function(){var l=new $t.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};un({type:"tag",mathmlBuilder:function(l,h){var d=new $t.MathNode("mtable",[new $t.MathNode("mtr",[zs(),new $t.MathNode("mtd",[bn(l.body,h)]),zs(),new $t.MathNode("mtd",[bn(l.tag,h)])])]);return d.setAttribute("width","100%"),d}});var oa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Aa={"\\textbf":"textbf","\\textmd":"textmd"},Ca={"\\textit":"textit","\\textup":"textup"},Da=function(l,h){var d=l.font;return d?oa[d]?h.withTextFontFamily(oa[d]):Aa[d]?h.withTextFontWeight(Aa[d]):h.withTextFontShape(Ca[d]):h};er({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,h){var d=l.parser,p=l.funcName,C=h[0];return{type:"text",mode:d.mode,body:en(C),font:p}},htmlBuilder:function(l,h){var d=Da(l,h),p=an(l.body,d,!0);return Ue.makeSpan(["mord","text"],Ue.tryCombineChars(p),d)},mathmlBuilder:function(l,h){var d=Da(l,h);return bn(l.body,d)}}),er({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser;return{type:"underline",mode:d.mode,body:h[0]}},htmlBuilder:function(l,h){var d=Mr(l.body,h),p=Ue.makeLineSpan("underline-line",h),C=h.fontMetrics().defaultRuleThickness,B=Ue.makeVList({positionType:"top",positionData:d.height,children:[{type:"kern",size:C},{type:"elem",elem:p},{type:"kern",size:3*C},{type:"elem",elem:d}]},h);return Ue.makeSpan(["mord","underline"],[B],h)},mathmlBuilder:function(l,h){var d=new $t.MathNode("mo",[new $t.TextNode("\u203E")]);d.setAttribute("stretchy","true");var p=new $t.MathNode("munder",[zr(l.body,h),d]);return p.setAttribute("accentunder","true"),p}}),er({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,h,d){throw new ee("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,h){for(var d=Ra(l),p=[],C=h.havingStyle(h.style.text()),B=0;B<d.length;B++){var fe=d[B];fe==="~"&&(fe="\\textasciitilde"),p.push(Ue.makeSymbol(fe,"Typewriter-Regular",l.mode,C,["mord","texttt"]))}return Ue.makeSpan(["mord","text"].concat(C.sizingClasses(h)),Ue.tryCombineChars(p),C)},mathmlBuilder:function(l,h){var d=new $t.TextNode(Ra(l)),p=new $t.MathNode("mtext",[d]);return p.setAttribute("mathvariant","monospace"),p}});var Ra=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Za=di,hs=Za,la=`[ \r
|
|
]`,ua="\\\\[a-zA-Z@]+",Ya="\\\\[^\uD800-\uDFFF]",Ia=""+ua+la+"*",Xa=new RegExp("^("+ua+")"+la+"*$"),ca="[\u0300-\u036F]",Jn=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 F(h,d){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=h,this.settings=d,this.tokenRegex=new RegExp(Vi,"g"),this.catcodes={"%":14}}var l=F.prototype;return l.setCatcode=function(d,p){this.catcodes[d]=p},l.lex=function(){var d=this.input,p=this.tokenRegex.lastIndex;if(p===d.length)return new ke("EOF",new be(this,p,p));var C=this.tokenRegex.exec(d);if(C===null||C.index!==p)throw new ee("Unexpected character: '"+d[p]+"'",new ke(d[p],new be(this,p,p+1)));var B=C[2]||" ";if(this.catcodes[B]===14){var fe=d.indexOf(`
|
|
`,this.tokenRegex.lastIndex);return fe===-1?(this.tokenRegex.lastIndex=d.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=fe+1,this.lex()}var Se=B.match(Xa);return Se&&(B=Se[1]),new ke(B,new be(this,p,this.tokenRegex.lastIndex))},F}(),qa=function(){function F(h,d){h===void 0&&(h={}),d===void 0&&(d={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=d,this.builtins=h,this.undefStack=[]}var l=F.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new ee("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var d=this.undefStack.pop();for(var p in d)d.hasOwnProperty(p)&&(d[p]===void 0?delete this.current[p]:this.current[p]=d[p])},l.has=function(d){return this.current.hasOwnProperty(d)||this.builtins.hasOwnProperty(d)},l.get=function(d){return this.current.hasOwnProperty(d)?this.current[d]:this.builtins[d]},l.set=function(d,p,C){if(C===void 0&&(C=!1),C){for(var B=0;B<this.undefStack.length;B++)delete this.undefStack[B][d];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][d]=p)}else{var fe=this.undefStack[this.undefStack.length-1];fe&&!fe.hasOwnProperty(d)&&(fe[d]=this.current[d])}this.current[d]=p},F}(),ka={},Hs=ka;function Le(F,l){ka[F]=l}Le("\\@firstoftwo",function(F){var l=F.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Le("\\@secondoftwo",function(F){var l=F.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Le("\\@ifnextchar",function(F){var l=F.consumeArgs(3),h=F.future();return l[0].length===1&&l[0][0].text===h.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Le("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Le("\\TextOrMath",function(F){var l=F.consumeArgs(2);return F.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};Le("\\char",function(F){var l=F.popToken(),h,d="";if(l.text==="'")h=8,l=F.popToken();else if(l.text==='"')h=16,l=F.popToken();else if(l.text==="`")if(l=F.popToken(),l.text[0]==="\\")d=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new ee("\\char` missing argument");d=l.text.charCodeAt(0)}else h=10;if(h){if(d=es[l.text],d==null||d>=h)throw new ee("Invalid base-"+h+" digit "+l.text);for(var p;(p=es[F.future().text])!=null&&p<h;)d*=h,d+=p,F.popToken()}return"\\@char{"+d+"}"});var ha=function(l,h){var d=l.consumeArgs(1)[0];if(d.length!==1)throw new ee("\\gdef's first argument must be a macro name");var p=d[0].text,C=0;for(d=l.consumeArgs(1)[0];d.length===1&&d[0].text==="#";){if(d=l.consumeArgs(1)[0],d.length!==1)throw new ee('Invalid argument number length "'+d.length+'"');if(!/^[1-9]$/.test(d[0].text))throw new ee('Invalid argument number "'+d[0].text+'"');if(C++,parseInt(d[0].text)!==C)throw new ee('Argument number "'+d[0].text+'" out of order');d=l.consumeArgs(1)[0]}return l.macros.set(p,{tokens:d,numArgs:C},h),""};Le("\\gdef",function(F){return ha(F,!0)}),Le("\\def",function(F){return ha(F,!1)}),Le("\\global",function(F){var l=F.consumeArgs(1)[0];if(l.length!==1)throw new ee("Invalid command after \\global");var h=l[0].text;if(h==="\\def")return ha(F,!0);throw new ee("Invalid command '"+h+"' after \\global")});var Gs=function(l,h,d){var p=l.consumeArgs(1)[0];if(p.length!==1)throw new ee("\\newcommand's first argument must be a macro name");var C=p[0].text,B=l.isDefined(C);if(B&&!h)throw new ee("\\newcommand{"+C+"} attempting to redefine "+(C+"; use \\renewcommand"));if(!B&&!d)throw new ee("\\renewcommand{"+C+"} when command "+C+" does not yet exist; use \\newcommand");var fe=0;if(p=l.consumeArgs(1)[0],p.length===1&&p[0].text==="["){for(var Se="",Fe=l.expandNextToken();Fe.text!=="]"&&Fe.text!=="EOF";)Se+=Fe.text,Fe=l.expandNextToken();if(!Se.match(/^\s*[0-9]+\s*$/))throw new ee("Invalid number of arguments: "+Se);fe=parseInt(Se),p=l.consumeArgs(1)[0]}return l.macros.set(C,{tokens:p,numArgs:fe}),""};Le("\\newcommand",function(F){return Gs(F,!1,!0)}),Le("\\renewcommand",function(F){return Gs(F,!0,!1)}),Le("\\providecommand",function(F){return Gs(F,!0,!0)}),Le("\\bgroup","{"),Le("\\egroup","}"),Le("\\lq","`"),Le("\\rq","'"),Le("\\aa","\\r a"),Le("\\AA","\\r A"),Le("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Le("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Le("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Le("\u212C","\\mathscr{B}"),Le("\u2130","\\mathscr{E}"),Le("\u2131","\\mathscr{F}"),Le("\u210B","\\mathscr{H}"),Le("\u2110","\\mathscr{I}"),Le("\u2112","\\mathscr{L}"),Le("\u2133","\\mathscr{M}"),Le("\u211B","\\mathscr{R}"),Le("\u212D","\\mathfrak{C}"),Le("\u210C","\\mathfrak{H}"),Le("\u2128","\\mathfrak{Z}"),Le("\\Bbbk","\\Bbb{k}"),Le("\xB7","\\cdotp"),Le("\\llap","\\mathllap{\\textrm{#1}}"),Le("\\rlap","\\mathrlap{\\textrm{#1}}"),Le("\\clap","\\mathclap{\\textrm{#1}}"),Le("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Le("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Le("\\ne","\\neq"),Le("\u2260","\\neq"),Le("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Le("\u2209","\\notin"),Le("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Le("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Le("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Le("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Le("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Le("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Le("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Le("\u27C2","\\perp"),Le("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Le("\u220C","\\notni"),Le("\u231C","\\ulcorner"),Le("\u231D","\\urcorner"),Le("\u231E","\\llcorner"),Le("\u231F","\\lrcorner"),Le("\xA9","\\copyright"),Le("\xAE","\\textregistered"),Le("\uFE0F","\\textregistered"),Le("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Le("\u22EE","\\vdots"),Le("\\varGamma","\\mathit{\\Gamma}"),Le("\\varDelta","\\mathit{\\Delta}"),Le("\\varTheta","\\mathit{\\Theta}"),Le("\\varLambda","\\mathit{\\Lambda}"),Le("\\varXi","\\mathit{\\Xi}"),Le("\\varPi","\\mathit{\\Pi}"),Le("\\varSigma","\\mathit{\\Sigma}"),Le("\\varUpsilon","\\mathit{\\Upsilon}"),Le("\\varPhi","\\mathit{\\Phi}"),Le("\\varPsi","\\mathit{\\Psi}"),Le("\\varOmega","\\mathit{\\Omega}"),Le("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Le("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Le("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Le("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Le("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Le("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var zi={",":"\\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"};Le("\\dots",function(F){var l="\\dotso",h=F.expandAfterFuture().text;return h in zi?l=zi[h]:(h.substr(0,4)==="\\not"||h in ot.math&&k.contains(["bin","rel"],ot.math[h].group))&&(l="\\dotsb"),l});var pt={")":!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};Le("\\dotso",function(F){var l=F.future().text;return l in pt?"\\ldots\\,":"\\ldots"}),Le("\\dotsc",function(F){var l=F.future().text;return l in pt&&l!==","?"\\ldots\\,":"\\ldots"}),Le("\\cdots",function(F){var l=F.future().text;return l in pt?"\\@cdots\\,":"\\@cdots"}),Le("\\dotsb","\\cdots"),Le("\\dotsm","\\cdots"),Le("\\dotsi","\\!\\cdots"),Le("\\dotsx","\\ldots\\,"),Le("\\DOTSI","\\relax"),Le("\\DOTSB","\\relax"),Le("\\DOTSX","\\relax"),Le("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Le("\\,","\\tmspace+{3mu}{.1667em}"),Le("\\thinspace","\\,"),Le("\\>","\\mskip{4mu}"),Le("\\:","\\tmspace+{4mu}{.2222em}"),Le("\\medspace","\\:"),Le("\\;","\\tmspace+{5mu}{.2777em}"),Le("\\thickspace","\\;"),Le("\\!","\\tmspace-{3mu}{.1667em}"),Le("\\negthinspace","\\!"),Le("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Le("\\negthickspace","\\tmspace-{5mu}{.277em}"),Le("\\enspace","\\kern.5em "),Le("\\enskip","\\hskip.5em\\relax"),Le("\\quad","\\hskip1em\\relax"),Le("\\qquad","\\hskip2em\\relax"),Le("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Le("\\tag@paren","\\tag@literal{({#1})}"),Le("\\tag@literal",function(F){if(F.macros.get("\\df@tag"))throw new ee("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Le("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Le("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Le("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Le("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Le("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Le("\\\\","\\newline"),Le("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var da=tt["Main-Regular"][84][1]-.7*tt["Main-Regular"][65][1]+"em";Le("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+da+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Le("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+da+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Le("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Le("\\@hspace","\\hskip #1\\relax"),Le("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Le("\\ordinarycolon",":"),Le("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Le("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Le("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Le("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Le("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Le("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Le("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Le("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Le("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Le("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Le("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Le("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Le("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Le("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Le("\u2237","\\dblcolon"),Le("\u2239","\\eqcolon"),Le("\u2254","\\coloneqq"),Le("\u2255","\\eqqcolon"),Le("\u2A74","\\Coloneqq"),Le("\\ratio","\\vcentcolon"),Le("\\coloncolon","\\dblcolon"),Le("\\colonequals","\\coloneqq"),Le("\\coloncolonequals","\\Coloneqq"),Le("\\equalscolon","\\eqqcolon"),Le("\\equalscoloncolon","\\Eqqcolon"),Le("\\colonminus","\\coloneq"),Le("\\coloncolonminus","\\Coloneq"),Le("\\minuscolon","\\eqcolon"),Le("\\minuscoloncolon","\\Eqcolon"),Le("\\coloncolonapprox","\\Colonapprox"),Le("\\coloncolonsim","\\Colonsim"),Le("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Le("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Le("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Le("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Le("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Le("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Le("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Le("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Le("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Le("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Le("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Le("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Le("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Le("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Le("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Le("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Le("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Le("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Le("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Le("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Le("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Le("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Le("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Le("\u27E6","\\llbracket"),Le("\u27E7","\\rrbracket"),Le("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Le("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Le("\u2983","\\lBrace"),Le("\u2984","\\rBrace"),Le("\\darr","\\downarrow"),Le("\\dArr","\\Downarrow"),Le("\\Darr","\\Downarrow"),Le("\\lang","\\langle"),Le("\\rang","\\rangle"),Le("\\uarr","\\uparrow"),Le("\\uArr","\\Uparrow"),Le("\\Uarr","\\Uparrow"),Le("\\N","\\mathbb{N}"),Le("\\R","\\mathbb{R}"),Le("\\Z","\\mathbb{Z}"),Le("\\alef","\\aleph"),Le("\\alefsym","\\aleph"),Le("\\Alpha","\\mathrm{A}"),Le("\\Beta","\\mathrm{B}"),Le("\\bull","\\bullet"),Le("\\Chi","\\mathrm{X}"),Le("\\clubs","\\clubsuit"),Le("\\cnums","\\mathbb{C}"),Le("\\Complex","\\mathbb{C}"),Le("\\Dagger","\\ddagger"),Le("\\diamonds","\\diamondsuit"),Le("\\empty","\\emptyset"),Le("\\Epsilon","\\mathrm{E}"),Le("\\Eta","\\mathrm{H}"),Le("\\exist","\\exists"),Le("\\harr","\\leftrightarrow"),Le("\\hArr","\\Leftrightarrow"),Le("\\Harr","\\Leftrightarrow"),Le("\\hearts","\\heartsuit"),Le("\\image","\\Im"),Le("\\infin","\\infty"),Le("\\Iota","\\mathrm{I}"),Le("\\isin","\\in"),Le("\\Kappa","\\mathrm{K}"),Le("\\larr","\\leftarrow"),Le("\\lArr","\\Leftarrow"),Le("\\Larr","\\Leftarrow"),Le("\\lrarr","\\leftrightarrow"),Le("\\lrArr","\\Leftrightarrow"),Le("\\Lrarr","\\Leftrightarrow"),Le("\\Mu","\\mathrm{M}"),Le("\\natnums","\\mathbb{N}"),Le("\\Nu","\\mathrm{N}"),Le("\\Omicron","\\mathrm{O}"),Le("\\plusmn","\\pm"),Le("\\rarr","\\rightarrow"),Le("\\rArr","\\Rightarrow"),Le("\\Rarr","\\Rightarrow"),Le("\\real","\\Re"),Le("\\reals","\\mathbb{R}"),Le("\\Reals","\\mathbb{R}"),Le("\\Rho","\\mathrm{P}"),Le("\\sdot","\\cdot"),Le("\\sect","\\S"),Le("\\spades","\\spadesuit"),Le("\\sub","\\subset"),Le("\\sube","\\subseteq"),Le("\\supe","\\supseteq"),Le("\\Tau","\\mathrm{T}"),Le("\\thetasym","\\vartheta"),Le("\\weierp","\\wp"),Le("\\Zeta","\\mathrm{Z}"),Le("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Le("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Le("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Le("\\blue","\\textcolor{##6495ed}{#1}"),Le("\\orange","\\textcolor{##ffa500}{#1}"),Le("\\pink","\\textcolor{##ff00af}{#1}"),Le("\\red","\\textcolor{##df0030}{#1}"),Le("\\green","\\textcolor{##28ae7b}{#1}"),Le("\\gray","\\textcolor{gray}{#1}"),Le("\\purple","\\textcolor{##9d38bd}{#1}"),Le("\\blueA","\\textcolor{##ccfaff}{#1}"),Le("\\blueB","\\textcolor{##80f6ff}{#1}"),Le("\\blueC","\\textcolor{##63d9ea}{#1}"),Le("\\blueD","\\textcolor{##11accd}{#1}"),Le("\\blueE","\\textcolor{##0c7f99}{#1}"),Le("\\tealA","\\textcolor{##94fff5}{#1}"),Le("\\tealB","\\textcolor{##26edd5}{#1}"),Le("\\tealC","\\textcolor{##01d1c1}{#1}"),Le("\\tealD","\\textcolor{##01a995}{#1}"),Le("\\tealE","\\textcolor{##208170}{#1}"),Le("\\greenA","\\textcolor{##b6ffb0}{#1}"),Le("\\greenB","\\textcolor{##8af281}{#1}"),Le("\\greenC","\\textcolor{##74cf70}{#1}"),Le("\\greenD","\\textcolor{##1fab54}{#1}"),Le("\\greenE","\\textcolor{##0d923f}{#1}"),Le("\\goldA","\\textcolor{##ffd0a9}{#1}"),Le("\\goldB","\\textcolor{##ffbb71}{#1}"),Le("\\goldC","\\textcolor{##ff9c39}{#1}"),Le("\\goldD","\\textcolor{##e07d10}{#1}"),Le("\\goldE","\\textcolor{##a75a05}{#1}"),Le("\\redA","\\textcolor{##fca9a9}{#1}"),Le("\\redB","\\textcolor{##ff8482}{#1}"),Le("\\redC","\\textcolor{##f9685d}{#1}"),Le("\\redD","\\textcolor{##e84d39}{#1}"),Le("\\redE","\\textcolor{##bc2612}{#1}"),Le("\\maroonA","\\textcolor{##ffbde0}{#1}"),Le("\\maroonB","\\textcolor{##ff92c6}{#1}"),Le("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Le("\\maroonD","\\textcolor{##ca337c}{#1}"),Le("\\maroonE","\\textcolor{##9e034e}{#1}"),Le("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Le("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Le("\\purpleC","\\textcolor{##aa87ff}{#1}"),Le("\\purpleD","\\textcolor{##7854ab}{#1}"),Le("\\purpleE","\\textcolor{##543b78}{#1}"),Le("\\mintA","\\textcolor{##f5f9e8}{#1}"),Le("\\mintB","\\textcolor{##edf2df}{#1}"),Le("\\mintC","\\textcolor{##e0e5cc}{#1}"),Le("\\grayA","\\textcolor{##f6f7f7}{#1}"),Le("\\grayB","\\textcolor{##f0f1f2}{#1}"),Le("\\grayC","\\textcolor{##e3e5e6}{#1}"),Le("\\grayD","\\textcolor{##d6d8da}{#1}"),Le("\\grayE","\\textcolor{##babec2}{#1}"),Le("\\grayF","\\textcolor{##888d93}{#1}"),Le("\\grayG","\\textcolor{##626569}{#1}"),Le("\\grayH","\\textcolor{##3b3e40}{#1}"),Le("\\grayI","\\textcolor{##21242c}{#1}"),Le("\\kaBlue","\\textcolor{##314453}{#1}"),Le("\\kaGreen","\\textcolor{##71B307}{#1}");var js={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Qa=function(){function F(h,d,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=d,this.expansionCount=0,this.feed(h),this.macros=new qa(Hs,d.macros),this.mode=p,this.stack=[]}var l=F.prototype;return l.feed=function(d){this.lexer=new Us(d,this.settings)},l.switchMode=function(d){this.mode=d},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(d){this.stack.push(d)},l.pushTokens=function(d){var p;(p=this.stack).push.apply(p,d)},l.consumeSpaces=function(){for(;;){var d=this.future();if(d.text===" ")this.stack.pop();else break}},l.consumeArgs=function(d){for(var p=[],C=0;C<d;++C){this.consumeSpaces();var B=this.popToken();if(B.text==="{"){for(var fe=[],Se=1;Se!==0;){var Fe=this.popToken();if(fe.push(Fe),Fe.text==="{")++Se;else if(Fe.text==="}")--Se;else if(Fe.text==="EOF")throw new ee("End of input in macro argument",B)}fe.pop(),fe.reverse(),p[C]=fe}else{if(B.text==="EOF")throw new ee("End of input expecting macro argument");p[C]=[B]}}return p},l.expandOnce=function(){var d=this.popToken(),p=d.text,C=this._getExpansion(p);if(C==null)return this.pushToken(d),d;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new ee("Too many expansions: infinite loop or need to increase maxExpand setting");var B=C.tokens;if(C.numArgs){var fe=this.consumeArgs(C.numArgs);B=B.slice();for(var Se=B.length-1;Se>=0;--Se){var Fe=B[Se];if(Fe.text==="#"){if(Se===0)throw new ee("Incomplete placeholder at end of macro body",Fe);if(Fe=B[--Se],Fe.text==="#")B.splice(Se+1,1);else if(/^[1-9]$/.test(Fe.text)){var Je;(Je=B).splice.apply(Je,[Se,2].concat(fe[+Fe.text-1]))}else throw new ee("Not a valid argument number",Fe)}}}return this.pushTokens(B),B},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var d=this.expandOnce();if(d instanceof ke)if(d.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(d){if(this.macros.get(d)){var p=[],C=this.stack.length;for(this.pushToken(new ke(d));this.stack.length>C;){var B=this.expandOnce();B instanceof ke&&p.push(this.stack.pop())}return p}},l.expandMacroAsText=function(d){var p=this.expandMacro(d);return p&&p.map(function(C){return C.text}).join("")},l._getExpansion=function(d){var p=this.macros.get(d);if(p==null)return p;var C=typeof p=="function"?p(this):p;if(typeof C=="string"){var B=0;if(C.indexOf("#")!==-1)for(var fe=C.replace(/##/g,"");fe.indexOf("#"+(B+1))!==-1;)++B;for(var Se=new Us(C,this.settings),Fe=[],Je=Se.lex();Je.text!=="EOF";)Fe.push(Je),Je=Se.lex();Fe.reverse();var ct={tokens:Fe,numArgs:B};return ct}return C},l.isDefined=function(d){return this.macros.has(d)||hs.hasOwnProperty(d)||ot.math.hasOwnProperty(d)||ot.text.hasOwnProperty(d)||js.hasOwnProperty(d)},F}(),ds={"\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"}},La={\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 F(h,d){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 Qa(h,d,this.mode),this.settings=d,this.leftrightDepth=0}var l=F.prototype;return l.expect=function(d,p){if(p===void 0&&(p=!0),this.fetch().text!==d)throw new ee("Expected '"+d+"', 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(d){this.mode=d,this.gullet.switchMode(d)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var d=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),d},l.parseExpression=function(d,p){for(var C=[];;){this.mode==="math"&&this.consumeSpaces();var B=this.fetch();if(F.endOfExpression.indexOf(B.text)!==-1||p&&B.text===p||d&&hs[B.text]&&hs[B.text].infix)break;var fe=this.parseAtom(p);if(!fe)break;C.push(fe)}return this.mode==="text"&&this.formLigatures(C),this.handleInfixNodes(C)},l.handleInfixNodes=function(d){for(var p=-1,C,B=0;B<d.length;B++){var fe=Jt(d[B],"infix");if(fe){if(p!==-1)throw new ee("only one infix operator per group",fe.token);p=B,C=fe.replaceWith}}if(p!==-1&&C){var Se,Fe,Je=d.slice(0,p),ct=d.slice(p+1);Je.length===1&&Je[0].type==="ordgroup"?Se=Je[0]:Se={type:"ordgroup",mode:this.mode,body:Je},ct.length===1&&ct[0].type==="ordgroup"?Fe=ct[0]:Fe={type:"ordgroup",mode:this.mode,body:ct};var vt;return C==="\\\\abovefrac"?vt=this.callFunction(C,[Se,d[p],Fe],[]):vt=this.callFunction(C,[Se,Fe],[]),[vt]}else return d},l.handleSupSubscript=function(d){var p=this.fetch(),C=p.text;this.consume();var B=this.parseGroup(d,!1,F.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!B)throw new ee("Expected group after '"+C+"'",p);return B},l.formatUnsupportedCmd=function(d){for(var p=[],C=0;C<d.length;C++)p.push({type:"textord",mode:"text",text:d[C]});var B={type:"text",mode:this.mode,body:p},fe={type:"color",mode:this.mode,color:this.settings.errorColor,body:[B]};return fe},l.parseAtom=function(d){var p=this.parseGroup("atom",!1,null,d);if(this.mode==="text")return p;for(var C,B;;){this.consumeSpaces();var fe=this.fetch();if(fe.text==="\\limits"||fe.text==="\\nolimits"){var Se=Jt(p,"op");if(Se){var Fe=fe.text==="\\limits";Se.limits=Fe,Se.alwaysHandleSupSub=!0}else if(Se=Jt(p,"operatorname"),Se&&Se.alwaysHandleSupSub){var Je=fe.text==="\\limits";Se.limits=Je}else throw new ee("Limit controls must follow a math operator",fe);this.consume()}else if(fe.text==="^"){if(C)throw new ee("Double superscript",fe);C=this.handleSupSubscript("superscript")}else if(fe.text==="_"){if(B)throw new ee("Double subscript",fe);B=this.handleSupSubscript("subscript")}else if(fe.text==="'"){if(C)throw new ee("Double superscript",fe);var ct={type:"textord",mode:this.mode,text:"\\prime"},vt=[ct];for(this.consume();this.fetch().text==="'";)vt.push(ct),this.consume();this.fetch().text==="^"&&vt.push(this.handleSupSubscript("superscript")),C={type:"ordgroup",mode:this.mode,body:vt}}else break}return C||B?{type:"supsub",mode:this.mode,base:p,sup:C,sub:B}:p},l.parseFunction=function(d,p,C){var B=this.fetch(),fe=B.text,Se=hs[fe];if(!Se)return null;if(this.consume(),C!=null&&Se.greediness<=C)throw new ee("Got function '"+fe+"' with no arguments"+(p?" as "+p:""),B);if(this.mode==="text"&&!Se.allowedInText)throw new ee("Can't use function '"+fe+"' in text mode",B);if(this.mode==="math"&&Se.allowedInMath===!1)throw new ee("Can't use function '"+fe+"' in math mode",B);var Fe=this.parseArguments(fe,Se),Je=Fe.args,ct=Fe.optArgs;return this.callFunction(fe,Je,ct,B,d)},l.callFunction=function(d,p,C,B,fe){var Se={funcName:d,parser:this,token:B,breakOnTokenText:fe},Fe=hs[d];if(Fe&&Fe.handler)return Fe.handler(Se,p,C);throw new ee("No function handler for "+d)},l.parseArguments=function(d,p){var C=p.numArgs+p.numOptionalArgs;if(C===0)return{args:[],optArgs:[]};for(var B=p.greediness,fe=[],Se=[],Fe=0;Fe<C;Fe++){var Je=p.argTypes&&p.argTypes[Fe],ct=Fe<p.numOptionalArgs,vt=Fe>0&&!ct||Fe===0&&!ct&&this.mode==="math",kt=this.parseGroupOfType("argument to '"+d+"'",Je,ct,B,vt);if(!kt){if(ct){Se.push(null);continue}throw new ee("Expected group after '"+d+"'",this.fetch())}(ct?Se:fe).push(kt)}return{args:fe,optArgs:Se}},l.parseGroupOfType=function(d,p,C,B,fe){switch(p){case"color":return fe&&this.consumeSpaces(),this.parseColorGroup(C);case"size":return fe&&this.consumeSpaces(),this.parseSizeGroup(C);case"url":return this.parseUrlGroup(C,fe);case"math":case"text":return this.parseGroup(d,C,B,void 0,p,fe);case"hbox":{var Se=this.parseGroup(d,C,B,void 0,"text",fe);if(!Se)return Se;var Fe={type:"styling",mode:Se.mode,body:[Se],style:"text"};return Fe}case"raw":{if(fe&&this.consumeSpaces(),C&&this.fetch().text==="{")return null;var Je=this.parseStringGroup("raw",C,!0);if(Je)return{type:"raw",mode:"text",string:Je.text};throw new ee("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(d,C,B,void 0,void 0,fe);default:throw new ee("Unknown group type as "+d,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(d,p,C){var B=p?"[":"{",fe=p?"]":"}",Se=this.fetch();if(Se.text!==B){if(p)return null;if(C&&Se.text!=="EOF"&&/[^{}[\]]/.test(Se.text))return this.consume(),Se}var Fe=this.mode;this.mode="text",this.expect(B);for(var Je="",ct=this.fetch(),vt=0,kt=ct,zt;(zt=this.fetch()).text!==fe||C&&vt>0;){switch(zt.text){case"EOF":throw new ee("Unexpected end of input in "+d,ct.range(kt,Je));case B:vt++;break;case fe:vt--;break}kt=zt,Je+=kt.text,this.consume()}return this.expect(fe),this.mode=Fe,ct.range(kt,Je)},l.parseRegexGroup=function(d,p){var C=this.mode;this.mode="text";for(var B=this.fetch(),fe=B,Se="",Fe;(Fe=this.fetch()).text!=="EOF"&&d.test(Se+Fe.text);)fe=Fe,Se+=fe.text,this.consume();if(Se==="")throw new ee("Invalid "+p+": '"+B.text+"'",B);return this.mode=C,B.range(fe,Se)},l.parseColorGroup=function(d){var p=this.parseStringGroup("color",d);if(!p)return null;var C=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(p.text);if(!C)throw new ee("Invalid color: '"+p.text+"'",p);var B=C[0];return/^[0-9a-f]{6}$/i.test(B)&&(B="#"+B),{type:"color-token",mode:this.mode,color:B}},l.parseSizeGroup=function(d){var p,C=!1;if(!d&&this.fetch().text!=="{"?p=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):p=this.parseStringGroup("size",d),!p)return null;!d&&p.text.length===0&&(p.text="0pt",C=!0);var B=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(p.text);if(!B)throw new ee("Invalid size: '"+p.text+"'",p);var fe={number:+(B[1]+B[2]),unit:B[3]};if(!it(fe))throw new ee("Invalid unit: '"+fe.unit+"'",p);return{type:"size",mode:this.mode,value:fe,isBlank:C}},l.parseUrlGroup=function(d,p){this.gullet.lexer.setCatcode("%",13);var C=this.parseStringGroup("url",d,!0);if(this.gullet.lexer.setCatcode("%",14),!C)return null;var B=C.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:B}},l.parseGroup=function(d,p,C,B,fe,Se){var Fe=this.mode;fe&&this.switchMode(fe),Se&&this.consumeSpaces();var Je=this.fetch(),ct=Je.text,vt;if(p?ct==="[":ct==="{"||ct==="\\begingroup"){this.consume();var kt=F.endOfGroup[ct];this.gullet.beginGroup();var zt=this.parseExpression(!1,kt),qt=this.fetch();this.expect(kt),this.gullet.endGroup(),vt={type:"ordgroup",mode:this.mode,loc:be.range(Je,qt),body:zt,semisimple:ct==="\\begingroup"||void 0}}else if(p)vt=null;else if(vt=this.parseFunction(B,d,C)||this.parseSymbol(),vt==null&&ct[0]==="\\"&&!js.hasOwnProperty(ct)){if(this.settings.throwOnError)throw new ee("Undefined control sequence: "+ct,Je);vt=this.formatUnsupportedCmd(ct),this.consume()}return fe&&this.switchMode(Fe),vt},l.formLigatures=function(d){for(var p=d.length-1,C=0;C<p;++C){var B=d[C],fe=B.text;fe==="-"&&d[C+1].text==="-"&&(C+1<p&&d[C+2].text==="-"?(d.splice(C,3,{type:"textord",mode:"text",loc:be.range(B,d[C+2]),text:"---"}),p-=2):(d.splice(C,2,{type:"textord",mode:"text",loc:be.range(B,d[C+1]),text:"--"}),p-=1)),(fe==="'"||fe==="`")&&d[C+1].text===fe&&(d.splice(C,2,{type:"textord",mode:"text",loc:be.range(B,d[C+1]),text:fe+fe}),p-=1)}},l.parseSymbol=function(){var d=this.fetch(),p=d.text;if(/^\\verb[^a-zA-Z]/.test(p)){this.consume();var C=p.slice(5),B=C.charAt(0)==="*";if(B&&(C=C.slice(1)),C.length<2||C.charAt(0)!==C.slice(-1))throw new ee(`\\verb assertion failed --
|
|
please report what input caused this bug`);return C=C.slice(1,-1),{type:"verb",mode:"text",body:C,star:B}}La.hasOwnProperty(p[0])&&!ot[this.mode][p[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+p[0]+'" used in math mode',d),p=La[p[0]]+p.substr(1));var fe=Jn.exec(p);fe&&(p=p.substring(0,fe.index),p==="i"?p="\u0131":p==="j"&&(p="\u0237"));var Se;if(ot[this.mode][p]){this.settings.strict&&this.mode==="math"&&Yr.indexOf(p)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+p[0]+'" used in math mode',d);var Fe=ot[this.mode][p].group,Je=be.range(d),ct;if(Ve.hasOwnProperty(Fe)){var vt=Fe;ct={type:"atom",mode:this.mode,family:vt,loc:Je,text:p}}else ct={type:Fe,mode:this.mode,loc:Je,text:p};Se=ct}else if(p.charCodeAt(0)>=128)this.settings.strict&&(Ie(p.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+p[0]+'" used in math mode',d):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+p[0]+'"'+(" ("+p.charCodeAt(0)+")"),d)),Se={type:"textord",mode:"text",loc:be.range(d),text:p};else return null;if(this.consume(),fe)for(var kt=0;kt<fe[0].length;kt++){var zt=fe[0][kt];if(!ds[zt])throw new ee("Unknown accent ' "+zt+"'",d);var qt=ds[zt][this.mode];if(!qt)throw new ee("Accent "+zt+" unsupported in "+this.mode+" mode",d);Se={type:"accent",mode:this.mode,loc:be.range(d),label:qt,isStretchy:!1,isShifty:!0,base:Se}}return Se},F}();Ks.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ks.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ks.SUPSUB_GREEDINESS=1;var Oa=function(l,h){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var d=new Ks(l,h);delete d.gullet.macros.current["\\df@tag"];var p=d.parse();if(d.gullet.macros.get("\\df@tag")){if(!h.displayMode)throw new ee("\\tag works only in display equations");d.gullet.feed("\\df@tag"),p=[{type:"tag",mode:"text",body:p,tag:d.parse()}]}return p},fa=Oa,Pa=function(l,h,d){h.textContent="";var p=gi(l,d).toNode();h.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 ee("KaTeX doesn't work in quirks mode.")});var fs=function(l,h){var d=gi(l,h).toMarkup();return d},pa=function(l,h){var d=new D(h);return fa(l,d)},Ts=function(l,h,d){if(d.throwOnError||!(l instanceof ee))throw l;var p=Ue.makeSpan(["katex-error"],[new ae(h)]);return p.setAttribute("title",l.toString()),p.setAttribute("style","color:"+d.errorColor),p},gi=function(l,h){var d=new D(h);try{var p=fa(l,d);return Mn(p,l,d)}catch(C){return Ts(C,l,d)}},Ja=function(l,h){var d=new D(h);try{var p=fa(l,d);return Kn(p,l,d)}catch(C){return Ts(C,l,d)}},Ma={version:"0.11.1",render:Pa,renderToString:fs,ParseError:ee,__parse:pa,__renderToDomTree:gi,__renderToHTMLTree:Ja,__setFontMetrics:ht,__defineSymbol:_,__defineMacro:Le,__domTree:{Span:J,Anchor:Pe,SymbolNode:ae,SvgNode:ve,PathNode:we,LineNode:De}},eo=S.default=Ma}]).default})},32834:function(Mt){(function(Qe,S){Mt.exports=S()})(this,function(){"use strict";function Qe(Te,He){for(var Ze=0;Ze<He.length;Ze++){var Y=He[Ze];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(Te,Y.key,Y)}}function S(Te,He,Ze){return He&&Qe(Te.prototype,He),Ze&&Qe(Te,Ze),Te}function Z(Te,He){if(Te){if(typeof Te=="string")return ie(Te,He);var Ze=Object.prototype.toString.call(Te).slice(8,-1);if(Ze==="Object"&&Te.constructor&&(Ze=Te.constructor.name),Ze==="Map"||Ze==="Set")return Array.from(Te);if(Ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ze))return ie(Te,He)}}function ie(Te,He){(He==null||He>Te.length)&&(He=Te.length);for(var Ze=0,Y=new Array(He);Ze<He;Ze++)Y[Ze]=Te[Ze];return Y}function be(Te,He){var Ze=typeof Symbol!="undefined"&&Te[Symbol.iterator]||Te["@@iterator"];if(Ze)return(Ze=Ze.call(Te)).next.bind(Ze);if(Array.isArray(Te)||(Ze=Z(Te))||He&&Te&&typeof Te.length=="number"){Ze&&(Te=Ze);var Y=0;return function(){return Y>=Te.length?{done:!0}:{done:!1,value:Te[Y++]}}}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 ke={exports:{}};function te(){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 ee(Te){ke.exports.defaults=Te}ke.exports={defaults:te(),getDefaults:te,changeDefaults:ee};var xe=/[&<>"']/,de=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,P={"&":"&","<":"<",">":">",'"':""","'":"'"},E=function(He){return P[He]};function c(Te,He){if(He){if(xe.test(Te))return Te.replace(de,E)}else if(a.test(Te))return Te.replace(N,E);return Te}var y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function x(Te){return Te.replace(y,function(He,Ze){return Ze=Ze.toLowerCase(),Ze==="colon"?":":Ze.charAt(0)==="#"?Ze.charAt(1)==="x"?String.fromCharCode(parseInt(Ze.substring(2),16)):String.fromCharCode(+Ze.substring(1)):""})}var H=/(^|[^\[])\^/g;function V(Te,He){Te=Te.source||Te,He=He||"";var Ze={replace:function(ce,Ee){return Ee=Ee.source||Ee,Ee=Ee.replace(H,"$1"),Te=Te.replace(ce,Ee),Ze},getRegex:function(){return new RegExp(Te,He)}};return Ze}var k=/[^\w:]/g,D=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function j(Te,He,Ze){if(Te){var Y;try{Y=decodeURIComponent(x(Ze)).replace(k,"").toLowerCase()}catch(ce){return null}if(Y.indexOf("javascript:")===0||Y.indexOf("vbscript:")===0||Y.indexOf("data:")===0)return null}He&&!D.test(Ze)&&(Ze=X(He,Ze));try{Ze=encodeURI(Ze).replace(/%25/g,"%")}catch(ce){return null}return Ze}var oe={},w=/^[^:]+:\/*[^/]*$/,K=/^([^:]+:)[\s\S]*$/,se=/^([^:]+:\/*[^/]*)[\s\S]*$/;function X(Te,He){oe[" "+Te]||(w.test(Te)?oe[" "+Te]=Te+"/":oe[" "+Te]=Ce(Te,"/",!0)),Te=oe[" "+Te];var Ze=Te.indexOf(":")===-1;return He.substring(0,2)==="//"?Ze?He:Te.replace(K,"$1")+He:He.charAt(0)==="/"?Ze?He:Te.replace(se,"$1")+He:Te+He}var _e={exec:function(){}};function he(Te){for(var He=1,Ze,Y;He<arguments.length;He++){Ze=arguments[He];for(Y in Ze)Object.prototype.hasOwnProperty.call(Ze,Y)&&(Te[Y]=Ze[Y])}return Te}function pe(Te,He){var Ze=Te.replace(/\|/g,function(Ee,ze,W){for(var bt=!1,Ae=ze;--Ae>=0&&W[Ae]==="\\";)bt=!bt;return bt?"|":" |"}),Y=Ze.split(/ \|/),ce=0;if(Y.length>He)Y.splice(He);else for(;Y.length<He;)Y.push("");for(;ce<Y.length;ce++)Y[ce]=Y[ce].trim().replace(/\\\|/g,"|");return Y}function Ce(Te,He,Ze){var Y=Te.length;if(Y===0)return"";for(var ce=0;ce<Y;){var Ee=Te.charAt(Y-ce-1);if(Ee===He&&!Ze)ce++;else if(Ee!==He&&Ze)ce++;else break}return Te.substr(0,Y-ce)}function M(Te,He){if(Te.indexOf(He[1])===-1)return-1;for(var Ze=Te.length,Y=0,ce=0;ce<Ze;ce++)if(Te[ce]==="\\")ce++;else if(Te[ce]===He[0])Y++;else if(Te[ce]===He[1]&&(Y--,Y<0))return ce;return-1}function I(Te){Te&&Te.sanitize&&!Te.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 U(Te,He){if(He<1)return"";for(var Ze="";He>1;)He&1&&(Ze+=Te),He>>=1,Te+=Te;return Ze+Te}var R={escape:c,unescape:x,edit:V,cleanUrl:j,resolveUrl:X,noopTest:_e,merge:he,splitCells:pe,rtrim:Ce,findClosingBracket:M,checkSanitizeDeprecation:I,repeatString:U},q=ke.exports.defaults,$=R.rtrim,m=R.splitCells,v=R.escape,L=R.findClosingBracket;function re(Te,He,Ze){var Y=He.href,ce=He.title?v(He.title):null,Ee=Te[1].replace(/\\([\[\]])/g,"$1");return Te[0].charAt(0)!=="!"?{type:"link",raw:Ze,href:Y,title:ce,text:Ee}:{type:"image",raw:Ze,href:Y,title:ce,text:v(Ee)}}function Ie(Te,He){var Ze=Te.match(/^(\s+)(?:```)/);if(Ze===null)return He;var Y=Ze[1];return He.split(`
|
|
`).map(function(ce){var Ee=ce.match(/^\s+/);if(Ee===null)return ce;var ze=Ee[0];return ze.length>=Y.length?ce.slice(Y.length):ce}).join(`
|
|
`)}var Be=function(){function Te(Ze){this.options=Ze||q}var He=Te.prototype;return He.space=function(Y){var ce=this.rules.block.newline.exec(Y);if(ce)return ce[0].length>1?{type:"space",raw:ce[0]}:{raw:`
|
|
`}},He.code=function(Y){var ce=this.rules.block.code.exec(Y);if(ce){var Ee=ce[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ce[0],codeBlockStyle:"indented",text:this.options.pedantic?Ee:$(Ee,`
|
|
`)}}},He.fences=function(Y){var ce=this.rules.block.fences.exec(Y);if(ce){var Ee=ce[0],ze=Ie(Ee,ce[3]||"");return{type:"code",raw:Ee,lang:ce[2]?ce[2].trim():ce[2],text:ze}}},He.heading=function(Y){var ce=this.rules.block.heading.exec(Y);if(ce){var Ee=ce[2].trim();if(/#$/.test(Ee)){var ze=$(Ee,"#");(this.options.pedantic||!ze||/ $/.test(ze))&&(Ee=ze.trim())}return{type:"heading",raw:ce[0],depth:ce[1].length,text:Ee}}},He.nptable=function(Y){var ce=this.rules.block.nptable.exec(Y);if(ce){var Ee={type:"table",header:m(ce[1].replace(/^ *| *\| *$/g,"")),align:ce[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ce[3]?ce[3].replace(/\n$/,"").split(`
|
|
`):[],raw:ce[0]};if(Ee.header.length===Ee.align.length){var ze=Ee.align.length,W;for(W=0;W<ze;W++)/^ *-+: *$/.test(Ee.align[W])?Ee.align[W]="right":/^ *:-+: *$/.test(Ee.align[W])?Ee.align[W]="center":/^ *:-+ *$/.test(Ee.align[W])?Ee.align[W]="left":Ee.align[W]=null;for(ze=Ee.cells.length,W=0;W<ze;W++)Ee.cells[W]=m(Ee.cells[W],Ee.header.length);return Ee}}},He.hr=function(Y){var ce=this.rules.block.hr.exec(Y);if(ce)return{type:"hr",raw:ce[0]}},He.blockquote=function(Y){var ce=this.rules.block.blockquote.exec(Y);if(ce){var Ee=ce[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ce[0],text:Ee}}},He.list=function(Y){var ce=this.rules.block.list.exec(Y);if(ce){var Ee=ce[0],ze=ce[2],W=ze.length>1,bt={type:"list",raw:Ee,ordered:W,start:W?+ze.slice(0,-1):"",loose:!1,items:[]},Ae=ce[0].match(this.rules.block.item),Dt=!1,Ht,Xt,mr,Bt,Ft,fr,Br,Ur,kr,Kt=Ae.length;mr=this.rules.block.listItemStart.exec(Ae[0]);for(var lr=0;lr<Kt;lr++){if(Ht=Ae[lr],Ee=Ht,this.options.pedantic||(kr=Ht.match(new RegExp("\\n\\s*\\n {0,"+(mr[0].length-1)+"}\\S")),kr&&(Ft=Ht.length-kr.index+Ae.slice(lr+1).join(`
|
|
`).length,bt.raw=bt.raw.substring(0,bt.raw.length-Ft),Ht=Ht.substring(0,kr.index),Ee=Ht,Kt=lr+1)),lr!==Kt-1){if(Bt=this.rules.block.listItemStart.exec(Ae[lr+1]),this.options.pedantic?Bt[1].length>mr[1].length:Bt[1].length>=mr[0].length||Bt[1].length>3){Ae.splice(lr,2,Ae[lr]+(!this.options.pedantic&&Bt[1].length<mr[0].length&&!Ae[lr].match(/\n$/)?"":`
|
|
`)+Ae[lr+1]),lr--,Kt--;continue}else(!this.options.pedantic||this.options.smartLists?Bt[2][Bt[2].length-1]!==ze[ze.length-1]:W===(Bt[2].length===1))&&(Ft=Ae.slice(lr+1).join(`
|
|
`).length,bt.raw=bt.raw.substring(0,bt.raw.length-Ft),lr=Kt-1);mr=Bt}Xt=Ht.length,Ht=Ht.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Ht.indexOf(`
|
|
`)&&(Xt-=Ht.length,Ht=this.options.pedantic?Ht.replace(/^ {1,4}/gm,""):Ht.replace(new RegExp("^ {1,"+Xt+"}","gm"),"")),Ht=$(Ht,`
|
|
`),lr!==Kt-1&&(Ee=Ee+`
|
|
`),fr=Dt||/\n\n(?!\s*$)/.test(Ee),lr!==Kt-1&&(Dt=Ee.slice(-2)===`
|
|
|
|
`,fr||(fr=Dt)),fr&&(bt.loose=!0),this.options.gfm&&(Br=/^\[[ xX]\] /.test(Ht),Ur=void 0,Br&&(Ur=Ht[1]!==" ",Ht=Ht.replace(/^\[[ xX]\] +/,""))),bt.items.push({type:"list_item",raw:Ee,task:Br,checked:Ur,loose:fr,text:Ht})}return bt}},He.html=function(Y){var ce=this.rules.block.html.exec(Y);if(ce)return{type:this.options.sanitize?"paragraph":"html",raw:ce[0],pre:!this.options.sanitizer&&(ce[1]==="pre"||ce[1]==="script"||ce[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ce[0]):v(ce[0]):ce[0]}},He.def=function(Y){var ce=this.rules.block.def.exec(Y);if(ce){ce[3]&&(ce[3]=ce[3].substring(1,ce[3].length-1));var Ee=ce[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Ee,raw:ce[0],href:ce[2],title:ce[3]}}},He.table=function(Y){var ce=this.rules.block.table.exec(Y);if(ce){var Ee={type:"table",header:m(ce[1].replace(/^ *| *\| *$/g,"")),align:ce[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ce[3]?ce[3].replace(/\n$/,"").split(`
|
|
`):[]};if(Ee.header.length===Ee.align.length){Ee.raw=ce[0];var ze=Ee.align.length,W;for(W=0;W<ze;W++)/^ *-+: *$/.test(Ee.align[W])?Ee.align[W]="right":/^ *:-+: *$/.test(Ee.align[W])?Ee.align[W]="center":/^ *:-+ *$/.test(Ee.align[W])?Ee.align[W]="left":Ee.align[W]=null;for(ze=Ee.cells.length,W=0;W<ze;W++)Ee.cells[W]=m(Ee.cells[W].replace(/^ *\| *| *\| *$/g,""),Ee.header.length);return Ee}}},He.lheading=function(Y){var ce=this.rules.block.lheading.exec(Y);if(ce)return{type:"heading",raw:ce[0],depth:ce[2].charAt(0)==="="?1:2,text:ce[1]}},He.paragraph=function(Y){var ce=this.rules.block.paragraph.exec(Y);if(ce)return{type:"paragraph",raw:ce[0],text:ce[1].charAt(ce[1].length-1)===`
|
|
`?ce[1].slice(0,-1):ce[1]}},He.text=function(Y){var ce=this.rules.block.text.exec(Y);if(ce)return{type:"text",raw:ce[0],text:ce[0]}},He.escape=function(Y){var ce=this.rules.inline.escape.exec(Y);if(ce)return{type:"escape",raw:ce[0],text:v(ce[1])}},He.tag=function(Y,ce,Ee){var ze=this.rules.inline.tag.exec(Y);if(ze)return!ce&&/^<a /i.test(ze[0])?ce=!0:ce&&/^<\/a>/i.test(ze[0])&&(ce=!1),!Ee&&/^<(pre|code|kbd|script)(\s|>)/i.test(ze[0])?Ee=!0:Ee&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ze[0])&&(Ee=!1),{type:this.options.sanitize?"text":"html",raw:ze[0],inLink:ce,inRawBlock:Ee,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):v(ze[0]):ze[0]}},He.link=function(Y){var ce=this.rules.inline.link.exec(Y);if(ce){var Ee=ce[2].trim();if(!this.options.pedantic&&/^</.test(Ee)){if(!/>$/.test(Ee))return;var ze=$(Ee.slice(0,-1),"\\");if((Ee.length-ze.length)%2===0)return}else{var W=L(ce[2],"()");if(W>-1){var bt=ce[0].indexOf("!")===0?5:4,Ae=bt+ce[1].length+W;ce[2]=ce[2].substring(0,W),ce[0]=ce[0].substring(0,Ae).trim(),ce[3]=""}}var Dt=ce[2],Ht="";if(this.options.pedantic){var Xt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Dt);Xt&&(Dt=Xt[1],Ht=Xt[3])}else Ht=ce[3]?ce[3].slice(1,-1):"";return Dt=Dt.trim(),/^</.test(Dt)&&(this.options.pedantic&&!/>$/.test(Ee)?Dt=Dt.slice(1):Dt=Dt.slice(1,-1)),re(ce,{href:Dt&&Dt.replace(this.rules.inline._escapes,"$1"),title:Ht&&Ht.replace(this.rules.inline._escapes,"$1")},ce[0])}},He.reflink=function(Y,ce){var Ee;if((Ee=this.rules.inline.reflink.exec(Y))||(Ee=this.rules.inline.nolink.exec(Y))){var ze=(Ee[2]||Ee[1]).replace(/\s+/g," ");if(ze=ce[ze.toLowerCase()],!ze||!ze.href){var W=Ee[0].charAt(0);return{type:"text",raw:W,text:W}}return re(Ee,ze,Ee[0])}},He.emStrong=function(Y,ce,Ee){Ee===void 0&&(Ee="");var ze=this.rules.inline.emStrong.lDelim.exec(Y);if(ze&&!(ze[3]&&Ee.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 W=ze[1]||ze[2]||"";if(!W||W&&(Ee===""||this.rules.inline.punctuation.exec(Ee))){var bt=ze[0].length-1,Ae,Dt,Ht=bt,Xt=0,mr=ze[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(mr.lastIndex=0,ce=ce.slice(-1*Y.length+bt);(ze=mr.exec(ce))!=null;)if(Ae=ze[1]||ze[2]||ze[3]||ze[4]||ze[5]||ze[6],!!Ae){if(Dt=Ae.length,ze[3]||ze[4]){Ht+=Dt;continue}else if((ze[5]||ze[6])&&bt%3&&!((bt+Dt)%3)){Xt+=Dt;continue}if(Ht-=Dt,!(Ht>0))return Dt=Math.min(Dt,Dt+Ht+Xt),Math.min(bt,Dt)%2?{type:"em",raw:Y.slice(0,bt+ze.index+Dt+1),text:Y.slice(1,bt+ze.index+Dt)}:{type:"strong",raw:Y.slice(0,bt+ze.index+Dt+1),text:Y.slice(2,bt+ze.index+Dt-1)}}}}},He.codespan=function(Y){var ce=this.rules.inline.code.exec(Y);if(ce){var Ee=ce[2].replace(/\n/g," "),ze=/[^ ]/.test(Ee),W=/^ /.test(Ee)&&/ $/.test(Ee);return ze&&W&&(Ee=Ee.substring(1,Ee.length-1)),Ee=v(Ee,!0),{type:"codespan",raw:ce[0],text:Ee}}},He.br=function(Y){var ce=this.rules.inline.br.exec(Y);if(ce)return{type:"br",raw:ce[0]}},He.del=function(Y){var ce=this.rules.inline.del.exec(Y);if(ce)return{type:"del",raw:ce[0],text:ce[2]}},He.autolink=function(Y,ce){var Ee=this.rules.inline.autolink.exec(Y);if(Ee){var ze,W;return Ee[2]==="@"?(ze=v(this.options.mangle?ce(Ee[1]):Ee[1]),W="mailto:"+ze):(ze=v(Ee[1]),W=ze),{type:"link",raw:Ee[0],text:ze,href:W,tokens:[{type:"text",raw:ze,text:ze}]}}},He.url=function(Y,ce){var Ee;if(Ee=this.rules.inline.url.exec(Y)){var ze,W;if(Ee[2]==="@")ze=v(this.options.mangle?ce(Ee[0]):Ee[0]),W="mailto:"+ze;else{var bt;do bt=Ee[0],Ee[0]=this.rules.inline._backpedal.exec(Ee[0])[0];while(bt!==Ee[0]);ze=v(Ee[0]),Ee[1]==="www."?W="http://"+ze:W=ze}return{type:"link",raw:Ee[0],text:ze,href:W,tokens:[{type:"text",raw:ze,text:ze}]}}},He.inlineText=function(Y,ce,Ee){var ze=this.rules.inline.text.exec(Y);if(ze){var W;return ce?W=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):v(ze[0]):ze[0]:W=v(this.options.smartypants?Ee(ze[0]):ze[0]),{type:"text",raw:ze[0],text:W}}},Te}(),Oe=R.noopTest,je=R.edit,at=R.merge,et={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:Oe,table:Oe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};et._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,et._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,et.def=je(et.def).replace("label",et._label).replace("title",et._title).getRegex(),et.bullet=/(?:[*+-]|\d{1,9}[.)])/,et.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,et.item=je(et.item,"gm").replace(/bull/g,et.bullet).getRegex(),et.listItemStart=je(/^( *)(bull) */).replace("bull",et.bullet).getRegex(),et.list=je(et.list).replace(/bull/g,et.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+et.def.source+")").getRegex(),et._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",et._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,et.html=je(et.html,"i").replace("comment",et._comment).replace("tag",et._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),et.paragraph=je(et._paragraph).replace("hr",et.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",et._tag).getRegex(),et.blockquote=je(et.blockquote).replace("paragraph",et.paragraph).getRegex(),et.normal=at({},et),et.gfm=at({},et.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*|$)"}),et.gfm.nptable=je(et.gfm.nptable).replace("hr",et.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",et._tag).getRegex(),et.gfm.table=je(et.gfm.table).replace("hr",et.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",et._tag).getRegex(),et.pedantic=at({},et.normal,{html:je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",et._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:Oe,paragraph:je(et.normal._paragraph).replace("hr",et.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",et.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var rt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Oe,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:Oe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};rt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",rt.punctuation=je(rt.punctuation).replace(/punctuation/g,rt._punctuation).getRegex(),rt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,rt.escapedEmSt=/\\\*|\\_/g,rt._comment=je(et._comment).replace("(?:-->|$)","-->").getRegex(),rt.emStrong.lDelim=je(rt.emStrong.lDelim).replace(/punct/g,rt._punctuation).getRegex(),rt.emStrong.rDelimAst=je(rt.emStrong.rDelimAst,"g").replace(/punct/g,rt._punctuation).getRegex(),rt.emStrong.rDelimUnd=je(rt.emStrong.rDelimUnd,"g").replace(/punct/g,rt._punctuation).getRegex(),rt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,rt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,rt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,rt.autolink=je(rt.autolink).replace("scheme",rt._scheme).replace("email",rt._email).getRegex(),rt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,rt.tag=je(rt.tag).replace("comment",rt._comment).replace("attribute",rt._attribute).getRegex(),rt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,rt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,rt.link=je(rt.link).replace("label",rt._label).replace("href",rt._href).replace("title",rt._title).getRegex(),rt.reflink=je(rt.reflink).replace("label",rt._label).getRegex(),rt.reflinkSearch=je(rt.reflinkSearch,"g").replace("reflink",rt.reflink).replace("nolink",rt.nolink).getRegex(),rt.normal=at({},rt),rt.pedantic=at({},rt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:je(/^!?\[(label)\]\((.*?)\)/).replace("label",rt._label).getRegex(),reflink:je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rt._label).getRegex()}),rt.gfm=at({},rt.normal,{escape:je(rt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),rt.gfm.url=je(rt.gfm.url,"i").replace("email",rt.gfm._extended_email).getRegex(),rt.breaks=at({},rt.gfm,{br:je(rt.br).replace("{2,}","*").getRegex(),text:je(rt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Tt={block:et,inline:rt},At=Be,Ot=ke.exports.defaults,yt=Tt.block,Rt=Tt.inline,Ct=R.repeatString;function ue(Te){return Te.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 ye(Te){var He="",Ze,Y,ce=Te.length;for(Ze=0;Ze<ce;Ze++)Y=Te.charCodeAt(Ze),Math.random()>.5&&(Y="x"+Y.toString(16)),He+="&#"+Y+";";return He}var J=function(){function Te(Ze){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ze||Ot,this.options.tokenizer=this.options.tokenizer||new At,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Y={block:yt.normal,inline:Rt.normal};this.options.pedantic?(Y.block=yt.pedantic,Y.inline=Rt.pedantic):this.options.gfm&&(Y.block=yt.gfm,this.options.breaks?Y.inline=Rt.breaks:Y.inline=Rt.gfm),this.tokenizer.rules=Y}Te.lex=function(Y,ce){var Ee=new Te(ce);return Ee.lex(Y)},Te.lexInline=function(Y,ce){var Ee=new Te(ce);return Ee.inlineTokens(Y)};var He=Te.prototype;return He.lex=function(Y){return Y=Y.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(Y,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(Y,ce,Ee){ce===void 0&&(ce=[]),Ee===void 0&&(Ee=!0),this.options.pedantic&&(Y=Y.replace(/^ +$/gm,""));for(var ze,W,bt,Ae;Y;){if(ze=this.tokenizer.space(Y)){Y=Y.substring(ze.raw.length),ze.type&&ce.push(ze);continue}if(ze=this.tokenizer.code(Y)){Y=Y.substring(ze.raw.length),Ae=ce[ce.length-1],Ae&&Ae.type==="paragraph"?(Ae.raw+=`
|
|
`+ze.raw,Ae.text+=`
|
|
`+ze.text):ce.push(ze);continue}if(ze=this.tokenizer.fences(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(ze=this.tokenizer.heading(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(ze=this.tokenizer.nptable(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(ze=this.tokenizer.hr(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(ze=this.tokenizer.blockquote(Y)){Y=Y.substring(ze.raw.length),ze.tokens=this.blockTokens(ze.text,[],Ee),ce.push(ze);continue}if(ze=this.tokenizer.list(Y)){for(Y=Y.substring(ze.raw.length),bt=ze.items.length,W=0;W<bt;W++)ze.items[W].tokens=this.blockTokens(ze.items[W].text,[],!1);ce.push(ze);continue}if(ze=this.tokenizer.html(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(Ee&&(ze=this.tokenizer.def(Y))){Y=Y.substring(ze.raw.length),this.tokens.links[ze.tag]||(this.tokens.links[ze.tag]={href:ze.href,title:ze.title});continue}if(ze=this.tokenizer.table(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(ze=this.tokenizer.lheading(Y)){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(Ee&&(ze=this.tokenizer.paragraph(Y))){Y=Y.substring(ze.raw.length),ce.push(ze);continue}if(ze=this.tokenizer.text(Y)){Y=Y.substring(ze.raw.length),Ae=ce[ce.length-1],Ae&&Ae.type==="text"?(Ae.raw+=`
|
|
`+ze.raw,Ae.text+=`
|
|
`+ze.text):ce.push(ze);continue}if(Y){var Dt="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(Dt);break}else throw new Error(Dt)}}return ce},He.inline=function(Y){var ce,Ee,ze,W,bt,Ae,Dt=Y.length;for(ce=0;ce<Dt;ce++)switch(Ae=Y[ce],Ae.type){case"paragraph":case"text":case"heading":{Ae.tokens=[],this.inlineTokens(Ae.text,Ae.tokens);break}case"table":{for(Ae.tokens={header:[],cells:[]},W=Ae.header.length,Ee=0;Ee<W;Ee++)Ae.tokens.header[Ee]=[],this.inlineTokens(Ae.header[Ee],Ae.tokens.header[Ee]);for(W=Ae.cells.length,Ee=0;Ee<W;Ee++)for(bt=Ae.cells[Ee],Ae.tokens.cells[Ee]=[],ze=0;ze<bt.length;ze++)Ae.tokens.cells[Ee][ze]=[],this.inlineTokens(bt[ze],Ae.tokens.cells[Ee][ze]);break}case"blockquote":{this.inline(Ae.tokens);break}case"list":{for(W=Ae.items.length,Ee=0;Ee<W;Ee++)this.inline(Ae.items[Ee].tokens);break}}return Y},He.inlineTokens=function(Y,ce,Ee,ze){ce===void 0&&(ce=[]),Ee===void 0&&(Ee=!1),ze===void 0&&(ze=!1);var W,bt,Ae=Y,Dt,Ht,Xt;if(this.tokens.links){var mr=Object.keys(this.tokens.links);if(mr.length>0)for(;(Dt=this.tokenizer.rules.inline.reflinkSearch.exec(Ae))!=null;)mr.includes(Dt[0].slice(Dt[0].lastIndexOf("[")+1,-1))&&(Ae=Ae.slice(0,Dt.index)+"["+Ct("a",Dt[0].length-2)+"]"+Ae.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Dt=this.tokenizer.rules.inline.blockSkip.exec(Ae))!=null;)Ae=Ae.slice(0,Dt.index)+"["+Ct("a",Dt[0].length-2)+"]"+Ae.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Dt=this.tokenizer.rules.inline.escapedEmSt.exec(Ae))!=null;)Ae=Ae.slice(0,Dt.index)+"++"+Ae.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;Y;){if(Ht||(Xt=""),Ht=!1,W=this.tokenizer.escape(Y)){Y=Y.substring(W.raw.length),ce.push(W);continue}if(W=this.tokenizer.tag(Y,Ee,ze)){Y=Y.substring(W.raw.length),Ee=W.inLink,ze=W.inRawBlock;var Bt=ce[ce.length-1];Bt&&W.type==="text"&&Bt.type==="text"?(Bt.raw+=W.raw,Bt.text+=W.text):ce.push(W);continue}if(W=this.tokenizer.link(Y)){Y=Y.substring(W.raw.length),W.type==="link"&&(W.tokens=this.inlineTokens(W.text,[],!0,ze)),ce.push(W);continue}if(W=this.tokenizer.reflink(Y,this.tokens.links)){Y=Y.substring(W.raw.length);var Ft=ce[ce.length-1];W.type==="link"?(W.tokens=this.inlineTokens(W.text,[],!0,ze),ce.push(W)):Ft&&W.type==="text"&&Ft.type==="text"?(Ft.raw+=W.raw,Ft.text+=W.text):ce.push(W);continue}if(W=this.tokenizer.emStrong(Y,Ae,Xt)){Y=Y.substring(W.raw.length),W.tokens=this.inlineTokens(W.text,[],Ee,ze),ce.push(W);continue}if(W=this.tokenizer.codespan(Y)){Y=Y.substring(W.raw.length),ce.push(W);continue}if(W=this.tokenizer.br(Y)){Y=Y.substring(W.raw.length),ce.push(W);continue}if(W=this.tokenizer.del(Y)){Y=Y.substring(W.raw.length),W.tokens=this.inlineTokens(W.text,[],Ee,ze),ce.push(W);continue}if(W=this.tokenizer.autolink(Y,ye)){Y=Y.substring(W.raw.length),ce.push(W);continue}if(!Ee&&(W=this.tokenizer.url(Y,ye))){Y=Y.substring(W.raw.length),ce.push(W);continue}if(W=this.tokenizer.inlineText(Y,ze,ue)){Y=Y.substring(W.raw.length),W.raw.slice(-1)!=="_"&&(Xt=W.raw.slice(-1)),Ht=!0,bt=ce[ce.length-1],bt&&bt.type==="text"?(bt.raw+=W.raw,bt.text+=W.text):ce.push(W);continue}if(Y){var fr="Infinite loop on byte: "+Y.charCodeAt(0);if(this.options.silent){console.error(fr);break}else throw new Error(fr)}}return ce},S(Te,null,[{key:"rules",get:function(){return{block:yt,inline:Rt}}}]),Te}(),Pe=ke.exports.defaults,$e=R.cleanUrl,O=R.escape,ae=function(){function Te(Ze){this.options=Ze||Pe}var He=Te.prototype;return He.code=function(Y,ce,Ee){var ze=(ce||"").match(/\S*/)[0];if(this.options.highlight){var W=this.options.highlight(Y,ze);W!=null&&W!==Y&&(Ee=!0,Y=W)}return Y=Y.replace(/\n$/,"")+`
|
|
`,ze?'<pre><code class="'+this.options.langPrefix+O(ze,!0)+'">'+(Ee?Y:O(Y,!0))+`</code></pre>
|
|
`:"<pre><code>"+(Ee?Y:O(Y,!0))+`</code></pre>
|
|
`},He.blockquote=function(Y){return`<blockquote>
|
|
`+Y+`</blockquote>
|
|
`},He.html=function(Y){return Y},He.heading=function(Y,ce,Ee,ze){return this.options.headerIds?"<h"+ce+' id="'+this.options.headerPrefix+ze.slug(Ee)+'">'+Y+"</h"+ce+`>
|
|
`:"<h"+ce+">"+Y+"</h"+ce+`>
|
|
`},He.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},He.list=function(Y,ce,Ee){var ze=ce?"ol":"ul",W=ce&&Ee!==1?' start="'+Ee+'"':"";return"<"+ze+W+`>
|
|
`+Y+"</"+ze+`>
|
|
`},He.listitem=function(Y){return"<li>"+Y+`</li>
|
|
`},He.checkbox=function(Y){return"<input "+(Y?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(Y){return"<p>"+Y+`</p>
|
|
`},He.table=function(Y,ce){return ce&&(ce="<tbody>"+ce+"</tbody>"),`<table>
|
|
<thead>
|
|
`+Y+`</thead>
|
|
`+ce+`</table>
|
|
`},He.tablerow=function(Y){return`<tr>
|
|
`+Y+`</tr>
|
|
`},He.tablecell=function(Y,ce){var Ee=ce.header?"th":"td",ze=ce.align?"<"+Ee+' align="'+ce.align+'">':"<"+Ee+">";return ze+Y+"</"+Ee+`>
|
|
`},He.strong=function(Y){return"<strong>"+Y+"</strong>"},He.em=function(Y){return"<em>"+Y+"</em>"},He.codespan=function(Y){return"<code>"+Y+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(Y){return"<del>"+Y+"</del>"},He.link=function(Y,ce,Ee){if(Y=$e(this.options.sanitize,this.options.baseUrl,Y),Y===null)return Ee;var ze='<a href="'+O(Y)+'"';return ce&&(ze+=' title="'+ce+'"'),ze+=">"+Ee+"</a>",ze},He.image=function(Y,ce,Ee){if(Y=$e(this.options.sanitize,this.options.baseUrl,Y),Y===null)return Ee;var ze='<img src="'+Y+'" alt="'+Ee+'"';return ce&&(ze+=' title="'+ce+'"'),ze+=this.options.xhtml?"/>":">",ze},He.text=function(Y){return Y},Te}(),ve=function(){function Te(){}var He=Te.prototype;return He.strong=function(Y){return Y},He.em=function(Y){return Y},He.codespan=function(Y){return Y},He.del=function(Y){return Y},He.html=function(Y){return Y},He.text=function(Y){return Y},He.link=function(Y,ce,Ee){return""+Ee},He.image=function(Y,ce,Ee){return""+Ee},He.br=function(){return""},Te}(),we=function(){function Te(){this.seen={}}var He=Te.prototype;return He.serialize=function(Y){return Y.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},He.getNextSafeSlug=function(Y,ce){var Ee=Y,ze=0;if(this.seen.hasOwnProperty(Ee)){ze=this.seen[Y];do ze++,Ee=Y+"-"+ze;while(this.seen.hasOwnProperty(Ee))}return ce||(this.seen[Y]=ze,this.seen[Ee]=0),Ee},He.slug=function(Y,ce){ce===void 0&&(ce={});var Ee=this.serialize(Y);return this.getNextSafeSlug(Ee,ce.dryrun)},Te}(),De=ae,Me=ve,Ye=we,tt=ke.exports.defaults,Xe=R.unescape,We=function(){function Te(Ze){this.options=Ze||tt,this.options.renderer=this.options.renderer||new De,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Me,this.slugger=new Ye}Te.parse=function(Y,ce){var Ee=new Te(ce);return Ee.parse(Y)},Te.parseInline=function(Y,ce){var Ee=new Te(ce);return Ee.parseInline(Y)};var He=Te.prototype;return He.parse=function(Y,ce){ce===void 0&&(ce=!0);var Ee="",ze,W,bt,Ae,Dt,Ht,Xt,mr,Bt,Ft,fr,Br,Ur,kr,Kt,lr,br,Vr,Lr=Y.length;for(ze=0;ze<Lr;ze++)switch(Ft=Y[ze],Ft.type){case"space":continue;case"hr":{Ee+=this.renderer.hr();continue}case"heading":{Ee+=this.renderer.heading(this.parseInline(Ft.tokens),Ft.depth,Xe(this.parseInline(Ft.tokens,this.textRenderer)),this.slugger);continue}case"code":{Ee+=this.renderer.code(Ft.text,Ft.lang,Ft.escaped);continue}case"table":{for(mr="",Xt="",Ae=Ft.header.length,W=0;W<Ae;W++)Xt+=this.renderer.tablecell(this.parseInline(Ft.tokens.header[W]),{header:!0,align:Ft.align[W]});for(mr+=this.renderer.tablerow(Xt),Bt="",Ae=Ft.cells.length,W=0;W<Ae;W++){for(Ht=Ft.tokens.cells[W],Xt="",Dt=Ht.length,bt=0;bt<Dt;bt++)Xt+=this.renderer.tablecell(this.parseInline(Ht[bt]),{header:!1,align:Ft.align[bt]});Bt+=this.renderer.tablerow(Xt)}Ee+=this.renderer.table(mr,Bt);continue}case"blockquote":{Bt=this.parse(Ft.tokens),Ee+=this.renderer.blockquote(Bt);continue}case"list":{for(fr=Ft.ordered,Br=Ft.start,Ur=Ft.loose,Ae=Ft.items.length,Bt="",W=0;W<Ae;W++)Kt=Ft.items[W],lr=Kt.checked,br=Kt.task,kr="",Kt.task&&(Vr=this.renderer.checkbox(lr),Ur?Kt.tokens.length>0&&Kt.tokens[0].type==="text"?(Kt.tokens[0].text=Vr+" "+Kt.tokens[0].text,Kt.tokens[0].tokens&&Kt.tokens[0].tokens.length>0&&Kt.tokens[0].tokens[0].type==="text"&&(Kt.tokens[0].tokens[0].text=Vr+" "+Kt.tokens[0].tokens[0].text)):Kt.tokens.unshift({type:"text",text:Vr}):kr+=Vr),kr+=this.parse(Kt.tokens,Ur),Bt+=this.renderer.listitem(kr,br,lr);Ee+=this.renderer.list(Bt,fr,Br);continue}case"html":{Ee+=this.renderer.html(Ft.text);continue}case"paragraph":{Ee+=this.renderer.paragraph(this.parseInline(Ft.tokens));continue}case"text":{for(Bt=Ft.tokens?this.parseInline(Ft.tokens):Ft.text;ze+1<Lr&&Y[ze+1].type==="text";)Ft=Y[++ze],Bt+=`
|
|
`+(Ft.tokens?this.parseInline(Ft.tokens):Ft.text);Ee+=ce?this.renderer.paragraph(Bt):Bt;continue}default:{var Yr='Token with "'+Ft.type+'" type was not found.';if(this.options.silent){console.error(Yr);return}else throw new Error(Yr)}}return Ee},He.parseInline=function(Y,ce){ce=ce||this.renderer;var Ee="",ze,W,bt=Y.length;for(ze=0;ze<bt;ze++)switch(W=Y[ze],W.type){case"escape":{Ee+=ce.text(W.text);break}case"html":{Ee+=ce.html(W.text);break}case"link":{Ee+=ce.link(W.href,W.title,this.parseInline(W.tokens,ce));break}case"image":{Ee+=ce.image(W.href,W.title,W.text);break}case"strong":{Ee+=ce.strong(this.parseInline(W.tokens,ce));break}case"em":{Ee+=ce.em(this.parseInline(W.tokens,ce));break}case"codespan":{Ee+=ce.codespan(W.text);break}case"br":{Ee+=ce.br();break}case"del":{Ee+=ce.del(this.parseInline(W.tokens,ce));break}case"text":{Ee+=ce.text(W.text);break}default:{var Ae='Token with "'+W.type+'" type was not found.';if(this.options.silent){console.error(Ae);return}else throw new Error(Ae)}}return Ee},Te}(),ht=J,Re=We,Ne=Be,Ke=ae,Ve=ve,nt=we,ft=R.merge,ot=R.checkSanitizeDeprecation,_=R.escape,T=ke.exports.getDefaults,qe=ke.exports.changeDefaults,G=ke.exports.defaults;function ge(Te,He,Ze){if(typeof Te=="undefined"||Te===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Te!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Te)+", string expected");if(typeof He=="function"&&(Ze=He,He=null),He=ft({},ge.defaults,He||{}),ot(He),Ze){var Y=He.highlight,ce;try{ce=ht.lex(Te,He)}catch(bt){return Ze(bt)}var Ee=function(Ae){var Dt;if(!Ae)try{He.walkTokens&&ge.walkTokens(ce,He.walkTokens),Dt=Re.parse(ce,He)}catch(Ht){Ae=Ht}return He.highlight=Y,Ae?Ze(Ae):Ze(null,Dt)};if(!Y||Y.length<3||(delete He.highlight,!ce.length))return Ee();var ze=0;ge.walkTokens(ce,function(bt){bt.type==="code"&&(ze++,setTimeout(function(){Y(bt.text,bt.lang,function(Ae,Dt){if(Ae)return Ee(Ae);Dt!=null&&Dt!==bt.text&&(bt.text=Dt,bt.escaped=!0),ze--,ze===0&&Ee()})},0))}),ze===0&&Ee();return}try{var W=ht.lex(Te,He);return He.walkTokens&&ge.walkTokens(W,He.walkTokens),Re.parse(W,He)}catch(bt){if(bt.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+_(bt.message+"",!0)+"</pre>";throw bt}}ge.options=ge.setOptions=function(Te){return ft(ge.defaults,Te),qe(ge.defaults),ge},ge.getDefaults=T,ge.defaults=G,ge.use=function(Te){var He=ft({},Te);if(Te.renderer&&function(){var Y=ge.defaults.renderer||new Ke,ce=function(W){var bt=Y[W];Y[W]=function(){for(var Ae=arguments.length,Dt=new Array(Ae),Ht=0;Ht<Ae;Ht++)Dt[Ht]=arguments[Ht];var Xt=Te.renderer[W].apply(Y,Dt);return Xt===!1&&(Xt=bt.apply(Y,Dt)),Xt}};for(var Ee in Te.renderer)ce(Ee);He.renderer=Y}(),Te.tokenizer&&function(){var Y=ge.defaults.tokenizer||new Ne,ce=function(W){var bt=Y[W];Y[W]=function(){for(var Ae=arguments.length,Dt=new Array(Ae),Ht=0;Ht<Ae;Ht++)Dt[Ht]=arguments[Ht];var Xt=Te.tokenizer[W].apply(Y,Dt);return Xt===!1&&(Xt=bt.apply(Y,Dt)),Xt}};for(var Ee in Te.tokenizer)ce(Ee);He.tokenizer=Y}(),Te.walkTokens){var Ze=ge.defaults.walkTokens;He.walkTokens=function(Y){Te.walkTokens(Y),Ze&&Ze(Y)}}ge.setOptions(He)},ge.walkTokens=function(Te,He){for(var Ze=be(Te),Y;!(Y=Ze()).done;){var ce=Y.value;switch(He(ce),ce.type){case"table":{for(var Ee=be(ce.tokens.header),ze;!(ze=Ee()).done;){var W=ze.value;ge.walkTokens(W,He)}for(var bt=be(ce.tokens.cells),Ae;!(Ae=bt()).done;)for(var Dt=Ae.value,Ht=be(Dt),Xt;!(Xt=Ht()).done;){var mr=Xt.value;ge.walkTokens(mr,He)}break}case"list":{ge.walkTokens(ce.items,He);break}default:ce.tokens&&ge.walkTokens(ce.tokens,He)}}},ge.parseInline=function(Te,He){if(typeof Te=="undefined"||Te===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Te!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Te)+", string expected");He=ft({},ge.defaults,He||{}),ot(He);try{var Ze=ht.lexInline(Te,He);return He.walkTokens&&ge.walkTokens(Ze,He.walkTokens),Re.parseInline(Ze,He)}catch(Y){if(Y.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+_(Y.message+"",!0)+"</pre>";throw Y}},ge.Parser=Re,ge.parser=Re.parse,ge.Renderer=Ke,ge.TextRenderer=Ve,ge.Lexer=ht,ge.lexer=ht.lex,ge.Tokenizer=Ne,ge.Slugger=nt,ge.parse=ge;var Nt=ge;return Nt})},11690:function(Mt){const Qe=/[&<>"']/,S=/[&<>"']/g,Z=/[<>"']|&(?!#?\w+;)/,ie=/[<>"']|&(?!#?\w+;)/g,be={"&":"&","<":"<",">":">",'"':""","'":"'"},ke=X=>be[X];function te(X,_e){if(_e){if(Qe.test(X))return X.replace(S,ke)}else if(Z.test(X))return X.replace(ie,ke);return X}const ee=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function xe(X){return X.replace(ee,(_e,he)=>(he=he.toLowerCase(),he==="colon"?":":he.charAt(0)==="#"?he.charAt(1)==="x"?String.fromCharCode(parseInt(he.substring(2),16)):String.fromCharCode(+he.substring(1)):""))}const de=/(^|[^\[])\^/g;function a(X,_e){X=X.source||X,_e=_e||"";const he={replace:(pe,Ce)=>(Ce=Ce.source||Ce,Ce=Ce.replace(de,"$1"),X=X.replace(pe,Ce),he),getRegex:()=>new RegExp(X,_e)};return he}const N=/[^\w:]/g,P=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(X,_e,he){if(X){let pe;try{pe=decodeURIComponent(xe(he)).replace(N,"").toLowerCase()}catch(Ce){return null}if(pe.indexOf("javascript:")===0||pe.indexOf("vbscript:")===0||pe.indexOf("data:")===0)return null}_e&&!P.test(he)&&(he=V(_e,he));try{he=encodeURI(he).replace(/%25/g,"%")}catch(pe){return null}return he}const c={},y=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,H=/^([^:]+:\/*[^/]*)[\s\S]*$/;function V(X,_e){c[" "+X]||(y.test(X)?c[" "+X]=X+"/":c[" "+X]=oe(X,"/",!0)),X=c[" "+X];const he=X.indexOf(":")===-1;return _e.substring(0,2)==="//"?he?_e:X.replace(x,"$1")+_e:_e.charAt(0)==="/"?he?_e:X.replace(H,"$1")+_e:X+_e}const k={exec:function(){}};function D(X){let _e=1,he,pe;for(;_e<arguments.length;_e++){he=arguments[_e];for(pe in he)Object.prototype.hasOwnProperty.call(he,pe)&&(X[pe]=he[pe])}return X}function j(X,_e){const he=X.replace(/\|/g,(M,I,U)=>{let R=!1,q=I;for(;--q>=0&&U[q]==="\\";)R=!R;return R?"|":" |"}),pe=he.split(/ \|/);let Ce=0;if(pe.length>_e)pe.splice(_e);else for(;pe.length<_e;)pe.push("");for(;Ce<pe.length;Ce++)pe[Ce]=pe[Ce].trim().replace(/\\\|/g,"|");return pe}function oe(X,_e,he){const pe=X.length;if(pe===0)return"";let Ce=0;for(;Ce<pe;){const M=X.charAt(pe-Ce-1);if(M===_e&&!he)Ce++;else if(M!==_e&&he)Ce++;else break}return X.substr(0,pe-Ce)}function w(X,_e){if(X.indexOf(_e[1])===-1)return-1;const he=X.length;let pe=0,Ce=0;for(;Ce<he;Ce++)if(X[Ce]==="\\")Ce++;else if(X[Ce]===_e[0])pe++;else if(X[Ce]===_e[1]&&(pe--,pe<0))return Ce;return-1}function K(X){X&&X.sanitize&&!X.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function se(X,_e){if(_e<1)return"";let he="";for(;_e>1;)_e&1&&(he+=X),_e>>=1,X+=X;return he+X}Mt.exports={escape:te,unescape:xe,edit:a,cleanUrl:E,resolveUrl:V,noopTest:k,merge:D,splitCells:j,rtrim:oe,findClosingBracket:w,checkSanitizeDeprecation:K,repeatString:se}},75918:function(Mt,Qe,S){"use strict";S.d(Qe,{Wi:function(){return ee},Z0:function(){return xe},aU:function(){return te},eZ:function(){return a},wY:function(){return de}});var Z=S(4348),ie=S(69323),be=S(13268),ke=function(N,P,E,c){function y(x){return x instanceof E?x:new E(function(H){H(x)})}return new(E||(E=Promise))(function(x,H){function V(j){try{D(c.next(j))}catch(oe){H(oe)}}function k(j){try{D(c.throw(j))}catch(oe){H(oe)}}function D(j){j.done?x(j.value):y(j.value).then(V,k)}D((c=c.apply(N,P||[])).next())})};class te extends ie.JT{constructor(P,E="",c="",y=!0,x){super(),this._onDidChange=this._register(new Z.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=P,this._label=E,this._cssClass=c,this._enabled=y,this._actionCallback=x}get id(){return this._id}get label(){return this._label}set label(P){this._setLabel(P)}_setLabel(P){this._label!==P&&(this._label=P,this._onDidChange.fire({label:P}))}get tooltip(){return this._tooltip||""}set tooltip(P){this._setTooltip(P)}_setTooltip(P){this._tooltip!==P&&(this._tooltip=P,this._onDidChange.fire({tooltip:P}))}get class(){return this._cssClass}set class(P){this._setClass(P)}_setClass(P){this._cssClass!==P&&(this._cssClass=P,this._onDidChange.fire({class:P}))}get enabled(){return this._enabled}set enabled(P){this._setEnabled(P)}_setEnabled(P){this._enabled!==P&&(this._enabled=P,this._onDidChange.fire({enabled:P}))}get checked(){return this._checked}set checked(P){this._setChecked(P)}_setChecked(P){this._checked!==P&&(this._checked=P,this._onDidChange.fire({checked:P}))}run(P,E){return ke(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(P))})}}class ee extends ie.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new Z.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Z.Q5),this.onDidRun=this._onDidRun.event}run(P,E){return ke(this,void 0,void 0,function*(){if(!P.enabled)return;this._onBeforeRun.fire({action:P});let c;try{yield this.runAction(P,E)}catch(y){c=y}this._onDidRun.fire({action:P,error:c})})}runAction(P,E){return ke(this,void 0,void 0,function*(){yield P.run(E)})}}class xe extends te{constructor(P){super(xe.ID,P,P?"separator text":"separator"),this.checked=!1,this.enabled=!1}}xe.ID="vs.actions.separator";class de{constructor(P,E,c,y){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=P,this.label=E,this.class=y,this._actions=c}get actions(){return this._actions}dispose(){}run(){return ke(this,void 0,void 0,function*(){})}}class a extends te{constructor(){super(a.ID,be.N("submenu.empty","(empty)"),void 0,!1)}}a.ID="vs.actions.empty"},76068:function(Mt,Qe,S){"use strict";S.d(Qe,{ok:function(){return Z}});function Z(ie,be){if(!ie)throw new Error(be?`Assertion failed (${be})`:"Assertion Failed")}},52615:function(Mt,Qe,S){"use strict";S.d(Qe,{CM:function(){return te},JL:function(){return ee},dT:function(){return de},fK:function(){return ke},lA:function(){return xe}});var Z=S(4348);class ie{constructor(){this._icons=new Map,this._onDidRegister=new Z.Q5}add(N){const P=this._icons.get(N.id);P?N.description?P.description=N.description:console.error(`Duplicate registration of codicon ${N.id}`):(this._icons.set(N.id,N),this._onDidRegister.fire(N))}get(N){return this._icons.get(N)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const be=new ie,ke=be;function te(a,N){return new xe(a,N)}function ee(a){return a?a.replace(/\$\((.*?)\)/g,(N,P)=>` ${P} `).trim():""}class xe{constructor(N,P,E){this.id=N,this.definition=P,this.description=E,be.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var de;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const N=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function P(y){if(y instanceof xe)return["codicon","codicon-"+y.id];const x=N.exec(y.id);if(!x)return P(xe.error);let[,H,V]=x;const k=["codicon","codicon-"+H];return V&&k.push("codicon-modifier-"+V.substr(1)),k}a.asClassNameArray=P;function E(y){return P(y).join(" ")}a.asClassName=E;function c(y){return"."+P(y).join(".")}a.asCSSSelector=c})(de||(de={})),function(a){a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"})}(xe||(xe={}))},79881:function(Mt,Qe,S){"use strict";S.d(Qe,{B8:function(){return P},Cp:function(){return ke},F0:function(){return de},L6:function(){return N},VV:function(){return xe},b1:function(){return a},dL:function(){return be},ri:function(){return te}});class Z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
|
|
|
|
`+c.stack):c},0)}}emit(c){this.listeners.forEach(y=>{y(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const ie=new Z;function be(E){xe(E)||ie.onUnexpectedError(E)}function ke(E){xe(E)||ie.onUnexpectedExternalError(E)}function te(E){if(E instanceof Error){let{name:c,message:y}=E;const x=E.stacktrace||E.stack;return{$isError:!0,name:c,message:y,stack:x}}return E}const ee="Canceled";function xe(E){return E instanceof Error&&E.name===ee&&E.message===ee}function de(){const E=new Error(ee);return E.name=E.message,E}function a(E){return E?new Error(`Illegal argument: ${E}`):new Error("Illegal argument")}function N(E){return E?new Error(`Illegal state: ${E}`):new Error("Illegal state")}class P extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}},4348:function(Mt,Qe,S){"use strict";S.d(Qe,{D0:function(){return P},E7:function(){return E},K3:function(){return N},Q5:function(){return a},ZD:function(){return c},ju:function(){return te}});var Z=S(79881),ie=S(69323),be=S(34502),ke=S(95830),te;(function(y){y.None=()=>ie.JT.None;function x(U){return(R,q=null,$)=>{let m=!1,v;return v=U(L=>{if(!m)return v?v.dispose():m=!0,R.call(q,L)},null,$),m&&v.dispose(),v}}y.once=x;function H(U,R){return w((q,$=null,m)=>U(v=>q.call($,R(v)),null,m))}y.map=H;function V(U,R){return w((q,$=null,m)=>U(v=>{R(v),q.call($,v)},null,m))}y.forEach=V;function k(U,R){return w((q,$=null,m)=>U(v=>R(v)&&q.call($,v),null,m))}y.filter=k;function D(U){return U}y.signal=D;function j(...U){return(R,q=null,$)=>(0,ie.F8)(...U.map(m=>m(v=>R.call(q,v),null,$)))}y.any=j;function oe(U,R,q){let $=q;return H(U,m=>($=R($,m),$))}y.reduce=oe;function w(U){let R;const q=new a({onFirstListenerAdd(){R=U(q.fire,q)},onLastListenerRemove(){R.dispose()}});return q.event}function K(U,R,q=100,$=!1,m){let v,L,re,Ie=0;const Be=new a({leakWarningThreshold:m,onFirstListenerAdd(){v=U(Oe=>{Ie++,L=R(L,Oe),$&&!re&&(Be.fire(L),L=void 0),clearTimeout(re),re=setTimeout(()=>{const je=L;L=void 0,re=void 0,(!$||Ie>1)&&Be.fire(je),Ie=0},q)})},onLastListenerRemove(){v.dispose()}});return Be.event}y.debounce=K;function se(U,R=(q,$)=>q===$){let q=!0,$;return k(U,m=>{const v=q||!R(m,$);return q=!1,$=m,v})}y.latch=se;function X(U,R){return[y.filter(U,R),y.filter(U,q=>!R(q))]}y.split=X;function _e(U,R=!1,q=[]){let $=q.slice(),m=U(re=>{$?$.push(re):L.fire(re)});const v=()=>{$&&$.forEach(re=>L.fire(re)),$=null},L=new a({onFirstListenerAdd(){m||(m=U(re=>L.fire(re)))},onFirstListenerDidAdd(){$&&(R?setTimeout(v):v())},onLastListenerRemove(){m&&m.dispose(),m=null}});return L.event}y.buffer=_e;class he{constructor(R){this.event=R}map(R){return new he(H(this.event,R))}forEach(R){return new he(V(this.event,R))}filter(R){return new he(k(this.event,R))}reduce(R,q){return new he(oe(this.event,R,q))}latch(){return new he(se(this.event))}debounce(R,q=100,$=!1,m){return new he(K(this.event,R,q,$,m))}on(R,q,$){return this.event(R,q,$)}once(R,q,$){return x(this.event)(R,q,$)}}function pe(U){return new he(U)}y.chain=pe;function Ce(U,R,q=$=>$){const $=(...re)=>L.fire(q(...re)),m=()=>U.on(R,$),v=()=>U.removeListener(R,$),L=new a({onFirstListenerAdd:m,onLastListenerRemove:v});return L.event}y.fromNodeEventEmitter=Ce;function M(U,R,q=$=>$){const $=(...re)=>L.fire(q(...re)),m=()=>U.addEventListener(R,$),v=()=>U.removeEventListener(R,$),L=new a({onFirstListenerAdd:m,onLastListenerRemove:v});return L.event}y.fromDOMEventEmitter=M;function I(U){return new Promise(R=>x(U)(R))}y.toPromise=I})(te||(te={}));class ee{constructor(x){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${x}_${ee._idPool++}`}start(x){this._stopWatch=new ke.G(!0),this._listenerCount=x}stop(){if(this._stopWatch){const x=this._stopWatch.elapsed();this._elapsedOverall+=x,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${x.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}ee._idPool=0;let xe=-1;class de{constructor(x,H=Math.random().toString(18).slice(2,5)){this.customThreshold=x,this.name=H,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(x){let H=xe;if(typeof this.customThreshold=="number"&&(H=this.customThreshold),H<=0||x<H)return;this._stacks||(this._stacks=new Map);const V=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),k=this._stacks.get(V)||0;if(this._stacks.set(V,k+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=H*.5;let D,j=0;for(const[oe,w]of this._stacks)(!D||j<w)&&(D=oe,j=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${x} listeners already. MOST frequent listener (${j}):`),console.warn(D)}return()=>{const D=this._stacks.get(V)||0;this._stacks.set(V,D-1)}}}class a{constructor(x){var H;this._disposed=!1,this._options=x,this._leakageMon=xe>0?new de(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((H=this._options)===null||H===void 0)&&H._profName?new ee(this._options._profName):void 0}get event(){return this._event||(this._event=(x,H,V)=>{var k;this._listeners||(this._listeners=new be.S);const D=this._listeners.isEmpty();D&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const j=this._listeners.push(H?[x,H]:x);D&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,x,H);const oe=(k=this._leakageMon)===null||k===void 0?void 0:k.check(this._listeners.size),w=(0,ie.OF)(()=>{oe&&oe(),this._disposed||(j(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return V instanceof ie.SL?V.add(w):Array.isArray(V)&&V.push(w),w}),this._event}fire(x){var H,V;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new be.S);for(let k of this._listeners)this._deliveryQueue.push([k,x]);for((H=this._perfMon)===null||H===void 0||H.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[k,D]=this._deliveryQueue.shift();try{typeof k=="function"?k.call(void 0,D):k[0].call(k[1],D)}catch(j){(0,Z.dL)(j)}}(V=this._perfMon)===null||V===void 0||V.stop()}}dispose(){var x,H,V,k,D;this._disposed||(this._disposed=!0,(x=this._listeners)===null||x===void 0||x.clear(),(H=this._deliveryQueue)===null||H===void 0||H.clear(),(k=(V=this._options)===null||V===void 0?void 0:V.onLastListenerRemove)===null||k===void 0||k.call(V),(D=this._leakageMon)===null||D===void 0||D.dispose())}}class N extends a{constructor(x){super(x),this._isPaused=0,this._eventQueue=new be.S,this._mergeFn=x==null?void 0:x.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const x=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(x))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(x){this._listeners&&(this._isPaused!==0?this._eventQueue.push(x):super.fire(x))}}class P extends N{constructor(x){var H;super(x),this._delay=(H=x.delay)!==null&&H!==void 0?H:100}fire(x){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(x)}}class E{constructor(){this.buffers=[]}wrapEvent(x){return(H,V,k)=>x(D=>{const j=this.buffers[this.buffers.length-1];j?j.push(()=>H.call(V,D)):H.call(V,D)},void 0,k)}bufferEvents(x){const H=[];this.buffers.push(H);const V=x();return this.buffers.pop(),H.forEach(k=>k()),V}}class c{constructor(){this.listening=!1,this.inputEvent=te.None,this.inputEventListener=ie.JT.None,this.emitter=new a({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(x){this.inputEvent=x,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=x(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Mt,Qe,S){"use strict";S.d(Qe,{I:function(){return Z}});function Z(ie){const be=this;let ke=!1,te;return function(){return ke||(ke=!0,te=ie.apply(be,arguments)),te}}},88226:function(Mt,Qe,S){"use strict";S.d(Qe,{$:function(){return Z}});var Z;(function(ie){function be(j){return j&&typeof j=="object"&&typeof j[Symbol.iterator]=="function"}ie.is=be;const ke=Object.freeze([]);function te(){return ke}ie.empty=te;function*ee(j){yield j}ie.single=ee;function xe(j){return j||ke}ie.from=xe;function de(j){return!j||j[Symbol.iterator]().next().done===!0}ie.isEmpty=de;function a(j){return j[Symbol.iterator]().next().value}ie.first=a;function N(j,oe){for(const w of j)if(oe(w))return!0;return!1}ie.some=N;function P(j,oe){for(const w of j)if(oe(w))return w}ie.find=P;function*E(j,oe){for(const w of j)oe(w)&&(yield w)}ie.filter=E;function*c(j,oe){let w=0;for(const K of j)yield oe(K,w++)}ie.map=c;function*y(...j){for(const oe of j)for(const w of oe)yield w}ie.concat=y;function*x(j){for(const oe of j)for(const w of oe)yield w}ie.concatNested=x;function H(j,oe,w){let K=w;for(const se of j)K=oe(K,se);return K}ie.reduce=H;function*V(j,oe,w=j.length){for(oe<0&&(oe+=j.length),w<0?w+=j.length:w>j.length&&(w=j.length);oe<w;oe++)yield j[oe]}ie.slice=V;function k(j,oe=Number.POSITIVE_INFINITY){const w=[];if(oe===0)return[w,j];const K=j[Symbol.iterator]();for(let se=0;se<oe;se++){const X=K.next();if(X.done)return[w,ie.empty()];w.push(X.value)}return[w,{[Symbol.iterator](){return K}}]}ie.consume=k;function D(j,oe,w=(K,se)=>K===se){const K=j[Symbol.iterator](),se=oe[Symbol.iterator]();for(;;){const X=K.next(),_e=se.next();if(X.done!==_e.done)return!1;if(X.done)return!0;if(!w(X.value,_e.value))return!1}}ie.equals=D})(Z||(Z={}))},69323:function(Mt,Qe,S){"use strict";S.d(Qe,{B9:function(){return c},F8:function(){return y},JT:function(){return V},Jz:function(){return D},OF:function(){return x},SL:function(){return H},Wf:function(){return E},XK:function(){return k},dk:function(){return N}});var Z=S(17845),ie=S(88226);const be=!1;let ke=null;function te(j){ke=j}if(be){const j="__is_disposable_tracked__";te(new class{trackDisposable(oe){const w=new Error("Potentially leaked disposable").stack;setTimeout(()=>{oe[j]||console.log(w)},3e3)}setParent(oe,w){if(oe&&oe!==V.None)try{oe[j]=!0}catch(K){}}markAsDisposed(oe){if(oe&&oe!==V.None)try{oe[j]=!0}catch(w){}}markAsSingleton(oe){}})}function ee(j){return ke==null||ke.trackDisposable(j),j}function xe(j){ke==null||ke.markAsDisposed(j)}function de(j,oe){ke==null||ke.setParent(j,oe)}function a(j,oe){if(ke)for(const w of j)ke.setParent(w,oe)}function N(j){return ke==null||ke.markAsSingleton(j),j}class P extends Error{constructor(oe){super(`Encountered errors while disposing of store. Errors: [${oe.join(", ")}]`),this.errors=oe}}function E(j){return typeof j.dispose=="function"&&j.dispose.length===0}function c(j){if(ie.$.is(j)){let oe=[];for(const w of j)if(w)try{w.dispose()}catch(K){oe.push(K)}if(oe.length===1)throw oe[0];if(oe.length>1)throw new P(oe);return Array.isArray(j)?[]:j}else if(j)return j.dispose(),j}function y(...j){const oe=x(()=>c(j));return a(j,oe),oe}function x(j){const oe=ee({dispose:(0,Z.I)(()=>{xe(oe),j()})});return oe}class H{constructor(){this._toDispose=new Set,this._isDisposed=!1,ee(this)}dispose(){this._isDisposed||(xe(this),this._isDisposed=!0,this.clear())}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(oe){if(!oe)return oe;if(oe===this)throw new Error("Cannot register a disposable on itself!");return de(oe,this),this._isDisposed?H.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(oe),oe}}H.DISABLE_DISPOSED_WARNING=!1;class V{constructor(){this._store=new H,ee(this),de(this._store,this)}dispose(){xe(this),this._store.dispose()}_register(oe){if(oe===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(oe)}}V.None=Object.freeze({dispose(){}});class k{constructor(){this._isDisposed=!1,ee(this)}get value(){return this._isDisposed?void 0:this._value}set value(oe){var w;this._isDisposed||oe===this._value||((w=this._value)===null||w===void 0||w.dispose(),oe&&de(oe,this),this._value=oe)}clear(){this.value=void 0}dispose(){var oe;this._isDisposed=!0,xe(this),(oe=this._value)===null||oe===void 0||oe.dispose(),this._value=void 0}clearAndLeak(){const oe=this._value;return this._value=void 0,oe&&de(oe,null),oe}}class D{constructor(oe){this.object=oe}dispose(){}}},34502:function(Mt,Qe,S){"use strict";S.d(Qe,{S:function(){return ie}});class Z{constructor(ke){this.element=ke,this.next=Z.Undefined,this.prev=Z.Undefined}}Z.Undefined=new Z(void 0);class ie{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let ke=this._first;for(;ke!==Z.Undefined;){const te=ke.next;ke.prev=Z.Undefined,ke.next=Z.Undefined,ke=te}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(ke){return this._insert(ke,!1)}push(ke){return this._insert(ke,!0)}_insert(ke,te){const ee=new Z(ke);if(this._first===Z.Undefined)this._first=ee,this._last=ee;else if(te){const de=this._last;this._last=ee,ee.prev=de,de.next=ee}else{const de=this._first;this._first=ee,ee.next=de,de.prev=ee}this._size+=1;let xe=!1;return()=>{xe||(xe=!0,this._remove(ee))}}shift(){if(this._first!==Z.Undefined){const ke=this._first.element;return this._remove(this._first),ke}}pop(){if(this._last!==Z.Undefined){const ke=this._last.element;return this._remove(this._last),ke}}_remove(ke){if(ke.prev!==Z.Undefined&&ke.next!==Z.Undefined){const te=ke.prev;te.next=ke.next,ke.next.prev=te}else ke.prev===Z.Undefined&&ke.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):ke.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):ke.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let ke=this._first;for(;ke!==Z.Undefined;)yield ke.element,ke=ke.next}}},23345:function(Mt,Qe,S){"use strict";S.d(Qe,{$L:function(){return K},ED:function(){return D},IJ:function(){return oe},OS:function(){return he},WE:function(){return X},dz:function(){return j},gn:function(){return se},li:function(){return x},r:function(){return M},tY:function(){return w},xS:function(){return _e}});var Z=S(97671),ie;const be="en";let ke=!1,te=!1,ee=!1,xe=!1,de=!1,a=!1,N=!1,P,E=null,c=null,y;const x=typeof self=="object"?self:typeof S.g=="object"?S.g:{};let H;typeof x.vscode!="undefined"&&typeof x.vscode.process!="undefined"?H=x.vscode.process:typeof Z!="undefined"&&(H=Z);const V=typeof((ie=H==null?void 0:H.versions)===null||ie===void 0?void 0:ie.electron)=="string"&&H.type==="renderer";if(typeof navigator=="object"&&!V)y=navigator.userAgent,ke=y.indexOf("Windows")>=0,te=y.indexOf("Macintosh")>=0,N=(y.indexOf("Macintosh")>=0||y.indexOf("iPad")>=0||y.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ee=y.indexOf("Linux")>=0,a=!0,P=navigator.language,E=P;else if(typeof H=="object"){ke=H.platform==="win32",te=H.platform==="darwin",ee=H.platform==="linux",xe=ee&&!!H.env.SNAP&&!!H.env.SNAP_REVISION,P=be,E=be;const I=H.env.VSCODE_NLS_CONFIG;if(I)try{const U=JSON.parse(I),R=U.availableLanguages["*"];P=U.locale,E=R||be,c=U._translationsConfigFile}catch(U){}de=!0}else console.error("Unable to resolve platform.");let k=0;te?k=1:ke?k=3:ee&&(k=2);const D=ke,j=te,oe=ee,w=de,K=a,se=N,X=y,_e=function(){if(x.setImmediate)return x.setImmediate.bind(x);if(typeof x.postMessage=="function"&&!x.importScripts){let R=[];x.addEventListener("message",$=>{if($.data&&$.data.vscodeSetImmediateId)for(let m=0,v=R.length;m<v;m++){const L=R[m];if(L.id===$.data.vscodeSetImmediateId){R.splice(m,1),L.callback();return}}});let q=0;return $=>{const m=++q;R.push({id:m,callback:$}),x.postMessage({vscodeSetImmediateId:m},"*")}}if(typeof(H==null?void 0:H.nextTick)=="function")return H.nextTick.bind(H);const U=Promise.resolve();return R=>U.then(R)}(),he=te||N?2:ke?1:3;let pe=!0,Ce=!1;function M(){if(!Ce){Ce=!0;const I=new Uint8Array(2);I[0]=1,I[1]=2,pe=new Uint16Array(I.buffer)[0]===513}return pe}},95830:function(Mt,Qe,S){"use strict";S.d(Qe,{G:function(){return be}});var Z=S(23345);const ie=Z.li.performance&&typeof Z.li.performance.now=="function";class be{constructor(te){this._highResolution=ie&&te,this._startTime=this._now(),this._stopTime=-1}static create(te=!0){return new be(te)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Z.li.performance.now():Date.now()}}},82983:function(Mt,Qe,S){"use strict";S.d(Qe,{$i:function(){return Ie},C8:function(){return et},GF:function(){return P},HO:function(){return q},IO:function(){return E},K7:function(){return at},Kw:function(){return At},LC:function(){return x},Mh:function(){return _e},P1:function(){return he},PJ:function(){return Ot},Qe:function(){return Be},R1:function(){return N},RP:function(){return L},S6:function(){return yt},TT:function(){return D},Ut:function(){return m},V8:function(){return H},WU:function(){return be},YK:function(){return Ce},YU:function(){return ke},ZG:function(){return pe},ZH:function(){return I},ab:function(){return Oe},c1:function(){return rt},df:function(){return K},ec:function(){return te},fi:function(){return Rt},fy:function(){return ee},j3:function(){return xe},j_:function(){return oe},m5:function(){return Z},mK:function(){return w},mr:function(){return c},oH:function(){return ye},oL:function(){return de},ok:function(){return X},ow:function(){return V},qq:function(){return se},qu:function(){return k},rL:function(){return M},uS:function(){return Tt},un:function(){return a},uq:function(){return y},vH:function(){return R},xe:function(){return je},zY:function(){return j}});function Z(O){return!O||typeof O!="string"?!0:O.trim().length===0}const ie=/{(\d+)}/g;function be(O,...ae){return ae.length===0?O:O.replace(ie,function(ve,we){const De=parseInt(we,10);return isNaN(De)||De<0||De>=ae.length?ve:ae[De]})}function ke(O){return O.replace(/[<>&]/g,function(ae){switch(ae){case"<":return"<";case">":return">";case"&":return"&";default:return ae}})}function te(O){return O.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ee(O,ae=" "){const ve=xe(O,ae);return de(ve,ae)}function xe(O,ae){if(!O||!ae)return O;const ve=ae.length;if(ve===0||O.length===0)return O;let we=0;for(;O.indexOf(ae,we)===we;)we=we+ve;return O.substring(we)}function de(O,ae){if(!O||!ae)return O;const ve=ae.length,we=O.length;if(ve===0||we===0)return O;let De=we,Me=-1;for(;Me=O.lastIndexOf(ae,De-1),!(Me===-1||Me+ve!==De);){if(Me===0)return"";De=Me}return O.substring(0,De)}function a(O){return O.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function N(O){return O.replace(/\*/g,"")}function P(O,ae,ve={}){if(!O)throw new Error("Cannot create regex from empty string");ae||(O=te(O)),ve.wholeWord&&(/\B/.test(O.charAt(0))||(O="\\b"+O),/\B/.test(O.charAt(O.length-1))||(O=O+"\\b"));let we="";return ve.global&&(we+="g"),ve.matchCase||(we+="i"),ve.multiline&&(we+="m"),ve.unicode&&(we+="u"),new RegExp(O,we)}function E(O){return O.source==="^"||O.source==="^$"||O.source==="$"||O.source==="^\\s*$"?!1:!!(O.exec("")&&O.lastIndex===0)}function c(O){return(O.global?"g":"")+(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")}function y(O){return O.split(/\r\n|\r|\n/)}function x(O){for(let ae=0,ve=O.length;ae<ve;ae++){const we=O.charCodeAt(ae);if(we!==32&&we!==9)return ae}return-1}function H(O,ae=0,ve=O.length){for(let we=ae;we<ve;we++){const De=O.charCodeAt(we);if(De!==32&&De!==9)return O.substring(ae,we)}return O.substring(ae,ve)}function V(O,ae=O.length-1){for(let ve=ae;ve>=0;ve--){const we=O.charCodeAt(ve);if(we!==32&&we!==9)return ve}return-1}function k(O,ae){return O<ae?-1:O>ae?1:0}function D(O,ae,ve=0,we=O.length,De=0,Me=ae.length){for(;ve<we&&De<Me;ve++,De++){let Xe=O.charCodeAt(ve),We=ae.charCodeAt(De);if(Xe<We)return-1;if(Xe>We)return 1}const Ye=we-ve,tt=Me-De;return Ye<tt?-1:Ye>tt?1:0}function j(O,ae){return oe(O,ae,0,O.length,0,ae.length)}function oe(O,ae,ve=0,we=O.length,De=0,Me=ae.length){for(;ve<we&&De<Me;ve++,De++){let Xe=O.charCodeAt(ve),We=ae.charCodeAt(De);if(Xe===We)continue;if(Xe>=128||We>=128)return D(O.toLowerCase(),ae.toLowerCase(),ve,we,De,Me);w(Xe)&&(Xe-=32),w(We)&&(We-=32);const ht=Xe-We;if(ht!==0)return ht}const Ye=we-ve,tt=Me-De;return Ye<tt?-1:Ye>tt?1:0}function w(O){return O>=97&&O<=122}function K(O){return O>=65&&O<=90}function se(O,ae){return O.length===ae.length&&oe(O,ae)===0}function X(O,ae){const ve=ae.length;return ae.length>O.length?!1:oe(O,ae,0,ve)===0}function _e(O,ae){let ve,we=Math.min(O.length,ae.length);for(ve=0;ve<we;ve++)if(O.charCodeAt(ve)!==ae.charCodeAt(ve))return ve;return we}function he(O,ae){let ve,we=Math.min(O.length,ae.length);const De=O.length-1,Me=ae.length-1;for(ve=0;ve<we;ve++)if(O.charCodeAt(De-ve)!==ae.charCodeAt(Me-ve))return ve;return we}function pe(O){return 55296<=O&&O<=56319}function Ce(O){return 56320<=O&&O<=57343}function M(O,ae){return(O-55296<<10)+(ae-56320)+65536}function I(O,ae,ve){const we=O.charCodeAt(ve);if(pe(we)&&ve+1<ae){const De=O.charCodeAt(ve+1);if(Ce(De))return M(we,De)}return we}function U(O,ae){const ve=O.charCodeAt(ae-1);if(Ce(ve)&&ae>1){const we=O.charCodeAt(ae-2);if(pe(we))return M(we,ve)}return ve}function R(O,ae){const ve=Ct.getInstance(),we=ae,De=O.length,Me=I(O,De,ae);ae+=Me>=65536?2:1;let Ye=ve.getGraphemeBreakType(Me);for(;ae<De;){const tt=I(O,De,ae),Xe=ve.getGraphemeBreakType(tt);if(Rt(Ye,Xe))break;ae+=tt>=65536?2:1,Ye=Xe}return ae-we}function q(O,ae){const ve=Ct.getInstance(),we=ae,De=U(O,ae);ae-=De>=65536?2:1;let Me=ve.getGraphemeBreakType(De);for(;ae>0;){const Ye=U(O,ae),tt=ve.getGraphemeBreakType(Ye);if(Rt(tt,Me))break;ae-=Ye>=65536?2:1,Me=tt}return we-ae}const $=/(?:[\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(O){return $.test(O)}const v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function L(O){return v.test(O)}const re=/^[\t\n\r\x20-\x7E]*$/;function Ie(O){return re.test(O)}const Be=/[\u2028\u2029]/;function Oe(O){return Be.test(O)}function je(O){for(let ae=0,ve=O.length;ae<ve;ae++)if(at(O.charCodeAt(ae)))return!0;return!1}function at(O){return O=+O,O>=11904&&O<=55215||O>=63744&&O<=64255||O>=65281&&O<=65374}function et(O){return O>=127462&&O<=127487||O===8986||O===8987||O===9200||O===9203||O>=9728&&O<=10175||O===11088||O===11093||O>=127744&&O<=128591||O>=128640&&O<=128764||O>=128992&&O<=129003||O>=129280&&O<=129535||O>=129648&&O<=129750}const rt="\uFEFF";function Tt(O){return!!(O&&O.length>0&&O.charCodeAt(0)===65279)}function At(O,ae=!1){return O?(ae&&(O=O.replace(/\\./g,"")),O.toLowerCase()!==O):!1}function Ot(O){return O=O%(2*26),O<26?String.fromCharCode(97+O):String.fromCharCode(65+O-26)}function yt(O){return Ct.getInstance().getGraphemeBreakType(O)}function Rt(O,ae){return O===0?ae!==5&&ae!==7:O===2&&ae===3?!1:O===4||O===2||O===3||ae===4||ae===2||ae===3?!0:!(O===8&&(ae===8||ae===9||ae===11||ae===12)||(O===11||O===9)&&(ae===9||ae===10)||(O===12||O===10)&&ae===10||ae===5||ae===13||ae===7||O===1||O===13&&ae===14||O===6&&ae===6)}class Ct{constructor(){this._data=ue()}static getInstance(){return Ct._INSTANCE||(Ct._INSTANCE=new Ct),Ct._INSTANCE}getGraphemeBreakType(ae){if(ae<32)return ae===10?3:ae===13?2:4;if(ae<127)return 0;const ve=this._data,we=ve.length/3;let De=1;for(;De<=we;)if(ae<ve[3*De])De=2*De;else if(ae>ve[3*De+1])De=2*De+1;else return ve[3*De+2];return 0}}Ct._INSTANCE=null;function ue(){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 ye(O,ae){if(O===0)return 0;const ve=J(O,ae);if(ve!==void 0)return ve;const we=U(ae,O);return O-=Pe(we),O}function J(O,ae){let ve=U(ae,O);for(O-=Pe(ve);$e(ve)||ve===65039||ve===8419;){if(O===0)return;ve=U(ae,O),O-=Pe(ve)}if(et(ve)){if(O>=0){const we=U(ae,O);we===8205&&(O-=Pe(we))}return O}}function Pe(O){return O>=65536?2:1}function $e(O){return 127995<=O&&O<=127999}},72999:function(Mt,Qe,S){"use strict";S.d(Qe,{$E:function(){return x},$K:function(){return xe},D8:function(){return E},HD:function(){return ie},IU:function(){return H},Jp:function(){return de},Kn:function(){return be},cW:function(){return N},f6:function(){return V},hj:function(){return ke},jn:function(){return te},kJ:function(){return Z},mf:function(){return P},o8:function(){return ee},p_:function(){return a},vE:function(){return k}});function Z(D){return Array.isArray(D)}function ie(D){return typeof D=="string"}function be(D){return typeof D=="object"&&D!==null&&!Array.isArray(D)&&!(D instanceof RegExp)&&!(D instanceof Date)}function ke(D){return typeof D=="number"&&!isNaN(D)}function te(D){return D===!0||D===!1}function ee(D){return typeof D=="undefined"}function xe(D){return!de(D)}function de(D){return ee(D)||D===null}function a(D,j){if(!D)throw new Error(j?`Unexpected type, expected '${j}'`:"Unexpected type")}function N(D){if(de(D))throw new Error("Assertion Failed: argument is undefined or null");return D}function P(D){return typeof D=="function"}function E(D,j){const oe=Math.min(D.length,j.length);for(let w=0;w<oe;w++)c(D[w],j[w])}function c(D,j){if(ie(j)){if(typeof D!==j)throw new Error(`argument does not match constraint: typeof ${j}`)}else if(P(j)){try{if(D instanceof j)return}catch(oe){}if(!de(D)&&D.constructor===j||j.length===1&&j.call(void 0,D)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function y(D){let j=[],oe=Object.getPrototypeOf(D);for(;Object.prototype!==oe;)j=j.concat(Object.getOwnPropertyNames(oe)),oe=Object.getPrototypeOf(oe);return j}function x(D){const j=[];for(const oe of y(D))typeof D[oe]=="function"&&j.push(oe);return j}function H(D,j){const oe=K=>function(){const se=Array.prototype.slice.call(arguments,0);return j(K,se)};let w={};for(const K of D)w[K]=oe(K);return w}function V(D){return D===null?void 0:D}function k(D,j="Unreachable"){throw new Error(j)}},13268:function(Mt,Qe,S){"use strict";S.d(Qe,{N:function(){return ie}});function Z(be,ke){let te;return ke.length===0?te=be:te=be.replace(/\{(\d+)\}/g,function(ee,xe){const de=xe[0];return typeof ke[de]!="undefined"?ke[de]:ee}),te}function ie(be,ke,...te){return Z(ke,te)}},96236:function(Mt,Qe,S){"use strict";S.d(Qe,{BH:function(){return H},NZ:function(){return V},U8:function(){return k},co:function(){return x},eH:function(){return y},vr:function(){return c}});var Z=S(75918),ie=S(52615),be=S(4348),ke=S(88226),te=S(69323),ee=S(34502),xe=S(35884),de=S(90689),a=S(16925),N=S(49055),P=function(D,j,oe,w){var K=arguments.length,se=K<3?j:w===null?w=Object.getOwnPropertyDescriptor(j,oe):w,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(D,j,oe,w);else for(var _e=D.length-1;_e>=0;_e--)(X=D[_e])&&(se=(K<3?X(se):K>3?X(j,oe,se):X(j,oe))||se);return K>3&&se&&Object.defineProperty(j,oe,se),se},E=function(D,j){return function(oe,w){j(oe,w,D)}};function c(D){return D.command!==void 0}class y{constructor(j){this.id=y._idPool++,this._debugName=j}}y._idPool=0,y.CommandPalette=new y("CommandPalette"),y.EditorContext=new y("EditorContext"),y.SimpleEditorContext=new y("SimpleEditorContext"),y.EditorContextCopy=new y("EditorContextCopy"),y.EditorContextPeek=new y("EditorContextPeek"),y.MenubarEditMenu=new y("MenubarEditMenu"),y.MenubarCopy=new y("MenubarCopy"),y.MenubarGoMenu=new y("MenubarGoMenu"),y.MenubarSelectionMenu=new y("MenubarSelectionMenu"),y.InlineCompletionsActions=new y("InlineCompletionsActions");const x=(0,a.yh)("menuService"),H=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new be.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:D=>D===y.CommandPalette}}addCommand(D){return this.addCommands(ke.$.single(D))}addCommands(D){for(const j of D)this._commands.set(j.id,j);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,te.OF)(()=>{let j=!1;for(const oe of D)j=this._commands.delete(oe.id)||j;j&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(D){return this._commands.get(D)}getCommands(){const D=new Map;return this._commands.forEach((j,oe)=>D.set(oe,j)),D}appendMenuItem(D,j){return this.appendMenuItems(ke.$.single({id:D,item:j}))}appendMenuItems(D){const j=new Set,oe=new ee.S;for(const{id:w,item:K}of D){let se=this._menuItems.get(w);se||(se=new ee.S,this._menuItems.set(w,se)),oe.push(se.push(K)),j.add(w)}return this._onDidChangeMenu.fire(j),(0,te.OF)(()=>{if(oe.size>0){for(let w of oe)w();this._onDidChangeMenu.fire(j),oe.clear()}})}getMenuItems(D){let j;return this._menuItems.has(D)?j=[...this._menuItems.get(D)]:j=[],D===y.CommandPalette&&this._appendImplicitItems(j),j}_appendImplicitItems(D){const j=new Set;for(const oe of D)c(oe)&&(j.add(oe.command.id),oe.alt&&j.add(oe.alt.id));this._commands.forEach((oe,w)=>{j.has(w)||D.push({command:oe})})}};class V extends Z.wY{constructor(j,oe,w,K){super(`submenuitem.${j.submenu.id}`,typeof j.title=="string"?j.title:j.title.value,[],"submenu"),this.item=j,this._menuService=oe,this._contextKeyService=w,this._options=K}get actions(){const j=[],oe=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=oe.getActions(this._options);oe.dispose();for(const[,K]of w)K.length>0&&(j.push(...K),j.push(new Z.Z0));return j.length&&j.pop(),j}}let k=class qo{constructor(j,oe,w,K,se){var X,_e;if(this._commandService=se,this.id=j.id,this.label=w!=null&&w.renderShortTitle&&j.shortTitle?typeof j.shortTitle=="string"?j.shortTitle:j.shortTitle.value:typeof j.title=="string"?j.title:j.title.value,this.tooltip=(_e=typeof j.tooltip=="string"?j.tooltip:(X=j.tooltip)===null||X===void 0?void 0:X.value)!==null&&_e!==void 0?_e:"",this.enabled=!j.precondition||K.contextMatchesRules(j.precondition),this.checked=void 0,j.toggled){const he=j.toggled.condition?j.toggled:{condition:j.toggled};this.checked=K.contextMatchesRules(he.condition),this.checked&&he.tooltip&&(this.tooltip=typeof he.tooltip=="string"?he.tooltip:he.tooltip.value),he.title&&(this.label=typeof he.title=="string"?he.title:he.title.value)}this.item=j,this.alt=oe?new qo(oe,void 0,w,K,se):void 0,this._options=w,N.kS.isThemeIcon(j.icon)&&(this.class=ie.dT.asClassName(j.icon))}dispose(){}run(...j){var oe,w;let K=[];return!((oe=this._options)===null||oe===void 0)&&oe.arg&&(K=[...K,this._options.arg]),!((w=this._options)===null||w===void 0)&&w.shouldForwardArgs&&(K=[...K,...j]),this._commandService.executeCommand(this.id,...K)}};k=P([E(3,de.i6),E(4,xe.H)],k)},35884:function(Mt,Qe,S){"use strict";S.d(Qe,{H:function(){return xe},P:function(){return de}});var Z=S(4348),ie=S(88226),be=S(69323),ke=S(34502),te=S(72999),ee=S(16925);const xe=(0,ee.yh)("commandService"),de=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Z.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(a,N){if(!a)throw new Error("invalid command");if(typeof a=="string"){if(!N)throw new Error("invalid command");return this.registerCommand({id:a,handler:N})}if(a.description){const x=[];for(let V of a.description.args)x.push(V.constraint);const H=a.handler;a.handler=function(V,...k){return(0,te.D8)(k,x),H(V,...k)}}const{id:P}=a;let E=this._commands.get(P);E||(E=new ke.S,this._commands.set(P,E));let c=E.unshift(a),y=(0,be.OF)(()=>{c();const x=this._commands.get(P);x!=null&&x.isEmpty()&&this._commands.delete(P)});return this._onDidRegisterCommand.fire(P),y}registerCommandAlias(a,N){return de.registerCommand(a,(P,...E)=>P.get(xe).executeCommand(N,...E))}getCommand(a){const N=this._commands.get(a);if(!(!N||N.isEmpty()))return ie.$.first(N)}getCommands(){const a=new Map;for(const N of this._commands.keys()){const P=this.getCommand(N);P&&a.set(N,P)}return a}};de.registerCommand("noop",()=>{})},90689:function(Mt,Qe,S){"use strict";S.d(Qe,{Ao:function(){return xe},Eq:function(){return M},Fb:function(){return de},K8:function(){return R},i6:function(){return Ce},uy:function(){return pe}});var Z=S(23345),ie=S(82983),be=S(16925);let ke=Z.WE||"";const te=new Map;te.set("false",!1),te.set("true",!0),te.set("isMac",Z.dz),te.set("isLinux",Z.IJ),te.set("isWindows",Z.ED),te.set("isWeb",Z.$L),te.set("isMacNative",Z.dz&&!Z.$L),te.set("isEdge",ke.indexOf("Edg/")>=0),te.set("isFirefox",ke.indexOf("Firefox")>=0),te.set("isChrome",ke.indexOf("Chrome")>=0),te.set("isSafari",ke.indexOf("Safari")>=0);const ee=Object.prototype.hasOwnProperty;class xe{static has(m){return E.create(m)}static equals(m,v){return c.create(m,v)}static regex(m,v){return K.create(m,v)}static not(m){return V.create(m)}static and(...m){return _e.create(m,null)}static or(...m){return he.create(m,null,!0)}static deserialize(m,v=!1){if(m)return this._deserializeOrExpression(m,v)}static _deserializeOrExpression(m,v){let L=m.split("||");return he.create(L.map(re=>this._deserializeAndExpression(re,v)),null,!0)}static _deserializeAndExpression(m,v){let L=m.split("&&");return _e.create(L.map(re=>this._deserializeOne(re,v)),null)}static _deserializeOne(m,v){if(m=m.trim(),m.indexOf("!=")>=0){let L=m.split("!=");return H.create(L[0].trim(),this._deserializeValue(L[1],v))}if(m.indexOf("==")>=0){let L=m.split("==");return c.create(L[0].trim(),this._deserializeValue(L[1],v))}if(m.indexOf("=~")>=0){let L=m.split("=~");return K.create(L[0].trim(),this._deserializeRegexValue(L[1],v))}if(m.indexOf(" in ")>=0){let L=m.split(" in ");return y.create(L[0].trim(),L[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(m)){const L=m.split(">=");return j.create(L[0].trim(),L[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(m)){const L=m.split(">");return D.create(L[0].trim(),L[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(m)){const L=m.split("<=");return w.create(L[0].trim(),L[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(m)){const L=m.split("<");return oe.create(L[0].trim(),L[1].trim())}return/^\!\s*/.test(m)?V.create(m.substr(1).trim()):E.create(m)}static _deserializeValue(m,v){if(m=m.trim(),m==="true")return!0;if(m==="false")return!1;let L=/^'([^']*)'$/.exec(m);return L?L[1].trim():m}static _deserializeRegexValue(m,v){if((0,ie.m5)(m)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let L=m.indexOf("/"),re=m.lastIndexOf("/");if(L===re||L<0){if(v)throw new Error(`bad regexp-value '${m}', missing /-enclosure`);return console.warn(`bad regexp-value '${m}', missing /-enclosure`),null}let Ie=m.slice(L+1,re),Be=m[re+1]==="i"?"i":"";try{return new RegExp(Ie,Be)}catch(Oe){if(v)throw new Error(`bad regexp-value '${m}', parse error: ${Oe}`);return console.warn(`bad regexp-value '${m}', parse error: ${Oe}`),null}}}function de($,m){const v=$?$.substituteConstants():void 0,L=m?m.substituteConstants():void 0;return!v&&!L?!0:!v||!L?!1:v.equals(L)}function a($,m){return $.cmp(m)}class N{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 P.INSTANCE}}N.INSTANCE=new N;class P{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 N.INSTANCE}}P.INSTANCE=new P;class E{constructor(m,v){this.key=m,this.negated=v,this.type=2}static create(m,v=null){const L=te.get(m);return typeof L=="boolean"?L?P.INSTANCE:N.INSTANCE:new E(m,v)}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=te.get(this.key);return typeof m=="boolean"?m?P.INSTANCE:N.INSTANCE:this}evaluate(m){return!!m.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this)),this.negated}}class c{constructor(m,v,L){this.key=m,this.value=v,this.negated=L,this.type=4}static create(m,v,L=null){if(typeof v=="boolean")return v?E.create(m,L):V.create(m,L);const re=te.get(m);return typeof re=="boolean"?v===(re?"true":"false")?P.INSTANCE:N.INSTANCE:new c(m,v,L)}cmp(m){return m.type!==this.type?this.type-m.type:U(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=te.get(this.key);if(typeof m=="boolean"){const v=m?"true":"false";return this.value===v?P.INSTANCE:N.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=H.create(this.key,this.value,this)),this.negated}}class y{constructor(m,v){this.key=m,this.valueKey=v,this.type=10,this.negated=null}static create(m,v){return new y(m,v)}cmp(m){return m.type!==this.type?this.type-m.type:U(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 v=m.getValue(this.valueKey),L=m.getValue(this.key);return Array.isArray(v)?v.indexOf(L)>=0:typeof L=="string"&&typeof v=="object"&&v!==null?ee.call(v,L):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=x.create(this)),this.negated}}class x{constructor(m){this._actual=m,this.type=11}static create(m){return new x(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 H{constructor(m,v,L){this.key=m,this.value=v,this.negated=L,this.type=5}static create(m,v,L=null){if(typeof v=="boolean")return v?V.create(m,L):E.create(m,L);const re=te.get(m);return typeof re=="boolean"?v===(re?"true":"false")?N.INSTANCE:P.INSTANCE:new H(m,v,L)}cmp(m){return m.type!==this.type?this.type-m.type:U(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=te.get(this.key);if(typeof m=="boolean"){const v=m?"true":"false";return this.value===v?N.INSTANCE:P.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 V{constructor(m,v){this.key=m,this.negated=v,this.type=3}static create(m,v=null){const L=te.get(m);return typeof L=="boolean"?L?N.INSTANCE:P.INSTANCE:new V(m,v)}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=te.get(this.key);return typeof m=="boolean"?m?N.INSTANCE:P.INSTANCE:this}evaluate(m){return!m.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this)),this.negated}}function k($,m){if(typeof $=="string"){const v=parseFloat($);isNaN(v)||($=v)}return typeof $=="string"||typeof $=="number"?m($):N.INSTANCE}class D{constructor(m,v,L){this.key=m,this.value=v,this.negated=L,this.type=12}static create(m,v,L=null){return k(v,re=>new D(m,re,L))}cmp(m){return m.type!==this.type?this.type-m.type:U(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=w.create(this.key,this.value,this)),this.negated}}class j{constructor(m,v,L){this.key=m,this.value=v,this.negated=L,this.type=13}static create(m,v,L=null){return k(v,re=>new j(m,re,L))}cmp(m){return m.type!==this.type?this.type-m.type:U(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=oe.create(this.key,this.value,this)),this.negated}}class oe{constructor(m,v,L){this.key=m,this.value=v,this.negated=L,this.type=14}static create(m,v,L=null){return k(v,re=>new oe(m,re,L))}cmp(m){return m.type!==this.type?this.type-m.type:U(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=j.create(this.key,this.value,this)),this.negated}}class w{constructor(m,v,L){this.key=m,this.value=v,this.negated=L,this.type=15}static create(m,v,L=null){return k(v,re=>new w(m,re,L))}cmp(m){return m.type!==this.type?this.type-m.type:U(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=D.create(this.key,this.value,this)),this.negated}}class K{constructor(m,v){this.key=m,this.regexp=v,this.type=7,this.negated=null}static create(m,v){return new K(m,v)}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 v=this.regexp?this.regexp.source:"",L=m.regexp?m.regexp.source:"";return v<L?-1:v>L?1:0}equals(m){if(m.type===this.type){const v=this.regexp?this.regexp.source:"",L=m.regexp?m.regexp.source:"";return this.key===m.key&&v===L}return!1}substituteConstants(){return this}evaluate(m){let v=m.getValue(this.key);return this.regexp?this.regexp.test(v):!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=se.create(this)),this.negated}}class se{constructor(m){this._actual=m,this.type=8}static create(m){return new se(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 X($){let m=null;for(let v=0,L=$.length;v<L;v++){const re=$[v].substituteConstants();if($[v]!==re&&m===null){m=[];for(let Ie=0;Ie<v;Ie++)m[Ie]=$[Ie]}m!==null&&(m[v]=re)}return m===null?$:m}class _e{constructor(m,v){this.expr=m,this.negated=v,this.type=6}static create(m,v){return _e._normalizeArr(m,v)}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 v=0,L=this.expr.length;v<L;v++){const re=a(this.expr[v],m.expr[v]);if(re!==0)return re}return 0}equals(m){if(m.type===this.type){if(this.expr.length!==m.expr.length)return!1;for(let v=0,L=this.expr.length;v<L;v++)if(!this.expr[v].equals(m.expr[v]))return!1;return!0}return!1}substituteConstants(){const m=X(this.expr);return m===this.expr?this:_e.create(m,this.negated)}evaluate(m){for(let v=0,L=this.expr.length;v<L;v++)if(!this.expr[v].evaluate(m))return!1;return!0}static _normalizeArr(m,v){const L=[];let re=!1;for(const Ie of m)if(Ie){if(Ie.type===1){re=!0;continue}if(Ie.type===0)return N.INSTANCE;if(Ie.type===6){L.push(...Ie.expr);continue}L.push(Ie)}if(L.length===0&&re)return P.INSTANCE;if(L.length!==0){if(L.length===1)return L[0];L.sort(a);for(let Ie=1;Ie<L.length;Ie++)L[Ie-1].equals(L[Ie])&&(L.splice(Ie,1),Ie--);if(L.length===1)return L[0];for(;L.length>1;){const Ie=L[L.length-1];if(Ie.type!==9)break;L.pop();const Be=L.pop(),Oe=L.length===0,je=he.create(Ie.expr.map(at=>_e.create([at,Be],null)),null,Oe);je&&(L.push(je),L.sort(a))}return L.length===1?L[0]:new _e(L,v)}}serialize(){return this.expr.map(m=>m.serialize()).join(" && ")}keys(){const m=[];for(let v of this.expr)m.push(...v.keys());return m}negate(){if(!this.negated){const m=[];for(let v of this.expr)m.push(v.negate());this.negated=he.create(m,this,!0)}return this.negated}}class he{constructor(m,v){this.expr=m,this.negated=v,this.type=9}static create(m,v,L){return he._normalizeArr(m,v,L)}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 v=0,L=this.expr.length;v<L;v++){const re=a(this.expr[v],m.expr[v]);if(re!==0)return re}return 0}equals(m){if(m.type===this.type){if(this.expr.length!==m.expr.length)return!1;for(let v=0,L=this.expr.length;v<L;v++)if(!this.expr[v].equals(m.expr[v]))return!1;return!0}return!1}substituteConstants(){const m=X(this.expr);return m===this.expr?this:he.create(m,this.negated,!1)}evaluate(m){for(let v=0,L=this.expr.length;v<L;v++)if(this.expr[v].evaluate(m))return!0;return!1}static _normalizeArr(m,v,L){let re=[],Ie=!1;if(m){for(let Be=0,Oe=m.length;Be<Oe;Be++){const je=m[Be];if(je){if(je.type===0){Ie=!0;continue}if(je.type===1)return P.INSTANCE;if(je.type===9){re=re.concat(je.expr);continue}re.push(je)}}if(re.length===0&&Ie)return N.INSTANCE;re.sort(a)}if(re.length!==0){if(re.length===1)return re[0];for(let Be=1;Be<re.length;Be++)re[Be-1].equals(re[Be])&&(re.splice(Be,1),Be--);if(re.length===1)return re[0];if(L){for(let Be=0;Be<re.length;Be++)for(let Oe=Be+1;Oe<re.length;Oe++)R(re[Be],re[Oe])&&(re.splice(Oe,1),Oe--);if(re.length===1)return re[0]}return new he(re,v)}}serialize(){return this.expr.map(m=>m.serialize()).join(" || ")}keys(){const m=[];for(let v of this.expr)m.push(...v.keys());return m}negate(){if(!this.negated){let m=[];for(let v of this.expr)m.push(v.negate());for(;m.length>1;){const v=m.shift(),L=m.shift(),re=[];for(const Be of q(v))for(const Oe of q(L))re.push(_e.create([Be,Oe],null));const Ie=m.length===0;m.unshift(he.create(re,null,Ie))}this.negated=m[0]}return this.negated}}class pe extends E{constructor(m,v,L){super(m,null),this._defaultValue=v,typeof L=="object"?pe._info.push(Object.assign(Object.assign({},L),{key:m})):L!==!0&&pe._info.push({key:m,description:L,type:v!=null?typeof v:void 0})}static all(){return pe._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)}}pe._info=[];const Ce=(0,be.yh)("contextKeyService"),M="setContext";function I($,m){return $<m?-1:$>m?1:0}function U($,m,v,L){return $<v?-1:$>v?1:m<L?-1:m>L?1:0}function R($,m){if(m.type===6&&$.type!==9&&$.type!==6){for(const re of m.expr)if($.equals(re))return!0}const v=$.negate(),L=q(v).concat(q(m));L.sort(a);for(let re=0;re<L.length;re++){const Be=L[re].negate();for(let Oe=re+1;Oe<L.length;Oe++){const je=L[Oe];if(Be.equals(je))return!0}}return!1}function q($){return $.type===9?$.expr:[$]}},16925:function(Mt,Qe,S){"use strict";S.d(Qe,{I8:function(){return Z},TG:function(){return ie},jt:function(){return te},yh:function(){return ke}});var Z;(function(ee){ee.serviceIds=new Map,ee.DI_TARGET="$di$target",ee.DI_DEPENDENCIES="$di$dependencies";function xe(de){return de[ee.DI_DEPENDENCIES]||[]}ee.getServiceDependencies=xe})(Z||(Z={}));const ie=ke("instantiationService");function be(ee,xe,de,a){xe[Z.DI_TARGET]===xe?xe[Z.DI_DEPENDENCIES].push({id:ee,index:de,optional:a}):(xe[Z.DI_DEPENDENCIES]=[{id:ee,index:de,optional:a}],xe[Z.DI_TARGET]=xe)}function ke(ee){if(Z.serviceIds.has(ee))return Z.serviceIds.get(ee);const xe=function(de,a,N){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");be(xe,de,N,!1)};return xe.toString=()=>ee,Z.serviceIds.set(ee,xe),xe}function te(ee){return function(xe,de,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");be(ee,xe,a,!0)}}},44650:function(Mt,Qe,S){"use strict";S.d(Qe,{B:function(){return ke}});var Z=S(76068),ie=S(72999);class be{constructor(){this.data=new Map}add(ee,xe){Z.ok(ie.HD(ee)),Z.ok(ie.Kn(xe)),Z.ok(!this.data.has(ee),"There is already an extension with this id"),this.data.set(ee,xe)}as(ee){return this.data.get(ee)||null}}const ke=new be},66213:function(Mt,Qe,S){"use strict";S.d(Qe,{e:function(){return Z}});var Z;(function(ie){ie.DARK="dark",ie.LIGHT="light",ie.HIGH_CONTRAST="hc"})(Z||(Z={}))},49055:function(Mt,Qe,S){"use strict";S.d(Qe,{EN:function(){return a},IP:function(){return E},Ic:function(){return x},XE:function(){return xe},bB:function(){return H},kS:function(){return N},m6:function(){return P}});var Z=S(52615),ie=S(4348),be=S(69323),ke=S(16925),te=S(44650),ee=S(66213);const xe=(0,ke.yh)("themeService");var de;(function(V){function k(D){return D&&typeof D=="object"&&typeof D.id=="string"}V.isThemeColor=k})(de||(de={}));function a(V){return{id:V}}var N;(function(V){function k(se){return se&&typeof se=="object"&&typeof se.id=="string"&&(typeof se.color=="undefined"||de.isThemeColor(se.color))}V.isThemeIcon=k;const D=new RegExp(`^\\$\\((${Z.dT.iconNameExpression}(?:${Z.dT.iconModifierExpression})?)\\)$`);function j(se){const X=D.exec(se);if(!X)return;let[,_e]=X;return{id:_e}}V.fromString=j;function oe(se,X){let _e=se.id;const he=_e.lastIndexOf("~");return he!==-1&&(_e=_e.substring(0,he)),X&&(_e=`${_e}~${X}`),{id:_e}}V.modify=oe;function w(se,X){var _e,he;return se.id===X.id&&((_e=se.color)===null||_e===void 0?void 0:_e.id)===((he=X.color)===null||he===void 0?void 0:he.id)}V.isEqual=w;function K(se,X){return{id:se.id,color:X?a(X):void 0}}V.asThemeIcon=K,V.asClassNameArray=Z.dT.asClassNameArray,V.asClassName=Z.dT.asClassName,V.asCSSSelector=Z.dT.asCSSSelector})(N||(N={}));function P(V){switch(V){case ee.e.DARK:return"vs-dark";case ee.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const E={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ie.Q5}onColorThemeChange(k){return this.themingParticipants.push(k),this.onThemingParticipantAddedEmitter.fire(k),(0,be.OF)(()=>{const D=this.themingParticipants.indexOf(k);this.themingParticipants.splice(D,1)})}getThemingParticipants(){return this.themingParticipants}}let y=new c;te.B.add(E.ThemingContribution,y);function x(V){return y.onColorThemeChange(V)}class H extends be.JT{constructor(k){super(),this.themeService=k,this.theme=k.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(D=>this.onThemeChange(D)))}onThemeChange(k){this.theme=k,this.updateStyles()}updateStyles(){}}},5630:function(Mt,Qe,S){"use strict";var Z=S(96663),ie=S(44127),be=S(90493),ke=S(72071),te=S(6620),ee=S(92310),xe=S.n(ee),de=S(18929),a=S(59301),N=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],P=(0,a.forwardRef)(function(E,c){var y,x=E.prefixCls,H=x===void 0?"rc-checkbox":x,V=E.className,k=E.style,D=E.checked,j=E.disabled,oe=E.defaultChecked,w=oe===void 0?!1:oe,K=E.type,se=K===void 0?"checkbox":K,X=E.title,_e=E.onChange,he=(0,te.Z)(E,N),pe=(0,a.useRef)(null),Ce=(0,de.Z)(w,{value:D}),M=(0,ke.Z)(Ce,2),I=M[0],U=M[1];(0,a.useImperativeHandle)(c,function(){return{focus:function(){var m;(m=pe.current)===null||m===void 0||m.focus()},blur:function(){var m;(m=pe.current)===null||m===void 0||m.blur()},input:pe.current}});var R=xe()(H,V,(y={},(0,be.Z)(y,"".concat(H,"-checked"),I),(0,be.Z)(y,"".concat(H,"-disabled"),j),y)),q=function(m){j||("checked"in E||U(m.target.checked),_e==null||_e({target:(0,ie.Z)((0,ie.Z)({},E),{},{type:se,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return a.createElement("span",{className:R,title:X,style:k},a.createElement("input",(0,Z.Z)({},he,{className:"".concat(H,"-input"),ref:pe,onChange:q,disabled:j,checked:!!I,type:se})),a.createElement("span",{className:"".concat(H,"-inner")}))});Qe.Z=P},31561:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return se}});var Z=S(96663),ie=S(90493),be=S(72071),ke=S(6620),te=S(35593),ee=S(92310),xe=S.n(ee),de=S(8654),a=S(59301),N=S(10228),P=S(16089),E=N.Z.ESC,c=N.Z.TAB;function y(X){var _e=X.visible,he=X.triggerRef,pe=X.onVisibleChange,Ce=X.autoFocus,M=X.overlayRef,I=a.useRef(!1),U=function(){if(_e){var m,v;(m=he.current)===null||m===void 0||(v=m.focus)===null||v===void 0||v.call(m),pe==null||pe(!1)}},R=function(){var m;return(m=M.current)!==null&&m!==void 0&&m.focus?(M.current.focus(),I.current=!0,!0):!1},q=function(m){switch(m.keyCode){case E:U();break;case c:{var v=!1;I.current||(v=R()),v?m.preventDefault():U();break}}};a.useEffect(function(){return _e?(window.addEventListener("keydown",q),Ce&&(0,P.Z)(R,3),function(){window.removeEventListener("keydown",q),I.current=!1}):function(){I.current=!1}},[_e])}var x=(0,a.forwardRef)(function(X,_e){var he=X.overlay,pe=X.arrow,Ce=X.prefixCls,M=(0,a.useMemo)(function(){var U;return typeof he=="function"?U=he():U=he,U},[he]),I=(0,de.sQ)(_e,M==null?void 0:M.ref);return a.createElement(a.Fragment,null,pe&&a.createElement("div",{className:"".concat(Ce,"-arrow")}),a.cloneElement(M,{ref:(0,de.Yr)(M)?I:void 0}))}),H=x,V={adjustX:1,adjustY:1},k=[0,0],D={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-4],targetOffset:k},top:{points:["bc","tc"],overflow:V,offset:[0,-4],targetOffset:k},topRight:{points:["br","tr"],overflow:V,offset:[0,-4],targetOffset:k},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,4],targetOffset:k},bottom:{points:["tc","bc"],overflow:V,offset:[0,4],targetOffset:k},bottomRight:{points:["tr","br"],overflow:V,offset:[0,4],targetOffset:k}},j=D,oe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(X,_e){var he,pe=X.arrow,Ce=pe===void 0?!1:pe,M=X.prefixCls,I=M===void 0?"rc-dropdown":M,U=X.transitionName,R=X.animation,q=X.align,$=X.placement,m=$===void 0?"bottomLeft":$,v=X.placements,L=v===void 0?j:v,re=X.getPopupContainer,Ie=X.showAction,Be=X.hideAction,Oe=X.overlayClassName,je=X.overlayStyle,at=X.visible,et=X.trigger,rt=et===void 0?["hover"]:et,Tt=X.autoFocus,At=X.overlay,Ot=X.children,yt=X.onVisibleChange,Rt=(0,ke.Z)(X,oe),Ct=a.useState(),ue=(0,be.Z)(Ct,2),ye=ue[0],J=ue[1],Pe="visible"in X?at:ye,$e=a.useRef(null),O=a.useRef(null),ae=a.useRef(null);a.useImperativeHandle(_e,function(){return $e.current});var ve=function(Re){J(Re),yt==null||yt(Re)};y({visible:Pe,triggerRef:ae,onVisibleChange:ve,autoFocus:Tt,overlayRef:O});var we=function(Re){var Ne=X.onOverlayClick;J(!1),Ne&&Ne(Re)},De=function(){return a.createElement(H,{ref:O,overlay:At,prefixCls:I,arrow:Ce})},Me=function(){return typeof At=="function"?De:De()},Ye=function(){var Re=X.minOverlayWidthMatchTrigger,Ne=X.alignPoint;return"minOverlayWidthMatchTrigger"in X?Re:!Ne},tt=function(){var Re=X.openClassName;return Re!==void 0?Re:"".concat(I,"-open")},Xe=a.cloneElement(Ot,{className:xe()((he=Ot.props)===null||he===void 0?void 0:he.className,Pe&&tt()),ref:(0,de.Yr)(Ot)?(0,de.sQ)(ae,Ot.ref):void 0}),We=Be;return!We&&rt.indexOf("contextMenu")!==-1&&(We=["click"]),a.createElement(te.Z,(0,Z.Z)({builtinPlacements:L},Rt,{prefixCls:I,ref:$e,popupClassName:xe()(Oe,(0,ie.Z)({},"".concat(I,"-show-arrow"),Ce)),popupStyle:je,action:rt,showAction:Ie,hideAction:We,popupPlacement:m,popupAlign:q,popupTransitionName:U,popupAnimation:R,popupVisible:Pe,stretch:Ye()?"minWidth":"",popup:Me(),onPopupVisibleChange:ve,onPopupClick:we,getPopupContainer:re}),Xe)}var K=a.forwardRef(w),se=K},93681:function(Mt,Qe,S){"use strict";S.r(Qe),S.d(Qe,{BaseInput:function(){return N},default:function(){return D}});var Z=S(96663),ie=S(44127),be=S(90493),ke=S(20135),te=S(92310),ee=S.n(te),xe=S(59301),de=S(5643),a=function(oe){var w,K,se=oe.inputElement,X=oe.prefixCls,_e=oe.prefix,he=oe.suffix,pe=oe.addonBefore,Ce=oe.addonAfter,M=oe.className,I=oe.style,U=oe.disabled,R=oe.readOnly,q=oe.focused,$=oe.triggerFocus,m=oe.allowClear,v=oe.value,L=oe.handleReset,re=oe.hidden,Ie=oe.classes,Be=oe.classNames,Oe=oe.dataAttrs,je=oe.styles,at=oe.components,et=(at==null?void 0:at.affixWrapper)||"span",rt=(at==null?void 0:at.groupWrapper)||"span",Tt=(at==null?void 0:at.wrapper)||"span",At=(at==null?void 0:at.groupAddon)||"span",Ot=(0,xe.useRef)(null),yt=function(De){var Me;(Me=Ot.current)!==null&&Me!==void 0&&Me.contains(De.target)&&($==null||$())},Rt=function(){var De;if(!m)return null;var Me=!U&&!R&&v,Ye="".concat(X,"-clear-icon"),tt=(0,ke.Z)(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"\u2716";return xe.createElement("span",{onClick:L,onMouseDown:function(We){return We.preventDefault()},className:ee()(Ye,(De={},(0,be.Z)(De,"".concat(Ye,"-hidden"),!Me),(0,be.Z)(De,"".concat(Ye,"-has-suffix"),!!he),De)),role:"button",tabIndex:-1},tt)},Ct=(0,xe.cloneElement)(se,{value:v,hidden:re,className:ee()((w=se.props)===null||w===void 0?void 0:w.className,!(0,de.X3)(oe)&&!(0,de.He)(oe)&&M)||null,style:(0,ie.Z)((0,ie.Z)({},(K=se.props)===null||K===void 0?void 0:K.style),!(0,de.X3)(oe)&&!(0,de.He)(oe)?I:{})});if((0,de.X3)(oe)){var ue,ye="".concat(X,"-affix-wrapper"),J=ee()(ye,(ue={},(0,be.Z)(ue,"".concat(ye,"-disabled"),U),(0,be.Z)(ue,"".concat(ye,"-focused"),q),(0,be.Z)(ue,"".concat(ye,"-readonly"),R),(0,be.Z)(ue,"".concat(ye,"-input-with-clear-btn"),he&&m&&v),ue),!(0,de.He)(oe)&&M,Ie==null?void 0:Ie.affixWrapper,Be==null?void 0:Be.affixWrapper),Pe=(he||m)&&xe.createElement("span",{className:ee()("".concat(X,"-suffix"),Be==null?void 0:Be.suffix),style:je==null?void 0:je.suffix},Rt(),he);Ct=xe.createElement(et,(0,Z.Z)({className:J,style:(0,ie.Z)((0,ie.Z)({},(0,de.He)(oe)?void 0:I),je==null?void 0:je.affixWrapper),hidden:!(0,de.He)(oe)&&re,onClick:yt},Oe==null?void 0:Oe.affixWrapper,{ref:Ot}),_e&&xe.createElement("span",{className:ee()("".concat(X,"-prefix"),Be==null?void 0:Be.prefix),style:je==null?void 0:je.prefix},_e),(0,xe.cloneElement)(se,{value:v,hidden:null}),Pe)}if((0,de.He)(oe)){var $e="".concat(X,"-group"),O="".concat($e,"-addon"),ae=ee()("".concat(X,"-wrapper"),$e,Ie==null?void 0:Ie.wrapper),ve=ee()("".concat(X,"-group-wrapper"),M,Ie==null?void 0:Ie.group);return xe.createElement(rt,{className:ve,style:I,hidden:re},xe.createElement(Tt,{className:ae},pe&&xe.createElement(At,{className:O},pe),(0,xe.cloneElement)(Ct,{hidden:null}),Ce&&xe.createElement(At,{className:O},Ce)))}return Ct},N=a,P=S(19127),E=S(72071),c=S(6620),y=S(18929),x=S(2738),H=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],V=(0,xe.forwardRef)(function(j,oe){var w=j.autoComplete,K=j.onChange,se=j.onFocus,X=j.onBlur,_e=j.onPressEnter,he=j.onKeyDown,pe=j.prefixCls,Ce=pe===void 0?"rc-input":pe,M=j.disabled,I=j.htmlSize,U=j.className,R=j.maxLength,q=j.suffix,$=j.showCount,m=j.type,v=m===void 0?"text":m,L=j.classes,re=j.classNames,Ie=j.styles,Be=(0,c.Z)(j,H),Oe=(0,y.Z)(j.defaultValue,{value:j.value}),je=(0,E.Z)(Oe,2),at=je[0],et=je[1],rt=(0,xe.useState)(!1),Tt=(0,E.Z)(rt,2),At=Tt[0],Ot=Tt[1],yt=(0,xe.useRef)(null),Rt=function(ve){yt.current&&(0,de.nH)(yt.current,ve)};(0,xe.useImperativeHandle)(oe,function(){return{focus:Rt,blur:function(){var ve;(ve=yt.current)===null||ve===void 0||ve.blur()},setSelectionRange:function(ve,we,De){var Me;(Me=yt.current)===null||Me===void 0||Me.setSelectionRange(ve,we,De)},select:function(){var ve;(ve=yt.current)===null||ve===void 0||ve.select()},input:yt.current}}),(0,xe.useEffect)(function(){Ot(function(ae){return ae&&M?!1:ae})},[M]);var Ct=function(ve){j.value===void 0&&et(ve.target.value),yt.current&&(0,de.rJ)(yt.current,ve,K)},ue=function(ve){_e&&ve.key==="Enter"&&_e(ve),he==null||he(ve)},ye=function(ve){Ot(!0),se==null||se(ve)},J=function(ve){Ot(!1),X==null||X(ve)},Pe=function(ve){et(""),Rt(),yt.current&&(0,de.rJ)(yt.current,ve,K)},$e=function(){var ve=(0,x.Z)(j,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return xe.createElement("input",(0,Z.Z)({autoComplete:w},ve,{onChange:Ct,onFocus:ye,onBlur:J,onKeyDown:ue,className:ee()(Ce,(0,be.Z)({},"".concat(Ce,"-disabled"),M),re==null?void 0:re.input),style:Ie==null?void 0:Ie.input,ref:yt,size:I,type:v}))},O=function(){var ve=Number(R)>0;if(q||$){var we=(0,de.D7)(at),De=(0,P.Z)(we).length,Me=(0,ke.Z)($)==="object"?$.formatter({value:we,count:De,maxLength:R}):"".concat(De).concat(ve?" / ".concat(R):"");return xe.createElement(xe.Fragment,null,!!$&&xe.createElement("span",{className:ee()("".concat(Ce,"-show-count-suffix"),(0,be.Z)({},"".concat(Ce,"-show-count-has-suffix"),!!q),re==null?void 0:re.count),style:(0,ie.Z)({},Ie==null?void 0:Ie.count)},Me),q)}return null};return xe.createElement(N,(0,Z.Z)({},Be,{prefixCls:Ce,className:U,inputElement:$e(),handleReset:Pe,value:(0,de.D7)(at),focused:At,triggerFocus:Rt,suffix:O(),disabled:M,classes:L,classNames:re,styles:Ie}))}),k=V,D=k},5643:function(Mt,Qe,S){"use strict";S.d(Qe,{D7:function(){return te},He:function(){return Z},X3:function(){return ie},nH:function(){return ke},rJ:function(){return be}});function Z(ee){return!!(ee.addonBefore||ee.addonAfter)}function ie(ee){return!!(ee.prefix||ee.suffix||ee.allowClear)}function be(ee,xe,de,a){if(de){var N=xe;if(xe.type==="click"){var P=ee.cloneNode(!0);N=Object.create(xe,{target:{value:P},currentTarget:{value:P}}),P.value="",de(N);return}if(a!==void 0){N=Object.create(xe,{target:{value:ee},currentTarget:{value:ee}}),ee.value=a,de(N);return}de(N)}}function ke(ee,xe){if(ee){ee.focus(xe);var de=xe||{},a=de.cursor;if(a){var N=ee.value.length;switch(a){case"start":ee.setSelectionRange(0,0);break;case"end":ee.setSelectionRange(N,N);break;default:ee.setSelectionRange(0,N)}}}}function te(ee){return typeof ee=="undefined"||ee===null?"":String(ee)}},15285:function(Mt,Qe,S){"use strict";S.d(Qe,{iz:function(){return sn},ck:function(){return Ze},BW:function(){return kn},sN:function(){return Ze},Wd:function(){return br},ZP:function(){return rr},Xl:function(){return he}});var Z=S(96663),ie=S(90493),be=S(44127),ke=S(19127),te=S(72071),ee=S(6620),xe=S(92310),de=S.n(xe),a=S(11780),N=S(18929),P=S(13697),E=S(48736),c=S(59301),y=S(4676),x=c.createContext(null);function H(it,st){return it===void 0?null:"".concat(it,"-").concat(st)}function V(it){var st=c.useContext(x);return H(st,it)}var k=S(80547),D=["children","locked"],j=c.createContext(null);function oe(it,st){var gt=(0,be.Z)({},it);return Object.keys(st).forEach(function(St){var mt=st[St];mt!==void 0&&(gt[St]=mt)}),gt}function w(it){var st=it.children,gt=it.locked,St=(0,ee.Z)(it,D),mt=c.useContext(j),wt=(0,k.Z)(function(){return oe(mt,St)},[mt,St],function(_t,Yt){return!gt&&(_t[0]!==Yt[0]||!(0,P.Z)(_t[1],Yt[1],!0))});return c.createElement(j.Provider,{value:wt},st)}var K=[],se=c.createContext(null);function X(){return c.useContext(se)}var _e=c.createContext(K);function he(it){var st=c.useContext(_e);return c.useMemo(function(){return it!==void 0?[].concat((0,ke.Z)(st),[it]):st},[st,it])}var pe=c.createContext(null),Ce=c.createContext({}),M=Ce,I=S(29194);function U(it){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,I.Z)(it)){var gt=it.nodeName.toLowerCase(),St=["input","select","textarea","button"].includes(gt)||it.isContentEditable||gt==="a"&&!!it.getAttribute("href"),mt=it.getAttribute("tabindex"),wt=Number(mt),_t=null;return mt&&!Number.isNaN(wt)?_t=wt:St&&_t===null&&(_t=0),St&&it.disabled&&(_t=null),_t!==null&&(_t>=0||st&&_t<0)}return!1}function R(it){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=(0,ke.Z)(it.querySelectorAll("*")).filter(function(St){return U(St,st)});return U(it,st)&>.unshift(it),gt}var q=null;function $(){q=document.activeElement}function m(){q=null}function v(){if(q)try{q.focus()}catch(it){}}function L(it,st){if(st.keyCode===9){var gt=R(it),St=gt[st.shiftKey?0:gt.length-1],mt=St===document.activeElement||it===document.activeElement;if(mt){var wt=gt[st.shiftKey?gt.length-1:0];wt.focus(),st.preventDefault()}}}var re=S(10228),Ie=S(16089),Be=re.Z.LEFT,Oe=re.Z.RIGHT,je=re.Z.UP,at=re.Z.DOWN,et=re.Z.ENTER,rt=re.Z.ESC,Tt=re.Z.HOME,At=re.Z.END,Ot=[je,at,Be,Oe];function yt(it,st,gt,St){var mt,wt,_t,Yt,ir="prev",Qt="next",vr="children",wr="parent";if(it==="inline"&&St===et)return{inlineTrigger:!0};var Sr=(mt={},(0,ie.Z)(mt,je,ir),(0,ie.Z)(mt,at,Qt),mt),sr=(wt={},(0,ie.Z)(wt,Be,gt?Qt:ir),(0,ie.Z)(wt,Oe,gt?ir:Qt),(0,ie.Z)(wt,at,vr),(0,ie.Z)(wt,et,vr),wt),ar=(_t={},(0,ie.Z)(_t,je,ir),(0,ie.Z)(_t,at,Qt),(0,ie.Z)(_t,et,vr),(0,ie.Z)(_t,rt,wr),(0,ie.Z)(_t,Be,gt?vr:wr),(0,ie.Z)(_t,Oe,gt?wr:vr),_t),Wr={inline:Sr,horizontal:sr,vertical:ar,inlineSub:Sr,horizontalSub:ar,verticalSub:ar},Er=(Yt=Wr["".concat(it).concat(st?"":"Sub")])===null||Yt===void 0?void 0:Yt[St];switch(Er){case ir:return{offset:-1,sibling:!0};case Qt:return{offset:1,sibling:!0};case wr:return{offset:-1,sibling:!1};case vr:return{offset:1,sibling:!1};default:return null}}function Rt(it){for(var st=it;st;){if(st.getAttribute("data-menu-list"))return st;st=st.parentElement}return null}function Ct(it,st){for(var gt=it||document.activeElement;gt;){if(st.has(gt))return gt;gt=gt.parentElement}return null}function ue(it,st){var gt=R(it,!0);return gt.filter(function(St){return st.has(St)})}function ye(it,st,gt){var St=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!it)return null;var mt=ue(it,st),wt=mt.length,_t=mt.findIndex(function(Yt){return gt===Yt});return St<0?_t===-1?_t=wt-1:_t-=1:St>0&&(_t+=1),_t=(_t+wt)%wt,mt[_t]}var J=function(st,gt){var St=new Set,mt=new Map,wt=new Map;return st.forEach(function(_t){var Yt=document.querySelector("[data-menu-id='".concat(H(gt,_t),"']"));Yt&&(St.add(Yt),wt.set(Yt,_t),mt.set(_t,Yt))}),{elements:St,key2element:mt,element2key:wt}};function Pe(it,st,gt,St,mt,wt,_t,Yt,ir,Qt){var vr=c.useRef(),wr=c.useRef();wr.current=st;var Sr=function(){Ie.Z.cancel(vr.current)};return c.useEffect(function(){return function(){Sr()}},[]),function(sr){var ar=sr.which;if([].concat(Ot,[et,rt,Tt,At]).includes(ar)){var Wr=wt(),Er=J(Wr,St),Xr=Er,Fr=Xr.elements,Or=Xr.key2element,Tr=Xr.element2key,Dr=Or.get(st),$r=Ct(Dr,Fr),fn=Tr.get($r),Gr=yt(it,_t(fn,!0).length===1,gt,ar);if(!Gr&&ar!==Tt&&ar!==At)return;(Ot.includes(ar)||[Tt,At].includes(ar))&&sr.preventDefault();var Wt=function(_r){if(_r){var vn=_r,An=_r.querySelector("a");An!=null&&An.getAttribute("href")&&(vn=An);var Jr=Tr.get(_r);Yt(Jr),Sr(),vr.current=(0,Ie.Z)(function(){wr.current===Jr&&vn.focus()})}};if([Tt,At].includes(ar)||Gr.sibling||!$r){var Ue;!$r||it==="inline"?Ue=mt.current:Ue=Rt($r);var jt,Jt=ue(Ue,Fr);ar===Tt?jt=Jt[0]:ar===At?jt=Jt[Jt.length-1]:jt=ye(Ue,Fr,$r,Gr.offset),Wt(jt)}else if(Gr.inlineTrigger)ir(fn);else if(Gr.offset>0)ir(fn,!0),Sr(),vr.current=(0,Ie.Z)(function(){Er=J(Wr,St);var Tn=$r.getAttribute("aria-controls"),_r=document.getElementById(Tn),vn=ye(_r,Er.elements);Wt(vn)},5);else if(Gr.offset<0){var jr=_t(fn,!0),pn=jr[jr.length-2],En=Or.get(pn);ir(pn,!1),Wt(En)}}Qt==null||Qt(sr)}}function $e(it){Promise.resolve().then(it)}var O="__RC_UTIL_PATH_SPLIT__",ae=function(st){return st.join(O)},ve=function(st){return st.split(O)},we="rc-menu-more";function De(){var it=c.useState({}),st=(0,te.Z)(it,2),gt=st[1],St=(0,c.useRef)(new Map),mt=(0,c.useRef)(new Map),wt=c.useState([]),_t=(0,te.Z)(wt,2),Yt=_t[0],ir=_t[1],Qt=(0,c.useRef)(0),vr=(0,c.useRef)(!1),wr=function(){vr.current||gt({})},Sr=(0,c.useCallback)(function(Or,Tr){var Dr=ae(Tr);mt.current.set(Dr,Or),St.current.set(Or,Dr),Qt.current+=1;var $r=Qt.current;$e(function(){$r===Qt.current&&wr()})},[]),sr=(0,c.useCallback)(function(Or,Tr){var Dr=ae(Tr);mt.current.delete(Dr),St.current.delete(Or)},[]),ar=(0,c.useCallback)(function(Or){ir(Or)},[]),Wr=(0,c.useCallback)(function(Or,Tr){var Dr=St.current.get(Or)||"",$r=ve(Dr);return Tr&&Yt.includes($r[0])&&$r.unshift(we),$r},[Yt]),Er=(0,c.useCallback)(function(Or,Tr){return Or.some(function(Dr){var $r=Wr(Dr,!0);return $r.includes(Tr)})},[Wr]),Xr=function(){var Tr=(0,ke.Z)(St.current.keys());return Yt.length&&Tr.push(we),Tr},Fr=(0,c.useCallback)(function(Or){var Tr="".concat(St.current.get(Or)).concat(O),Dr=new Set;return(0,ke.Z)(mt.current.keys()).forEach(function($r){$r.startsWith(Tr)&&Dr.add(mt.current.get($r))}),Dr},[]);return c.useEffect(function(){return function(){vr.current=!0}},[]),{registerPath:Sr,unregisterPath:sr,refreshOverflowKeys:ar,isSubPathKey:Er,getKeyPath:Wr,getKeys:Xr,getSubPathKeys:Fr}}function Me(it){var st=c.useRef(it);st.current=it;var gt=c.useCallback(function(){for(var St,mt=arguments.length,wt=new Array(mt),_t=0;_t<mt;_t++)wt[_t]=arguments[_t];return(St=st.current)===null||St===void 0?void 0:St.call.apply(St,[st].concat(wt))},[]);return it?gt:void 0}var Ye=Math.random().toFixed(5).toString().slice(2),tt=0;function Xe(it){var st=(0,N.Z)(it,{value:it}),gt=(0,te.Z)(st,2),St=gt[0],mt=gt[1];return c.useEffect(function(){tt+=1;var wt="".concat(Ye,"-").concat(tt);mt("rc-menu-uuid-".concat(wt))},[]),St}var We=S(52884),ht=S(95727),Re=S(65711),Ne=S(85745),Ke=S(2738),Ve=S(8654);function nt(it,st,gt,St){var mt=c.useContext(j),wt=mt.activeKey,_t=mt.onActive,Yt=mt.onInactive,ir={active:wt===it};return st||(ir.onMouseEnter=function(Qt){gt==null||gt({key:it,domEvent:Qt}),_t(it)},ir.onMouseLeave=function(Qt){St==null||St({key:it,domEvent:Qt}),Yt(it)}),ir}function ft(it){var st=c.useContext(j),gt=st.mode,St=st.rtl,mt=st.inlineIndent;if(gt!=="inline")return null;var wt=it;return St?{paddingRight:wt*mt}:{paddingLeft:wt*mt}}function ot(it){var st=it.icon,gt=it.props,St=it.children,mt;return st===null||st===!1?null:(typeof st=="function"?mt=c.createElement(st,(0,be.Z)({},gt)):typeof st!="boolean"&&(mt=st),mt||St||null)}var _=["item"];function T(it){var st=it.item,gt=(0,ee.Z)(it,_);return Object.defineProperty(gt,"item",{get:function(){return(0,E.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),st}}),gt}var qe=["title","attribute","elementRef"],G=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ge=["active"],Nt=function(it){(0,Re.Z)(gt,it);var st=(0,Ne.Z)(gt);function gt(){return(0,We.Z)(this,gt),st.apply(this,arguments)}return(0,ht.Z)(gt,[{key:"render",value:function(){var mt=this.props,wt=mt.title,_t=mt.attribute,Yt=mt.elementRef,ir=(0,ee.Z)(mt,qe),Qt=(0,Ke.Z)(ir,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,E.ZP)(!_t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(a.Z.Item,(0,Z.Z)({},_t,{title:typeof wt=="string"?wt:void 0},Qt,{ref:Yt}))}}]),gt}(c.Component),Te=c.forwardRef(function(it,st){var gt,St=it.style,mt=it.className,wt=it.eventKey,_t=it.warnKey,Yt=it.disabled,ir=it.itemIcon,Qt=it.children,vr=it.role,wr=it.onMouseEnter,Sr=it.onMouseLeave,sr=it.onClick,ar=it.onKeyDown,Wr=it.onFocus,Er=(0,ee.Z)(it,G),Xr=V(wt),Fr=c.useContext(j),Or=Fr.prefixCls,Tr=Fr.onItemClick,Dr=Fr.disabled,$r=Fr.overflowDisabled,fn=Fr.itemIcon,Gr=Fr.selectedKeys,Wt=Fr.onActive,Ue=c.useContext(M),jt=Ue._internalRenderMenuItem,Jt="".concat(Or,"-item"),jr=c.useRef(),pn=c.useRef(),En=Dr||Yt,Tn=(0,Ve.x1)(st,pn),_r=he(wt),vn=function(_n){return{key:wt,keyPath:(0,ke.Z)(_r).reverse(),item:jr.current,domEvent:_n}},An=ir||fn,Jr=nt(wt,En,wr,Sr),Rn=Jr.active,di=(0,ee.Z)(Jr,ge),Un=Gr.includes(wt),Yn=ft(_r.length),er=function(_n){if(!En){var On=vn(_n);sr==null||sr(T(On)),Tr(On)}},un=function(_n){if(ar==null||ar(_n),_n.which===re.Z.ENTER){var On=vn(_n);sr==null||sr(T(On)),Tr(On)}},en=function(_n){Wt(wt),Wr==null||Wr(_n)},Ln={};it.role==="option"&&(Ln["aria-selected"]=Un);var fi=c.createElement(Nt,(0,Z.Z)({ref:jr,elementRef:Tn,role:vr===null?"none":vr||"menuitem",tabIndex:Yt?null:-1,"data-menu-id":$r&&Xr?null:Xr},Er,di,Ln,{component:"li","aria-disabled":Yt,style:(0,be.Z)((0,be.Z)({},Yn),St),className:de()(Jt,(gt={},(0,ie.Z)(gt,"".concat(Jt,"-active"),Rn),(0,ie.Z)(gt,"".concat(Jt,"-selected"),Un),(0,ie.Z)(gt,"".concat(Jt,"-disabled"),En),gt),mt),onClick:er,onKeyDown:un,onFocus:en}),Qt,c.createElement(ot,{props:(0,be.Z)((0,be.Z)({},it),{},{isSelected:Un}),icon:An}));return jt&&(fi=jt(fi,it,{selected:Un})),fi});function He(it,st){var gt=it.eventKey,St=X(),mt=he(gt);return c.useEffect(function(){if(St)return St.registerPath(gt,mt),function(){St.unregisterPath(gt,mt)}},[mt]),St?null:c.createElement(Te,(0,Z.Z)({},it,{ref:st}))}var Ze=c.forwardRef(He),Y=["className","children"],ce=function(st,gt){var St=st.className,mt=st.children,wt=(0,ee.Z)(st,Y),_t=c.useContext(j),Yt=_t.prefixCls,ir=_t.mode,Qt=_t.rtl;return c.createElement("ul",(0,Z.Z)({className:de()(Yt,Qt&&"".concat(Yt,"-rtl"),"".concat(Yt,"-sub"),"".concat(Yt,"-").concat(ir==="inline"?"inline":"vertical"),St),role:"menu"},wt,{"data-menu-list":!0,ref:gt}),mt)},Ee=c.forwardRef(ce);Ee.displayName="SubMenuList";var ze=Ee,W=S(11592);function bt(it,st){return(0,W.Z)(it).map(function(gt,St){if(c.isValidElement(gt)){var mt,wt,_t=gt.key,Yt=(mt=(wt=gt.props)===null||wt===void 0?void 0:wt.eventKey)!==null&&mt!==void 0?mt:_t,ir=Yt==null;ir&&(Yt="tmp_key-".concat([].concat((0,ke.Z)(st),[St]).join("-")));var Qt={key:Yt,eventKey:Yt};return c.cloneElement(gt,Qt)}return gt})}var Ae=S(35593),Dt={adjustX:1,adjustY:1},Ht={topLeft:{points:["bl","tl"],overflow:Dt},topRight:{points:["br","tr"],overflow:Dt},bottomLeft:{points:["tl","bl"],overflow:Dt},bottomRight:{points:["tr","br"],overflow:Dt},leftTop:{points:["tr","tl"],overflow:Dt},leftBottom:{points:["br","bl"],overflow:Dt},rightTop:{points:["tl","tr"],overflow:Dt},rightBottom:{points:["bl","br"],overflow:Dt}},Xt={topLeft:{points:["bl","tl"],overflow:Dt},topRight:{points:["br","tr"],overflow:Dt},bottomLeft:{points:["tl","bl"],overflow:Dt},bottomRight:{points:["tr","br"],overflow:Dt},rightTop:{points:["tr","tl"],overflow:Dt},rightBottom:{points:["br","bl"],overflow:Dt},leftTop:{points:["tl","tr"],overflow:Dt},leftBottom:{points:["bl","br"],overflow:Dt}},mr=null;function Bt(it,st,gt){if(st)return st;if(gt)return gt[it]||gt.other}var Ft={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fr(it){var st=it.prefixCls,gt=it.visible,St=it.children,mt=it.popup,wt=it.popupStyle,_t=it.popupClassName,Yt=it.popupOffset,ir=it.disabled,Qt=it.mode,vr=it.onVisibleChange,wr=c.useContext(j),Sr=wr.getPopupContainer,sr=wr.rtl,ar=wr.subMenuOpenDelay,Wr=wr.subMenuCloseDelay,Er=wr.builtinPlacements,Xr=wr.triggerSubMenuAction,Fr=wr.forceSubMenuRender,Or=wr.rootClassName,Tr=wr.motion,Dr=wr.defaultMotions,$r=c.useState(!1),fn=(0,te.Z)($r,2),Gr=fn[0],Wt=fn[1],Ue=sr?(0,be.Z)((0,be.Z)({},Xt),Er):(0,be.Z)((0,be.Z)({},Ht),Er),jt=Ft[Qt],Jt=Bt(Qt,Tr,Dr),jr=c.useRef(Jt);Qt!=="inline"&&(jr.current=Jt);var pn=(0,be.Z)((0,be.Z)({},jr.current),{},{leavedClassName:"".concat(st,"-hidden"),removeOnLeave:!1,motionAppear:!0}),En=c.useRef();return c.useEffect(function(){return En.current=(0,Ie.Z)(function(){Wt(gt)}),function(){Ie.Z.cancel(En.current)}},[gt]),c.createElement(Ae.Z,{prefixCls:st,popupClassName:de()("".concat(st,"-popup"),(0,ie.Z)({},"".concat(st,"-rtl"),sr),_t,Or),stretch:Qt==="horizontal"?"minWidth":null,getPopupContainer:Sr,builtinPlacements:Ue,popupPlacement:jt,popupVisible:Gr,popup:mt,popupStyle:wt,popupAlign:Yt&&{offset:Yt},action:ir?[]:[Xr],mouseEnterDelay:ar,mouseLeaveDelay:Wr,onPopupVisibleChange:vr,forceRender:Fr,popupMotion:pn,fresh:!0},St)}var Br=S(77900);function Ur(it){var st=it.id,gt=it.open,St=it.keyPath,mt=it.children,wt="inline",_t=c.useContext(j),Yt=_t.prefixCls,ir=_t.forceSubMenuRender,Qt=_t.motion,vr=_t.defaultMotions,wr=_t.mode,Sr=c.useRef(!1);Sr.current=wr===wt;var sr=c.useState(!Sr.current),ar=(0,te.Z)(sr,2),Wr=ar[0],Er=ar[1],Xr=Sr.current?gt:!1;c.useEffect(function(){Sr.current&&Er(!1)},[wr]);var Fr=(0,be.Z)({},Bt(wt,Qt,vr));St.length>1&&(Fr.motionAppear=!1);var Or=Fr.onVisibleChanged;return Fr.onVisibleChanged=function(Tr){return!Sr.current&&!Tr&&Er(!0),Or==null?void 0:Or(Tr)},Wr?null:c.createElement(w,{mode:wt,locked:!Sr.current},c.createElement(Br.default,(0,Z.Z)({visible:Xr},Fr,{forceRender:ir,removeOnLeave:!1,leavedClassName:"".concat(Yt,"-hidden")}),function(Tr){var Dr=Tr.className,$r=Tr.style;return c.createElement(ze,{id:st,className:Dr,style:$r},mt)}))}var kr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Kt=["active"],lr=function(st){var gt,St=st.style,mt=st.className,wt=st.title,_t=st.eventKey,Yt=st.warnKey,ir=st.disabled,Qt=st.internalPopupClose,vr=st.children,wr=st.itemIcon,Sr=st.expandIcon,sr=st.popupClassName,ar=st.popupOffset,Wr=st.popupStyle,Er=st.onClick,Xr=st.onMouseEnter,Fr=st.onMouseLeave,Or=st.onTitleClick,Tr=st.onTitleMouseEnter,Dr=st.onTitleMouseLeave,$r=(0,ee.Z)(st,kr),fn=V(_t),Gr=c.useContext(j),Wt=Gr.prefixCls,Ue=Gr.mode,jt=Gr.openKeys,Jt=Gr.disabled,jr=Gr.overflowDisabled,pn=Gr.activeKey,En=Gr.selectedKeys,Tn=Gr.itemIcon,_r=Gr.expandIcon,vn=Gr.onItemClick,An=Gr.onOpenChange,Jr=Gr.onActive,Rn=c.useContext(M),di=Rn._internalRenderSubMenuItem,Un=c.useContext(pe),Yn=Un.isSubPathKey,er=he(),un="".concat(Wt,"-submenu"),en=Jt||ir,Ln=c.useRef(),fi=c.useRef(),Xn=wr!=null?wr:Tn,_n=Sr!=null?Sr:_r,On=jt.includes(_t),an=!jr&&On,ti=Yn(En,_t),Hn=nt(_t,en,Tr,Dr),li=Hn.active,Gn=(0,ee.Z)(Hn,Kt),qn=c.useState(!1),Mr=(0,te.Z)(qn,2),ui=Mr[0],xi=Mr[1],Ei=function(Kn){en||xi(Kn)},yn=function(Kn){Ei(!0),Xr==null||Xr({key:_t,domEvent:Kn})},_i=function(Kn){Ei(!1),Fr==null||Fr({key:_t,domEvent:Kn})},wi=c.useMemo(function(){return li||(Ue!=="inline"?ui||Yn([pn],_t):!1)},[Ue,li,pn,ui,_t,Yn]),$t=ft(er.length),jn=function(Kn){en||(Or==null||Or({key:_t,domEvent:Kn}),Ue==="inline"&&An(_t,!On))},pi=Me(function(Mn){Er==null||Er(T(Mn)),vn(Mn)}),ci=function(Kn){Ue!=="inline"&&An(_t,Kn)},Pn=function(){Jr(_t)},bn=fn&&"".concat(fn,"-popup"),zr=c.createElement("div",(0,Z.Z)({role:"menuitem",style:$t,className:"".concat(un,"-title"),tabIndex:en?null:-1,ref:Ln,title:typeof wt=="string"?wt:null,"data-menu-id":jr&&fn?null:fn,"aria-expanded":an,"aria-haspopup":!0,"aria-controls":bn,"aria-disabled":en,onClick:jn,onFocus:Pn},Gn),wt,c.createElement(ot,{icon:Ue!=="horizontal"?_n:void 0,props:(0,be.Z)((0,be.Z)({},st),{},{isOpen:an,isSubMenu:!0})},c.createElement("i",{className:"".concat(un,"-arrow")}))),wn=c.useRef(Ue);if(Ue!=="inline"&&er.length>1?wn.current="vertical":wn.current=Ue,!jr){var Vn=wn.current;zr=c.createElement(fr,{mode:Vn,prefixCls:un,visible:!Qt&&an&&Ue!=="inline",popupClassName:sr,popupOffset:ar,popupStyle:Wr,popup:c.createElement(w,{mode:Vn==="horizontal"?"vertical":Vn},c.createElement(ze,{id:bn,ref:fi},vr)),disabled:en,onVisibleChange:ci},zr)}var Qn=c.createElement(a.Z.Item,(0,Z.Z)({role:"none"},$r,{component:"li",style:St,className:de()(un,"".concat(un,"-").concat(Ue),mt,(gt={},(0,ie.Z)(gt,"".concat(un,"-open"),an),(0,ie.Z)(gt,"".concat(un,"-active"),wi),(0,ie.Z)(gt,"".concat(un,"-selected"),ti),(0,ie.Z)(gt,"".concat(un,"-disabled"),en),gt)),onMouseEnter:yn,onMouseLeave:_i}),zr,!jr&&c.createElement(Ur,{id:bn,open:an,keyPath:er},vr));return di&&(Qn=di(Qn,st,{selected:ti,active:wi,open:an,disabled:en})),c.createElement(w,{onItemClick:pi,mode:Ue==="horizontal"?"vertical":Ue,itemIcon:Xn,expandIcon:_n},Qn)};function br(it){var st=it.eventKey,gt=it.children,St=he(st),mt=bt(gt,St),wt=X();c.useEffect(function(){if(wt)return wt.registerPath(st,St),function(){wt.unregisterPath(st,St)}},[St]);var _t;return wt?_t=mt:_t=c.createElement(lr,it,mt),c.createElement(_e.Provider,{value:St},_t)}var Vr=S(20135),Lr=["className","title","eventKey","children"],Yr=["children"],xr=function(st){var gt=st.className,St=st.title,mt=st.eventKey,wt=st.children,_t=(0,ee.Z)(st,Lr),Yt=c.useContext(j),ir=Yt.prefixCls,Qt="".concat(ir,"-item-group");return c.createElement("li",(0,Z.Z)({role:"presentation"},_t,{onClick:function(wr){return wr.stopPropagation()},className:de()(Qt,gt)}),c.createElement("div",{role:"presentation",className:"".concat(Qt,"-title"),title:typeof St=="string"?St:void 0},St),c.createElement("ul",{role:"group",className:"".concat(Qt,"-list")},wt))};function kn(it){var st=it.children,gt=(0,ee.Z)(it,Yr),St=he(gt.eventKey),mt=bt(st,St),wt=X();return wt?mt:c.createElement(xr,(0,Ke.Z)(gt,["warnKey"]),mt)}function sn(it){var st=it.className,gt=it.style,St=c.useContext(j),mt=St.prefixCls,wt=X();return wt?null:c.createElement("li",{role:"separator",className:de()("".concat(mt,"-item-divider"),st),style:gt})}var Gt=["label","children","key","type"];function Ut(it){return(it||[]).map(function(st,gt){if(st&&(0,Vr.Z)(st)==="object"){var St=st,mt=St.label,wt=St.children,_t=St.key,Yt=St.type,ir=(0,ee.Z)(St,Gt),Qt=_t!=null?_t:"tmp-".concat(gt);return wt||Yt==="group"?Yt==="group"?c.createElement(kn,(0,Z.Z)({key:Qt},ir,{title:mt}),Ut(wt)):c.createElement(br,(0,Z.Z)({key:Qt},ir,{title:mt}),Ut(wt)):Yt==="divider"?c.createElement(sn,(0,Z.Z)({key:Qt},ir)):c.createElement(Ze,(0,Z.Z)({key:Qt},ir),mt)}return null}).filter(function(st){return st})}function pr(it,st,gt){var St=it;return st&&(St=Ut(st)),bt(St,gt)}var Hr=["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"],gr=[],rn=c.forwardRef(function(it,st){var gt,St,mt=it,wt=mt.prefixCls,_t=wt===void 0?"rc-menu":wt,Yt=mt.rootClassName,ir=mt.style,Qt=mt.className,vr=mt.tabIndex,wr=vr===void 0?0:vr,Sr=mt.items,sr=mt.children,ar=mt.direction,Wr=mt.id,Er=mt.mode,Xr=Er===void 0?"vertical":Er,Fr=mt.inlineCollapsed,Or=mt.disabled,Tr=mt.disabledOverflow,Dr=mt.subMenuOpenDelay,$r=Dr===void 0?.1:Dr,fn=mt.subMenuCloseDelay,Gr=fn===void 0?.1:fn,Wt=mt.forceSubMenuRender,Ue=mt.defaultOpenKeys,jt=mt.openKeys,Jt=mt.activeKey,jr=mt.defaultActiveFirst,pn=mt.selectable,En=pn===void 0?!0:pn,Tn=mt.multiple,_r=Tn===void 0?!1:Tn,vn=mt.defaultSelectedKeys,An=mt.selectedKeys,Jr=mt.onSelect,Rn=mt.onDeselect,di=mt.inlineIndent,Un=di===void 0?24:di,Yn=mt.motion,er=mt.defaultMotions,un=mt.triggerSubMenuAction,en=un===void 0?"hover":un,Ln=mt.builtinPlacements,fi=mt.itemIcon,Xn=mt.expandIcon,_n=mt.overflowedIndicator,On=_n===void 0?"...":_n,an=mt.overflowedIndicatorPopupClassName,ti=mt.getPopupContainer,Hn=mt.onClick,li=mt.onOpenChange,Gn=mt.onKeyDown,qn=mt.openAnimation,Mr=mt.openTransitionName,ui=mt._internalRenderMenuItem,xi=mt._internalRenderSubMenuItem,Ei=(0,ee.Z)(mt,Hr),yn=c.useMemo(function(){return pr(sr,Sr,gr)},[sr,Sr]),_i=c.useState(!1),wi=(0,te.Z)(_i,2),$t=wi[0],jn=wi[1],pi=c.useRef(),ci=Xe(Wr),Pn=ar==="rtl",bn=(0,N.Z)(Ue,{value:jt,postState:function(nn){return nn||gr}}),zr=(0,te.Z)(bn,2),wn=zr[0],Vn=zr[1],Qn=function(nn){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Nn(){Vn(nn),li==null||li(nn)}tn?(0,y.flushSync)(Nn):Nn()},Mn=c.useState(wn),Kn=(0,te.Z)(Mn,2),Ni=Kn[0],Gi=Kn[1],Si=c.useRef(!1),Yi=c.useMemo(function(){return(Xr==="inline"||Xr==="vertical")&&Fr?["vertical",Fr]:[Xr,!1]},[Xr,Fr]),ki=(0,te.Z)(Yi,2),Li=ki[0],or=ki[1],tr=Li==="inline",Kr=c.useState(Li),Cn=(0,te.Z)(Kr,2),qr=Cn[0],ni=Cn[1],ji=c.useState(or),Bi=(0,te.Z)(ji,2),yi=Bi[0],vs=Bi[1];c.useEffect(function(){ni(Li),vs(or),Si.current&&(tr?Vn(Ni):Qn(gr))},[Li,or]);var Ds=c.useState(0),Rs=(0,te.Z)(Ds,2),ns=Rs[0],Is=Rs[1],Ti=ns>=yn.length-1||qr!=="horizontal"||Tr;c.useEffect(function(){tr&&Gi(wn)},[wn]),c.useEffect(function(){return Si.current=!0,function(){Si.current=!1}},[]);var $n=De(),_s=$n.registerPath,is=$n.unregisterPath,mi=$n.refreshOverflowKeys,Ai=$n.isSubPathKey,qs=$n.getKeyPath,Di=$n.getKeys,Qs=$n.getSubPathKeys,ys=c.useMemo(function(){return{registerPath:_s,unregisterPath:is}},[_s,is]),ss=c.useMemo(function(){return{isSubPathKey:Ai}},[Ai]);c.useEffect(function(){mi(Ti?gr:yn.slice(ns+1).map(function(on){return on.key}))},[ns,Ti]);var Js=(0,N.Z)(Jt||jr&&((gt=yn[0])===null||gt===void 0?void 0:gt.key),{value:Jt}),zn=(0,te.Z)(Js,2),Xi=zn[0],Fi=zn[1],Ki=Me(function(on){Fi(on)}),ks=Me(function(){Fi(void 0)});(0,c.useImperativeHandle)(st,function(){return{list:pi.current,focus:function(nn){var tn,Nn=Di(),Bn=J(Nn,ci),Qi=Bn.elements,Es=Bn.key2element,Os=Bn.element2key,Ps=ue(pi.current,Qi),Ji=Xi!=null?Xi:Ps[0]?Os.get(Ps[0]):(tn=yn.find(function(cs){return!cs.props.disabled}))===null||tn===void 0?void 0:tn.key,Wi=Es.get(Ji);if(Ji&&Wi){var It;Wi==null||(It=Wi.focus)===null||It===void 0||It.call(Wi,nn)}}}});var cn=(0,N.Z)(vn||[],{value:An,postState:function(nn){return Array.isArray(nn)?nn:nn==null?gr:[nn]}}),as=(0,te.Z)(cn,2),ii=as[0],qi=as[1],ea=function(nn){if(En){var tn=nn.key,Nn=ii.includes(tn),Bn;_r?Nn?Bn=ii.filter(function(Es){return Es!==tn}):Bn=[].concat((0,ke.Z)(ii),[tn]):Bn=[tn],qi(Bn);var Qi=(0,be.Z)((0,be.Z)({},nn),{},{selectedKeys:Bn});Nn?Rn==null||Rn(Qi):Jr==null||Jr(Qi)}!_r&&wn.length&&qr!=="inline"&&Qn(gr)},os=Me(function(on){Hn==null||Hn(T(on)),ea(on)}),ls=Me(function(on,nn){var tn=wn.filter(function(Bn){return Bn!==on});if(nn)tn.push(on);else if(qr!=="inline"){var Nn=Qs(on);tn=tn.filter(function(Bn){return!Nn.has(Bn)})}(0,P.Z)(wn,tn,!0)||Qn(tn,!0)}),us=function(nn,tn){var Nn=tn!=null?tn:!wn.includes(nn);ls(nn,Nn)},bs=Pe(qr,Xi,Pn,ci,pi,Di,qs,Fi,us,Gn);c.useEffect(function(){jn(!0)},[]);var Ls=c.useMemo(function(){return{_internalRenderMenuItem:ui,_internalRenderSubMenuItem:xi}},[ui,xi]),bi=qr!=="horizontal"||Tr?yn:yn.map(function(on,nn){return c.createElement(w,{key:on.key,overflowDisabled:nn>ns},on)}),xs=c.createElement(a.Z,(0,Z.Z)({id:Wr,ref:pi,prefixCls:"".concat(_t,"-overflow"),component:"ul",itemComponent:Ze,className:de()(_t,"".concat(_t,"-root"),"".concat(_t,"-").concat(qr),Qt,(St={},(0,ie.Z)(St,"".concat(_t,"-inline-collapsed"),yi),(0,ie.Z)(St,"".concat(_t,"-rtl"),Pn),St),Yt),dir:ar,style:ir,role:"menu",tabIndex:wr,data:bi,renderRawItem:function(nn){return nn},renderRawRest:function(nn){var tn=nn.length,Nn=tn?yn.slice(-tn):null;return c.createElement(br,{eventKey:we,title:On,disabled:Ti,internalPopupClose:tn===0,popupClassName:an},Nn)},maxCount:qr!=="horizontal"||Tr?a.Z.INVALIDATE:a.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(nn){Is(nn)},onKeyDown:bs},Ei));return c.createElement(M.Provider,{value:Ls},c.createElement(x.Provider,{value:ci},c.createElement(w,{prefixCls:_t,rootClassName:Yt,mode:qr,openKeys:wn,rtl:Pn,disabled:Or,motion:$t?Yn:null,defaultMotions:$t?er:null,activeKey:Xi,onActive:Ki,onInactive:ks,selectedKeys:ii,inlineIndent:Un,subMenuOpenDelay:$r,subMenuCloseDelay:Gr,forceSubMenuRender:Wt,builtinPlacements:Ln,triggerSubMenuAction:en,getPopupContainer:ti,itemIcon:fi,expandIcon:Xn,onItemClick:os,onOpenChange:ls},c.createElement(pe.Provider,{value:ss},xs),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(se.Provider,{value:ys},yn)))))}),Wn=rn,Qr=Wn;Qr.Item=Ze,Qr.SubMenu=br,Qr.ItemGroup=kn,Qr.Divider=sn;var rr=Qr},11780:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return $}});var Z=S(96663),ie=S(44127),be=S(72071),ke=S(6620),te=S(59301),ee=S(92310),xe=S.n(ee),de=S(29301),a=S(34280),N=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P=void 0;function E(m,v){var L=m.prefixCls,re=m.invalidate,Ie=m.item,Be=m.renderItem,Oe=m.responsive,je=m.responsiveDisabled,at=m.registerSize,et=m.itemKey,rt=m.className,Tt=m.style,At=m.children,Ot=m.display,yt=m.order,Rt=m.component,Ct=Rt===void 0?"div":Rt,ue=(0,ke.Z)(m,N),ye=Oe&&!Ot;function J(ve){at(et,ve)}te.useEffect(function(){return function(){J(null)}},[]);var Pe=Be&&Ie!==P?Be(Ie,{index:yt}):At,$e;re||($e={opacity:ye?0:1,height:ye?0:P,overflowY:ye?"hidden":P,order:Oe?yt:P,pointerEvents:ye?"none":P,position:ye?"absolute":P});var O={};ye&&(O["aria-hidden"]=!0);var ae=te.createElement(Ct,(0,Z.Z)({className:xe()(!re&&L,rt),style:(0,ie.Z)((0,ie.Z)({},$e),Tt)},O,ue,{ref:v}),Pe);return Oe&&(ae=te.createElement(de.Z,{onResize:function(we){var De=we.offsetWidth;J(De)},disabled:je},ae)),ae}var c=te.forwardRef(E);c.displayName="Item";var y=c,x=S(6089),H=S(4676),V=S(16089);function k(m){if(typeof MessageChannel=="undefined")(0,V.Z)(m);else{var v=new MessageChannel;v.port1.onmessage=function(){return m()},v.port2.postMessage(void 0)}}function D(){var m=te.useRef(null),v=function(re){m.current||(m.current=[],k(function(){(0,H.unstable_batchedUpdates)(function(){m.current.forEach(function(Ie){Ie()}),m.current=null})})),m.current.push(re)};return v}function j(m,v){var L=te.useState(v),re=(0,be.Z)(L,2),Ie=re[0],Be=re[1],Oe=(0,x.Z)(function(je){m(function(){Be(je)})});return[Ie,Oe]}var oe=te.createContext(null),w=["component"],K=["className"],se=["className"],X=function(v,L){var re=te.useContext(oe);if(!re){var Ie=v.component,Be=Ie===void 0?"div":Ie,Oe=(0,ke.Z)(v,w);return te.createElement(Be,(0,Z.Z)({},Oe,{ref:L}))}var je=re.className,at=(0,ke.Z)(re,K),et=v.className,rt=(0,ke.Z)(v,se);return te.createElement(oe.Provider,{value:null},te.createElement(y,(0,Z.Z)({ref:L,className:xe()(je,et)},at,rt)))},_e=te.forwardRef(X);_e.displayName="RawItem";var he=_e,pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ce="responsive",M="invalidate";function I(m){return"+ ".concat(m.length," ...")}function U(m,v){var L=m.prefixCls,re=L===void 0?"rc-overflow":L,Ie=m.data,Be=Ie===void 0?[]:Ie,Oe=m.renderItem,je=m.renderRawItem,at=m.itemKey,et=m.itemWidth,rt=et===void 0?10:et,Tt=m.ssr,At=m.style,Ot=m.className,yt=m.maxCount,Rt=m.renderRest,Ct=m.renderRawRest,ue=m.suffix,ye=m.component,J=ye===void 0?"div":ye,Pe=m.itemComponent,$e=m.onVisibleChange,O=(0,ke.Z)(m,pe),ae=Tt==="full",ve=D(),we=j(ve,null),De=(0,be.Z)(we,2),Me=De[0],Ye=De[1],tt=Me||0,Xe=j(ve,new Map),We=(0,be.Z)(Xe,2),ht=We[0],Re=We[1],Ne=j(ve,0),Ke=(0,be.Z)(Ne,2),Ve=Ke[0],nt=Ke[1],ft=j(ve,0),ot=(0,be.Z)(ft,2),_=ot[0],T=ot[1],qe=j(ve,0),G=(0,be.Z)(qe,2),ge=G[0],Nt=G[1],Te=(0,te.useState)(null),He=(0,be.Z)(Te,2),Ze=He[0],Y=He[1],ce=(0,te.useState)(null),Ee=(0,be.Z)(ce,2),ze=Ee[0],W=Ee[1],bt=te.useMemo(function(){return ze===null&&ae?Number.MAX_SAFE_INTEGER:ze||0},[ze,Me]),Ae=(0,te.useState)(!1),Dt=(0,be.Z)(Ae,2),Ht=Dt[0],Xt=Dt[1],mr="".concat(re,"-item"),Bt=Math.max(Ve,_),Ft=yt===Ce,fr=Be.length&&Ft,Br=yt===M,Ur=fr||typeof yt=="number"&&Be.length>yt,kr=(0,te.useMemo)(function(){var rr=Be;return fr?Me===null&&ae?rr=Be:rr=Be.slice(0,Math.min(Be.length,tt/rt)):typeof yt=="number"&&(rr=Be.slice(0,yt)),rr},[Be,rt,Me,yt,fr]),Kt=(0,te.useMemo)(function(){return fr?Be.slice(bt+1):Be.slice(kr.length)},[Be,kr,fr,bt]),lr=(0,te.useCallback)(function(rr,it){var st;return typeof at=="function"?at(rr):(st=at&&(rr==null?void 0:rr[at]))!==null&&st!==void 0?st:it},[at]),br=(0,te.useCallback)(Oe||function(rr){return rr},[Oe]);function Vr(rr,it,st){ze===rr&&(it===void 0||it===Ze)||(W(rr),st||(Xt(rr<Be.length-1),$e==null||$e(rr)),it!==void 0&&Y(it))}function Lr(rr,it){Ye(it.clientWidth)}function Yr(rr,it){Re(function(st){var gt=new Map(st);return it===null?gt.delete(rr):gt.set(rr,it),gt})}function xr(rr,it){T(it),nt(_)}function kn(rr,it){Nt(it)}function sn(rr){return ht.get(lr(kr[rr],rr))}(0,a.Z)(function(){if(tt&&typeof Bt=="number"&&kr){var rr=ge,it=kr.length,st=it-1;if(!it){Vr(0,null);return}for(var gt=0;gt<it;gt+=1){var St=sn(gt);if(ae&&(St=St||0),St===void 0){Vr(gt-1,void 0,!0);break}if(rr+=St,st===0&&rr<=tt||gt===st-1&&rr+sn(st)<=tt){Vr(st,null);break}else if(rr+Bt>tt){Vr(gt-1,rr-St-ge+_);break}}ue&&sn(0)+ge>tt&&Y(null)}},[tt,ht,_,ge,lr,kr]);var Gt=Ht&&!!Kt.length,Ut={};Ze!==null&&fr&&(Ut={position:"absolute",left:Ze,top:0});var pr={prefixCls:mr,responsive:fr,component:Pe,invalidate:Br},Hr=je?function(rr,it){var st=lr(rr,it);return te.createElement(oe.Provider,{key:st,value:(0,ie.Z)((0,ie.Z)({},pr),{},{order:it,item:rr,itemKey:st,registerSize:Yr,display:it<=bt})},je(rr,it))}:function(rr,it){var st=lr(rr,it);return te.createElement(y,(0,Z.Z)({},pr,{order:it,key:st,item:rr,renderItem:br,itemKey:st,registerSize:Yr,display:it<=bt}))},gr={order:Gt?bt:Number.MAX_SAFE_INTEGER,className:"".concat(mr,"-rest"),registerSize:xr,display:Gt},rn=Rt||I,Wn=Ct?te.createElement(oe.Provider,{value:(0,ie.Z)((0,ie.Z)({},pr),gr)},Ct(Kt)):te.createElement(y,(0,Z.Z)({},pr,gr),typeof rn=="function"?rn(Kt):rn),Qr=te.createElement(J,(0,Z.Z)({className:xe()(!Br&&re,Ot),style:At,ref:v},O),kr.map(Hr),Ur?Wn:null,ue&&te.createElement(y,(0,Z.Z)({},pr,{responsive:Ft,responsiveDisabled:!fr,order:bt,className:"".concat(mr,"-suffix"),registerSize:kn,display:!0,style:Ut}),ue));return Ft?te.createElement(de.Z,{onResize:Lr,disabled:!fr},Qr):Qr}var R=te.forwardRef(U);R.displayName="Overflow",R.Item=he,R.RESPONSIVE=Ce,R.INVALIDATE=M;var q=R,$=q},29301:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return M}});var Z=S(96663),ie=S(59301),be=S(11592),ke=S(48736),te=S(44127),ee=S(20135),xe=S(76846),de=S(8654),a=ie.createContext(null);function N(I){var U=I.children,R=I.onBatchResize,q=ie.useRef(0),$=ie.useRef([]),m=ie.useContext(a),v=ie.useCallback(function(L,re,Ie){q.current+=1;var Be=q.current;$.current.push({size:L,element:re,data:Ie}),Promise.resolve().then(function(){Be===q.current&&(R==null||R($.current),$.current=[])}),m==null||m(L,re,Ie)},[R,m]);return ie.createElement(a.Provider,{value:v},U)}var P=S(76374),E=new Map;function c(I){I.forEach(function(U){var R,q=U.target;(R=E.get(q))===null||R===void 0||R.forEach(function($){return $(q)})})}var y=new P.Z(c),x=null,H=null;function V(I,U){E.has(I)||(E.set(I,new Set),y.observe(I)),E.get(I).add(U)}function k(I,U){E.has(I)&&(E.get(I).delete(U),E.get(I).size||(y.unobserve(I),E.delete(I)))}var D=S(52884),j=S(95727),oe=S(65711),w=S(85745),K=function(I){(0,oe.Z)(R,I);var U=(0,w.Z)(R);function R(){return(0,D.Z)(this,R),U.apply(this,arguments)}return(0,j.Z)(R,[{key:"render",value:function(){return this.props.children}}]),R}(ie.Component);function se(I,U){var R=I.children,q=I.disabled,$=ie.useRef(null),m=ie.useRef(null),v=ie.useContext(a),L=typeof R=="function",re=L?R($):R,Ie=ie.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Be=!L&&ie.isValidElement(re)&&(0,de.Yr)(re),Oe=Be?(0,de.C4)(re):null,je=(0,de.x1)(Oe,$),at=function(){var At;return(0,xe.ZP)($.current)||($.current&&(0,ee.Z)($.current)==="object"?(0,xe.ZP)((At=$.current)===null||At===void 0?void 0:At.nativeElement):null)||(0,xe.ZP)(m.current)};ie.useImperativeHandle(U,function(){return at()});var et=ie.useRef(I);et.current=I;var rt=ie.useCallback(function(Tt){var At=et.current,Ot=At.onResize,yt=At.data,Rt=Tt.getBoundingClientRect(),Ct=Rt.width,ue=Rt.height,ye=Tt.offsetWidth,J=Tt.offsetHeight,Pe=Math.floor(Ct),$e=Math.floor(ue);if(Ie.current.width!==Pe||Ie.current.height!==$e||Ie.current.offsetWidth!==ye||Ie.current.offsetHeight!==J){var O={width:Pe,height:$e,offsetWidth:ye,offsetHeight:J};Ie.current=O;var ae=ye===Math.round(Ct)?Ct:ye,ve=J===Math.round(ue)?ue:J,we=(0,te.Z)((0,te.Z)({},O),{},{offsetWidth:ae,offsetHeight:ve});v==null||v(we,Tt,yt),Ot&&Promise.resolve().then(function(){Ot(we,Tt)})}},[]);return ie.useEffect(function(){var Tt=at();return Tt&&!q&&V(Tt,rt),function(){return k(Tt,rt)}},[$.current,q]),ie.createElement(K,{ref:m},Be?ie.cloneElement(re,{ref:je}):re)}var X=ie.forwardRef(se),_e=X,he="rc-observer-key";function pe(I,U){var R=I.children,q=typeof R=="function"?[R]:(0,be.Z)(R);return q.map(function($,m){var v=($==null?void 0:$.key)||"".concat(he,"-").concat(m);return ie.createElement(_e,(0,Z.Z)({},I,{key:v,ref:m===0?U:void 0}),$)})}var Ce=ie.forwardRef(pe);Ce.Collection=N;var M=Ce},9296:function(Mt,Qe,S){"use strict";S.r(Qe),S.d(Qe,{ResizableTextArea:function(){return pe},default:function(){return q}});var Z=S(96663),ie=S(44127),be=S(90493),ke=S(20135),te=S(72071),ee=S(6620),xe=S(19127),de=S(92310),a=S.n(de),N=S(93681),P=S(5643),E=S(18929),c=S(59301),y=S(29301),x=S(34280),H=S(16089),V=`
|
|
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"],D={},j;function oe($){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=$.getAttribute("id")||$.getAttribute("data-reactid")||$.getAttribute("name");if(m&&D[v])return D[v];var L=window.getComputedStyle($),re=L.getPropertyValue("box-sizing")||L.getPropertyValue("-moz-box-sizing")||L.getPropertyValue("-webkit-box-sizing"),Ie=parseFloat(L.getPropertyValue("padding-bottom"))+parseFloat(L.getPropertyValue("padding-top")),Be=parseFloat(L.getPropertyValue("border-bottom-width"))+parseFloat(L.getPropertyValue("border-top-width")),Oe=k.map(function(at){return"".concat(at,":").concat(L.getPropertyValue(at))}).join(";"),je={sizingStyle:Oe,paddingSize:Ie,borderSize:Be,boxSizing:re};return m&&v&&(D[v]=je),je}function w($){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;j||(j=document.createElement("textarea"),j.setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),$.getAttribute("wrap")?j.setAttribute("wrap",$.getAttribute("wrap")):j.removeAttribute("wrap");var re=oe($,m),Ie=re.paddingSize,Be=re.borderSize,Oe=re.boxSizing,je=re.sizingStyle;j.setAttribute("style","".concat(je,";").concat(V)),j.value=$.value||$.placeholder||"";var at=void 0,et=void 0,rt,Tt=j.scrollHeight;if(Oe==="border-box"?Tt+=Be:Oe==="content-box"&&(Tt-=Ie),v!==null||L!==null){j.value=" ";var At=j.scrollHeight-Ie;v!==null&&(at=At*v,Oe==="border-box"&&(at=at+Ie+Be),Tt=Math.max(at,Tt)),L!==null&&(et=At*L,Oe==="border-box"&&(et=et+Ie+Be),rt=Tt>et?"":"hidden",Tt=Math.min(et,Tt))}var Ot={height:Tt,overflowY:rt,resize:"none"};return at&&(Ot.minHeight=at),et&&(Ot.maxHeight=et),Ot}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,X=1,_e=2,he=c.forwardRef(function($,m){var v=$,L=v.prefixCls,re=v.onPressEnter,Ie=v.defaultValue,Be=v.value,Oe=v.autoSize,je=v.onResize,at=v.className,et=v.style,rt=v.disabled,Tt=v.onChange,At=v.onInternalAutoSize,Ot=(0,ee.Z)(v,K),yt=(0,E.Z)(Ie,{value:Be,postState:function(T){return T!=null?T:""}}),Rt=(0,te.Z)(yt,2),Ct=Rt[0],ue=Rt[1],ye=function(T){ue(T.target.value),Tt==null||Tt(T)},J=c.useRef();c.useImperativeHandle(m,function(){return{textArea:J.current}});var Pe=c.useMemo(function(){return Oe&&(0,ke.Z)(Oe)==="object"?[Oe.minRows,Oe.maxRows]:[]},[Oe]),$e=(0,te.Z)(Pe,2),O=$e[0],ae=$e[1],ve=!!Oe,we=function(){try{if(document.activeElement===J.current){var T=J.current,qe=T.selectionStart,G=T.selectionEnd,ge=T.scrollTop;J.current.setSelectionRange(qe,G),J.current.scrollTop=ge}}catch(Nt){}},De=c.useState(_e),Me=(0,te.Z)(De,2),Ye=Me[0],tt=Me[1],Xe=c.useState(),We=(0,te.Z)(Xe,2),ht=We[0],Re=We[1],Ne=function(){tt(se)};(0,x.Z)(function(){ve&&Ne()},[Be,O,ae,ve]),(0,x.Z)(function(){if(Ye===se)tt(X);else if(Ye===X){var _=w(J.current,!1,O,ae);tt(_e),Re(_)}else we()},[Ye]);var Ke=c.useRef(),Ve=function(){H.Z.cancel(Ke.current)},nt=function(T){Ye===_e&&(je==null||je(T),Oe&&(Ve(),Ke.current=(0,H.Z)(function(){Ne()})))};c.useEffect(function(){return Ve},[]);var ft=ve?ht:null,ot=(0,ie.Z)((0,ie.Z)({},et),ft);return(Ye===se||Ye===X)&&(ot.overflowY="hidden",ot.overflowX="hidden"),c.createElement(y.Z,{onResize:nt,disabled:!(Oe||je)},c.createElement("textarea",(0,Z.Z)({},Ot,{ref:J,style:ot,className:a()(L,at,(0,be.Z)({},"".concat(L,"-disabled"),rt)),disabled:rt,value:Ct,onChange:ye})))}),pe=he,Ce=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function M($,m){return(0,xe.Z)($||"").slice(0,m).join("")}function I($,m,v,L){var re=v;return $?re=M(v,L):(0,xe.Z)(m||"").length<v.length&&(0,xe.Z)(v||"").length>L&&(re=m),re}var U=c.forwardRef(function($,m){var v,L=$.defaultValue,re=$.value,Ie=$.onFocus,Be=$.onBlur,Oe=$.onChange,je=$.allowClear,at=$.maxLength,et=$.onCompositionStart,rt=$.onCompositionEnd,Tt=$.suffix,At=$.prefixCls,Ot=At===void 0?"rc-textarea":At,yt=$.classes,Rt=$.showCount,Ct=$.className,ue=$.style,ye=$.disabled,J=$.hidden,Pe=$.classNames,$e=$.styles,O=$.onResize,ae=(0,ee.Z)($,Ce),ve=(0,E.Z)(L,{value:re,defaultValue:L}),we=(0,te.Z)(ve,2),De=we[0],Me=we[1],Ye=(0,c.useRef)(null),tt=c.useState(!1),Xe=(0,te.Z)(tt,2),We=Xe[0],ht=Xe[1],Re=c.useState(!1),Ne=(0,te.Z)(Re,2),Ke=Ne[0],Ve=Ne[1],nt=c.useRef(),ft=c.useRef(0),ot=c.useState(null),_=(0,te.Z)(ot,2),T=_[0],qe=_[1],G=function(){var Bt;(Bt=Ye.current)===null||Bt===void 0||Bt.textArea.focus()};(0,c.useImperativeHandle)(m,function(){return{resizableTextArea:Ye.current,focus:G,blur:function(){var Bt;(Bt=Ye.current)===null||Bt===void 0||Bt.textArea.blur()}}}),(0,c.useEffect)(function(){ht(function(mr){return!ye&&mr})},[ye]);var ge=Number(at)>0,Nt=function(Bt){Ve(!0),nt.current=De,ft.current=Bt.currentTarget.selectionStart,et==null||et(Bt)},Te=function(Bt){Ve(!1);var Ft=Bt.currentTarget.value;if(ge){var fr,Br=ft.current>=at+1||ft.current===((fr=nt.current)===null||fr===void 0?void 0:fr.length);Ft=I(Br,nt.current,Ft,at)}Ft!==De&&(Me(Ft),(0,P.rJ)(Bt.currentTarget,Bt,Oe,Ft)),rt==null||rt(Bt)},He=function(Bt){var Ft=Bt.target.value;if(!Ke&&ge){var fr=Bt.target.selectionStart>=at+1||Bt.target.selectionStart===Ft.length||!Bt.target.selectionStart;Ft=I(fr,De,Ft,at)}Me(Ft),(0,P.rJ)(Bt.currentTarget,Bt,Oe,Ft)},Ze=function(Bt){var Ft=ae.onPressEnter,fr=ae.onKeyDown;Bt.key==="Enter"&&Ft&&Ft(Bt),fr==null||fr(Bt)},Y=function(Bt){ht(!0),Ie==null||Ie(Bt)},ce=function(Bt){ht(!1),Be==null||Be(Bt)},Ee=function(Bt){var Ft;Me(""),G(),(0,P.rJ)((Ft=Ye.current)===null||Ft===void 0?void 0:Ft.textArea,Bt,Oe)},ze=(0,P.D7)(De);!Ke&&ge&&re==null&&(ze=M(ze,at));var W=Tt,bt;if(Rt){var Ae=(0,xe.Z)(ze).length;(0,ke.Z)(Rt)==="object"?bt=Rt.formatter({value:ze,count:Ae,maxLength:at}):bt="".concat(Ae).concat(ge?" / ".concat(at):""),W=c.createElement(c.Fragment,null,W,c.createElement("span",{className:a()("".concat(Ot,"-data-count"),Pe==null?void 0:Pe.count),style:$e==null?void 0:$e.count},bt))}var Dt=function(Bt){var Ft;O==null||O(Bt),(Ft=Ye.current)!==null&&Ft!==void 0&&Ft.textArea.style.height&&qe(!0)},Ht=!ae.autoSize&&!Rt&&!je,Xt=c.createElement(N.BaseInput,{value:ze,allowClear:je,handleReset:Ee,suffix:W,prefixCls:Ot,classes:{affixWrapper:a()(yt==null?void 0:yt.affixWrapper,(v={},(0,be.Z)(v,"".concat(Ot,"-show-count"),Rt),(0,be.Z)(v,"".concat(Ot,"-textarea-allow-clear"),je),v))},disabled:ye,focused:We,className:Ct,style:(0,ie.Z)((0,ie.Z)({},ue),T&&!Ht?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof bt=="string"?bt:void 0}},hidden:J,inputElement:c.createElement(pe,(0,Z.Z)({},ae,{onKeyDown:Ze,onChange:He,onFocus:Y,onBlur:ce,onCompositionStart:Nt,onCompositionEnd:Te,className:Pe==null?void 0:Pe.textarea,style:(0,ie.Z)((0,ie.Z)({},$e==null?void 0:$e.textarea),{},{resize:ue==null?void 0:ue.resize}),disabled:ye,prefixCls:Ot,onResize:Dt,ref:Ye}))});return Xt}),R=U,q=R},55477:function(Mt,Qe,S){"use strict";S.d(Qe,{G:function(){return c},Z:function(){return V}});var Z=S(96663),ie=S(44127),be=S(6620),ke=S(35593),te=S(59301),ee={shiftX:64,adjustY:1},xe={adjustX:1,shiftY:!0},de=[0,0],a={left:{points:["cr","cl"],overflow:xe,offset:[-4,0],targetOffset:de},right:{points:["cl","cr"],overflow:xe,offset:[4,0],targetOffset:de},top:{points:["bc","tc"],overflow:ee,offset:[0,-4],targetOffset:de},bottom:{points:["tc","bc"],overflow:ee,offset:[0,4],targetOffset:de},topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-4],targetOffset:de},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0],targetOffset:de},topRight:{points:["br","tr"],overflow:ee,offset:[0,-4],targetOffset:de},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0],targetOffset:de},bottomRight:{points:["tr","br"],overflow:ee,offset:[0,4],targetOffset:de},rightBottom:{points:["bl","br"],overflow:xe,offset:[4,0],targetOffset:de},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,4],targetOffset:de},leftBottom:{points:["br","bl"],overflow:xe,offset:[-4,0],targetOffset:de}},N=null,P=S(92310),E=S.n(P);function c(k){var D=k.children,j=k.prefixCls,oe=k.id,w=k.overlayInnerStyle,K=k.className,se=k.style;return te.createElement("div",{className:E()("".concat(j,"-content"),K),style:se},te.createElement("div",{className:"".concat(j,"-inner"),id:oe,role:"tooltip",style:w},typeof D=="function"?D():D))}var y=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],x=function(D,j){var oe=D.overlayClassName,w=D.trigger,K=w===void 0?["hover"]:w,se=D.mouseEnterDelay,X=se===void 0?0:se,_e=D.mouseLeaveDelay,he=_e===void 0?.1:_e,pe=D.overlayStyle,Ce=D.prefixCls,M=Ce===void 0?"rc-tooltip":Ce,I=D.children,U=D.onVisibleChange,R=D.afterVisibleChange,q=D.transitionName,$=D.animation,m=D.motion,v=D.placement,L=v===void 0?"right":v,re=D.align,Ie=re===void 0?{}:re,Be=D.destroyTooltipOnHide,Oe=Be===void 0?!1:Be,je=D.defaultVisible,at=D.getTooltipContainer,et=D.overlayInnerStyle,rt=D.arrowContent,Tt=D.overlay,At=D.id,Ot=D.showArrow,yt=Ot===void 0?!0:Ot,Rt=(0,be.Z)(D,y),Ct=(0,te.useRef)(null);(0,te.useImperativeHandle)(j,function(){return Ct.current});var ue=(0,ie.Z)({},Rt);"visible"in D&&(ue.popupVisible=D.visible);var ye=function(){return te.createElement(c,{key:"content",prefixCls:M,id:At,overlayInnerStyle:et},Tt)};return te.createElement(ke.Z,(0,Z.Z)({popupClassName:oe,prefixCls:M,popup:ye,action:K,builtinPlacements:a,popupPlacement:L,ref:Ct,popupAlign:Ie,getPopupContainer:at,onPopupVisibleChange:U,afterPopupVisibleChange:R,popupTransitionName:q,popupAnimation:$,popupMotion:m,defaultPopupVisible:je,autoDestroy:Oe,mouseLeaveDelay:he,popupStyle:pe,mouseEnterDelay:X,arrow:yt},ue),I)},H=(0,te.forwardRef)(x),V=H},49658:function(Mt,Qe){"use strict";Qe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var S=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(S)||/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(S==null?void 0:S.substr(0,4))}},83145:function(Mt,Qe,S){"use strict";Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.CopyToClipboard=void 0;var Z=be(S(59301)),ie=be(S(25769));function be(D){return D&&D.__esModule?D:{default:D}}function ke(D){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ke=function(oe){return typeof oe}:ke=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},ke(D)}function te(D,j){var oe=Object.keys(D);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(D);j&&(w=w.filter(function(K){return Object.getOwnPropertyDescriptor(D,K).enumerable})),oe.push.apply(oe,w)}return oe}function ee(D){for(var j=1;j<arguments.length;j++){var oe=arguments[j]!=null?arguments[j]:{};j%2?te(oe,!0).forEach(function(w){V(D,w,oe[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(oe)):te(oe).forEach(function(w){Object.defineProperty(D,w,Object.getOwnPropertyDescriptor(oe,w))})}return D}function xe(D,j){if(D==null)return{};var oe=de(D,j),w,K;if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(D);for(K=0;K<se.length;K++)w=se[K],!(j.indexOf(w)>=0)&&Object.prototype.propertyIsEnumerable.call(D,w)&&(oe[w]=D[w])}return oe}function de(D,j){if(D==null)return{};var oe={},w=Object.keys(D),K,se;for(se=0;se<w.length;se++)K=w[se],!(j.indexOf(K)>=0)&&(oe[K]=D[K]);return oe}function a(D,j){if(!(D instanceof j))throw new TypeError("Cannot call a class as a function")}function N(D,j){for(var oe=0;oe<j.length;oe++){var w=j[oe];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(D,w.key,w)}}function P(D,j,oe){return j&&N(D.prototype,j),oe&&N(D,oe),D}function E(D,j){return j&&(ke(j)==="object"||typeof j=="function")?j:y(D)}function c(D){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},c(D)}function y(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function x(D,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(j&&j.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),j&&H(D,j)}function H(D,j){return H=Object.setPrototypeOf||function(w,K){return w.__proto__=K,w},H(D,j)}function V(D,j,oe){return j in D?Object.defineProperty(D,j,{value:oe,enumerable:!0,configurable:!0,writable:!0}):D[j]=oe,D}var k=function(D){x(j,D);function j(){var oe,w;a(this,j);for(var K=arguments.length,se=new Array(K),X=0;X<K;X++)se[X]=arguments[X];return w=E(this,(oe=c(j)).call.apply(oe,[this].concat(se))),V(y(w),"onClick",function(_e){var he=w.props,pe=he.text,Ce=he.onCopy,M=he.children,I=he.options,U=Z.default.Children.only(M),R=(0,ie.default)(pe,I);Ce&&Ce(pe,R),U&&U.props&&typeof U.props.onClick=="function"&&U.props.onClick(_e)}),w}return P(j,[{key:"render",value:function(){var w=this.props,K=w.text,se=w.onCopy,X=w.options,_e=w.children,he=xe(w,["text","onCopy","options","children"]),pe=Z.default.Children.only(_e);return Z.default.cloneElement(pe,ee({},he,{onClick:this.onClick}))}}]),j}(Z.default.PureComponent);Qe.CopyToClipboard=k,V(k,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Mt,Qe,S){"use strict";var Z=S(83145),ie=Z.CopyToClipboard;ie.CopyToClipboard=ie,Mt.exports=ie},76374:function(Mt,Qe,S){"use strict";var Z=function(){if(typeof Map!="undefined")return Map;function M(I,U){var R=-1;return I.some(function(q,$){return q[0]===U?(R=$,!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(U){var R=M(this.__entries__,U),q=this.__entries__[R];return q&&q[1]},I.prototype.set=function(U,R){var q=M(this.__entries__,U);~q?this.__entries__[q][1]=R:this.__entries__.push([U,R])},I.prototype.delete=function(U){var R=this.__entries__,q=M(R,U);~q&&R.splice(q,1)},I.prototype.has=function(U){return!!~M(this.__entries__,U)},I.prototype.clear=function(){this.__entries__.splice(0)},I.prototype.forEach=function(U,R){R===void 0&&(R=null);for(var q=0,$=this.__entries__;q<$.length;q++){var m=$[q];U.call(R,m[1],m[0])}},I}()}(),ie=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,be=function(){return typeof S.g!="undefined"&&S.g.Math===Math?S.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ke=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(be):function(M){return setTimeout(function(){return M(Date.now())},1e3/60)}}(),te=2;function ee(M,I){var U=!1,R=!1,q=0;function $(){U&&(U=!1,M()),R&&v()}function m(){ke($)}function v(){var L=Date.now();if(U){if(L-q<te)return;R=!0}else U=!0,R=!1,setTimeout(m,I);q=L}return v}var xe=20,de=["top","right","bottom","left","width","height","size","weight"],a=typeof MutationObserver!="undefined",N=function(){function M(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ee(this.refresh.bind(this),xe)}return M.prototype.addObserver=function(I){~this.observers_.indexOf(I)||this.observers_.push(I),this.connected_||this.connect_()},M.prototype.removeObserver=function(I){var U=this.observers_,R=U.indexOf(I);~R&&U.splice(R,1),!U.length&&this.connected_&&this.disconnect_()},M.prototype.refresh=function(){var I=this.updateObservers_();I&&this.refresh()},M.prototype.updateObservers_=function(){var I=this.observers_.filter(function(U){return U.gatherActive(),U.hasActive()});return I.forEach(function(U){return U.broadcastActive()}),I.length>0},M.prototype.connect_=function(){!ie||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(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)},M.prototype.disconnect_=function(){!ie||!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)},M.prototype.onTransitionEnd_=function(I){var U=I.propertyName,R=U===void 0?"":U,q=de.some(function($){return!!~R.indexOf($)});q&&this.refresh()},M.getInstance=function(){return this.instance_||(this.instance_=new M),this.instance_},M.instance_=null,M}(),P=function(M,I){for(var U=0,R=Object.keys(I);U<R.length;U++){var q=R[U];Object.defineProperty(M,q,{value:I[q],enumerable:!1,writable:!1,configurable:!0})}return M},E=function(M){var I=M&&M.ownerDocument&&M.ownerDocument.defaultView;return I||be},c=K(0,0,0,0);function y(M){return parseFloat(M)||0}function x(M){for(var I=[],U=1;U<arguments.length;U++)I[U-1]=arguments[U];return I.reduce(function(R,q){var $=M["border-"+q+"-width"];return R+y($)},0)}function H(M){for(var I=["top","right","bottom","left"],U={},R=0,q=I;R<q.length;R++){var $=q[R],m=M["padding-"+$];U[$]=y(m)}return U}function V(M){var I=M.getBBox();return K(0,0,I.width,I.height)}function k(M){var I=M.clientWidth,U=M.clientHeight;if(!I&&!U)return c;var R=E(M).getComputedStyle(M),q=H(R),$=q.left+q.right,m=q.top+q.bottom,v=y(R.width),L=y(R.height);if(R.boxSizing==="border-box"&&(Math.round(v+$)!==I&&(v-=x(R,"left","right")+$),Math.round(L+m)!==U&&(L-=x(R,"top","bottom")+m)),!j(M)){var re=Math.round(v+$)-I,Ie=Math.round(L+m)-U;Math.abs(re)!==1&&(v-=re),Math.abs(Ie)!==1&&(L-=Ie)}return K(q.left,q.top,v,L)}var D=function(){return typeof SVGGraphicsElement!="undefined"?function(M){return M instanceof E(M).SVGGraphicsElement}:function(M){return M instanceof E(M).SVGElement&&typeof M.getBBox=="function"}}();function j(M){return M===E(M).document.documentElement}function oe(M){return ie?D(M)?V(M):k(M):c}function w(M){var I=M.x,U=M.y,R=M.width,q=M.height,$=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,m=Object.create($.prototype);return P(m,{x:I,y:U,width:R,height:q,top:U,right:I+R,bottom:q+U,left:I}),m}function K(M,I,U,R){return{x:M,y:I,width:U,height:R}}var se=function(){function M(I){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=K(0,0,0,0),this.target=I}return M.prototype.isActive=function(){var I=oe(this.target);return this.contentRect_=I,I.width!==this.broadcastWidth||I.height!==this.broadcastHeight},M.prototype.broadcastRect=function(){var I=this.contentRect_;return this.broadcastWidth=I.width,this.broadcastHeight=I.height,I},M}(),X=function(){function M(I,U){var R=w(U);P(this,{target:I,contentRect:R})}return M}(),_e=function(){function M(I,U,R){if(this.activeObservations_=[],this.observations_=new Z,typeof I!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=I,this.controller_=U,this.callbackCtx_=R}return M.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 E(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var U=this.observations_;U.has(I)||(U.set(I,new se(I)),this.controller_.addObserver(this),this.controller_.refresh())}},M.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 E(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var U=this.observations_;U.has(I)&&(U.delete(I),U.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var I=this;this.clearActive(),this.observations_.forEach(function(U){U.isActive()&&I.activeObservations_.push(U)})},M.prototype.broadcastActive=function(){if(this.hasActive()){var I=this.callbackCtx_,U=this.activeObservations_.map(function(R){return new X(R.target,R.broadcastRect())});this.callback_.call(I,U,I),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0},M}(),he=typeof WeakMap!="undefined"?new WeakMap:new Z,pe=function(){function M(I){if(!(this instanceof M))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var U=N.getInstance(),R=new _e(I,U,this);he.set(this,R)}return M}();["observe","unobserve","disconnect"].forEach(function(M){pe.prototype[M]=function(){var I;return(I=he.get(this))[M].apply(I,arguments)}});var Ce=function(){return typeof be.ResizeObserver!="undefined"?be.ResizeObserver:pe}();Qe.Z=Ce},98040:function(Mt){Mt.exports=function(){var Qe=document.getSelection();if(!Qe.rangeCount)return function(){};for(var S=document.activeElement,Z=[],ie=0;ie<Qe.rangeCount;ie++)Z.push(Qe.getRangeAt(ie));switch(S.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":S.blur();break;default:S=null;break}return Qe.removeAllRanges(),function(){Qe.type==="Caret"&&Qe.removeAllRanges(),Qe.rangeCount||Z.forEach(function(be){Qe.addRange(be)}),S&&S.focus()}}},1012:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return E}});var Z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),ie=new Uint8Array(16);function be(){if(!Z)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Z(ie)}var ke=/^(?:[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 te(c){return typeof c=="string"&&ke.test(c)}for(var ee=te,xe=[],de=0;de<256;++de)xe.push((de+256).toString(16).substr(1));function a(c){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=(xe[c[y+0]]+xe[c[y+1]]+xe[c[y+2]]+xe[c[y+3]]+"-"+xe[c[y+4]]+xe[c[y+5]]+"-"+xe[c[y+6]]+xe[c[y+7]]+"-"+xe[c[y+8]]+xe[c[y+9]]+"-"+xe[c[y+10]]+xe[c[y+11]]+xe[c[y+12]]+xe[c[y+13]]+xe[c[y+14]]+xe[c[y+15]]).toLowerCase();if(!ee(x))throw TypeError("Stringified UUID is invalid");return x}var N=a;function P(c,y,x){c=c||{};var H=c.random||(c.rng||be)();if(H[6]=H[6]&15|64,H[8]=H[8]&63|128,y){x=x||0;for(var V=0;V<16;++V)y[x+V]=H[V];return y}return N(H)}var E=P},93314:function(Mt){"use strict";Mt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},40846:function(Mt,Qe,S){"use strict";S.d(Qe,{ZP:function(){return Cs}});function Z(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ie={exports:{}};(function(o,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,g,b){if(b=b||{},f=f.trim(),g=g.trim(),!g){if(!b.alwaysNormalize)return f;var A=u.parseURL(f);if(!A)throw new Error("Error trying to parse base URL.");return A.path=u.normalizePath(A.path),u.buildURLFromParts(A)}var z=u.parseURL(g);if(!z)throw new Error("Error trying to parse relative URL.");if(z.scheme)return b.alwaysNormalize?(z.path=u.normalizePath(z.path),u.buildURLFromParts(z)):g;var ne=u.parseURL(f);if(!ne)throw new Error("Error trying to parse base URL.");if(!ne.netLoc&&ne.path&&ne.path[0]!=="/"){var Q=n.exec(ne.path);ne.netLoc=Q[1],ne.path=Q[2]}ne.netLoc&&!ne.path&&(ne.path="/");var le={scheme:ne.scheme,netLoc:z.netLoc,path:null,params:z.params,query:z.query,fragment:z.fragment};if(!z.netLoc&&(le.netLoc=ne.netLoc,z.path[0]!=="/"))if(!z.path)le.path=ne.path,z.params||(le.params=ne.params,z.query||(le.query=ne.query));else{var me=ne.path,Ge=me.substring(0,me.lastIndexOf("/")+1)+z.path;le.path=u.normalizePath(Ge)}return le.path===null&&(le.path=b.alwaysNormalize?u.normalizePath(z.path):z.path),u.buildURLFromParts(le)},parseURL:function(f){var g=r.exec(f);return g?{scheme:g[1]||"",netLoc:g[2]||"",path:g[3]||"",params:g[4]||"",query:g[5]||"",fragment:g[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}};o.exports=u})()})(ie);var be=ie.exports;function ke(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function te(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(t),!0).forEach(function(r){de(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function ee(o,e){if(typeof o!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function xe(o){var e=ee(o,"string");return typeof e=="symbol"?e:String(e)}function de(o,e,t){return e=xe(e),e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function a(){return a=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},a.apply(this,arguments)}const N=Number.isFinite||function(o){return typeof o=="number"&&isFinite(o)},P=Number.isSafeInteger||function(o){return typeof o=="number"&&Math.abs(o)<=E},E=Number.MAX_SAFE_INTEGER||9007199254740991;let c=function(o){return o.MEDIA_ATTACHING="hlsMediaAttaching",o.MEDIA_ATTACHED="hlsMediaAttached",o.MEDIA_DETACHING="hlsMediaDetaching",o.MEDIA_DETACHED="hlsMediaDetached",o.BUFFER_RESET="hlsBufferReset",o.BUFFER_CODECS="hlsBufferCodecs",o.BUFFER_CREATED="hlsBufferCreated",o.BUFFER_APPENDING="hlsBufferAppending",o.BUFFER_APPENDED="hlsBufferAppended",o.BUFFER_EOS="hlsBufferEos",o.BUFFER_FLUSHING="hlsBufferFlushing",o.BUFFER_FLUSHED="hlsBufferFlushed",o.MANIFEST_LOADING="hlsManifestLoading",o.MANIFEST_LOADED="hlsManifestLoaded",o.MANIFEST_PARSED="hlsManifestParsed",o.LEVEL_SWITCHING="hlsLevelSwitching",o.LEVEL_SWITCHED="hlsLevelSwitched",o.LEVEL_LOADING="hlsLevelLoading",o.LEVEL_LOADED="hlsLevelLoaded",o.LEVEL_UPDATED="hlsLevelUpdated",o.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",o.LEVELS_UPDATED="hlsLevelsUpdated",o.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",o.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",o.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",o.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",o.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",o.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",o.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",o.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",o.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",o.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",o.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",o.CUES_PARSED="hlsCuesParsed",o.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",o.INIT_PTS_FOUND="hlsInitPtsFound",o.FRAG_LOADING="hlsFragLoading",o.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",o.FRAG_LOADED="hlsFragLoaded",o.FRAG_DECRYPTED="hlsFragDecrypted",o.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",o.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",o.FRAG_PARSING_METADATA="hlsFragParsingMetadata",o.FRAG_PARSED="hlsFragParsed",o.FRAG_BUFFERED="hlsFragBuffered",o.FRAG_CHANGED="hlsFragChanged",o.FPS_DROP="hlsFpsDrop",o.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",o.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",o.ERROR="hlsError",o.DESTROYING="hlsDestroying",o.KEY_LOADING="hlsKeyLoading",o.KEY_LOADED="hlsKeyLoaded",o.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",o.BACK_BUFFER_REACHED="hlsBackBufferReached",o.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",o}({}),y=function(o){return o.NETWORK_ERROR="networkError",o.MEDIA_ERROR="mediaError",o.KEY_SYSTEM_ERROR="keySystemError",o.MUX_ERROR="muxError",o.OTHER_ERROR="otherError",o}({}),x=function(o){return o.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",o.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",o.KEY_SYSTEM_NO_SESSION="keySystemNoSession",o.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",o.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",o.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",o.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",o.MANIFEST_LOAD_ERROR="manifestLoadError",o.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",o.MANIFEST_PARSING_ERROR="manifestParsingError",o.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",o.LEVEL_EMPTY_ERROR="levelEmptyError",o.LEVEL_LOAD_ERROR="levelLoadError",o.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",o.LEVEL_PARSING_ERROR="levelParsingError",o.LEVEL_SWITCH_ERROR="levelSwitchError",o.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",o.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",o.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",o.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",o.FRAG_LOAD_ERROR="fragLoadError",o.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",o.FRAG_DECRYPT_ERROR="fragDecryptError",o.FRAG_PARSING_ERROR="fragParsingError",o.FRAG_GAP="fragGap",o.REMUX_ALLOC_ERROR="remuxAllocError",o.KEY_LOAD_ERROR="keyLoadError",o.KEY_LOAD_TIMEOUT="keyLoadTimeOut",o.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",o.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",o.BUFFER_APPEND_ERROR="bufferAppendError",o.BUFFER_APPENDING_ERROR="bufferAppendingError",o.BUFFER_STALLED_ERROR="bufferStalledError",o.BUFFER_FULL_ERROR="bufferFullError",o.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",o.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",o.INTERNAL_EXCEPTION="internalException",o.INTERNAL_ABORTED="aborted",o.UNKNOWN="unknown",o}({});const H=function(){},V={trace:H,debug:H,log:H,warn:H,info:H,error:H};let k=V;function D(o){const e=self.console[o];return e?e.bind(self.console,`[${o}] >`):H}function j(o,...e){e.forEach(function(t){k[t]=o[t]?o[t].bind(o):D(t)})}function oe(o,e){if(typeof console=="object"&&o===!0||typeof o=="object"){j(o,"debug","log","info","warn","error");try{k.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){k=V}}else k=V}const w=k,K=/^(\d+)x(\d+)$/,se=/(.+?)=(".*?"|.*?)(?:,|$)/g;class X{constructor(e){typeof e=="string"&&(e=X.parseAttrList(e)),a(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=K.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(se.lastIndex=0;(t=se.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 _e(o){return o!=="ID"&&o!=="CLASS"&&o!=="START-DATE"&&o!=="DURATION"&&o!=="END-DATE"&&o!=="END-ON-NEXT"}function he(o){return o==="SCTE35-OUT"||o==="SCTE35-IN"}class pe{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]){w.warn(`DATERANGE tag attribute: "${n}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=n;break}e=a(new X({}),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"]);N(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(N(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&&N(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Ce{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 M={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={[M.AUDIO]:null,[M.VIDEO]:null,[M.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=be.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class U 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 Ce,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||!N(this.programDateTime))return null;const e=N(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[M.AUDIO]=null,e[M.VIDEO]=null,e[M.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 Ce,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 q=10;class ${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?N(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||q}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(o){return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function v(o){const e=Ie(o).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function L(o){const e=function(r,n,i){const s=r[n];r[n]=r[i],r[i]=s};e(o,0,3),e(o,1,2),e(o,4,5),e(o,6,7)}function re(o){const e=o.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=v(s)}}return t}function Ie(o){return Uint8Array.from(unescape(encodeURIComponent(o)),e=>e.charCodeAt(0))}const Be=typeof self!="undefined"?self:void 0;var Oe={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},je={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function at(o){switch(o){case je.FAIRPLAY:return Oe.FAIRPLAY;case je.PLAYREADY:return Oe.PLAYREADY;case je.WIDEVINE:return Oe.WIDEVINE;case je.CLEARKEY:return Oe.CLEARKEY}}var et={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function rt(o){if(o===et.WIDEVINE)return Oe.WIDEVINE;if(o===et.PLAYREADY)return Oe.PLAYREADY;if(o===et.CENC||o===et.CLEARKEY)return Oe.CLEARKEY}function Tt(o){switch(o){case Oe.FAIRPLAY:return je.FAIRPLAY;case Oe.PLAYREADY:return je.PLAYREADY;case Oe.WIDEVINE:return je.WIDEVINE;case Oe.CLEARKEY:return je.CLEARKEY}}function At(o){const{drmSystems:e,widevineLicenseUrl:t}=o,r=e?[Oe.FAIRPLAY,Oe.WIDEVINE,Oe.PLAYREADY,Oe.CLEARKEY].filter(n=>!!e[n]):[];return!r[Oe.WIDEVINE]&&t&&r.push(Oe.WIDEVINE),r}const Ot=function(o){return Be!=null&&(o=Be.navigator)!=null&&o.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function yt(o,e,t,r){let n;switch(o){case Oe.FAIRPLAY:n=["cenc","sinf"];break;case Oe.WIDEVINE:case Oe.PLAYREADY:n=["cenc"];break;case Oe.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${o}`)}return Rt(n,e,t,r)}function Rt(o,e,t,r){return[{initDataTypes:o,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 Ct(o){const e=new Uint16Array(o.buffer,o.byteOffset,o.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 L(f),f}}return null}function ue(o,e,t){return Uint8Array.prototype.slice?o.slice(e,t):new Uint8Array(Array.prototype.slice.call(o,e,t))}const ye=(o,e)=>e+10<=o.length&&o[e]===73&&o[e+1]===68&&o[e+2]===51&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128,J=(o,e)=>e+10<=o.length&&o[e]===51&&o[e+1]===68&&o[e+2]===73&&o[e+3]<255&&o[e+4]<255&&o[e+6]<128&&o[e+7]<128&&o[e+8]<128&&o[e+9]<128,Pe=(o,e)=>{const t=e;let r=0;for(;ye(o,e);){r+=10;const n=$e(o,e+6);r+=n,J(o,e+10)&&(r+=10),e+=r}if(r>0)return o.subarray(t,t+r)},$e=(o,e)=>{let t=0;return t=(o[e]&127)<<21,t|=(o[e+1]&127)<<14,t|=(o[e+2]&127)<<7,t|=o[e+3]&127,t},O=(o,e)=>ye(o,e)&&$e(o,e+6)+10<=o.length-e,ae=o=>{const e=De(o);for(let t=0;t<e.length;t++){const r=e[t];if(ve(r))return We(r)}},ve=o=>o&&o.key==="PRIV"&&o.info==="com.apple.streaming.transportStreamTimestamp",we=o=>{const e=String.fromCharCode(o[0],o[1],o[2],o[3]),t=$e(o,4),r=10;return{type:e,size:t,data:o.subarray(r,r+t)}},De=o=>{let e=0;const t=[];for(;ye(o,e);){const r=$e(o,e+6);e+=10;const n=e+r;for(;e+8<n;){const i=we(o.subarray(e)),s=Me(i);s&&t.push(s),e+=i.size+10}J(o,e)&&(e+=10)}return t},Me=o=>o.type==="PRIV"?Ye(o):o.type[0]==="W"?Xe(o):tt(o),Ye=o=>{if(o.size<2)return;const e=ht(o.data,!0),t=new Uint8Array(o.data.subarray(e.length+1));return{key:o.type,info:e,data:t.buffer}},tt=o=>{if(o.size<2)return;if(o.type==="TXXX"){let t=1;const r=ht(o.data.subarray(t),!0);t+=r.length+1;const n=ht(o.data.subarray(t));return{key:o.type,info:r,data:n}}const e=ht(o.data.subarray(1));return{key:o.type,data:e}},Xe=o=>{if(o.type==="WXXX"){if(o.size<2)return;let t=1;const r=ht(o.data.subarray(t),!0);t+=r.length+1;const n=ht(o.data.subarray(t));return{key:o.type,info:r,data:n}}const e=ht(o.data);return{key:o.type,data:e}},We=o=>{if(o.data.byteLength===8){const e=new Uint8Array(o.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)}},ht=(o,e=!1)=>{const t=Ne();if(t){const g=t.decode(o);if(e){const b=g.indexOf("\0");return b!==-1?g.substring(0,b):g}return g.replace(/\0/g,"")}const r=o.length;let n,i,s,u="",f=0;for(;f<r;){if(n=o[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=o[f++],u+=String.fromCharCode((n&31)<<6|i&63);break;case 14:i=o[f++],s=o[f++],u+=String.fromCharCode((n&15)<<12|(i&63)<<6|(s&63)<<0);break}}return u};let Re;function Ne(){if(!navigator.userAgent.includes("PlayStation 4"))return!Re&&typeof self.TextDecoder!="undefined"&&(Re=new self.TextDecoder("utf-8")),Re}const Ke={hexDump:function(o){let e="";for(let t=0;t<o.length;t++){let r=o[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}},Ve=Math.pow(2,32)-1,nt=[].push,ft={video:1,audio:2,id3:3,text:4};function ot(o){return String.fromCharCode.apply(null,o)}function _(o,e){const t=o[e]<<8|o[e+1];return t<0?65536+t:t}function T(o,e){const t=G(o,e);return t<0?4294967296+t:t}function qe(o,e){let t=T(o,e);return t*=Math.pow(2,32),t+=T(o,e+4),t}function G(o,e){return o[e]<<24|o[e+1]<<16|o[e+2]<<8|o[e+3]}function ge(o,e,t){o[e]=t>>24,o[e+1]=t>>16&255,o[e+2]=t>>8&255,o[e+3]=t&255}function Nt(o){const e=o.byteLength;for(let t=0;t<e;){const r=T(o,t);if(r>8&&o[t+4]===109&&o[t+5]===111&&o[t+6]===111&&o[t+7]===102)return!0;t=r>1?t+r:e}return!1}function Te(o,e){const t=[];if(!e.length)return t;const r=o.byteLength;for(let n=0;n<r;){const i=T(o,n),s=ot(o.subarray(n+4,n+8)),u=i>1?n+i:r;if(s===e[0])if(e.length===1)t.push(o.subarray(n+8,u));else{const f=Te(o.subarray(n+8,u),e.slice(1));f.length&&nt.apply(t,f)}n=u}return t}function He(o){const e=[],t=o[0];let r=8;const n=T(o,r);r+=4;let i=0,s=0;t===0?(i=T(o,r),s=T(o,r+4),r+=8):(i=qe(o,r),s=qe(o,r+8),r+=16),r+=2;let u=o.length+s;const f=_(o,r);r+=2;for(let g=0;g<f;g++){let b=r;const A=T(o,b);b+=4;const z=A&2147483647;if((A&2147483648)>>>31===1)return w.warn("SIDX has hierarchical references (not supported)"),null;const Q=T(o,b);b+=4,e.push({referenceSize:z,subsegmentDuration:Q,info:{duration:Q/n,start:u,end:u+z-1}}),u+=z,b+=4,r=b}return{earliestPresentationTime:i,timescale:n,version:t,referencesCount:f,references:e}}function Ze(o){const e=[],t=Te(o,["moov","trak"]);for(let n=0;n<t.length;n++){const i=t[n],s=Te(i,["tkhd"])[0];if(s){let u=s[0];const f=T(s,u===0?12:20),g=Te(i,["mdia","mdhd"])[0];if(g){u=g[0];const b=T(g,u===0?12:20),A=Te(i,["mdia","hdlr"])[0];if(A){const z=ot(A.subarray(8,12)),ne={soun:M.AUDIO,vide:M.VIDEO}[z];if(ne){const Q=Te(i,["mdia","minf","stbl","stsd"])[0],le=Y(Q);e[f]={timescale:b,type:ne},e[ne]=te({timescale:b,id:f},le)}}}}}return Te(o,["moov","mvex","trex"]).forEach(n=>{const i=T(n,4),s=e[i];s&&(s.default={duration:T(n,12),flags:T(n,20)})}),e}function Y(o){const e=o.subarray(8),t=e.subarray(86),r=ot(e.subarray(4,8));let n=r;const i=r==="enca"||r==="encv";if(i){const u=Te(e,[r])[0].subarray(r==="enca"?28:78);Te(u,["sinf"]).forEach(g=>{const b=Te(g,["schm"])[0];if(b){const A=ot(b.subarray(4,8));if(A==="cbcs"||A==="cenc"){const z=Te(g,["frma"])[0];z&&(n=ot(z))}}})}switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const s=Te(t,["avcC"])[0];n+="."+Ee(s[1])+Ee(s[2])+Ee(s[3]);break}case"mp4a":{const s=Te(e,[r])[0],u=Te(s.subarray(28),["esds"])[0];if(u&&u.length>12){let f=4;if(u[f++]!==3)break;f=ce(u,f),f+=2;const g=u[f++];if(g&128&&(f+=2),g&64&&(f+=u[f++]),u[f++]!==4)break;f=ce(u,f);const b=u[f++];if(b===64)n+="."+Ee(b);else break;if(f+=12,u[f++]!==5)break;f=ce(u,f);const A=u[f++];let z=(A&248)>>3;z===31&&(z+=1+((A&7)<<3)+((u[f]&224)>>5)),n+="."+z}break}case"hvc1":case"hev1":{const s=Te(t,["hvcC"])[0],u=s[1],f=["","A","B","C"][u>>6],g=u&31,b=T(s,2),A=(u&32)>>5?"H":"L",z=s[12],ne=s.subarray(6,12);n+="."+f+g,n+="."+b.toString(16).toUpperCase(),n+="."+A+z;let Q="";for(let le=ne.length;le--;){const me=ne[le];(me||Q)&&(Q="."+me.toString(16).toUpperCase()+Q)}n+=Q;break}case"dvh1":case"dvhe":{const s=Te(t,["dvcC"])[0],u=s[2]>>1&127,f=s[2]<<5&32|s[3]>>3&31;n+="."+ze(u)+"."+ze(f);break}case"vp09":{const s=Te(t,["vpcC"])[0],u=s[4],f=s[5],g=s[6]>>4&15;n+="."+ze(u)+"."+ze(f)+"."+ze(g);break}case"av01":{const s=Te(t,["av1C"])[0],u=s[1]>>>5,f=s[1]&31,g=s[2]>>>7?"H":"M",b=(s[2]&64)>>6,A=(s[2]&32)>>5,z=u===2&&b?A?12:10:b?10:8,ne=(s[2]&16)>>4,Q=(s[2]&8)>>3,le=(s[2]&4)>>2,me=s[2]&3;n+="."+u+"."+ze(f)+g+"."+ze(z)+"."+ne+"."+Q+le+me+"."+ze(1)+"."+ze(1)+"."+ze(1)+"."+0;break}}return{codec:n,encrypted:i}}function ce(o,e){const t=e+5;for(;o[e++]&128&&e<t;);return e}function Ee(o){return("0"+o.toString(16).toUpperCase()).slice(-2)}function ze(o){return(o<10?"0":"")+o}function W(o,e){if(!o||!e)return o;const t=e.keyId;return t&&e.isCommonEncryption&&Te(o,["moov","trak"]).forEach(n=>{const s=Te(n,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=Te(s,["enca"]);const f=u.length>0;f||(u=Te(s,["encv"])),u.forEach(g=>{const b=f?g.subarray(28):g.subarray(78);Te(b,["sinf"]).forEach(z=>{const ne=bt(z);if(ne){const Q=ne.subarray(8,24);Q.some(le=>le!==0)||(w.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${Ke.hexDump(Q)} -> ${Ke.hexDump(t)}`),ne.set(t,8))}})})}),o}function bt(o){const e=Te(o,["schm"])[0];if(e){const t=ot(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return Te(o,["schi","tenc"])[0]}return null}function Ae(o,e){return Te(e,["moof","traf"]).reduce((t,r)=>{const n=Te(r,["tfdt"])[0],i=n[0],s=Te(r,["tfhd"]).reduce((u,f)=>{const g=T(f,4),b=o[g];if(b){let A=T(n,4);if(i===1){if(A===Ve)return w.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;A*=Ve+1,A+=T(n,8)}const z=b.timescale||9e4,ne=A/z;if(N(ne)&&(u===null||ne<u))return ne}return u},null);return s!==null&&N(s)&&(t===null||s<t)?s:t},null)}function Dt(o,e){let t=0,r=0,n=0;const i=Te(o,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=Te(u,["tfhd"])[0],g=T(f,4),b=e[g];if(!b)continue;const A=b.default,z=T(f,0)|(A==null?void 0:A.flags);let ne=A==null?void 0:A.duration;z&8&&(z&2?ne=T(f,12):ne=T(f,8));const Q=b.timescale||9e4,le=Te(u,["trun"]);for(let me=0;me<le.length;me++){if(t=Ht(le[me]),!t&&ne){const Ge=T(le[me],4);t=ne*Ge}b.type===M.VIDEO?r+=t/Q:b.type===M.AUDIO&&(n+=t/Q)}}if(r===0&&n===0){let s=1/0,u=0,f=0;const g=Te(o,["sidx"]);for(let b=0;b<g.length;b++){const A=He(g[b]);if(A!=null&&A.references){s=Math.min(s,A.earliestPresentationTime/A.timescale);const z=A.references.reduce((ne,Q)=>ne+Q.info.duration||0,0);u=Math.max(u,z+A.earliestPresentationTime/A.timescale),f=u-s}}if(f&&N(f))return f}return r||n}function Ht(o){const e=T(o,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const n=T(o,4);for(let i=0;i<n;i++){if(e&256){const s=T(o,t);r+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function Xt(o,e,t){Te(e,["moof","traf"]).forEach(r=>{Te(r,["tfhd"]).forEach(n=>{const i=T(n,4),s=o[i];if(!s)return;const u=s.timescale||9e4;Te(r,["tfdt"]).forEach(f=>{const g=f[0],b=t*u;if(b){let A=T(f,4);if(g===0)A-=b,A=Math.max(A,0),ge(f,4,A);else{A*=Math.pow(2,32),A+=T(f,8),A-=b,A=Math.max(A,0);const z=Math.floor(A/(Ve+1)),ne=Math.floor(A%(Ve+1));ge(f,4,z),ge(f,8,ne)}}})})})}function mr(o){const e={valid:null,remainder:null},t=Te(o,["moof"]);if(t.length<2)return e.remainder=o,e;const r=t[t.length-1];return e.valid=ue(o,0,r.byteOffset-8),e.remainder=ue(o,r.byteOffset-8),e}function Bt(o,e){const t=new Uint8Array(o.length+e.length);return t.set(o),t.set(e,o.length),t}function Ft(o,e){const t=[],r=e.samples,n=e.timescale,i=e.id;let s=!1;return Te(r,["moof"]).map(f=>{const g=f.byteOffset-8;Te(f,["traf"]).map(A=>{const z=Te(A,["tfdt"]).map(ne=>{const Q=ne[0];let le=T(ne,4);return Q===1&&(le*=Math.pow(2,32),le+=T(ne,8)),le/n})[0];return z!==void 0&&(o=z),Te(A,["tfhd"]).map(ne=>{const Q=T(ne,4),le=T(ne,0)&16777215,me=(le&1)!==0,Ge=(le&2)!==0,ut=(le&8)!==0;let lt=0;const Et=(le&16)!==0;let dt=0;const Pt=(le&32)!==0;let xt=8;Q===i&&(me&&(xt+=8),Ge&&(xt+=4),ut&&(lt=T(ne,xt),xt+=4),Et&&(dt=T(ne,xt),xt+=4),Pt&&(xt+=4),e.type==="video"&&(s=fr(e.codec)),Te(A,["trun"]).map(Vt=>{const nr=Vt[0],Lt=T(Vt,0)&16777215,Zt=(Lt&1)!==0;let Nr=0;const ur=(Lt&4)!==0,Pr=(Lt&256)!==0;let Ir=0;const yr=(Lt&512)!==0;let ln=0;const Sn=(Lt&1024)!==0,dr=(Lt&2048)!==0;let cr=0;const dn=T(Vt,4);let Zr=8;Zt&&(Nr=T(Vt,Zr),Zr+=4),ur&&(Zr+=4);let xn=Nr+g;for(let ei=0;ei<dn;ei++){if(Pr?(Ir=T(Vt,Zr),Zr+=4):Ir=lt,yr?(ln=T(Vt,Zr),Zr+=4):ln=dt,Sn&&(Zr+=4),dr&&(nr===0?cr=T(Vt,Zr):cr=G(Vt,Zr),Zr+=4),e.type===M.VIDEO){let oi=0;for(;oi<ln;){const hi=T(r,xn);if(xn+=4,Br(s,r[xn])){const Mi=r.subarray(xn,xn+hi);Ur(Mi,s?2:1,o+cr/n,t)}xn+=hi,oi+=hi+4}}o+=Ir/n}}))})})}),t}function fr(o){if(!o)return!1;const e=o.indexOf("."),t=e<0?o:o.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function Br(o,e){if(o){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Ur(o,e,t,r){const n=kr(o);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 g=n.length-i;let b=i;if(u<g)i+=u;else if(u>g){w.error(`Malformed SEI payload. ${u} is too small, only ${g} bytes left to parse.`);break}if(s===4){if(n[b++]===181){const z=_(n,b);if(b+=2,z===49){const ne=T(n,b);if(b+=4,ne===1195456820){const Q=n[b++];if(Q===3){const le=n[b++],me=31&le,Ge=64&le,ut=Ge?2+me*3:0,lt=new Uint8Array(ut);if(Ge){lt[0]=le;for(let Et=1;Et<ut;Et++)lt[Et]=n[b++]}r.push({type:Q,payloadType:s,pts:t,bytes:lt})}}}}}else if(s===5&&u>16){const A=[];for(let Q=0;Q<16;Q++){const le=n[b++].toString(16);A.push(le.length==1?"0"+le:le),(Q===3||Q===5||Q===7||Q===9)&&A.push("-")}const z=u-16,ne=new Uint8Array(z);for(let Q=0;Q<z;Q++)ne[Q]=n[b++];r.push({payloadType:s,pts:t,uuid:A.join(""),userData:ht(ne),userDataBytes:ne})}}}function kr(o){const e=o.byteLength,t=[];let r=1;for(;r<e-2;)o[r]===0&&o[r+1]===0&&o[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return o;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]=o[s];return i}function Kt(o){const e=o[0];let t="",r="",n=0,i=0,s=0,u=0,f=0,g=0;if(e===0){for(;ot(o.subarray(g,g+1))!=="\0";)t+=ot(o.subarray(g,g+1)),g+=1;for(t+=ot(o.subarray(g,g+1)),g+=1;ot(o.subarray(g,g+1))!=="\0";)r+=ot(o.subarray(g,g+1)),g+=1;r+=ot(o.subarray(g,g+1)),g+=1,n=T(o,12),i=T(o,16),u=T(o,20),f=T(o,24),g=28}else if(e===1){g+=4,n=T(o,g),g+=4;const A=T(o,g);g+=4;const z=T(o,g);for(g+=4,s=Yo(2,32)*A+z,P(s)||(s=Number.MAX_SAFE_INTEGER,w.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=T(o,g),g+=4,f=T(o,g),g+=4;ot(o.subarray(g,g+1))!=="\0";)t+=ot(o.subarray(g,g+1)),g+=1;for(t+=ot(o.subarray(g,g+1)),g+=1;ot(o.subarray(g,g+1))!=="\0";)r+=ot(o.subarray(g,g+1)),g+=1;r+=ot(o.subarray(g,g+1)),g+=1}const b=o.subarray(g,o.byteLength);return{schemeIdUri:t,value:r,timeScale:n,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:b}}function lr(o,...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(o,4),n=0,r=8;n<t;n++)i.set(e[n],r),r+=e[n].byteLength;return i}function br(o,e,t){if(o.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),lr([112,115,115,104],new Uint8Array([r,0,0,0]),o,i,n,s,t||new Uint8Array)}function Vr(o){const e=[];if(o instanceof ArrayBuffer){const t=o.byteLength;let r=0;for(;r+32<t;){const n=new DataView(o,r),i=Lr(n);e.push(i),r+=i.size}}return e}function Lr(o){const e=o.getUint32(0),t=o.byteOffset,r=o.byteLength;if(r<e)return{offset:t,size:r};if(o.getUint32(4)!==1886614376)return{offset:t,size:e};const i=o.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=o.buffer,u=Ke.hexDump(new Uint8Array(s,t+12,16)),f=o.getUint32(28);let g=null,b=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};b=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||r<t+32+f*16+16)return{offset:t,size:e};g=[];for(let A=0;A<f;A++)g.push(new Uint8Array(s,t+32+A*16,16))}return{version:i,systemId:u,kids:g,data:b,offset:t,size:e}}let Yr={};class xr{static clearKeyUriToKeyIdMap(){Yr={}}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 je.FAIRPLAY:case je.WIDEVINE:case je.PLAYREADY:case je.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&&w.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=kn(e);return new xr(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=re(this.uri);if(t)switch(this.keyFormat){case je.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case je.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=br(r,null,t),this.keyId=Ct(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=Yr[this.uri];if(!r){const n=Object.keys(Yr).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,n),Yr[this.uri]=r}this.keyId=r}return this}}function kn(o){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=o>>8*(15-t)&255;return e}const sn=/\{\$([a-zA-Z0-9-_]+)\}/g;function Gt(o){return sn.test(o)}function Ut(o,e,t){if(o.variableList!==null||o.hasVariableRefs)for(let r=t.length;r--;){const n=t[r],i=e[n];i&&(e[n]=pr(o,i))}}function pr(o,e){if(o.variableList!==null||o.hasVariableRefs){const t=o.variableList;return e.replace(sn,r=>{const n=r.substring(2,r.length-1),i=t==null?void 0:t[n];return i===void 0?(o.playlistParsingError||(o.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${n}"`)),r):i})}return e}function Hr(o,e,t){let r=o.variableList;r||(o.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){o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else n=e.NAME,i=e.VALUE;n in r?o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${n}"`)):r[n]=i||""}function gr(o,e,t){const r=e.IMPORT;if(t&&r in t){let n=o.variableList;n||(o.variableList=n={}),n[r]=t[r]}else o.playlistParsingError||(o.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function rn(o=!0){return typeof self=="undefined"?void 0:(o||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Wn(o){return typeof self!="undefined"&&o===self.ManagedMediaSource}const Qr={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 rr(o,e){const t=Qr[e];return!!t&&!!t[o.slice(0,4)]}function it(o,e,t=!0){return!o.split(",").some(r=>!st(r,e,t))}function st(o,e,t=!0){var r;const n=rn(t);return(r=n==null?void 0:n.isTypeSupported(gt(o,e)))!=null?r:!1}function gt(o,e){return`${e}/mp4;codecs="${o}"`}function St(o){if(o){const e=o.substring(0,4);return Qr.video[e]}return 2}function mt(o){return o.split(",").reduce((e,t)=>{const r=Qr.video[t];return r?(r*2+e)/(e?3:2):(Qr.audio[t]+e)/(e?2:1)},0)}const wt={};function _t(o,e=!0){if(wt[o])return wt[o];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[o];for(let r=0;r<t.length;r++)if(st(t[r],"audio",e))return wt[o]=t[r],t[r];return o}const Yt=/flac|opus/i;function ir(o,e=!0){return o.replace(Yt,t=>_t(t.toLowerCase(),e))}function Qt(o,e){return o&&o!=="mp4a"?o:e&&e.split(",")[0]}function vr(o){const e=o.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 wr=/#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,Sr=/#EXT-X-MEDIA:(.*)/g,sr=/^#EXT(?:INF|-X-TARGETDURATION):/m,ar=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"),Wr=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 Er{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 be.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return sr.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=[];wr.lastIndex=0;let s;for(;(s=wr.exec(e))!=null;)if(s[1]){var u;const g=new X(s[1]);Ut(n,g,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const b=pr(n,s[2]),A={attrs:g,bitrate:g.decimalInteger("BANDWIDTH")||g.decimalInteger("AVERAGE-BANDWIDTH"),name:g.NAME,url:Er.resolve(b,t)},z=g.decimalResolution("RESOLUTION");z&&(A.width=z.width,A.height=z.height),Or(g.CODECS,A),(u=A.unknownCodecs)!=null&&u.length||i.push(A),n.levels.push(A)}else if(s[3]){const g=s[3],b=s[4];switch(g){case"SESSION-DATA":{const A=new X(b);Ut(n,A,["DATA-ID","LANGUAGE","VALUE","URI"]);const z=A["DATA-ID"];z&&(n.sessionData===null&&(n.sessionData={}),n.sessionData[z]=A);break}case"SESSION-KEY":{const A=Xr(b,t,n);A.encrypted&&A.isSupported()?(n.sessionKeys===null&&(n.sessionKeys=[]),n.sessionKeys.push(A)):w.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${b}"`);break}case"DEFINE":{{const A=new X(b);Ut(n,A,["NAME","VALUE","QUERYPARAM"]),Hr(n,A,t)}break}case"CONTENT-STEERING":{const A=new X(b);Ut(n,A,["SERVER-URI","PATHWAY-ID"]),n.contentSteering={uri:Er.resolve(A["SERVER-URI"],t),pathwayId:A["PATHWAY-ID"]||"."};break}case"START":{n.startTimeOffset=Fr(b);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(g=>({id:g.attrs.AUDIO,audioCodec:g.audioCodec})),SUBTITLES:s.map(g=>({id:g.attrs.SUBTITLES,textCodec:g.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(Sr.lastIndex=0;(n=Sr.exec(e))!==null;){const g=new X(n[1]),b=g.TYPE;if(b){const A=u[b],z=i[b]||[];i[b]=z,Ut(r,g,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const ne=g.LANGUAGE,Q=g["ASSOC-LANGUAGE"],le=g.CHANNELS,me=g.CHARACTERISTICS,Ge=g["INSTREAM-ID"],ut={attrs:g,bitrate:0,id:f++,groupId:g["GROUP-ID"]||"",name:g.NAME||ne||"",type:b,default:g.bool("DEFAULT"),autoselect:g.bool("AUTOSELECT"),forced:g.bool("FORCED"),lang:ne,url:g.URI?Er.resolve(g.URI,t):""};if(Q&&(ut.assocLang=Q),le&&(ut.channels=le),me&&(ut.characteristics=me),Ge&&(ut.instreamId=Ge),A!=null&&A.length){const lt=Er.findGroup(A,ut.groupId)||A[0];Tr(ut,lt,"audioCodec"),Tr(ut,lt,"textCodec")}z.push(ut)}}return i}static parseLevelPlaylist(e,t,r,n,i,s){const u=new $(t),f=u.fragments;let g=null,b=0,A=0,z=0,ne=0,Q=null,le=new U(n,t),me,Ge,ut,lt=-1,Et=!1,dt=null;for(ar.lastIndex=0,u.m3u8=e,u.hasVariableRefs=Gt(e);(me=ar.exec(e))!==null;){Et&&(Et=!1,le=new U(n,t),le.start=z,le.sn=b,le.cc=ne,le.level=r,g&&(le.initSegment=g,le.rawProgramDateTime=g.rawProgramDateTime,g.rawProgramDateTime=null,dt&&(le.setByteRange(dt),dt=null)));const nr=me[1];if(nr){le.duration=parseFloat(nr);const Lt=(" "+me[2]).slice(1);le.title=Lt||null,le.tagList.push(Lt?["INF",nr,Lt]:["INF",nr])}else if(me[3]){if(N(le.duration)){le.start=z,ut&&Gr(le,ut,u),le.sn=b,le.level=r,le.cc=ne,f.push(le);const Lt=(" "+me[3]).slice(1);le.relurl=pr(u,Lt),$r(le,Q),Q=le,z+=le.duration,b++,A=0,Et=!0}}else if(me[4]){const Lt=(" "+me[4]).slice(1);Q?le.setByteRange(Lt,Q):le.setByteRange(Lt)}else if(me[5])le.rawProgramDateTime=(" "+me[5]).slice(1),le.tagList.push(["PROGRAM-DATE-TIME",le.rawProgramDateTime]),lt===-1&&(lt=f.length);else{if(me=me[0].match(Wr),!me){w.warn("No matches on slow regex match for level playlist!");continue}for(Ge=1;Ge<me.length&&typeof me[Ge]=="undefined";Ge++);const Lt=(" "+me[Ge]).slice(1),Zt=(" "+me[Ge+1]).slice(1),Nr=me[Ge+2]?(" "+me[Ge+2]).slice(1):"";switch(Lt){case"PLAYLIST-TYPE":u.type=Zt.toUpperCase();break;case"MEDIA-SEQUENCE":b=u.startSN=parseInt(Zt);break;case"SKIP":{const ur=new X(Zt);Ut(u,ur,["RECENTLY-REMOVED-DATERANGES"]);const Pr=ur.decimalInteger("SKIPPED-SEGMENTS");if(N(Pr)){u.skippedSegments=Pr;for(let yr=Pr;yr--;)f.unshift(null);b+=Pr}const Ir=ur.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ir&&(u.recentlyRemovedDateranges=Ir.split(" "));break}case"TARGETDURATION":u.targetduration=Math.max(parseInt(Zt),1);break;case"VERSION":u.version=parseInt(Zt);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":u.live=!1;break;case"#":(Zt||Nr)&&le.tagList.push(Nr?[Zt,Nr]:[Zt]);break;case"DISCONTINUITY":ne++,le.tagList.push(["DIS"]);break;case"GAP":le.gap=!0,le.tagList.push([Lt]);break;case"BITRATE":le.tagList.push([Lt,Zt]);break;case"DATERANGE":{const ur=new X(Zt);Ut(u,ur,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ut(u,ur,ur.clientAttrs);const Pr=new pe(ur,u.dateRanges[ur.ID]);Pr.isValid||u.skippedSegments?u.dateRanges[Pr.id]=Pr:w.warn(`Ignoring invalid DATERANGE tag: "${Zt}"`),le.tagList.push(["EXT-X-DATERANGE",Zt]);break}case"DEFINE":{{const ur=new X(Zt);Ut(u,ur,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in ur?gr(u,ur,s):Hr(u,ur,t)}break}case"DISCONTINUITY-SEQUENCE":ne=parseInt(Zt);break;case"KEY":{const ur=Xr(Zt,t,u);if(ur.isSupported()){if(ur.method==="NONE"){ut=void 0;break}ut||(ut={}),ut[ur.keyFormat]&&(ut=a({},ut)),ut[ur.keyFormat]=ur}else w.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Zt}"`);break}case"START":u.startTimeOffset=Fr(Zt);break;case"MAP":{const ur=new X(Zt);if(Ut(u,ur,["BYTERANGE","URI"]),le.duration){const Pr=new U(n,t);fn(Pr,ur,r,ut),g=Pr,le.initSegment=g,g.rawProgramDateTime&&!le.rawProgramDateTime&&(le.rawProgramDateTime=g.rawProgramDateTime)}else{const Pr=le.byteRangeEndOffset;if(Pr){const Ir=le.byteRangeStartOffset;dt=`${Pr-Ir}@${Ir}`}else dt=null;fn(le,ur,r,ut),g=le,Et=!0}break}case"SERVER-CONTROL":{const ur=new X(Zt);u.canBlockReload=ur.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=ur.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&ur.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=ur.optionalFloat("PART-HOLD-BACK",0),u.holdBack=ur.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const ur=new X(Zt);u.partTarget=ur.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ur=u.partList;ur||(ur=u.partList=[]);const Pr=A>0?ur[ur.length-1]:void 0,Ir=A++,yr=new X(Zt);Ut(u,yr,["BYTERANGE","URI"]);const ln=new R(yr,le,t,Ir,Pr);ur.push(ln),le.duration+=ln.duration;break}case"PRELOAD-HINT":{const ur=new X(Zt);Ut(u,ur,["URI"]),u.preloadHint=ur;break}case"RENDITION-REPORT":{const ur=new X(Zt);Ut(u,ur,["URI"]),u.renditionReports=u.renditionReports||[],u.renditionReports.push(ur);break}default:w.warn(`line parsed but not handled: ${me}`);break}}}Q&&!Q.relurl?(f.pop(),z-=Q.duration,u.partList&&(u.fragmentHint=Q)):u.partList&&($r(le,Q),le.cc=ne,u.fragmentHint=le,ut&&Gr(le,ut,u));const Pt=f.length,xt=f[0],Vt=f[Pt-1];if(z+=u.skippedSegments*u.targetduration,z>0&&Pt&&Vt){u.averagetargetduration=z/Pt;const nr=Vt.sn;u.endSN=nr!=="initSegment"?nr:0,u.live||(Vt.endList=!0),xt&&(u.startCC=xt.cc)}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(z+=u.fragmentHint.duration),u.totalduration=z,u.endCC=ne,lt>0&&Dr(f,lt),u}}function Xr(o,e,t){var r,n;const i=new X(o);Ut(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(r=i.METHOD)!=null?r:"",u=i.URI,f=i.hexadecimalInteger("IV"),g=i.KEYFORMATVERSIONS,b=(n=i.KEYFORMAT)!=null?n:"identity";u&&i.IV&&!f&&w.error(`Invalid IV: ${i.IV}`);const A=u?Er.resolve(u,e):"",z=(g||"1").split("/").map(Number).filter(Number.isFinite);return new xr(s,A,b,z,f)}function Fr(o){const t=new X(o).decimalFloatingPoint("TIME-OFFSET");return N(t)?t:null}function Or(o,e){let t=(o||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const n=t.filter(i=>rr(i,r));n.length&&(e[`${r}Codec`]=n.join(","),t=t.filter(i=>n.indexOf(i)===-1))}),e.unknownCodecs=t}function Tr(o,e,t){const r=e[t];r&&(o[t]=r)}function Dr(o,e){let t=o[e];for(let r=e;r--;){const n=o[r];if(!n)return;n.programDateTime=t.programDateTime-n.duration*1e3,t=n}}function $r(o,e){o.rawProgramDateTime?o.programDateTime=Date.parse(o.rawProgramDateTime):e!=null&&e.programDateTime&&(o.programDateTime=e.endProgramDateTime),N(o.programDateTime)||(o.programDateTime=null,o.rawProgramDateTime=null)}function fn(o,e,t,r){o.relurl=e.URI,e.BYTERANGE&&o.setByteRange(e.BYTERANGE),o.level=t,o.sn="initSegment",r&&(o.levelkeys=r),o.initSegment=null}function Gr(o,e,t){o.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(n=>e[n].isCommonEncryption)&&r.push(o)}var Wt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ue={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function jt(o){const{type:e}=o;switch(e){case Wt.AUDIO_TRACK:return Ue.AUDIO;case Wt.SUBTITLE_TRACK:return Ue.SUBTITLE;default:return Ue.MAIN}}function Jt(o,e){let t=o.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class jr{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:Wt.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:Wt.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:Wt.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:Wt.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const r=this.hls.config;let n=this.getInternalLoader(e);if(n){const g=n.context;if(g&&g.url===e.url&&g.level===e.level){w.trace("[playlist-loader]: playlist request ongoing");return}w.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),n.abort()}let i;if(e.type===Wt.MANIFEST?i=r.manifestLoadPolicy.default:i=a({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),n=this.createInternalLoader(e),N((t=e.deliveryDirectives)==null?void 0:t.part)){let g;if(e.type===Wt.LEVEL&&e.level!==null?g=this.hls.levels[e.level].details:e.type===Wt.AUDIO_TRACK&&e.id!==null?g=this.hls.audioTracks[e.id].details:e.type===Wt.SUBTITLE_TRACK&&e.id!==null&&(g=this.hls.subtitleTracks[e.id].details),g){const b=g.partTarget,A=g.targetduration;if(b&&A){const z=Math.max(b*3,A*.8)*1e3;i=a({},i,{maxTimeToFirstByteMs:Math.min(z,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(z,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:(g,b,A,z)=>{const ne=this.getInternalLoader(A);this.resetInternalLoader(A.type);const Q=g.data;if(Q.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(g,A,new Error("no EXTM3U delimiter"),z||null,b);return}b.parsing.start=performance.now(),Er.isMediaPlaylist(Q)?this.handleTrackOrLevelPlaylist(g,b,A,z||null,ne):this.handleMasterPlaylist(g,b,A,z)},onError:(g,b,A,z)=>{this.handleNetworkError(b,A,!1,g,z)},onTimeout:(g,b,A)=>{this.handleNetworkError(b,A,!0,void 0,g)}};n.load(e,u,f)}handleMasterPlaylist(e,t,r,n){const i=this.hls,s=e.data,u=Jt(e,r),f=Er.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,r,f.playlistParsingError,n,t);return}const{contentSteering:g,levels:b,sessionData:A,sessionKeys:z,startTimeOffset:ne,variableList:Q}=f;this.variableList=Q;const{AUDIO:le=[],SUBTITLES:me,"CLOSED-CAPTIONS":Ge}=Er.parseMasterPlaylistMedia(s,u,f);le.length&&!le.some(lt=>!lt.url)&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(w.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),le.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new X({}),bitrate:0,url:""})),i.trigger(c.MANIFEST_LOADED,{levels:b,audioTracks:le,subtitles:me,captions:Ge,contentSteering:g,url:u,stats:t,networkDetails:n,sessionData:A,sessionKeys:z,startTimeOffset:ne,variableList:Q})}handleTrackOrLevelPlaylist(e,t,r,n,i){const s=this.hls,{id:u,level:f,type:g}=r,b=Jt(e,r),A=0,z=N(f)?f:N(u)?u:0,ne=jt(r),Q=Er.parseLevelPlaylist(e.data,b,z,ne,A,this.variableList);if(g===Wt.MANIFEST){const le={attrs:new X({}),bitrate:0,details:Q,name:"",url:b};s.trigger(c.MANIFEST_LOADED,{levels:[le],audioTracks:[],url:b,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=Q,this.handlePlaylistLoaded(Q,e,t,r,n,i)}handleManifestParsingError(e,t,r,n,i){this.hls.trigger(c.ERROR,{type:y.NETWORK_ERROR,details:x.MANIFEST_PARSING_ERROR,fatal:t.type===Wt.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===Wt.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===Wt.AUDIO_TRACK||e.type===Wt.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);w.warn(`[playlist-loader]: ${s}`);let f=x.UNKNOWN,g=!1;const b=this.getInternalLoader(e);switch(e.type){case Wt.MANIFEST:f=r?x.MANIFEST_LOAD_TIMEOUT:x.MANIFEST_LOAD_ERROR,g=!0;break;case Wt.LEVEL:f=r?x.LEVEL_LOAD_TIMEOUT:x.LEVEL_LOAD_ERROR,g=!1;break;case Wt.AUDIO_TRACK:f=r?x.AUDIO_TRACK_LOAD_TIMEOUT:x.AUDIO_TRACK_LOAD_ERROR,g=!1;break;case Wt.SUBTITLE_TRACK:f=r?x.SUBTITLE_TRACK_LOAD_TIMEOUT:x.SUBTITLE_LOAD_ERROR,g=!1;break}b&&this.resetInternalLoader(e.type);const A={type:y.NETWORK_ERROR,details:f,fatal:g,url:e.url,loader:b,context:e,error:u,networkDetails:t,stats:i};if(n){const z=(t==null?void 0:t.url)||e.url;A.response=te({url:z,data:void 0},n)}this.hls.trigger(c.ERROR,A)}handlePlaylistLoaded(e,t,r,n,i,s){const u=this.hls,{type:f,level:g,id:b,groupId:A,deliveryDirectives:z}=n,ne=Jt(t,n),Q=jt(n),le=typeof n.level=="number"&&Q===Ue.MAIN?g:void 0;if(!e.fragments.length){const Ge=new Error("No Segments found in Playlist");u.trigger(c.ERROR,{type:y.NETWORK_ERROR,details:x.LEVEL_EMPTY_ERROR,fatal:!1,url:ne,error:Ge,reason:Ge.message,response:t,context:n,level:le,parent:Q,networkDetails:i,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const me=e.playlistParsingError;if(me){u.trigger(c.ERROR,{type:y.NETWORK_ERROR,details:x.LEVEL_PARSING_ERROR,fatal:!1,url:ne,error:me,reason:me.message,response:t,context:n,level:le,parent:Q,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 Wt.MANIFEST:case Wt.LEVEL:u.trigger(c.LEVEL_LOADED,{details:e,level:le||0,id:b||0,stats:r,networkDetails:i,deliveryDirectives:z});break;case Wt.AUDIO_TRACK:u.trigger(c.AUDIO_TRACK_LOADED,{details:e,id:b||0,groupId:A||"",stats:r,networkDetails:i,deliveryDirectives:z});break;case Wt.SUBTITLE_TRACK:u.trigger(c.SUBTITLE_TRACK_LOADED,{details:e,id:b||0,groupId:A||"",stats:r,networkDetails:i,deliveryDirectives:z});break}}}function pn(o,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=o,e.dispatchEvent(t)}function En(o,e){const t=o.mode;if(t==="disabled"&&(o.mode="hidden"),o.cues&&!o.cues.getCueById(e.id))try{if(o.addCue(e),!o.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){w.debug(`[texttrack-utils]: ${r}`);try{const n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,o.addCue(n)}catch(n){w.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${n}`)}}t==="disabled"&&(o.mode=t)}function Tn(o){const e=o.mode;if(e==="disabled"&&(o.mode="hidden"),o.cues)for(let t=o.cues.length;t--;)o.removeCue(o.cues[t]);e==="disabled"&&(o.mode=e)}function _r(o,e,t,r){const n=o.mode;if(n==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0){const i=An(o.cues,e,t);for(let s=0;s<i.length;s++)(!r||r(i[s]))&&o.removeCue(i[s])}n==="disabled"&&(o.mode=n)}function vn(o,e){if(e<o[0].startTime)return 0;const t=o.length-1;if(e>o[t].endTime)return-1;let r=0,n=t;for(;r<=n;){const i=Math.floor((n+r)/2);if(e<o[i].startTime)n=i-1;else if(e>o[i].startTime&&r<t)r=i+1;else return i}return o[r].startTime-e<e-o[n].startTime?r:n}function An(o,e,t){const r=[],n=vn(o,e);if(n>-1)for(let i=n,s=o.length;i<s;i++){const u=o[i];if(u.startTime>=e&&u.endTime<=t)r.push(u);else if(u.startTime>t)return r}return r}function Jr(o){const e=[];for(let t=0;t<o.length;t++){const r=o[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(o[t])}return e}var Rn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const di=.25;function Un(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Yn(o,e,t,r,n){let i=new o(e,t,"");try{i.value=r,n&&(i.type=n)}catch(s){i=new o(e,t,JSON.stringify(n?te({type:n},r):r))}return i}const er=(()=>{const o=Un();try{o&&new o(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function un(o,e){return o.getTime()/1e3-e}function en(o){return Uint8Array.from(o.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Ln{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&&(Tn(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 pn(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===Rn.emsg&&!r||!n)continue;const g=De(i[u].data);if(g){const b=i[u].pts;let A=b+i[u].duration;A>er&&(A=er),A-b<=0&&(A=b+di);for(let ne=0;ne<g.length;ne++){const Q=g[ne];if(!ve(Q)){this.updateId3CueEnds(b,f);const le=Yn(s,b,A,Q,f);le&&this.id3Track.addCue(le)}}}}}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===er&&(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 g;n==="audio"?g=b=>b.type===Rn.audioId3&&f:n==="video"?g=b=>b.type===Rn.emsg&&u:g=b=>b.type===Rn.audioId3&&f||b.type===Rn.emsg&&u,_r(i,t,r,g)}}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 b=Object.keys(r).filter(A=>!s.includes(A));for(let A=b.length;A--;){const z=b[A];Object.keys(r[z].cues).forEach(ne=>{n.removeCue(r[z].cues[ne])}),delete r[z]}}const u=t.fragments[t.fragments.length-1];if(s.length===0||!N(u==null?void 0:u.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=u.programDateTime/1e3-u.start,g=Un();for(let b=0;b<s.length;b++){const A=s[b],z=i[A],ne=un(z.startDate,f),Q=r[A],le=(Q==null?void 0:Q.cues)||{};let me=(Q==null?void 0:Q.durationKnown)||!1,Ge=er;const ut=z.endDate;if(ut)Ge=un(ut,f),me=!0;else if(z.endOnNext&&!me){const Et=s.reduce((dt,Pt)=>{if(Pt!==z.id){const xt=i[Pt];if(xt.class===z.class&&xt.startDate>z.startDate&&(!dt||z.startDate<dt.startDate))return xt}return dt},null);Et&&(Ge=un(Et.startDate,f),me=!0)}const lt=Object.keys(z.attr);for(let Et=0;Et<lt.length;Et++){const dt=lt[Et];if(!_e(dt))continue;const Pt=le[dt];if(Pt)me&&!Q.durationKnown&&(Pt.endTime=Ge);else if(g){let xt=z.attr[dt];he(dt)&&(xt=en(xt));const Vt=Yn(g,ne,Ge,{key:dt,data:xt},Rn.dateRange);Vt&&(Vt.id=A,this.id3Track.addCue(Vt),le[dt]=Vt)}}r[A]={cues:le,dateRange:z,durationKnown:me}}}}class fi{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 g=u&&r||t;(f.liveSyncDuration||f.liveSyncDurationCount||g===0)&&(g=i!==void 0?i:s*n);const b=n;return g+Math.min(this.stallCount*1,b)}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===x.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&w.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 b=Math.min(2,Math.max(1,i)),A=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;e.playbackRate=Math.min(b,Math.max(1,A))}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 Xn=["NONE","TYPE-0","TYPE-1",null];function _n(o){return Xn.indexOf(o)>-1}const On=["SDR","PQ","HLG"];function an(o){return!!o&&On.indexOf(o)>-1}var ti={No:"",Yes:"YES",v2:"v2"};function Hn(o){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=o,n=r<e/2;return e&&n?t?ti.v2:ti.Yes:ti.No}class li{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 Gn{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 qn(this._audioGroups,e)}hasSubtitleGroup(e){return qn(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 qn(o,e){return!e||!o?!1:o.indexOf(e)!==-1}function Mr(o,e){const t=e.startPTS;if(N(t)){let r=0,n;e.sn>o.sn?(r=t-o.start,n=o):(r=o.start-t,n=e),n.duration!==r&&(n.duration=r)}else e.sn>o.sn?o.cc===e.cc&&o.minEndPTS?e.start=o.start+(o.minEndPTS-o.start):e.start=o.start+o.duration:e.start=Math.max(o.start-e.duration,0)}function ui(o,e,t,r,n,i){r-t<=0&&(w.warn("Fragment should have a positive duration",e),r=t+e.duration,i=n+e.duration);let u=t,f=r;const g=e.startPTS,b=e.endPTS;if(N(g)){const me=Math.abs(g-t);N(e.deltaPTS)?e.deltaPTS=Math.max(me,e.deltaPTS):e.deltaPTS=me,u=Math.max(t,g),t=Math.min(t,g),n=Math.min(n,e.startDTS),f=Math.min(r,b),r=Math.max(r,b),i=Math.max(i,e.endDTS)}const A=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 z=e.sn;if(!o||z<o.startSN||z>o.endSN)return 0;let ne;const Q=z-o.startSN,le=o.fragments;for(le[Q]=e,ne=Q;ne>0;ne--)Mr(le[ne],le[ne-1]);for(ne=Q;ne<le.length-1;ne++)Mr(le[ne],le[ne+1]);return o.fragmentHint&&Mr(le[le.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,A}function xi(o,e){let t=null;const r=o.fragments;for(let u=r.length-1;u>=0;u--){const f=r[u].initSegment;if(f){t=f;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;let n;_i(o,e,(u,f,g,b)=>{if(e.skippedSegments&&f.cc!==u.cc){const A=u.cc-f.cc;for(let z=g;z<b.length;z++)b[z].cc+=A}N(u.startPTS)&&N(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 g;f&&(!f.initSegment||f.initSegment.relurl===((g=t)==null?void 0:g.relurl))&&(f.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){w.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=Ei(o.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}yn(o.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),n?ui(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):wi(o,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=o.driftStartTime,e.driftStart=o.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=o.driftEndTime,e.driftEnd=o.driftEnd,e.advancedDateTime=o.advancedDateTime}function Ei(o,e,t){const r=a({},o);return t&&t.forEach(n=>{delete r[n]}),Object.keys(e).forEach(n=>{const i=new pe(e[n].attr,r[n]);i.isValid?r[n]=i:w.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[n].attr)}"`)}),r}function yn(o,e,t){if(o&&e){let r=0;for(let n=0,i=o.length;n<=i;n++){const s=o[n],u=e[n+r];s&&u&&s.index===u.index&&s.fragment.sn===u.fragment.sn?t(s,u):r--}}}function _i(o,e,t){const r=e.skippedSegments,n=Math.max(o.startSN,e.startSN)-e.startSN,i=(o.fragmentHint?1:0)+(r?e.endSN:Math.min(o.endSN,e.endSN))-e.startSN,s=e.startSN-o.startSN,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,f=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments;for(let g=n;g<=i;g++){const b=f[s+g];let A=u[g];r&&!A&&g<r&&(A=e.fragments[g]=b),b&&A&&t(b,A,g,u)}}function wi(o,e){const t=e.startSN+e.skippedSegments-o.startSN,r=o.fragments;t<0||t>=r.length||$t(e,r[t].start)}function $t(o,e){if(e){const t=o.fragments;for(let r=o.skippedSegments;r<t.length;r++)t[r].start+=e;o.fragmentHint&&(o.fragmentHint.start+=e)}}function jn(o,e=1/0){let t=1e3*o.targetduration;if(o.updated){const r=o.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 pi(o,e,t){if(!(o!=null&&o.details))return null;const r=o.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 ci(o,e,t){var r;return o!=null&&o.details?Pn((r=o.details)==null?void 0:r.partList,e,t):null}function Pn(o,e,t){if(o)for(let r=o.length;r--;){const n=o[r];if(n.index===t&&n.fragment.sn===e)return n}return null}function bn(o){o.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(n=>{n.level=t})})}function zr(o){switch(o.details){case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_TIMEOUT:case x.LEVEL_LOAD_TIMEOUT:case x.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function wn(o,e){const t=zr(e);return o.default[`${t?"timeout":"error"}Retry`]}function Vn(o,e){const t=o.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*o.retryDelayMs,o.maxRetryDelayMs)}function Qn(o){return te(te({},o),{errorRetry:null,timeoutRetry:null})}function Mn(o,e,t,r){if(!o)return!1;const n=r==null?void 0:r.code,i=e<o.maxNumRetry&&(Kn(n)||!!t);return o.shouldRetry?o.shouldRetry(o,e,t,r,i):i}function Kn(o){return o===0&&navigator.onLine===!1||!!o&&(o<400||o>499)}const Ni={search:function(o,e){let t=0,r=o.length-1,n=null,i=null;for(;t<=r;){n=(t+r)/2|0,i=o[n];const s=e(i);if(s>0)t=n+1;else if(s<0)r=n-1;else return i}return null}};function Gi(o,e,t){if(e===null||!Array.isArray(o)||!o.length||!N(e))return null;const r=o[0].programDateTime;if(e<(r||0))return null;const n=o[o.length-1].endProgramDateTime;if(e>=(n||0))return null;t=t||0;for(let i=0;i<o.length;++i){const s=o[i];if(Li(e,t,s))return s}return null}function Si(o,e,t=0,r=0,n=.005){let i=null;if(o){i=e[o.sn-e[0].sn+1]||null;const u=o.endDTS-t;u>0&&u<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!o||o.level===i.level)&&ki(t,r,i)===0||Yi(i,o,Math.min(n,r))))return i;const s=Ni.search(e,ki.bind(null,t,r));return s&&(s!==o||!i)?s:i}function Yi(o,e,t){if(e&&e.start===0&&e.level<o.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((n,i)=>(i[0]==="INF"&&(n+=parseFloat(i[1])),n),t);return o.start<=r}return!1}function ki(o=0,e=0,t){if(t.start<=o&&t.start+t.duration>o)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=o?1:t.start-r>o&&t.start?-1:0}function Li(o,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>o}function or(o,e){return Ni.search(o,t=>t.cc<e?1:t.cc>e?-1:0)}var tr={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Kr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Cn{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=w.log.bind(w,"[info]:"),this.warn=w.warn.bind(w,"[warning]:"),this.error=w.error.bind(w,"[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)===Ue.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 x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case x.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:tr.DoNothing,flags:Kr.None};return}case x.FRAG_GAP:case x.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=tr.SendAlternateToPenaltyBox;return}case x.LEVEL_EMPTY_ERROR:case x.LEVEL_PARSING_ERROR:{var u,f;const g=t.parent===Ue.MAIN?t.level:i.loadLevel;t.details===x.LEVEL_EMPTY_ERROR&&((u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,g):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,g))}return;case x.LEVEL_LOAD_ERROR:case x.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case x.AUDIO_TRACK_LOAD_ERROR:case x.AUDIO_TRACK_LOAD_TIMEOUT:case x.SUBTITLE_LOAD_ERROR:case x.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const g=i.levels[i.loadLevel];if(g&&(s.type===Wt.AUDIO_TRACK&&g.hasAudioGroup(s.groupId)||s.type===Wt.SUBTITLE_TRACK&&g.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=tr.SendAlternateToPenaltyBox,t.errorAction.flags=Kr.MoveAllAlternatesMatchingHost;return}}return;case x.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const g=i.levels[i.loadLevel],b=g==null?void 0:g.attrs["HDCP-LEVEL"];b?t.errorAction={action:tr.SendAlternateToPenaltyBox,flags:Kr.MoveAllAlternatesMatchingHDCP,hdcpLevel:b}:this.keySystemError(t)}return;case x.BUFFER_ADD_CODEC_ERROR:case x.REMUX_ALLOC_ERROR:case x.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(n=t.level)!=null?n:i.loadLevel);return;case x.INTERNAL_EXCEPTION:case x.BUFFER_APPENDING_ERROR:case x.BUFFER_FULL_ERROR:case x.LEVEL_SWITCH_ERROR:case x.BUFFER_STALLED_ERROR:case x.BUFFER_SEEK_OVER_HOLE:case x.BUFFER_NUDGE_ON_STALL:t.errorAction={action:tr.DoNothing,flags:Kr.None};return}t.type===y.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=wn(r.config.playlistLoadPolicy,e),i=this.playlistError++;if(Mn(n,i,zr(e),e.response))return{action:tr.RetryRequest,flags:Kr.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=wn(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((b,A)=>b+A.fragmentError,0);if(n&&(e.details!==x.FRAG_GAP&&n.fragmentError++,Mn(u,f,zr(e),e.response)))return{action:tr.RetryRequest,flags:Kr.None,retryConfig:u,retryCount:f};const g=this.getLevelSwitchAction(e,r);return u&&(g.retryConfig=u,g.retryCount=f),g}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const n=this.hls.levels[t];if(n){var i,s;const g=e.details;n.loadError++,g===x.BUFFER_APPEND_ERROR&&n.fragmentError++;let b=-1;const{levels:A,loadLevel:z,minAutoLevel:ne,maxAutoLevel:Q}=r;r.autoLevelEnabled||(r.loadLevel=-1);const le=(i=e.frag)==null?void 0:i.type,Ge=(le===Ue.AUDIO&&g===x.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(g===x.BUFFER_ADD_CODEC_ERROR||g===x.BUFFER_APPEND_ERROR))&&A.some(({audioCodec:Pt})=>n.audioCodec!==Pt),lt=e.sourceBufferName==="video"&&(g===x.BUFFER_ADD_CODEC_ERROR||g===x.BUFFER_APPEND_ERROR)&&A.some(({codecSet:Pt,audioCodec:xt})=>n.codecSet!==Pt&&n.audioCodec===xt),{type:Et,groupId:dt}=(s=e.context)!=null?s:{};for(let Pt=A.length;Pt--;){const xt=(Pt+z)%A.length;if(xt!==z&&xt>=ne&&xt<=Q&&A[xt].loadError===0){var u,f;const Vt=A[xt];if(g===x.FRAG_GAP&&le===Ue.MAIN&&e.frag){const nr=A[xt].details;if(nr){const Lt=Si(e.frag,nr.fragments,e.frag.start);if(Lt!=null&&Lt.gap)continue}}else{if(Et===Wt.AUDIO_TRACK&&Vt.hasAudioGroup(dt)||Et===Wt.SUBTITLE_TRACK&&Vt.hasSubtitleGroup(dt))continue;if(le===Ue.AUDIO&&(u=n.audioGroups)!=null&&u.some(nr=>Vt.hasAudioGroup(nr))||le===Ue.SUBTITLE&&(f=n.subtitleGroups)!=null&&f.some(nr=>Vt.hasSubtitleGroup(nr))||Ge&&n.audioCodec===Vt.audioCodec||!Ge&&n.audioCodec!==Vt.audioCodec||lt&&n.codecSet===Vt.codecSet)continue}b=xt;break}}if(b>-1&&r.loadLevel!==b)return e.levelRetry=!0,this.playlistError=0,{action:tr.SendAlternateToPenaltyBox,flags:Kr.None,nextAutoLevel:b}}return{action:tr.SendAlternateToPenaltyBox,flags:Kr.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case tr.DoNothing:break;case tr.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==x.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 tr.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 Kr.None:this.switchLevel(e,s);break;case Kr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Xn[Xn.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 qr{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=w.log.bind(w,`${t}:`),this.warn=w.warn.bind(w,`${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(g){w.warn(`Could not construct new URL for Rendition Report: ${g}`),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 b=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&b>t.partTarget&&(f+=1)}const g=r&&Hn(r);return new li(u,f>=0?f:void 0,g)}}}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&&xi(r,n),!this.canLoad||!n.live)return;let f,g,b;if(n.canBlockReload&&n.endSN&&n.advanced){const me=this.hls.config.lowLatencyMode,Ge=n.lastPartSn,ut=n.endSN,lt=n.lastPartIndex,Et=lt!==-1,dt=Ge===ut,Pt=me?0:lt;Et?(g=dt?ut+1:Ge,b=dt?Pt:lt+1):g=ut+1;const xt=n.age,Vt=xt+n.ageHeader;let nr=Math.min(Vt-n.partTarget,n.targetduration*1.5);if(nr>0){if(r&&nr>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${nr} with playlist age: ${n.age}`),nr=0;else{const Lt=Math.floor(nr/n.targetduration);if(g+=Lt,b!==void 0){const Zt=Math.round(nr%n.targetduration/n.partTarget);b+=Zt}this.log(`CDN Tune-in age: ${n.ageHeader}s last advanced ${xt.toFixed(2)}s goal: ${nr} skip sn ${Lt} to part ${b}`)}n.tuneInGoal=nr}if(f=this.getDeliveryDirectives(n,t.deliveryDirectives,g,b),me||!dt){this.loadPlaylist(f);return}}else(n.canBlockReload||n.canSkipUntil)&&(f=this.getDeliveryDirectives(n,t.deliveryDirectives,g,b));const A=this.hls.mainForwardBufferInfo,z=A?A.end-A.len:0,ne=(n.edge-z)*1e3,Q=jn(n,ne);n.updated&&s>this.requestScheduled+Q&&(this.requestScheduled=i.loading.start),g!==void 0&&n.canBlockReload?this.requestScheduled=i.loading.first+Q-(n.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Q<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=Q);let le=this.requestScheduled-s;le=Math.max(0,le),this.log(`reload live playlist ${e} in ${Math.round(le)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(f),le)}else this.clearTimer()}getDeliveryDirectives(e,t,r,n){let i=Hn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,i=ti.No),new li(r,n,i)}checkRetry(e){const t=e.details,r=zr(e),n=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=n||{},f=!!n&&!!u&&(i===tr.RetryRequest||!n.resolved&&i===tr.SendAlternateToPenaltyBox);if(f){var g;if(this.requestScheduled=-1,s>=u.maxNumRetry)return!1;if(r&&(g=e.context)!=null&&g.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const b=Vn(u,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),b),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${b}ms`)}e.levelRetry=!0,n.resolved=!0}return f}}class ni{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 ji{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 ni(e),this.fast_=new ni(t),this.defaultTTFB_=n,this.ttfb_=new ni(e)}update(e,t){const{slow_:r,fast_:n,ttfb_:i}=this;r.halfLife!==e&&(this.slow_=new ni(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new ni(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new ni(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 Bi={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},yi={};function vs(o,e,t,r,n,i){const s=o.audioCodec?o.audioGroups:null,u=i==null?void 0:i.audioCodec,f=i==null?void 0:i.channels,g=f?parseInt(f):u?1/0:2;let b=null;if(s!=null&&s.length)try{s.length===1&&s[0]?b=e.groups[s[0]].channels:b=s.reduce((A,z)=>{if(z){const ne=e.groups[z];if(!ne)throw new Error(`Audio track group ${z} not found`);Object.keys(ne.channels).forEach(Q=>{A[Q]=(A[Q]||0)+ne.channels[Q]})}return A},{2:0})}catch(A){return!0}return o.videoCodec!==void 0&&(o.width>1920&&o.height>1088||o.height>1920&&o.width>1088||o.frameRate>Math.max(r,30)||o.videoRange!=="SDR"&&o.videoRange!==t||o.bitrate>Math.max(n,8e6))||!!b&&N(g)&&Object.keys(b).some(A=>parseInt(A)>g)}function Ds(o,e,t){const r=o.videoCodec,n=o.audioCodec;if(!r||!n||!t)return Promise.resolve(Bi);const i={width:o.width,height:o.height,bitrate:Math.ceil(Math.max(o.bitrate*.9,o.averageBitrate)),framerate:o.frameRate||30},s=o.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const u=r.split(",").map(f=>({type:"media-source",video:te(te({},i),{},{contentType:gt(f,"video")})}));return n&&o.audioGroups&&o.audioGroups.forEach(f=>{var g;f&&((g=e.groups[f])==null||g.tracks.forEach(b=>{if(b.groupId===f){const A=b.channels||"",z=parseFloat(A);N(z)&&z>2&&u.push.apply(u,n.split(",").map(ne=>({type:"media-source",audio:{contentType:gt(ne,"audio"),channels:""+z}})))}}))}),Promise.all(u.map(f=>{const g=Rs(f);return yi[g]||(yi[g]=t.decodingInfo(f))})).then(f=>({supported:!f.some(g=>!g.supported),configurations:u,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:u,decodingInfoResults:[],error:f}))}function Rs(o){const{audio:e,video:t}=o,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 o=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(o.media!==e.media)return o.matches===!0}return!1}function Is(o,e){let t=!1,r=[];return o&&(t=o!=="SDR",r=[o]),e&&(r=e.allowedVideoRanges||On.slice(0),t=e.preferHDR!==void 0?e.preferHDR:ns(),t?r=r.filter(n=>n!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ti(o,e,t,r,n){const i=Object.keys(o),s=r==null?void 0:r.channels,u=r==null?void 0:r.audioCodec,f=s&&parseInt(s)===2;let g=!0,b=!1,A=1/0,z=1/0,ne=1/0,Q=0,le=[];const{preferHDR:me,allowedVideoRanges:Ge}=Is(e,n);for(let dt=i.length;dt--;){const Pt=o[i[dt]];g=Pt.channels[2]>0,A=Math.min(A,Pt.minHeight),z=Math.min(z,Pt.minFramerate),ne=Math.min(ne,Pt.minBitrate);const xt=Ge.filter(Vt=>Pt.videoRanges[Vt]>0);xt.length>0&&(b=!0,le=xt)}A=N(A)?A:0,z=N(z)?z:0;const ut=Math.max(1080,A),lt=Math.max(30,z);return ne=N(ne)?ne:t,t=Math.max(ne,t),b||(e=void 0,le=[]),{codecSet:i.reduce((dt,Pt)=>{const xt=o[Pt];if(Pt===dt)return dt;if(xt.minBitrate>t)return $n(Pt,`min bitrate of ${xt.minBitrate} > current estimate of ${t}`),dt;if(!xt.hasDefaultAudio)return $n(Pt,"no renditions with default or auto-select sound found"),dt;if(u&&Pt.indexOf(u.substring(0,4))%5!==0)return $n(Pt,`audio codec preference "${u}" not found`),dt;if(s&&!f){if(!xt.channels[s])return $n(Pt,`no renditions with ${s} channel sound found (channels options: ${Object.keys(xt.channels)})`),dt}else if((!u||f)&&g&&xt.channels[2]===0)return $n(Pt,"no renditions with stereo sound found"),dt;return xt.minHeight>ut?($n(Pt,`min resolution of ${xt.minHeight} > maximum of ${ut}`),dt):xt.minFramerate>lt?($n(Pt,`min framerate of ${xt.minFramerate} > maximum of ${lt}`),dt):le.some(Vt=>xt.videoRanges[Vt]>0)?xt.maxScore<Q?($n(Pt,`max score of ${xt.maxScore} < selected max of ${Q}`),dt):dt&&(mt(Pt)>=mt(dt)||xt.fragmentError>o[dt].fragmentError)?dt:(Q=xt.maxScore,Pt):($n(Pt,`no variants with VIDEO-RANGE of ${JSON.stringify(le)} found`),dt)},void 0),videoRanges:le,preferHDR:me,minFramerate:z,minBitrate:ne}}function $n(o,e){w.log(`[abr] start candidates with "${o}" ignored because ${e}`)}function _s(o){return o.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(o,e,t,r){return o.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(g=>{if(!g)return;const b=e.groups[g];b&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?b.hasDefault:b.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(b.channels).forEach(A=>{u.channels[A]=(u.channels[A]||0)+b.channels[A]}))}),n},{})}function mi(o,e,t){if("attrs"in o){const r=e.indexOf(o);if(r!==-1)return r}for(let r=0;r<e.length;r++){const n=e[r];if(Ai(o,n,t))return r}return-1}function Ai(o,e,t){const{groupId:r,name:n,lang:i,assocLang:s,default:u}=o,f=o.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 o)||qs(o.characteristics||"",e.characteristics))&&(t===void 0||t(o,e))}function qs(o,e=""){const t=o.split(","),r=e.split(",");return t.length===r.length&&!t.some(n=>r.indexOf(n)===-1)}function Di(o,e){const{audioCodec:t,channels:r}=o;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function Qs(o,e,t,r,n){const i=e[r],u=e.reduce((z,ne,Q)=>{const le=ne.uri;return(z[le]||(z[le]=[])).push(Q),z},{})[i.uri];u.length>1&&(r=Math.max.apply(Math,u));const f=i.videoRange,g=i.frameRate,b=i.codecSet.substring(0,4),A=ys(e,r,z=>{if(z.videoRange!==f||z.frameRate!==g||z.codecSet.substring(0,4)!==b)return!1;const ne=z.audioGroups,Q=t.filter(le=>!ne||ne.indexOf(le.groupId)!==-1);return mi(o,Q,n)>-1});return A>-1?A:ys(e,r,z=>{const ne=z.audioGroups,Q=t.filter(le=>!ne||ne.indexOf(le.groupId)!==-1);return mi(o,Q,n)>-1})}function ys(o,e,t){for(let r=e;r>-1;r--)if(t(o[r]))return r;for(let r=e+1;r<o.length;r++)if(t(o[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,g=r?r.duration:t.duration,b=u-f.loading.start,A=n.minAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||t.level<=A){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const z=n.mainForwardBufferInfo;if(z===null)return;const ne=this.bwEstimator.getEstimateTTFB(),Q=Math.abs(s.playbackRate);if(b<=Math.max(ne,1e3*(g/(Q*2))))return;const le=z.len/Q,me=f.loading.first?f.loading.first-f.loading.start:-1,Ge=f.loaded&&me>-1,ut=this.getBwEstimate(),lt=n.levels,Et=lt[t.level],dt=f.total||Math.max(f.loaded,Math.round(g*Et.averageBitrate/8));let Pt=Ge?b-me:b;Pt<1&&Ge&&(Pt=Math.min(b,f.loaded*8/ut));const xt=Ge?f.loaded*1e3/Pt:0,Vt=xt?(dt-f.loaded)/xt:dt*8/ut+ne/1e3;if(Vt<=le)return;const nr=xt?xt*8:ut;let Lt=Number.POSITIVE_INFINITY,Zt;for(Zt=t.level-1;Zt>A;Zt--){const ur=lt[Zt].maxBitrate;if(Lt=this.getTimeToLoadFrag(ne/1e3,nr,g*ur,!lt[Zt].details),Lt<le)break}if(Lt>=Vt||Lt>g*10)return;n.nextLoadLevel=n.nextAutoLevel=Zt,Ge?this.bwEstimator.sample(b-Math.min(ne,me),f.loaded):this.bwEstimator.sampleTTFB(b);const Nr=lt[Zt].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Nr&&this.resetEstimator(Nr),this.clearTimer(),w.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
|
|
Time to underbuffer: ${le.toFixed(3)} s
|
|
Estimated load time for current fragment: ${Vt.toFixed(3)} s
|
|
Estimated load time for down switch fragment: ${Lt.toFixed(3)} s
|
|
TTFB estimate: ${me|0} ms
|
|
Current BW estimate: ${N(ut)?ut|0:"Unknown"} bps
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
Switching to level ${Zt} @ ${Nr|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&&(w.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 ji(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 x.BUFFER_ADD_CODEC_ERROR:case x.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case x.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,g=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&g>-1){const A=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(A,g),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;N(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===Ue.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!==Ue.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 w.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(),g=this.getStarvationDelay();let b=i.abrBandWidthFactor,A=i.abrBandWidthUpFactor;if(g){const me=this.findBestLevel(f,s,n,g,0,b,A);if(me>=0)return me}let z=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!g){const me=this.bitrateTestDelay;me&&(z=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-me,w.info(`[abr] bitrate test took ${Math.round(1e3*me)}ms, set first fragment max fetchDuration to ${Math.round(1e3*z)} ms`),b=A=1)}const ne=this.findBestLevel(f,s,n,g,z,b,A);if(w.info(`[abr] ${g?"rebuffering expected":"buffer is empty"}, optimal quality level ${ne}`),ne>-1)return ne;const Q=r.levels[s],le=r.levels[r.loadLevel];return(Q==null?void 0:Q.bitrate)<(le==null?void 0:le.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 g=n+i,b=this.lastLoadedFragLevel,A=b===-1?this.hls.firstLevel:b,{fragCurrent:z,partCurrent:ne}=this,{levels:Q,allAudioTracks:le,loadLevel:me,config:Ge}=this.hls;if(Q.length===1)return 0;const ut=Q[A],lt=!!(ut!=null&&(f=ut.details)!=null&&f.live),Et=me===-1||b===-1;let dt,Pt="SDR",xt=(ut==null?void 0:ut.frameRate)||0;const{audioPreference:Vt,videoPreference:nr}=Ge,Lt=this.audioTracksByGroup||(this.audioTracksByGroup=_s(le));if(Et){if(this.firstSelection!==-1)return this.firstSelection;const Ir=this.codecTiers||(this.codecTiers=is(Q,Lt,t,r)),yr=Ti(Ir,Pt,e,Vt,nr),{codecSet:ln,videoRanges:Sn,minFramerate:dr,minBitrate:cr,preferHDR:dn}=yr;dt=ln,Pt=dn?Sn[Sn.length-1]:Sn[0],xt=dr,e=Math.max(e,cr),w.log(`[abr] picked start tier ${JSON.stringify(yr)}`)}else dt=ut==null?void 0:ut.codecSet,Pt=ut==null?void 0:ut.videoRange;const Zt=ne?ne.duration:z?z.duration:0,Nr=this.bwEstimator.getEstimateTTFB()/1e3,ur=[];for(let Ir=r;Ir>=t;Ir--){var Pr;const yr=Q[Ir],ln=Ir>A;if(!yr)continue;if(Ge.useMediaCapabilities&&!yr.supportedResult&&!yr.supportedPromise){const ei=navigator.mediaCapabilities;typeof(ei==null?void 0:ei.decodingInfo)=="function"&&vs(yr,Lt,Pt,xt,e,Vt)?(yr.supportedPromise=Ds(yr,Lt,ei),yr.supportedPromise.then(oi=>{if(!this.hls)return;yr.supportedResult=oi;const hi=this.hls.levels,Mi=hi.indexOf(yr);oi.error?w.warn(`[abr] MediaCapabilities decodingInfo error: "${oi.error}" for level ${Mi} ${JSON.stringify(oi)}`):oi.supported||(w.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Mi} ${JSON.stringify(oi)}`),Mi>-1&&hi.length>1&&(w.log(`[abr] Removing unsupported level ${Mi}`),this.hls.removeLevel(Mi)))})):yr.supportedResult=Bi}if(dt&&yr.codecSet!==dt||Pt&&yr.videoRange!==Pt||ln&&xt>yr.frameRate||!ln&&xt>0&&xt<yr.frameRate||yr.supportedResult&&!((Pr=yr.supportedResult.decodingInfoResults)!=null&&Pr[0].smooth)){ur.push(Ir);continue}const Sn=yr.details,dr=(ne?Sn==null?void 0:Sn.partTarget:Sn==null?void 0:Sn.averagetargetduration)||Zt;let cr;ln?cr=u*e:cr=s*e;const dn=Zt&&n>=Zt*2&&i===0?Q[Ir].averageBitrate:Q[Ir].maxBitrate,Zr=this.getTimeToLoadFrag(Nr,cr,dn*dr,Sn===void 0);if(cr>=dn&&(Ir===b||yr.loadError===0&&yr.fragmentError===0)&&(Zr<=Nr||!N(Zr)||lt&&!this.bitrateTestDelay||Zr<g)){const ei=this.forcedAutoLevel;return Ir!==me&&(ei===-1||ei!==me)&&(ur.length&&w.trace(`[abr] Skipped level(s) ${ur.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${Q[ur[0]].codecs}" ${Q[ur[0]].videoRange}; not compatible with "${ut.codecs}" ${Pt}`),w.info(`[abr] switch candidate:${A}->${Ir} adjustedbw(${Math.round(cr)})-bitrate=${Math.round(cr-dn)} ttfb:${Nr.toFixed(1)} avgDuration:${dr.toFixed(1)} maxFetchDuration:${g.toFixed(1)} fetchDuration:${Zr.toFixed(1)} firstSelection:${Et} codecSet:${dt} videoRange:${Pt} hls.loadLevel:${me}`)),Et&&(this.firstSelection=Ir),Ir}}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 Js{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 zn={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(g=>{const b=!this.isTimeBuffered(g.startPTS,g.endPTS,t);return b&&this.removeFragment(u.body),b})})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:n}=e;if(!t||r.sn==="initSegment")return;const i=Ki(r),s=this.fragments[i];if(!s||s.buffered&&r.gap)return;const u=!r.relurl;Object.keys(t).forEach(f=>{const g=r.elementaryStreams[f];if(!g)return;const b=t[f],A=u||g.partial===!0;s.range[f]=this.getBufferedTimes(r,n,A,b)}),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),Fi(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=Ki(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,g=e.maxStartPTS||s;for(let b=0;b<n.length;b++){const A=n.start(b)-this.bufferPadding,z=n.end(b)+this.bufferPadding;if(g>=A&&f<=z){i.time.push({startPTS:Math.max(s,n.start(b)),endPTS:Math.min(u,n.end(b))});break}else if(s<z&&u>A){const ne=Math.max(s,n.start(b)),Q=Math.min(u,n.end(b));Q>ne&&(i.partial=!0,i.time.push({startPTS:ne,endPTS:Q}))}else if(u<=A)break}return i}getPartialFragment(e){let t=null,r,n,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(g=>{const b=f[g];b&&Fi(b)&&(n=b.body.start-u,i=b.body.end+u,e>=n&&e<=i&&(r=Math.min(e-n,i-e),s<=r&&(t=b.body,s=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||Fi(t))}getState(e){const t=Ki(e),r=this.fragments[t];return r?r.buffered?Fi(r)?zn.PARTIAL:zn.OK:zn.APPENDING:zn.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=Ki(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=Ki(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=Ki(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 Fi(o){var e,t,r;return o.buffered&&(o.body.gap||((e=o.range.video)==null?void 0:e.partial)||((t=o.range.audio)==null?void 0:t.partial)||((r=o.range.audiovideo)==null?void 0:r.partial))}function Ki(o){return`${o.type}_${o.level}_${o.sn}`}const ks={length:0,start:()=>0,end:()=>0};class cn{static isBuffered(e,t){try{if(e){const r=cn.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=cn.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(g,b){const A=g.start-b.start;return A||b.end-g.end});let n=[];if(r)for(let g=0;g<e.length;g++){const b=n.length;if(b){const A=n[b-1].end;e[g].start-A<r?e[g].end>A&&(n[b-1].end=e[g].end):n.push(e[g])}else n.push(e[g])}else n=e;let i=0,s,u=t,f=t;for(let g=0;g<n.length;g++){const b=n[g].start,A=n[g].end;if(t+r>=b&&t<A)u=b,f=A,i=f-t;else if(t+r<b){s=b;break}}return{len:i,start:u||0,end:f||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return w.log("failed to get media.buffered",t),ks}}}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=ii(),this.buffering={audio:ii(),video:ii(),audiovideo:ii()},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=s}}function ii(){return{start:0,executeStart:0,executeEnd:0,end:0}}function qi(o,e){for(let r=0,n=o.length;r<n;r++){var t;if(((t=o[r])==null?void 0:t.cc)===e)return o[r]}return null}function ea(o,e,t){return!!(e&&(t.endCC>t.startCC||o&&o.cc<t.startCC))}function os(o,e){const t=o.fragments,r=e.fragments;if(!r.length||!t.length){w.log("No fragments to align");return}const n=qi(t,r[0].cc);if(!n||n&&!n.startPTS){w.log("No frag in previous level to align on");return}return n}function ls(o,e){if(o){const t=o.start+e;o.start=o.startPTS=t,o.endPTS=t+o.duration}}function us(o,e){const t=e.fragments;for(let r=0,n=t.length;r<n;r++)ls(t[r],o);e.fragmentHint&&ls(e.fragmentHint,o),e.alignedSliding=!0}function bs(o,e,t){e&&(Ls(o,t,e),!t.alignedSliding&&e&&bi(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&wi(e,t))}function Ls(o,e,t){if(ea(o,t,e)){const r=os(t,e);r&&N(r.start)&&(w.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),us(r.start,e))}}function bi(o,e){if(!o.hasProgramDateTime||!e.hasProgramDateTime)return;const t=o.fragments,r=e.fragments;if(!t.length||!r.length)return;let n,i;const s=Math.min(e.endCC,o.endCC);e.startCC<s&&o.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 g=(f-u)/1e3-(i.start-n.start);us(g,o)}const xs=Math.pow(2,17);class on{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 Nn({type:y.NETWORK_ERROR,details:x.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(ne=>ne[0]==="GAP")){f(tn(e));return}else e.gap=!1;const g=this.loader=e.loader=i?new i(n):new s(n),b=nn(e),A=Qn(n.fragLoadPolicy.default),z={loadPolicy:A,timeout:A.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:xs};e.stats=g.stats,g.load(b,z,{onSuccess:(ne,Q,le,me)=>{this.resetLoader(e,g);let Ge=ne.data;le.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ge.slice(0,16)),Ge=Ge.slice(16)),u({frag:e,part:null,payload:Ge,networkDetails:me})},onError:(ne,Q,le,me)=>{this.resetLoader(e,g),f(new Nn({type:y.NETWORK_ERROR,details:x.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:te({url:r,data:void 0},ne),error:new Error(`HTTP Error ${ne.code} ${ne.text}`),networkDetails:le,stats:me}))},onAbort:(ne,Q,le)=>{this.resetLoader(e,g),f(new Nn({type:y.NETWORK_ERROR,details:x.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:le,stats:ne}))},onTimeout:(ne,Q,le)=>{this.resetLoader(e,g),f(new Nn({type:y.NETWORK_ERROR,details:x.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${z.timeout}ms`),networkDetails:le,stats:ne}))},onProgress:(ne,Q,le,me)=>{t&&t({frag:e,part:null,payload:le,networkDetails:me})}})})}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(tn(e,t));return}const g=this.loader=e.loader=i?new i(n):new s(n),b=nn(e,t),A=Qn(n.fragLoadPolicy.default),z={loadPolicy:A,timeout:A.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:xs};t.stats=g.stats,g.load(b,z,{onSuccess:(ne,Q,le,me)=>{this.resetLoader(e,g),this.updateStatsFromPart(e,t);const Ge={frag:e,part:t,payload:ne.data,networkDetails:me};r(Ge),u(Ge)},onError:(ne,Q,le,me)=>{this.resetLoader(e,g),f(new Nn({type:y.NETWORK_ERROR,details:x.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:te({url:b.url,data:void 0},ne),error:new Error(`HTTP Error ${ne.code} ${ne.text}`),networkDetails:le,stats:me}))},onAbort:(ne,Q,le)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,g),f(new Nn({type:y.NETWORK_ERROR,details:x.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:le,stats:ne}))},onTimeout:(ne,Q,le)=>{this.resetLoader(e,g),f(new Nn({type:y.NETWORK_ERROR,details:x.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${z.timeout}ms`),networkDetails:le,stats:ne}))}})})}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),g=Math.min(Math.round(r.loaded/i),f),A=(f-g)*Math.round(r.loaded/g);r.total=r.loaded+A}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 nn(o,e=null){const t=e||o,r={frag:o,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},n=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(N(n)&&N(i)){var s;let u=n,f=i;if(o.sn==="initSegment"&&((s=o.decryptdata)==null?void 0:s.method)==="AES-128"){const g=i-n;g%16&&(f=i+(16-g%16)),n!==0&&(r.resetIV=!0,u=n-16)}r.rangeStart=u,r.rangeEnd=f}return r}function tn(o,e){const t=new Error(`GAP ${o.gap?"tag":"attribute"} found`),r={type:y.MEDIA_ERROR,details:x.FRAG_GAP,fatal:!1,frag:o,error:t,networkDetails:null};return e&&(r.part=e),(e||o).stats.aborted=!0,new Nn(r)}class Nn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Bn{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 Qi{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(o){const e=o.byteLength,t=e&&new DataView(o.buffer).getUint8(e-1);return t?ue(o,0,e-t):o}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,g=f[0],b=f[1],A=f[2],z=f[3],ne=new Uint32Array(256);let Q=0,le=0,me=0;for(me=0;me<256;me++)me<128?ne[me]=me<<1:ne[me]=me<<1^283;for(me=0;me<256;me++){let Ge=le^le<<1^le<<2^le<<3^le<<4;Ge=Ge>>>8^Ge&255^99,e[Q]=Ge,t[Ge]=Q;const ut=ne[Q],lt=ne[ut],Et=ne[lt];let dt=ne[Ge]*257^Ge*16843008;n[Q]=dt<<24|dt>>>8,i[Q]=dt<<16|dt>>>16,s[Q]=dt<<8|dt>>>24,u[Q]=dt,dt=Et*16843009^lt*65537^ut*257^Q*16843008,g[Ge]=dt<<24|dt>>>8,b[Ge]=dt<<16|dt>>>16,A[Ge]=dt<<8|dt>>>24,z[Ge]=dt,Q?(Q=ut^ne[ne[ne[Et^ut]]],le^=ne[ne[le]]):Q=le=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 g=this.keySchedule=new Uint32Array(s),b=this.invKeySchedule=new Uint32Array(s),A=this.sBox,z=this.rcon,ne=this.invSubMix,Q=ne[0],le=ne[1],me=ne[2],Ge=ne[3];let ut,lt;for(u=0;u<s;u++){if(u<i){ut=g[u]=t[u];continue}lt=ut,u%i===0?(lt=lt<<8|lt>>>24,lt=A[lt>>>24]<<24|A[lt>>>16&255]<<16|A[lt>>>8&255]<<8|A[lt&255],lt^=z[u/i|0]<<24):i>6&&u%i===4&&(lt=A[lt>>>24]<<24|A[lt>>>16&255]<<16|A[lt>>>8&255]<<8|A[lt&255]),g[u]=ut=(g[u-i]^lt)>>>0}for(f=0;f<s;f++)u=s-f,f&3?lt=g[u]:lt=g[u-4],f<4||u<=4?b[f]=lt:b[f]=Q[A[lt>>>24]]^le[A[lt>>>16&255]]^me[A[lt>>>8&255]]^Ge[A[lt&255]],b[f]=b[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],g=u[1],b=u[2],A=u[3],z=this.uint8ArrayToUint32Array_(r);let ne=z[0],Q=z[1],le=z[2],me=z[3];const Ge=new Int32Array(e),ut=new Int32Array(Ge.length);let lt,Et,dt,Pt,xt,Vt,nr,Lt,Zt,Nr,ur,Pr,Ir,yr;const ln=this.networkToHostOrderSwap;for(;t<Ge.length;){for(Zt=ln(Ge[t]),Nr=ln(Ge[t+1]),ur=ln(Ge[t+2]),Pr=ln(Ge[t+3]),xt=Zt^i[0],Vt=Pr^i[1],nr=ur^i[2],Lt=Nr^i[3],Ir=4,yr=1;yr<n;yr++)lt=f[xt>>>24]^g[Vt>>16&255]^b[nr>>8&255]^A[Lt&255]^i[Ir],Et=f[Vt>>>24]^g[nr>>16&255]^b[Lt>>8&255]^A[xt&255]^i[Ir+1],dt=f[nr>>>24]^g[Lt>>16&255]^b[xt>>8&255]^A[Vt&255]^i[Ir+2],Pt=f[Lt>>>24]^g[xt>>16&255]^b[Vt>>8&255]^A[nr&255]^i[Ir+3],xt=lt,Vt=Et,nr=dt,Lt=Pt,Ir=Ir+4;lt=s[xt>>>24]<<24^s[Vt>>16&255]<<16^s[nr>>8&255]<<8^s[Lt&255]^i[Ir],Et=s[Vt>>>24]<<24^s[nr>>16&255]<<16^s[Lt>>8&255]<<8^s[xt&255]^i[Ir+1],dt=s[nr>>>24]<<24^s[Lt>>16&255]<<16^s[xt>>8&255]<<8^s[Vt&255]^i[Ir+2],Pt=s[Lt>>>24]<<24^s[xt>>16&255]<<16^s[Vt>>8&255]<<8^s[nr&255]^i[Ir+3],ut[t]=ln(lt^ne),ut[t+1]=ln(Pt^Q),ut[t+2]=ln(dt^le),ut[t+3]=ln(Et^me),ne=Zt,Q=Nr,le=ur,me=Pr,t=t+4}return ut.buffer}}const Ps=16;class Ji{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=Bt(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 g=i;return this.currentResult=f.decrypt(u.buffer,0,r),this.currentIV=ue(u,-16).buffer,g||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 Qi(this.subtle,t)}return this.fastAesKey.expandKey().then(n=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Bn(this.subtle,new Uint8Array(r)).decrypt(e.buffer,n)):Promise.reject(new Error("web crypto not initialized"))).catch(n=>(w.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=ue(e,0,r),this.remainderData=ue(e,r)),t}logOnce(e){this.logEnabled&&(w.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Wi={toString:function(o){let e="";const t=o.length;for(let r=0;r<t;r++)e+=`[${o.start(r).toFixed(3)}-${o.end(r).toFixed(3)}]`;return e}},It={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 Js{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=It.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=w.log.bind(w,`${n}:`),this.warn=w.warn.bind(w,`${n}:`),this.hls=e,this.fragmentLoader=new on(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ji(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=It.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 cn.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===It.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=cn.bufferInfo(n||r,s,e.maxBufferHole);if(this.log(`media seeking to ${N(s)?s.toFixed(3):s}, state: ${i}`),this.state===It.ENDED)this.resetLoadingState();else if(t){const f=e.maxFragLookUpTolerance,g=t.start-f,b=t.start+t.duration+f;if(!u.len||b<u.start||g>u.end){const A=s>b;(s<g||A)&&(A&&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=It.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===It.FRAG_LOADING||!this.fragCurrent&&s===It.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=It.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===It.STOPPED||this.state===It.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)===zn.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)===zn.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:y.MEDIA_ERROR,details:x.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:e}),f}).then(f=>{const g=self.performance.now();return n.trigger(c.FRAG_DECRYPTED,{frag:e,payload:f,stats:{tstart:u,tdecrypt:g}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===It.STOPPED||this.state===It.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=It.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===Ue.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((n=e.endPTS)!=null?n:NaN).toFixed(3)}] > buffer:${u?Wi.toString(cn.getBuffered(u)):"(detached)"})`),e.sn!=="initSegment"){var f;if(e.type!==Ue.SUBTITLE){const b=e.elementaryStreams;if(!Object.keys(b).some(A=>!!b[A])){this.state=It.IDLE;return}}const g=(f=this.levels)==null?void 0:f[e.level];g!=null&&g.fragmentError&&(this.log(`Resetting level fragment error count of ${g.fragmentError} on frag buffered`),g.fragmentError=0)}this.state=It.IDLE,u&&(!this.loadedmetadata&&e.type==Ue.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=It.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(b=>{if(!this.fragContextChanged(b.frag))return this.hls.trigger(c.KEY_LOADED,b),this.state===It.KEY_LOADING&&(this.state=It.IDLE),b}),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 b=s.partList;if(b&&n){r>e.end&&s.fragmentHint&&(e=s.fragmentHint);const A=this.getNextPart(b,e,r);if(A>-1){const z=b[A];this.log(`Loading part sn: ${e.sn} p: ${z.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${A}-${b.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=z.start+z.duration,this.state=It.FRAG_LOADING;let ne;return u?ne=u.then(Q=>!Q||this.fragContextChanged(Q.frag)?null:this.doFragPartsLoad(e,z,t,n)).catch(Q=>this.handleFragLoadError(Q)):ne=this.doFragPartsLoad(e,z,t,n).catch(Q=>this.handleFragLoadError(Q)),this.hls.trigger(c.FRAG_LOADING,{frag:e,part:z,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ne}else if(!e.url||this.loadedEndOfParts(b,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))}`),N(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=It.FRAG_LOADING;const f=this.config.progressive;let g;return f&&u?g=u.then(b=>!b||this.fragContextChanged(b==null?void 0:b.frag)?null:this.fragmentLoader.load(e,n)).catch(b=>this.handleFragLoadError(b)):g=Promise.all([this.fragmentLoader.load(e,f?n:void 0),u]).then(([b])=>(!f&&b&&n&&n(b),b)).catch(b=>this.handleFragLoadError(b)),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")):g}doFragPartsLoad(e,t,r,n){return new Promise((i,s)=>{var u;const f=[],g=(u=r.details)==null?void 0:u.partList,b=A=>{this.fragmentLoader.loadPart(e,A,n).then(z=>{f[A.index]=z;const ne=z.part;this.hls.trigger(c.FRAG_LOADED,z);const Q=ci(r,e.sn,A.index+1)||Pn(g,e.sn,A.index+1);if(Q)b(Q);else return i({frag:e,part:ne,partsLoaded:f})}).catch(s)};b(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===x.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(c.ERROR,t)}else this.hls.trigger(c.ERROR,{type:y.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==It.PARSING){!this.fragCurrent&&this.state!==It.STOPPED&&this.state!==It.ERROR&&(this.state=It.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?ci(u,i,s):null,g=f?f.fragment:pi(u,i,r);return g?(r&&r!==g&&(g.stats=r.stats),{frag:g,part:f,level:u}):null}bufferFragmentData(e,t,r,n,i){var s;if(!e||this.state!==It.PARSING)return;const{data1:u,data2:f}=e;let g=u;if(u&&f&&(g=Bt(u,f)),!((s=g)!=null&&s.length))return;const b={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:g};if(this.hls.trigger(c.BUFFER_APPENDING,b),e.dropped&&e.independent&&!r){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!cn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,n=cn.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 N(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:n}}=this,i=cn.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 cn.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=Ue.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,Ue.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===zn.OK||r===zn.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 g=e[u];if(s=s&&!g.independent,n>-1&&r<g.start)break;const b=g.loaded;b?n=-1:(i||g.independent||s)&&g.fragment===t&&(n=u),i=b}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=Gi(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=or(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:g}=n,b=r.partList,A=!!(n.lowLatencyMode&&b!=null&&b.length&&f);A&&f&&!this.bitrateTest&&(s=s.concat(f),u=f.sn);let z;if(e<t){const ne=e>t-g?0:g;z=Si(i,s,e,ne)}else z=s[s.length-1];if(z){const ne=z.sn-r.startSN,Q=this.fragmentTracker.getState(z);if((Q===zn.OK||Q===zn.PARTIAL&&z.gap)&&(i=z),i&&z.sn===i.sn&&(!A||b[0].fragment.sn>z.sn)&&i&&z.level===i.level){const me=s[ne+1];z.sn<u&&this.fragmentTracker.getState(me)!==zn.OK?z=me:z=null}}return z}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 g=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&r.readyState<4||i<u-g)&&(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&&N(i);if(s||!u&&!i){const{fragPrevious:f}=this;bs(f,r,e);const g=e.fragments[0].start;return this.log(`Live playlist sliding: ${g.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${f?f.sn:"na"} fragments: ${n}`),g}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&&N(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!==It.FRAG_LOADING_WAITING_RETRY)&&(this.state=It.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const b=this.getCurrentContext(t.chunkMeta);b&&(t.frag=b.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===x.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(r,!0);const s=t.errorAction,{action:u,retryCount:f=0,retryConfig:g}=s||{};if(s&&u===tr.RetryRequest&&g){this.resetStartWhenNotLoaded(this.levelLastLoaded);const b=Vn(g,f);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${g.maxNumRetry} in ${b}ms`),s.resolved=!0,this.retryDate=self.performance.now()+b,this.state=It.FRAG_LOADING_WAITING_RETRY}else if(g&&s)if(this.resetFragmentErrors(e),f<g.maxNumRetry)!i&&u!==tr.RemoveAlternatePermanently&&(s.resolved=!0);else{w.warn(`${t.details} reached or exceeded max retry (${f})`);return}else(s==null?void 0:s.action)===tr.SendAlternateToPenaltyBox?this.state=It.WAITING_LEVEL:this.state=It.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===It.PARSING||this.state===It.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===Ue.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==It.STOPPED&&(this.state=It.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const n=cn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===It.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=It.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,g)=>{const b=e.elementaryStreams[g];if(b){const A=b.endPTS-b.startPTS;if(A<=0)return this.warn(`Could not parse fragment ${e.sn} ${g} duration reliably (${A})`),f||!1;const z=n?0:ui(s,e,b.startPTS,b.endPTS,b.startDTS,b.endDTS);return this.hls.trigger(c.LEVEL_PTS_UPDATED,{details:s,level:r,drift:z,type:g,frag:e,start:b.startPTS,end:b.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:y.MEDIA_ERROR,details:x.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=It.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=ya(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function ya(o,e){const t=new Uint8Array(e);let r=0;for(let n=0;n<o.length;n++){const i=o[n];t.set(i,r),r+=i.length}return t}function ba(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ra(){const o=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(o);return{worker:new self.Worker(e),objectURL:e}}function na(o){const e=new self.URL(o,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Ri(o="",e=9e4){return{type:o,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=Bt(this.cachedData,e),this.cachedData=null);let r=Pe(e,0),n=r?r.length:0,i;const s=this._audioTrack,u=this._id3Track,f=r?ae(r):void 0,g=e.length;for((this.basePTS===null||this.frameIndex===0&&N(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:Rn.audioId3,duration:Number.POSITIVE_INFINITY});n<g;){if(this.canParse(e,n)){const b=this.appendFrame(s,e,n);b?(this.frameIndex++,this.lastPTS=b.sample.pts,n+=b.length,i=n):n=g}else O(e,n)?(r=Pe(e,n),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Rn.audioId3,duration:Number.POSITIVE_INFINITY}),n+=r.length,i=n):n++;if(n===g&&i!==g){const b=ue(e,i);this.cachedData?this.cachedData=Bt(this.cachedData,b):this.cachedData=b}}return{audioTrack:s,videoTrack:Ri(),id3Track:u,textTrack:Ri()}}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:Ri(),id3Track:this._id3Track,textTrack:Ri()}}destroy(){}}const xa=(o,e,t)=>{if(N(o))return o*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function Ga(o,e,t,r){let n,i,s,u;const f=navigator.userAgent.toLowerCase(),g=r,b=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=((e[t+2]&192)>>>6)+1;const A=(e[t+2]&60)>>>2;if(A>b.length-1){const z=new Error(`invalid ADTS sampling index:${A}`);o.emit(c.ERROR,c.ERROR,{type:y.MEDIA_ERROR,details:x.FRAG_PARSING_ERROR,fatal:!0,error:z,reason:z.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,w.log(`manifest codec:${r}, ADTS type:${n}, samplingIndex:${A}`),/firefox/i.test(f)?A>=6?(n=5,u=new Array(4),i=A-3):(n=2,u=new Array(2),i=A):f.indexOf("android")!==-1?(n=2,u=new Array(2),i=A):(n=5,u=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&A>=6?i=A-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(A>=6&&s===1||/vivaldi/i.test(f))||!r&&s===1)&&(n=2,u=new Array(2)),i=A)),u[0]=n<<3,u[0]|=(A&14)>>1,u[1]|=(A&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:b[A],channelCount:s,codec:"mp4a.40."+n,manifestCodec:g}}function Ns(o,e){return o[e]===255&&(o[e+1]&246)===240}function ia(o,e){return o[e+1]&1?7:9}function Bs(o,e){return(o[e+3]&3)<<11|o[e+4]<<3|(o[e+5]&224)>>>5}function Ea(o,e){return e+5<o.length}function $i(o,e){return e+1<o.length&&Ns(o,e)}function ws(o,e){return Ea(o,e)&&Ns(o,e)&&Bs(o,e)<=o.length-e}function ja(o,e){if($i(o,e)){const t=ia(o,e);if(e+t>=o.length)return!1;const r=Bs(o,e);if(r<=t)return!1;const n=e+r;return n===o.length||$i(o,n)}return!1}function wa(o,e,t,r,n){if(!o.samplerate){const i=Ga(e,t,r,n);if(!i)return;o.config=i.config,o.samplerate=i.samplerate,o.channelCount=i.channelCount,o.codec=i.codec,o.manifestCodec=i.manifestCodec,w.log(`parsed codec:${o.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function sa(o){return 1024*9e4/o}function Ka(o,e){const t=ia(o,e);if(e+t<=o.length){const r=Bs(o,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function aa(o,e,t,r,n){const i=sa(o.samplerate),s=r+n*i,u=Ka(e,t);let f;if(u){const{frameLength:A,headerLength:z}=u,ne=z+A,Q=Math.max(0,t+ne-e.length);Q?(f=new Uint8Array(ne-z),f.set(e.subarray(t+z,e.length),0)):f=e.subarray(t+z,t+ne);const le={unit:f,pts:s};return Q||o.samples.push(le),{sample:le,length:ne,missing:Q}}const g=e.length-t;return f=new Uint8Array(g),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:g,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],Va=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ta=[0,1,1,4];function Fs(o,e,t,r,n){if(t+24>e.length)return;const i=$s(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 o.config=[],o.channelCount=i.channelCount,o.samplerate=i.sampleRate,o.samples.push(f),{sample:f,length:i.frameLength,missing:0}}}function $s(o,e){const t=o[e+1]>>3&3,r=o[e+1]>>1&3,n=o[e+2]>>4&15,i=o[e+2]>>2&3;if(t!==1&&n!==0&&n!==15&&i!==3){const s=o[e+2]>>1&1,u=o[e+3]>>6,f=t===3?3-r:r===3?3:4,g=Wa[f*14+n-1]*1e3,A=Sa[(t===3?0:t===2?1:2)*3+i],z=u===3?1:2,ne=Va[t][r],Q=Ta[r],le=ne*8*Q,me=Math.floor(ne*g/A+s)*Q;if(Ss===null){const lt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ss=lt?parseInt(lt[1]):0}return!!Ss&&Ss<=87&&r===2&&g>=224e3&&u===0&&(o[e+3]=o[e+3]|128),{sampleRate:A,channelCount:z,frameLength:me,samplesPerFrame:le}}}function zs(o,e){return o[e]===255&&(o[e+1]&224)===224&&(o[e+1]&6)!==0}function oa(o,e){return e+1<o.length&&zs(o,e)}function Aa(o,e){return zs(o,e)&&4<=o.length-e}function Ca(o,e){if(e+1<o.length&&zs(o,e)){const r=$s(o,e);let n=4;r!=null&&r.frameLength&&(n=r.frameLength);const i=e+n;return i===o.length||oa(o,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=Pe(e,0);let r=(t==null?void 0:t.length)||0;if(Ca(e,r))return!1;for(let n=e.length;r<n;r++)if(ja(e,r))return w.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 Za{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=Ri("video",1),s=this.audioTrack=Ri("audio",1),u=this.txtTrack=Ri("text",1);if(this.id3Track=Ri("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=Ze(e);if(f.video){const{id:g,timescale:b,codec:A}=f.video;i.id=g,i.timescale=u.timescale=b,i.codec=A}if(f.audio){const{id:g,timescale:b,codec:A}=f.audio;s.id=g,s.timescale=b,s.codec=A}u.id=ft.text,i.sampleDuration=0,i.duration=s.duration=n}resetContiguity(){this.remainderData=null}static probe(e){return Nt(e)}demux(e,t){this.timeOffset=t;let r=e;const n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Bt(this.remainderData,e));const u=mr(r);this.remainderData=u.remainder,n.samples=u.valid||new Uint8Array}else n.samples=r;const s=this.extractID3Track(n,t);return i.samples=Ft(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=Ft(e,t),{videoTrack:t,audioTrack:Ri(),id3Track:n,textTrack:Ri()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const n=Te(e.samples,["emsg"]);n&&n.forEach(i=>{const s=Kt(i);if(Ra.test(s.schemeIdUri)){const u=N(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 g=s.payload;r.samples.push({data:g,len:g.byteLength,dts:u,pts:u,type:Rn.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 hs=(o,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]=o[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=Pe(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&ae(t)!==void 0&&hs(e,r)<16}}function ua(o,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,b=[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+b>e.length)return-1;const A=e[t+6]>>5;let z=0;A===2?z+=2:(A&1&&A!==1&&(z+=2),A&4&&(z+=2));const ne=(e[t+6]<<8|e[t+7])>>12-z&1,le=[2,1,2,3,3,4,4,5][A]+ne,me=e[t+5]>>3,Ge=e[t+5]&7,ut=new Uint8Array([i<<6|me<<1|Ge>>2,(Ge&3)<<6|A<<3|ne<<2|f>>4,f<<4&224]),lt=1536/u*9e4,Et=r+n*lt,dt=e.subarray(t,t+b);return o.config=ut,o.channelCount=le,o.samplerate=u,o.samples.push({unit:dt,pts:Et}),b}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&&w.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&&w.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),g=this.readBits.bind(this),b=this.readUEG.bind(this),A=this.readBoolean.bind(this),z=this.skipBits.bind(this),ne=this.skipEG.bind(this),Q=this.skipUEG.bind(this),le=this.skipScalingList.bind(this);f();const me=f();if(g(5),z(3),f(),Q(),me===100||me===110||me===122||me===244||me===44||me===83||me===86||me===118||me===128){const Pt=b();if(Pt===3&&z(1),Q(),Q(),z(1),A())for(s=Pt!==3?8:12,u=0;u<s;u++)A()&&(u<6?le(16):le(64))}Q();const Ge=b();if(Ge===0)b();else if(Ge===1)for(z(1),ne(),ne(),i=b(),u=0;u<i;u++)ne();Q(),z(1);const ut=b(),lt=b(),Et=g(1);Et===0&&z(1),z(1),A()&&(e=b(),t=b(),r=b(),n=b());let dt=[1,1];if(A()&&A())switch(f()){case 1:dt=[1,1];break;case 2:dt=[12,11];break;case 3:dt=[10,11];break;case 4:dt=[16,11];break;case 5:dt=[40,33];break;case 6:dt=[24,11];break;case 7:dt=[20,11];break;case 8:dt=[32,11];break;case 9:dt=[80,33];break;case 10:dt=[18,11];break;case 11:dt=[15,11];break;case 12:dt=[64,33];break;case 13:dt=[160,99];break;case 14:dt=[4,3];break;case 15:dt=[3,2];break;case 16:dt=[2,1];break;case 255:{dt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((ut+1)*16-e*2-t*2),height:(2-Et)*(lt+1)*16-(Et?2:4)*(r+n),pixelRatio:dt}}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,g=!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(b=>{var A;switch(b.type){case 1:{let le=!1;f=!0;const me=b.data;if(g&&me.length>4){const Ge=new Ia(me).readSliceType();(Ge===2||Ge===4||Ge===7||Ge===9)&&(le=!0)}if(le){var z;(z=u)!=null&&z.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=le;break}case 5:f=!0,(A=u)!=null&&A.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,Ur(b.data,1,r.pts,t.samples);break}case 7:{var ne,Q;f=!0,g=!0;const le=b.data,Ge=new Ia(le).readSPS();if(!e.sps||e.width!==Ge.width||e.height!==Ge.height||((ne=e.pixelRatio)==null?void 0:ne[0])!==Ge.pixelRatio[0]||((Q=e.pixelRatio)==null?void 0:Q[1])!==Ge.pixelRatio[1]){e.width=Ge.width,e.height=Ge.height,e.pixelRatio=Ge.pixelRatio,e.sps=[le],e.duration=i;const ut=le.subarray(1,4);let lt="avc1.";for(let Et=0;Et<3;Et++){let dt=ut[Et].toString(16);dt.length<2&&(dt="0"+dt),lt+=dt}e.codec=lt}break}case 8:f=!0,e.pps=[b.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 "+b.type+" ");break}u&&f&&u.units.push(b)}),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,g,b,A=-1,z=0;for(n===-1&&(A=0,z=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(g=u-n-1,A>=0){const ne={data:t.subarray(A,g),type:z};s.push(ne)}else{const ne=this.getLastNalUnit(e.samples);ne&&(i&&u<=4-i&&ne.state&&(ne.data=ne.data.subarray(0,ne.data.byteLength-i)),g>0&&(ne.data=Bt(ne.data,t.subarray(0,g)),ne.state=0))}u<r?(b=t[u]&31,A=u,z=b,n=0):n=-1}else n=0}if(A>=0&&n>=0){const ne={data:t.subarray(A,r),type:z,state:n};s.push(ne)}if(s.length===0){const ne=this.getLastNalUnit(e.samples);ne&&(ne.data=Bt(ne.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 Ji(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=kr(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 Jn=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&&w.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(Jn*5,t-Jn)+1,n=0;for(;n<r;){let i=!1,s=-1,u=0;for(let f=n;f<t;f+=Jn)if(e[f]===71&&(t-f===Jn||e[f+Jn]===71)){if(u++,s===-1&&(s=f,s!==0&&(r=Math.min(s+Jn*99,e.length-Jn)+1)),i||(i=Us(e,f)===0),i&&u>1&&(s===0&&u>2||f+Jn>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:ft[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,g=this._txtTrack;let b=s.pid,A=s.pesData,z=u.pid,ne=f.pid,Q=u.pesData,le=f.pesData,me=null,Ge=this.pmtParsed,ut=this._pmtId,lt=e.length;if(this.remainderData&&(e=Bt(this.remainderData,e),lt=e.length,this.remainderData=null),lt<Jn&&!n)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:g};const Et=Math.max(0,Vi.syncOffset(e));lt-=(lt-Et)%Jn,lt<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,lt,e.buffer.byteLength-lt));let dt=0;for(let xt=Et;xt<lt;xt+=Jn)if(e[xt]===71){const Vt=!!(e[xt+1]&64),nr=Us(e,xt),Lt=(e[xt+3]&48)>>4;let Zt;if(Lt>1){if(Zt=xt+5+e[xt+4],Zt===xt+Jn)continue}else Zt=xt+4;switch(nr){case b:Vt&&(A&&(i=es(A))&&this.videoParser.parseAVCPES(s,g,i,!1,this._duration),A={data:[],size:0}),A&&(A.data.push(e.subarray(Zt,xt+Jn)),A.size+=xt+Jn-Zt);break;case z:if(Vt){if(Q&&(i=es(Q)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}Q={data:[],size:0}}Q&&(Q.data.push(e.subarray(Zt,xt+Jn)),Q.size+=xt+Jn-Zt);break;case ne:Vt&&(le&&(i=es(le))&&this.parseID3PES(f,i),le={data:[],size:0}),le&&(le.data.push(e.subarray(Zt,xt+Jn)),le.size+=xt+Jn-Zt);break;case 0:Vt&&(Zt+=e[Zt]+1),ut=this._pmtId=qa(e,Zt);break;case ut:{Vt&&(Zt+=e[Zt]+1);const Nr=ka(e,Zt,this.typeSupported,r,this.observer);b=Nr.videoPid,b>0&&(s.pid=b,s.segmentCodec=Nr.segmentVideoCodec),z=Nr.audioPid,z>0&&(u.pid=z,u.segmentCodec=Nr.segmentAudioCodec),ne=Nr.id3Pid,ne>0&&(f.pid=ne),me!==null&&!Ge&&(w.warn(`MPEG-TS PMT found at ${xt} after unknown PID '${me}'. Backtracking to sync byte @${Et} to parse all TS packets.`),me=null,xt=Et-188),Ge=this.pmtParsed=!0;break}case 17:case 8191:break;default:me=nr;break}}else dt++;dt>0&&Hs(this.observer,new Error(`Found ${dt} TS packet/s that do not start with 0x47`)),s.pesData=A,u.pesData=Q,f.pesData=le;const Pt={audioTrack:u,videoTrack:s,id3Track:f,textTrack:g};return n&&this.extractRemainingSamples(Pt),Pt}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 g;if(s&&(g=es(s))?(this.videoParser.parseAVCPES(r,i,g,!0,this._duration),r.pesData=null):r.pesData=s,u&&(g=es(u))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,g);break;case"mp3":this.parseMPEGPES(t,g);break;case"ac3":this.parseAC3PES(t,g);break}t.pesData=null}else u!=null&&u.size&&w.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(g=es(f))?(this.parseID3PES(n,g),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 A=n.missing,z=n.sample.unit.byteLength;if(A===-1)i=Bt(n.sample.unit,i);else{const ne=z-A;n.sample.unit.set(i.subarray(0,A),ne),e.samples.push(n.sample),r=n.missing}}let s,u;for(s=r,u=i.length;s<u-1&&!$i(i,s);s++);if(s!==r){let A;const z=s<u-1;if(z?A=`AAC PES did not start with ADTS header,offset:${s}`:A="No ADTS header found in AAC PES",Hs(this.observer,new Error(A),z),!z)return}wa(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(n){const A=sa(e.samplerate);f=n.sample.pts+A}else{w.warn("[tsdemuxer]: AAC PES unknown PTS");return}let g=0,b;for(;s<u;)if(b=aa(e,i,s,f,g),s+=b.length,b.missing){this.aacOverFlow=b;break}else for(g++;s<u-1&&!$i(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){w.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){w.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){w.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=a({},t,{type:this._videoTrack?Rn.emsg:Rn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function Us(o,e){return((o[e+1]&31)<<8)+o[e+2]}function qa(o,e){return(o[e+10]&31)<<8|o[e+11]}function ka(o,e,t,r,n){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(o[e+1]&15)<<8|o[e+2],u=e+3+s-4,f=(o[e+10]&15)<<8|o[e+11];for(e+=12+f;e<u;){const g=Us(o,e),b=(o[e+3]&15)<<8|o[e+4];switch(o[e]){case 207:if(!r){Le("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=g);break;case 21:i.id3Pid===-1&&(i.id3Pid=g);break;case 219:if(!r){Le("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=g,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?w.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=g,i.segmentAudioCodec="mp3");break;case 193:if(!r){Le("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=g,i.segmentAudioCodec="ac3"):w.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&b>0){let A=e+5,z=b;for(;z>2;){switch(o[A]){case 106:t.ac3!==!0?w.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=g,i.segmentAudioCodec="ac3");break}const Q=o[A+1]+2;A+=Q,z-=Q}}break;case 194:case 135:return Hs(n,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return Hs(n,new Error("Unsupported HEVC in M2TS found")),i}e+=b+5}return i}function Hs(o,e,t){w.warn(`parsing error: ${e.message}`),o.emit(c.ERROR,c.ERROR,{type:y.MEDIA_ERROR,details:x.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Le(o){w.log(`${o} with AES-128-CBC encryption found in unencrypted stream`)}function es(o){let e=0,t,r,n,i,s;const u=o.data;if(!o||o.size===0)return null;for(;u[0].length<19&&u.length>1;)u[0]=Bt(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>o.size-6)return null;const g=t[7];g&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,g&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&&(w.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),n=t[8];let b=n+9;if(o.size<=b)return null;o.size-=b;const A=new Uint8Array(o.size);for(let z=0,ne=u.length;z<ne;z++){t=u[z];let Q=t.byteLength;if(b)if(b>Q){b-=Q;continue}else t=t.subarray(b),Q-=b,b=0;A.set(t,e),e+=Q}return r&&(r-=n+3),{data:A,pts:i,dts:s,len:r}}return null}class ha 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=Pe(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&ae(t)!==void 0&&hs(e,r)<=16)return!1;for(let n=e.length;r<n;r++)if(Ca(e,r))return w.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Aa(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Fs(e,t,r,this.basePTS,this.frameIndex)}}class Gs{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 zi=Math.pow(2,32)-1;class pt{static init(){pt.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 pt.types)pt.types.hasOwnProperty(e)&&(pt.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]);pt.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]);pt.STTS=pt.STSC=pt.STCO=i,pt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),pt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),pt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),pt.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]);pt.FTYP=pt.box(pt.types.ftyp,s,f,s,u),pt.DINF=pt.box(pt.types.dinf,pt.box(pt.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 pt.box(pt.types.hdlr,pt.HDLR_TYPES[e])}static mdat(e){return pt.box(pt.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(zi+1)),n=Math.floor(t%(zi+1));return pt.box(pt.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 pt.box(pt.types.mdia,pt.mdhd(e.timescale,e.duration),pt.hdlr(e.type),pt.minf(e))}static mfhd(e){return pt.box(pt.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"?pt.box(pt.types.minf,pt.box(pt.types.smhd,pt.SMHD),pt.DINF,pt.stbl(e)):pt.box(pt.types.minf,pt.box(pt.types.vmhd,pt.VMHD),pt.DINF,pt.stbl(e))}static moof(e,t,r){return pt.box(pt.types.moof,pt.mfhd(e),pt.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=pt.trak(e[t]);return pt.box.apply(null,[pt.types.moov,pt.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(pt.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=pt.trex(e[t]);return pt.box.apply(null,[pt.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(zi+1)),n=Math.floor(t%(zi+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,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 pt.box(pt.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 pt.box(pt.types.sdtp,r)}static stbl(e){return pt.box(pt.types.stbl,pt.stsd(e),pt.box(pt.types.stts,pt.STTS),pt.box(pt.types.stsc,pt.STSC),pt.box(pt.types.stsz,pt.STSZ),pt.box(pt.types.stco,pt.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=pt.box(pt.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,g=e.height,b=e.pixelRatio[0],A=e.pixelRatio[1];return pt.box(pt.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,g>>8&255,g&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,pt.box(pt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),pt.box(pt.types.pasp,new Uint8Array([b>>24,b>>16&255,b>>8&255,b&255,A>>24,A>>16&255,A>>8&255,A&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 pt.box(pt.types.mp4a,pt.audioStsd(e),pt.box(pt.types.esds,pt.esds(e)))}static mp3(e){return pt.box(pt.types[".mp3"],pt.audioStsd(e))}static ac3(e){return pt.box(pt.types["ac-3"],pt.audioStsd(e),pt.box(pt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?pt.box(pt.types.stsd,pt.STSD,pt.mp3(e)):e.segmentCodec==="ac3"?pt.box(pt.types.stsd,pt.STSD,pt.ac3(e)):pt.box(pt.types.stsd,pt.STSD,pt.mp4a(e)):pt.box(pt.types.stsd,pt.STSD,pt.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,n=e.width,i=e.height,s=Math.floor(r/(zi+1)),u=Math.floor(r%(zi+1));return pt.box(pt.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=pt.sdtp(e),n=e.id,i=Math.floor(t/(zi+1)),s=Math.floor(t%(zi+1));return pt.box(pt.types.traf,pt.box(pt.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),pt.box(pt.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])),pt.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,pt.box(pt.types.trak,pt.tkhd(e),pt.mdia(e))}static trex(e){const t=e.id;return pt.box(pt.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,g,b,A,z;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],g=f.duration,b=f.size,A=f.flags,z=f.cts,s.set([g>>>24&255,g>>>16&255,g>>>8&255,g&255,b>>>24&255,b>>>16&255,b>>>8&255,b&255,A.isLeading<<2|A.dependsOn,A.isDependedOn<<6|A.hasRedundancy<<4|A.paddingValue<<1|A.isNonSync,A.degradPrio&61440,A.degradPrio&15,z>>>24&255,z>>>16&255,z>>>8&255,z&255],12+16*u);return pt.box(pt.types.trun,s)}static initSegment(e){pt.types||pt.init();const t=pt.moov(e);return Bt(pt.FTYP,t)}}pt.types=void 0,pt.HDLR_TYPES=void 0,pt.STTS=void 0,pt.STSC=void 0,pt.STCO=void 0,pt.STSZ=void 0,pt.VMHD=void 0,pt.SMHD=void 0,pt.STSD=void 0,pt.FTYP=void 0,pt.DINF=void 0;const da=9e4;function js(o,e,t=1,r=!1){const n=o*e*t;return r?Math.round(n):n}function Qa(o,e,t=1,r=!1){return js(o,e,1/t,r)}function ds(o,e=!1){return js(o,1e3,1/da,e)}function La(o,e=1){return js(o,da,1/e)}const Ks=10*1e3,Oa=1024,fa=1152,Pa=1536;let fs=null,pa=null;class Ts{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(pa===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);pa=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){w.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){w.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){w.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=gi(u,r),f=u-i),f>0?i:u},r);return t&&w.debug("PTS rollover detected"),n}remux(e,t,r,n,i,s,u,f){let g,b,A,z,ne,Q,le=i,me=i;const Ge=e.pid>-1,ut=t.pid>-1,lt=t.samples.length,Et=e.samples.length>0,dt=u&<>0||lt>1;if((!Ge||Et)&&(!ut||dt)||this.ISGenerated||u){if(this.ISGenerated){var xt,Vt,nr,Lt;const Pr=this.videoTrackConfig;Pr&&(t.width!==Pr.width||t.height!==Pr.height||((xt=t.pixelRatio)==null?void 0:xt[0])!==((Vt=Pr.pixelRatio)==null?void 0:Vt[0])||((nr=t.pixelRatio)==null?void 0:nr[1])!==((Lt=Pr.pixelRatio)==null?void 0:Lt[1]))&&this.resetInitSegment()}else A=this.generateIS(e,t,i,s);const Zt=this.isVideoContiguous;let Nr=-1,ur;if(dt&&(Nr=Ja(t.samples),!Zt&&this.config.forceKeyFrameOnDiscontinuity))if(Q=!0,Nr>0){w.warn(`[mp4-remuxer]: Dropped ${Nr} out of ${lt} video samples due to a missing keyframe`);const Pr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Nr),t.dropped+=Nr,me+=(t.samples[0].pts-Pr)/t.inputTimeScale,ur=me}else Nr===-1&&(w.warn(`[mp4-remuxer]: No keyframe found out of ${lt} video samples`),Q=!1);if(this.ISGenerated){if(Et&&dt){const Pr=this.getVideoStartPts(t.samples),yr=(gi(e.samples[0].pts,Pr)-Pr)/t.inputTimeScale;le+=Math.max(0,yr),me+=Math.max(0,-yr)}if(Et){if(e.samplerate||(w.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),A=this.generateIS(e,t,i,s)),b=this.remuxAudio(e,le,this.isAudioContiguous,s,ut||dt||f===Ue.AUDIO?me:void 0),dt){const Pr=b?b.endPTS-b.startPTS:0;t.inputTimeScale||(w.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),A=this.generateIS(e,t,i,s)),g=this.remuxVideo(t,me,Zt,Pr)}}else dt&&(g=this.remuxVideo(t,me,Zt,0));g&&(g.firstKeyFrame=Nr,g.independent=Nr!==-1,g.firstKeyFramePTS=ur)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(ne=Ma(r,i,this._initPTS,this._initDTS)),n.samples.length&&(z=eo(n,i,this._initPTS))),{audio:b,video:g,initSegment:A,independent:Q,text:z,id3:ne}}generateIS(e,t,r,n){const i=e.samples,s=t.samples,u=this.typeSupported,f={},g=this._initPTS;let b=!g||n,A="audio/mp4",z,ne,Q;if(b&&(z=ne=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(A="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:A,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):pt.initSegment([e]),metadata:{channelCount:e.channelCount}},b&&(Q=e.inputTimeScale,!g||Q!==g.timescale?z=ne=i[0].pts-Math.round(Q*r):b=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:pt.initSegment([t]),metadata:{width:t.width,height:t.height}},b)if(Q=t.inputTimeScale,!g||Q!==g.timescale){const le=this.getVideoStartPts(s),me=Math.round(Q*r);ne=Math.min(ne,gi(s[0].dts,le)-me),z=Math.min(z,le-me)}else b=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,b?(this._initPTS={baseTime:z,timescale:Q},this._initDTS={baseTime:ne,timescale:Q}):z=Q=void 0,{tracks:f,initPTS:z,timescale:Q}}remuxVideo(e,t,r,n){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,g=this._initPTS;let b=this.nextAvcDts,A=8,z=this.videoSampleDuration,ne,Q,le=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,Ge=!1;if(!r||b===null){const dr=t*i,cr=s[0].pts-gi(s[0].dts,s[0].pts);fs&&b!==null&&Math.abs(dr-cr-b)<15e3?r=!0:b=dr-cr}const ut=g.baseTime*i/g.timescale;for(let dr=0;dr<f;dr++){const cr=s[dr];cr.pts=gi(cr.pts-ut,b),cr.dts=gi(cr.dts-ut,b),cr.dts<s[dr>0?dr-1:dr].dts&&(Ge=!0)}Ge&&s.sort(function(dr,cr){const dn=dr.dts-cr.dts,Zr=dr.pts-cr.pts;return dn||Zr}),ne=s[0].dts,Q=s[s.length-1].dts;const lt=Q-ne,Et=lt?Math.round(lt/(f-1)):z||e.inputTimeScale/30;if(r){const dr=ne-b,cr=dr>Et,dn=dr<-1;if((cr||dn)&&(cr?w.warn(`AVC: ${ds(dr,!0)} ms (${dr}dts) hole between fragments detected at ${t.toFixed(3)}`):w.warn(`AVC: ${ds(-dr,!0)} ms (${dr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!dn||b>=s[0].pts||fs)){ne=b;const Zr=s[0].pts-dr;if(cr)s[0].dts=ne,s[0].pts=Zr;else for(let xn=0;xn<s.length&&!(s[xn].dts>Zr);xn++)s[xn].dts-=dr,s[xn].pts-=dr;w.log(`Video: Initial PTS/DTS adjusted: ${ds(Zr,!0)}/${ds(ne,!0)}, delta: ${ds(dr,!0)} ms`)}}ne=Math.max(0,ne);let dt=0,Pt=0,xt=ne;for(let dr=0;dr<f;dr++){const cr=s[dr],dn=cr.units,Zr=dn.length;let xn=0;for(let ei=0;ei<Zr;ei++)xn+=dn[ei].data.length;Pt+=xn,dt+=Zr,cr.length=xn,cr.dts<xt?(cr.dts=xt,xt+=Et/4|0||1):xt=cr.dts,le=Math.min(cr.pts,le),me=Math.max(cr.pts,me)}Q=s[f-1].dts;const Vt=Pt+4*dt+8;let nr;try{nr=new Uint8Array(Vt)}catch(dr){this.observer.emit(c.ERROR,c.ERROR,{type:y.MUX_ERROR,details:x.REMUX_ALLOC_ERROR,fatal:!1,error:dr,bytes:Vt,reason:`fail allocating video mdat ${Vt}`});return}const Lt=new DataView(nr.buffer);Lt.setUint32(0,Vt),nr.set(pt.types.mdat,4);let Zt=!1,Nr=Number.POSITIVE_INFINITY,ur=Number.POSITIVE_INFINITY,Pr=Number.NEGATIVE_INFINITY,Ir=Number.NEGATIVE_INFINITY;for(let dr=0;dr<f;dr++){const cr=s[dr],dn=cr.units;let Zr=0;for(let oi=0,hi=dn.length;oi<hi;oi++){const Mi=dn[oi],_a=Mi.data,bo=Mi.data.byteLength;Lt.setUint32(A,bo),A+=4,nr.set(_a,A),A+=bo,Zr+=4+bo}let xn;if(dr<f-1)z=s[dr+1].dts-cr.dts,xn=s[dr+1].pts-cr.pts;else{const oi=this.config,hi=dr>0?cr.dts-s[dr-1].dts:Et;if(xn=dr>0?cr.pts-s[dr-1].pts:Et,oi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Mi=Math.floor(oi.maxBufferHole*i),_a=(n?le+n*i:this.nextAudioPts)-cr.pts;_a>Mi?(z=_a-hi,z<0?z=hi:Zt=!0,w.log(`[mp4-remuxer]: It is approximately ${_a/90} ms to the next segment; using duration ${z/90} ms for the last video frame.`)):z=hi}else z=hi}const ei=Math.round(cr.pts-cr.dts);Nr=Math.min(Nr,z),Pr=Math.max(Pr,z),ur=Math.min(ur,xn),Ir=Math.max(Ir,xn),u.push(new F(cr.key,z,Zr,ei))}if(u.length){if(fs){if(fs<70){const dr=u[0].flags;dr.dependsOn=2,dr.isNonSync=0}}else if(pa&&Ir-ur<Pr-Nr&&Et/Pr<.025&&u[0].cts===0){w.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let dr=ne;for(let cr=0,dn=u.length;cr<dn;cr++){const Zr=dr+u[cr].duration,xn=dr+u[cr].cts;if(cr<dn-1){const ei=Zr+u[cr+1].cts;u[cr].duration=ei-xn}else u[cr].duration=cr?u[cr-1].duration:Et;u[cr].cts=0,dr=Zr}}}z=Zt||!z?Et:z,this.nextAvcDts=b=Q+z,this.videoSampleDuration=z,this.isVideoContiguous=!0;const Sn={data1:pt.moof(e.sequenceNumber++,ne,a({},e,{samples:u})),data2:nr,startPTS:le/i,endPTS:(me+z)/i,startDTS:ne/i,endDTS:b/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Sn}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,g=this.getSamplesPerFrame(e),b=g*f,A=this._initPTS,z=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,ne=[],Q=i!==void 0;let le=e.samples,me=z?0:8,Ge=this.nextAudioPts||-1;const ut=t*s,lt=A.baseTime*s/A.timescale;if(this.isAudioContiguous=r=r||le.length&&Ge>0&&(n&&Math.abs(ut-Ge)<9e3||Math.abs(gi(le[0].pts-lt,ut)-Ge)<20*b),le.forEach(function(yr){yr.pts=gi(yr.pts-lt,ut)}),!r||Ge<0){if(le=le.filter(yr=>yr.pts>=0),!le.length)return;i===0?Ge=0:n&&!Q?Ge=Math.max(0,ut):Ge=le[0].pts}if(e.segmentCodec==="aac"){const yr=this.config.maxAudioFramesDrift;for(let ln=0,Sn=Ge;ln<le.length;ln++){const dr=le[ln],cr=dr.pts,dn=cr-Sn,Zr=Math.abs(1e3*dn/s);if(dn<=-yr*b&&Q)ln===0&&(w.warn(`Audio frame @ ${(cr/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*dn/s)} ms.`),this.nextAudioPts=Ge=Sn=cr);else if(dn>=yr*b&&Zr<Ks&&Q){let xn=Math.round(dn/b);Sn=cr-xn*b,Sn<0&&(xn--,Sn+=b),ln===0&&(this.nextAudioPts=Ge=Sn),w.warn(`[mp4-remuxer]: Injecting ${xn} audio frame @ ${(Sn/s).toFixed(3)}s due to ${Math.round(1e3*dn/s)} ms gap.`);for(let ei=0;ei<xn;ei++){const oi=Math.max(Sn,0);let hi=Gs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);hi||(w.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),hi=dr.unit.subarray()),le.splice(ln,0,{unit:hi,pts:oi}),Sn+=b,ln++}}dr.pts=Sn,Sn+=b}}let Et=null,dt=null,Pt,xt=0,Vt=le.length;for(;Vt--;)xt+=le[Vt].unit.byteLength;for(let yr=0,ln=le.length;yr<ln;yr++){const Sn=le[yr],dr=Sn.unit;let cr=Sn.pts;if(dt!==null){const Zr=ne[yr-1];Zr.duration=Math.round((cr-dt)/f)}else if(r&&e.segmentCodec==="aac"&&(cr=Ge),Et=cr,xt>0){xt+=me;try{Pt=new Uint8Array(xt)}catch(Zr){this.observer.emit(c.ERROR,c.ERROR,{type:y.MUX_ERROR,details:x.REMUX_ALLOC_ERROR,fatal:!1,error:Zr,bytes:xt,reason:`fail allocating audio mdat ${xt}`});return}z||(new DataView(Pt.buffer).setUint32(0,xt),Pt.set(pt.types.mdat,4))}else return;Pt.set(dr,me);const dn=dr.byteLength;me+=dn,ne.push(new F(!0,g,dn,0)),dt=cr}const nr=ne.length;if(!nr)return;const Lt=ne[ne.length-1];this.nextAudioPts=Ge=dt+f*Lt.duration;const Zt=z?new Uint8Array(0):pt.moof(e.sequenceNumber++,Et/f,a({},e,{samples:ne}));e.samples=[];const Nr=Et/s,ur=Ge/s,Ir={data1:Zt,data2:Pt,startPTS:Nr,endPTS:ur,startDTS:Nr,endDTS:ur,type:"audio",hasAudio:!0,hasVideo:!1,nb:nr};return this.isAudioContiguous=!0,Ir}remuxEmptyAudio(e,t,r,n){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,u=i/s,f=this.nextAudioPts,g=this._initDTS,b=g.baseTime*9e4/g.timescale,A=(f!==null?f:n.startDTS*i)+b,z=n.endDTS*i+b,ne=u*Oa,Q=Math.ceil((z-A)/ne),le=Gs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(w.warn("[mp4-remuxer]: remux empty Audio"),!le){w.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const me=[];for(let Ge=0;Ge<Q;Ge++){const ut=A+Ge*ne;me.push({unit:le,pts:ut,dts:ut})}return e.samples=me,this.remuxAudio(e,t,r,!1)}}function gi(o,e){let t;if(e===null)return o;for(e<o?t=-8589934592:t=8589934592;Math.abs(o-e)>4294967296;)o+=t;return o}function Ja(o){for(let e=0;e<o.length;e++)if(o[e].key)return e;return-1}function Ma(o,e,t,r){const n=o.samples.length;if(!n)return;const i=o.inputTimeScale;for(let u=0;u<n;u++){const f=o.samples[u];f.pts=gi(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=gi(f.dts-r.baseTime*i/r.timescale,e*i)/i}const s=o.samples;return o.samples=[],{samples:s}}function eo(o,e,t){const r=o.samples.length;if(!r)return;const n=o.inputTimeScale;for(let s=0;s<r;s++){const u=o.samples[s];u.pts=gi(u.pts-t.baseTime*n/t.timescale,e*n)/n}o.samples.sort((s,u)=>s.pts-u.pts);const i=o.samples;return o.samples=[],{samples:i}}class F{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(W(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=Ze(e);n.audio&&(t=d(n.audio,M.AUDIO)),n.video&&(r=d(n.video,M.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"}:w.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:g,lastEndTime:b}=this;const A={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};N(b)||(b=this.lastEndTime=i||0);const z=t.samples;if(!(z!=null&&z.length))return A;const ne={initPTS:void 0,timescale:1};let Q=this.initData;if((u=Q)!=null&&u.length||(this.generateInitSegment(z),Q=this.initData),!((f=Q)!=null&&f.length))return w.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),A;this.emitInitSegment&&(ne.tracks=this.initTracks,this.emitInitSegment=!1);const le=Dt(z,Q),me=Ae(Q,z),Ge=me===null?i:me;(h(g,Ge,i,le)||ne.timescale!==g.timescale&&s)&&(ne.initPTS=Ge-i,g&&g.timescale===1&&w.warn(`Adjusting initPTS by ${ne.initPTS-g.baseTime}`),this.initPTS=g={baseTime:ne.initPTS,timescale:1});const ut=e?Ge-g.baseTime/g.timescale:b,lt=ut+le;Xt(Q,z,g.baseTime/g.timescale),le>0?this.lastEndTime=lt:(w.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Et=!!Q.audio,dt=!!Q.video;let Pt="";Et&&(Pt+="audio"),dt&&(Pt+="video");const xt={data1:z,startPTS:ut,startDTS:ut,endPTS:lt,endDTS:lt,type:Pt,hasAudio:Et,hasVideo:dt,nb:1,dropped:0};return A.audio=xt.type==="audio"?xt:void 0,A.video=xt.type!=="audio"?xt:void 0,A.initSegment=ne,A.id3=Ma(r,i,g,g),n.samples.length&&(A.text=eo(n,i,g)),A}}function h(o,e,t,r){if(o===null)return!0;const n=Math.max(r,1),i=e-o.baseTime/o.timescale;return Math.abs(i-t)>n}function d(o,e){const t=o==null?void 0:o.codec;if(t&&t.length>4)return t;if(e===M.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return ir(t,!1);const r="mp4a.40.5";return w.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return w.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(o){w.debug("Unable to use Performance API on this environment"),p=Be==null?void 0:Be.Date.now}const C=[{demux:Za,remux:l},{demux:Vi,remux:Ts},{demux:Da,remux:Ts},{demux:ha,remux:Ts}];C.splice(2,0,{demux:la,remux:Ts});class B{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:g,discontinuity:b,trackSwitch:A,accurateTimeOffset:z,timeOffset:ne,initSegmentChange:Q}=n||u,{audioCodec:le,videoCodec:me,defaultInitPts:Ge,duration:ut,initSegmentData:lt}=f,Et=fe(s,t);if(Et&&Et.method==="AES-128"){const Vt=this.getDecrypter();if(Vt.isSync()){let nr=Vt.softwareDecrypt(s,Et.key.buffer,Et.iv.buffer);if(r.part>-1&&(nr=Vt.flush()),!nr)return i.executeEnd=p(),Se(r);s=new Uint8Array(nr)}else return this.decryptionPromise=Vt.webCryptoDecrypt(s,Et.key.buffer,Et.iv.buffer).then(nr=>{const Lt=this.push(nr,null,r);return this.decryptionPromise=null,Lt}),this.decryptionPromise}const dt=this.needsProbing(b,A);if(dt){const Vt=this.configureTransmuxer(s);if(Vt)return w.warn(`[transmuxer] ${Vt.message}`),this.observer.emit(c.ERROR,c.ERROR,{type:y.MEDIA_ERROR,details:x.FRAG_PARSING_ERROR,fatal:!1,error:Vt,reason:Vt.message}),i.executeEnd=p(),Se(r)}(b||A||Q||dt)&&this.resetInitSegment(lt,le,me,ut,t),(b||Q||dt)&&this.resetInitialTimestamp(Ge),g||this.resetContiguity();const Pt=this.transmux(s,Et,ne,z,r),xt=this.currentTransmuxState;return xt.contiguous=!0,xt.discontinuity=!1,xt.trackSwitch=!1,i.executeEnd=p(),Pt}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 A=r.flush();A&&s.push(this.push(A,null,e))}const{demuxer:f,remuxer:g}=this;if(!f||!g)return t.executeEnd=p(),[Se(e)];const b=f.flush(u);return Fe(b)?b.then(A=>(this.flushRemux(s,A,e),s)):(this.flushRemux(s,b,e),s)}flushRemux(e,t,r){const{audioTrack:n,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:g}=this.currentTransmuxState;w.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const b=this.remuxer.remux(n,i,s,u,g,f,!0,this.id);e.push({remuxResult:b,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 z=0,ne=C.length;z<ne;z++){var u;if((u=C[z].demux)!=null&&u.probe(e)){s=C[z];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const f=this.demuxer,g=this.remuxer,b=s.remux,A=s.demux;(!g||!(g instanceof b))&&(this.remuxer=new b(r,t,n,i)),(!f||!(f instanceof A))&&(this.demuxer=new A(r,t,n),this.probe=A.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Ji(this.config)),e}}function fe(o,e){let t=null;return o.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Se=o=>({remuxResult:{},chunkMeta:o});function Fe(o){return"then"in o&&o.then instanceof Function}class Je{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 ct{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 vt={exports:{}};(function(o){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function n(f,g,b){this.fn=f,this.context=g,this.once=b||!1}function i(f,g,b,A,z){if(typeof b!="function")throw new TypeError("The listener must be a function");var ne=new n(b,A||f,z),Q=t?t+g:g;return f._events[Q]?f._events[Q].fn?f._events[Q]=[f._events[Q],ne]:f._events[Q].push(ne):(f._events[Q]=ne,f._eventsCount++),f}function s(f,g){--f._eventsCount===0?f._events=new r:delete f._events[g]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var g=[],b,A;if(this._eventsCount===0)return g;for(A in b=this._events)e.call(b,A)&&g.push(t?A.slice(1):A);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(b)):g},u.prototype.listeners=function(g){var b=t?t+g:g,A=this._events[b];if(!A)return[];if(A.fn)return[A.fn];for(var z=0,ne=A.length,Q=new Array(ne);z<ne;z++)Q[z]=A[z].fn;return Q},u.prototype.listenerCount=function(g){var b=t?t+g:g,A=this._events[b];return A?A.fn?1:A.length:0},u.prototype.emit=function(g,b,A,z,ne,Q){var le=t?t+g:g;if(!this._events[le])return!1;var me=this._events[le],Ge=arguments.length,ut,lt;if(me.fn){switch(me.once&&this.removeListener(g,me.fn,void 0,!0),Ge){case 1:return me.fn.call(me.context),!0;case 2:return me.fn.call(me.context,b),!0;case 3:return me.fn.call(me.context,b,A),!0;case 4:return me.fn.call(me.context,b,A,z),!0;case 5:return me.fn.call(me.context,b,A,z,ne),!0;case 6:return me.fn.call(me.context,b,A,z,ne,Q),!0}for(lt=1,ut=new Array(Ge-1);lt<Ge;lt++)ut[lt-1]=arguments[lt];me.fn.apply(me.context,ut)}else{var Et=me.length,dt;for(lt=0;lt<Et;lt++)switch(me[lt].once&&this.removeListener(g,me[lt].fn,void 0,!0),Ge){case 1:me[lt].fn.call(me[lt].context);break;case 2:me[lt].fn.call(me[lt].context,b);break;case 3:me[lt].fn.call(me[lt].context,b,A);break;case 4:me[lt].fn.call(me[lt].context,b,A,z);break;default:if(!ut)for(dt=1,ut=new Array(Ge-1);dt<Ge;dt++)ut[dt-1]=arguments[dt];me[lt].fn.apply(me[lt].context,ut)}}return!0},u.prototype.on=function(g,b,A){return i(this,g,b,A,!1)},u.prototype.once=function(g,b,A){return i(this,g,b,A,!0)},u.prototype.removeListener=function(g,b,A,z){var ne=t?t+g:g;if(!this._events[ne])return this;if(!b)return s(this,ne),this;var Q=this._events[ne];if(Q.fn)Q.fn===b&&(!z||Q.once)&&(!A||Q.context===A)&&s(this,ne);else{for(var le=0,me=[],Ge=Q.length;le<Ge;le++)(Q[le].fn!==b||z&&!Q[le].once||A&&Q[le].context!==A)&&me.push(Q[le]);me.length?this._events[ne]=me.length===1?me[0]:me:s(this,ne)}return this},u.prototype.removeAllListeners=function(g){var b;return g?(b=t?t+g:g,this._events[b]&&s(this,b)):(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,o.exports=u})(vt);var kt=vt.exports,zt=Z(kt);class qt{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=(g,b)=>{b=b||{},b.frag=this.frag,b.id=this.id,g===c.ERROR&&(this.error=b.error),this.hls.trigger(g,b)};this.observer=new zt,this.observer.on(c.FRAG_DECRYPTED,s),this.observer.on(c.ERROR,s);const u=rn(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||ba())){try{i.workerPath?(w.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=na(i.workerPath)):(w.log(`injecting Web Worker for "${t}"`),this.workerContext=ra()),this.onwmsg=A=>this.onWorkerMessage(A);const{worker:b}=this.workerContext;b.addEventListener("message",this.onwmsg),b.onerror=A=>{const z=new Error(`${A.message} (${A.filename}:${A.lineno})`);i.enableWorker=!1,w.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(c.ERROR,{type:y.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:z})},b.postMessage({cmd:"init",typeSupported:f,vendor:"",id:t,config:JSON.stringify(i)})}catch(b){w.warn(`Error setting up "${t}" Web Worker, fallback to inline`,b),this.resetWorker(),this.error=null,this.transmuxer=new B(this.observer,f,i,"",t)}return}this.transmuxer=new B(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,g,b){var A,z;g.transmuxing.start=self.performance.now();const{transmuxer:ne}=this,Q=s?s.start:i.start,le=i.decryptdata,me=this.frag,Ge=!(me&&i.cc===me.cc),ut=!(me&&g.level===me.level),lt=me?g.sn-me.sn:-1,Et=this.part?g.part-this.part.index:-1,dt=lt===0&&g.id>1&&g.id===(me==null?void 0:me.stats.chunkCount),Pt=!ut&&(lt===1||lt===0&&(Et===1||dt&&Et<=0)),xt=self.performance.now();(ut||lt||i.stats.parsing.start===0)&&(i.stats.parsing.start=xt),s&&(Et||!Pt)&&(s.stats.parsing.start=xt);const Vt=!(me&&((A=i.initSegment)==null?void 0:A.url)===((z=me.initSegment)==null?void 0:z.url)),nr=new ct(Ge,Pt,f,ut,Q,Vt);if(!Pt||Ge||Vt){w.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${g.sn} p: ${g.part} level: ${g.level} id: ${g.id}
|
|
discontinuity: ${Ge}
|
|
trackSwitch: ${ut}
|
|
contiguous: ${Pt}
|
|
accurateTimeOffset: ${f}
|
|
timeOffset: ${Q}
|
|
initSegmentChange: ${Vt}`);const Lt=new Je(r,n,t,u,b);this.configureTransmuxer(Lt)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:le,chunkMeta:g,state:nr},e instanceof ArrayBuffer?[e]:[]);else if(ne){const Lt=ne.push(e,le,g,nr);Fe(Lt)?(ne.async=!0,Lt.then(Zt=>{this.handleTransmuxComplete(Zt)}).catch(Zt=>{this.transmuxerError(Zt,g,"transmuxer-interface push error")})):(ne.async=!1,this.handleTransmuxComplete(Lt))}}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);Fe(r)||t.async?(Fe(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:y.MEDIA_ERROR,details:x.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)){w.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":w[t.data.logType]&&w[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 hr=100;class Ar extends cs{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",Ue.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===It.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=It.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(hr),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=It.IDLE):(this.loadedmetadata=!1,this.state=It.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case It.IDLE:this.doTickIdle();break;case It.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=It.WAITING_INIT_PTS}break}case It.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=It.IDLE}break}case It.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=It.FRAG_LOADING;const f=s.flush(),g={frag:n,part:i,payload:f,networkDetails:null};this._handleFragmentLoadProgress(g),u&&super._handleFragmentLoadComplete(g)}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(),g=cn.bufferInfo(this.mediaBuffer,f,this.config.maxBufferHole);ki(g.end,this.config.maxFragLookUpTolerance,n)<0&&(this.log(`Waiting fragment cc (${n.cc}) @ ${n.start} cancelled because another fragment at ${g.end} is needed`),this.clearWaitingFragment())}}else this.state=It.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=It.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=It.WAITING_TRACK;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,M.AUDIO,Ue.AUDIO));const g=this.getFwdBufferInfo(f,Ue.AUDIO);if(g===null)return;if(!this.switchingTrack&&this._streamEnded(g,u)){e.trigger(c.BUFFER_EOS,{type:"audio"}),this.state=It.ENDED;return}const b=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ue.MAIN),A=g.len,z=this.getMaxBufferLength(b==null?void 0:b.len),ne=u.fragments,Q=ne[0].start,le=this.getLoadPosition(),me=this.flushing?le:g.end;if(this.switchingTrack&&r){const Et=le;u.PTSKnown&&Et<Q&&(g.end>Q||g.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=Q+.05)}if(A>=z&&!this.switchingTrack&&me<ne[ne.length-1].start)return;let Ge=this.getNextFragment(me,u),ut=!1;if(Ge&&this.isLoopLoading(Ge,me)&&(ut=!!Ge.gap,Ge=this.getNextFragmentLoopLoading(Ge,u,g,Ue.MAIN,z)),!Ge){this.bufferFlushed=!0;return}const lt=b&&Ge.start>b.end+u.targetduration;if(lt||!(b!=null&&b.len)&&g.len){const Et=this.getAppendedFrag(Ge.start,Ue.MAIN);if(Et===null||(ut||(ut=!!Et.gap||!!lt&&b.len===0),lt&&!ut||ut&&g.nextStart&&g.nextStart<Et.end))return}this.loadFragment(Ge,s,me)}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 Gn(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(hr):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=It.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=It.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 b=this.mainDetails;if(i.deltaUpdateFailed||!b)return;if(!u.details&&i.hasProgramDateTime&&b.hasProgramDateTime)bi(i,b),f=i.fragments[0].start;else{var g;f=this.alignPlaylists(i,u.details,(g=this.levelLastLoaded)==null?void 0:g.details)}}u.details=i,this.levelLastLoaded=u,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,f),this.state===It.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=It.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 g=f[u];if(!g){this.warn("Audio track is undefined on fragment load progress");return}const b=g.details;if(!b){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const A=s.defaultAudioCodec||g.audioCodec||"mp4a.40.2";let z=this.transmuxer;z||(z=this.transmuxer=new qt(this.hls,Ue.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const ne=this.initPTS[r.cc],Q=(t=r.initSegment)==null?void 0:t.data;if(ne!==void 0){const me=n?n.index:-1,Ge=me!==-1,ut=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,me,Ge);z.push(i,Q,A,"",r,n,b.totalduration,!1,ut,ne)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${b.startSN} ,${b.endSN}],track ${u}`);const{cache:le}=this.waitingData=this.waitingData||{frag:r,part:n,cache:new ta,complete:!1};le.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=It.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!==Ue.AUDIO){if(!this.loadedmetadata&&r.type===Ue.MAIN){const i=this.videoBuffer||this.media;i&&cn.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,te({},i)))}this.fragBufferedComplete(r,n)}onError(e,t){var r;if(t.fatal){this.state=It.ERROR;return}switch(t.details){case x.FRAG_GAP:case x.FRAG_PARSING_ERROR:case x.FRAG_DECRYPT_ERROR:case x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ue.AUDIO,t);break;case x.AUDIO_TRACK_LOAD_ERROR:case x.AUDIO_TRACK_LOAD_TIMEOUT:case x.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===It.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===Wt.AUDIO_TRACK&&(this.state=It.IDLE);break;case x.BUFFER_APPEND_ERROR:case x.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===x.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case x.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==M.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==M.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===It.ENDED&&(this.state=It.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,Ue.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:g,level:b}=u,{details:A}=b,{audio:z,text:ne,id3:Q,initSegment:le}=i;if(this.fragContextChanged(f)||!A){this.fragmentTracker.removeFragment(f);return}if(this.state=It.PARSING,this.switchingTrack&&z&&this.completeAudioSwitch(this.switchingTrack),le!=null&&le.tracks){const me=f.initSegment||f;this._bufferInitSegment(b,le.tracks,me,s),n.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:me,id:r,tracks:le.tracks})}if(z){const{startPTS:me,endPTS:Ge,startDTS:ut,endDTS:lt}=z;g&&(g.elementaryStreams[M.AUDIO]={startPTS:me,endPTS:Ge,startDTS:ut,endDTS:lt}),f.setElementaryStreamInfo(M.AUDIO,me,Ge,ut,lt),this.bufferFragmentData(z,f,g,s)}if(Q!=null&&(t=Q.samples)!=null&&t.length){const me=a({id:r,frag:f,details:A},Q);n.trigger(c.FRAG_PARSING_METADATA,me)}if(ne){const me=a({id:r,frag:f,details:A},ne);n.trigger(c.FRAG_PARSING_USERDATA,me)}}_bufferInitSegment(e,t,r,n){if(this.state!==It.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===zn.NOT_LOADED||n===zn.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=It.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&bi(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;Ai({name:t,lang:r,assocLang:n,characteristics:i,audioCodec:s,channels:u},e,Di)||(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,te({},e))}}function Rr(o,e){if(o.length!==e.length)return!1;for(let t=0;t<o.length;t++)if(!Cr(o[t].attrs,e[t].attrs))return!1;return!0}function Cr(o,e,t){const r=o["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>o[n]!==e[n])}function mn(o,e){return e.label.toLowerCase()===o.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(o.lang||"").toLowerCase())}class gn extends qr{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(z=>!r||r.indexOf(z.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(z=>z.default)&&(this.selectDefaultTrack=!1),u.forEach((z,ne)=>{z.id=ne});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const z=mi(f,u,Di);if(z>-1)i=u[z];else{const ne=mi(f,this.tracks);i=this.tracks[ne]}}let g=this.findTrackId(i);g===-1&&i&&(g=this.findTrackId(null));const b={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,b);const A=this.trackId;if(g!==-1&&A===-1)this.setAudioTrack(g);else if(u.length&&A===-1){var s;const z=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(z.message),this.hls.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:z})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===Wt.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&&Ai(e,n,Di))return n;const i=mi(e,this.tracksInGroup,Di);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=Qs(e,t.levels,r,s,Di);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=mi(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,te({},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||Ai(e,n,Di)))return r}if(e){const{name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let g=0;g<t.length;g++){const b=t[g];if(Ai({name:r,lang:n,assocLang:i,characteristics:s,audioCodec:u,channels:f},b,Di))return g}for(let g=0;g<t.length;g++){const b=t[g];if(Cr(e.attrs,b.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return g}for(let g=0;g<t.length;g++){const b=t[g];if(Cr(e.attrs,b.attrs,["LANGUAGE"]))return g}}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 Dn=500;class In extends cs{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",Ue.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=It.IDLE,this.setInterval(Dn),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=It.IDLE,!n)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=r.start;for(let g=0;g<i.length;g++)if(u>=i[g].start&&u<=i[g].end){s=i[g];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,Ue.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ue.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)===Ue.SUBTITLE&&(t.details===x.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==It.STOPPED&&(this.state=It.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Rr(this.levels,t)){this.levels=t.map(r=>new Gn(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const n=new Gn(r);return this.tracksBuffered[n.id]=[],n}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ue.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(Dn)}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 g=0;if(s.live||(r=f.details)!=null&&r.live){const A=this.mainDetails;if(s.deltaUpdateFailed||!A)return;const z=A.fragments[0];if(!f.details)s.hasProgramDateTime&&A.hasProgramDateTime?(bi(s,A),g=s.fragments[0].start):z&&(g=z.start,$t(s,g));else{var b;g=this.alignPlaylists(s,f.details,(b=this.levelLastLoaded)==null?void 0:b.details),g===0&&z&&(g=z.start,$t(s,g))}}f.details=s,this.levelLastLoaded=f,u===n&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,g),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===It.IDLE&&(Si(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:y.MEDIA_ERROR,details:x.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=It.IDLE})}}doTick(){if(!this.media){this.state=It.IDLE;return}if(this.state===It.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=cn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),{end:u,len:f}=s,g=this.getFwdBufferInfo(this.media,Ue.MAIN),b=r.details,A=this.getMaxBufferLength(g==null?void 0:g.len)+b.levelTargetDuration;if(f>A)return;const z=b.fragments,ne=z.length,Q=b.edge;let le=null;const me=this.fragPrevious;if(u<Q){const Ge=n.maxFragLookUpTolerance,ut=u>Q-Ge?0:Ge;le=Si(me,z,Math.max(z[0].start,u),ut),!le&&me&&me.start<z[0].start&&(le=z[0])}else le=z[ne-1];if(!le)return;if(le=this.mapToInitFragWhenRequired(le),le.sn!=="initSegment"){const Ge=le.sn-b.startSN,ut=z[Ge-1];ut&&ut.cc===le.cc&&this.fragmentTracker.getState(ut)===zn.NOT_LOADED&&(le=ut)}this.fragmentTracker.getState(le)===zn.NOT_LOADED&&this.loadFragment(le,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 Fn(this.tracksBuffered[this.currentTrackId]||[])}}class Fn{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 si extends qr{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=Jr(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),Jr(this.media.textTracks).forEach(t=>{Tn(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(b=>!r||r.indexOf(b.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(b=>b.default)&&(this.selectDefaultTrack=!1),s.forEach((b,A)=>{b.id=A});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const b=mi(u,s);if(b>-1)i=s[b];else{const A=mi(u,this.tracks);i=this.tracks[A]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const g={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,g),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||Ai(i,e)))return n}if(e){for(let n=0;n<t.length;n++){const i=t[n];if(Cr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(Cr(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(mn(n,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===Wt.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&&Ai(e,r))return r;const n=mi(e,this.tracksInGroup);if(n>-1){const i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}else{if(r)return null;{const i=mi(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=Jr(e.textTracks),r=this.currentTrack;let n;if(r&&(n=t.filter(i=>mn(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||!N(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:g,url:b}=n;this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:g,url:b});const A=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(A)}}class ri{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){w.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 hn=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ci{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&&w.error(`Media element src was set while attaching MediaSource (${n} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Wn(rn(e.config.preferManagedMediaSource)),this.log=w.log.bind(w,t),this.warn=w.warn.bind(w,t),this.error=w.error.bind(w,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 ri(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=rn(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,Ui(r),Ii(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&&Ui(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:g,codec:b,levelCodec:A,container:z,metadata:ne}=t[s],Q=Qt(f.codec,f.levelCodec),le=Q==null?void 0:Q.replace(hn,"$1");let me=Qt(b,A);const Ge=(u=me)==null?void 0:u.replace(hn,"$1");if(me&&le!==Ge){s.slice(0,5)==="audio"&&(me=ir(me,this.appendSource));const ut=`${z};codecs=${me}`;this.appendChangeType(s,ut),this.log(`switching codec ${Q} to ${me}`),this.tracks[s]={buffer:f.buffer,codec:b,container:z,levelCodec:A,metadata:ne,id:g}}}}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:g,chunkMeta:b}=t,A=b.buffering[u],z=self.performance.now();A.start=z;const ne=f.stats.buffering,Q=g?g.stats.buffering:null;ne.start===0&&(ne.start=z),Q&&Q.start===0&&(Q.start=z);const le=i.audio;let me=!1;u==="audio"&&(le==null?void 0:le.container)==="audio/mpeg"&&(me=!this.lastMpegAudioChunk||b.id===1||this.lastMpegAudioChunk.sn!==b.sn,this.lastMpegAudioChunk=b);const Ge=f.start,ut={execute:()=>{if(A.executeStart=self.performance.now(),me){const lt=this.sourceBuffer[u];if(lt){const Et=Ge-lt.timestampOffset;Math.abs(Et)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ge} (delta: ${Et}) sn: ${f.sn})`),lt.timestampOffset=Ge)}}this.appendExecutor(s,u)},onStart:()=>{},onComplete:()=>{const lt=self.performance.now();A.executeEnd=A.end=lt,ne.first===0&&(ne.first=lt),Q&&Q.first===0&&(Q.first=lt);const{sourceBuffer:Et}=this,dt={};for(const Pt in Et)dt[Pt]=cn.getBuffered(Et[Pt]);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:g,chunkMeta:b,parent:f.type,timeRanges:dt})},onError:lt=>{const Et={type:y.MEDIA_ERROR,parent:f.type,details:x.BUFFER_APPEND_ERROR,sourceBufferName:u,frag:f,part:g,chunkMeta:b,error:lt,err:lt,fatal:!1};if(lt.code===DOMException.QUOTA_EXCEEDED_ERR)Et.details=x.BUFFER_FULL_ERROR;else{const dt=++this.appendErrors[u];Et.details=x.BUFFER_APPEND_ERROR,this.warn(`Failed ${dt}/${r.config.appendErrorMaxRetry} times to append segment in "${u}" sourceBuffer`),dt>=r.config.appendErrorMaxRetry&&(Et.fatal=!0)}r.trigger(c.ERROR,Et)}};n.append(ut,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[M.AUDIOVIDEO]?i.push("audiovideo"):(s[M.AUDIO]&&i.push("audio"),s[M.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();r.stats.buffering.end=f,n&&(n.stats.buffering.end=f);const g=n?n.stats:r.stats;this.hls.trigger(c.FRAG_BUFFERED,{frag:r,part:n,stats:g,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(N(f)&&f>0){const g=Math.max(f,u),b=Math.floor(s/u)*u-g;this.flushBackBuffer(s,u,b)}if(N(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const g=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),b=Math.max(g,u),A=Math.floor(s/u)*u+b;this.flushFrontBuffer(s,u,A)}}flushBackBuffer(e,t,r){const{details:n,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(u=>{const f=i[u];if(f){const g=cn.getBuffered(f);if(g.length>0&&r>g.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&&g.end(g.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=cn.getBuffered(u),g=f.length;if(g<2)return;const b=f.start(g-1),A=f.end(g-1);if(r>b||e>=b&&e<=A)return;if(u.ended&&e-A<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:b,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=N(n.duration)?n.duration:0;e.live&&t.config.liveDurationInfinity?(n.duration=1/0,this.updateSeekableRange(e)):(i>u&&i>s||!N(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:y.MEDIA_ERROR,details:x.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=ir(u,this.appendSource));const f=`${s.container};codecs=${u}`;this.log(`creating sourceBuffer(${f})`);try{const g=t[i]=r.addSourceBuffer(f),b=i;this.addBufferListener(b,"updatestart",this._onSBUpdateStart),this.addBufferListener(b,"updateend",this._onSBUpdateEnd),this.addBufferListener(b,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(b,"bufferedchange",(A,z)=>{const ne=z.removedRanges;ne!=null&&ne.length&&this.hls.trigger(c.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:g,codec:u,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(g){this.error(`error while trying to add sourceBuffer: ${g.message}`),this.hls.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:g,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:y.MEDIA_ERROR,details:x.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 g=N(n.duration)?n.duration:1/0,b=N(i.duration)?i.duration:1/0,A=Math.max(0,t),z=Math.min(r,g,b);z>A&&(!f.ending||f.ended)?(f.ended=!1,this.log(`Removing [${A},${z}] from the ${e} SourceBuffer`),f.remove(A,z)):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 Ui(o){const e=o.querySelectorAll("source");[].slice.call(e).forEach(t=>{o.removeChild(t)})}function Ii(o,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,o.appendChild(t)}const ai={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},Hi=o=>String.fromCharCode(ai[o]||o),Zn=15,Oi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ps={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ms={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 Vs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;w.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 Na{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 Na}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 ma{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Na,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Oi;t++)this.chars.push(new ro);this.logger=e}equals(e){for(let t=0;t<Oi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Oi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Oi;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>Oi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Oi)}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=Hi(e);if(this.pos>=Oi){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<Oi;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<Oi;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 Zs{constructor(e){this.rows=[],this.currRow=Zn-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Zn;t++)this.rows.push(new ma(e));this.logger=e}reset(){for(let e=0;e<Zn;e++)this.rows[e].clear();this.currRow=Zn-1}equals(e){let t=!0;for(let r=0;r<Zn;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<Zn;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Zn;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<Zn;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 g=0;g<this.nrRollUpRows;g++)this.rows[t-this.nrRollUpRows+g+1].copy(s.rows[i+g])}}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<Zn;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 Zs(r),this.nonDisplayedMemory=new Zs(r),this.lastOutputScreen=new Zs(r),this.currRollUpRow=this.displayedMemory.rows[Zn-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[Zn-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=Jo(),this.logger=void 0;const n=this.logger=new Vs;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(Qo(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 b=this.currentChannel;b&&b>0?this.channels[b].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]:ms[e]:r=s===1?ps[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 '"+Hi(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(o,e,t){t.a=o,t.b=e}function Qo(o,e,t){return t.a===o&&t.b===e}function Jo(){return{a:null,b:null}}class Ba{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(Be!=null&&Be.VTTCue)return self.VTTCue;const o=["","lr","rl"],e=["start","middle","end","left","right"];function t(u,f){if(typeof f!="string"||!Array.isArray(u))return!1;const g=f.toLowerCase();return~u.indexOf(g)?g:!1}function r(u){return t(o,u)}function n(u){return t(e,u)}function i(u,...f){let g=1;for(;g<arguments.length;g++){const b=arguments[g];for(const A in b)u[A]=b[A]}return u}function s(u,f,g){const b=this,A={enumerable:!0};b.hasBeenReset=!1;let z="",ne=!1,Q=u,le=f,me=g,Ge=null,ut="",lt=!0,Et="auto",dt="start",Pt=50,xt="middle",Vt=50,nr="middle";Object.defineProperty(b,"id",i({},A,{get:function(){return z},set:function(Lt){z=""+Lt}})),Object.defineProperty(b,"pauseOnExit",i({},A,{get:function(){return ne},set:function(Lt){ne=!!Lt}})),Object.defineProperty(b,"startTime",i({},A,{get:function(){return Q},set:function(Lt){if(typeof Lt!="number")throw new TypeError("Start time must be set to a number.");Q=Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"endTime",i({},A,{get:function(){return le},set:function(Lt){if(typeof Lt!="number")throw new TypeError("End time must be set to a number.");le=Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"text",i({},A,{get:function(){return me},set:function(Lt){me=""+Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"region",i({},A,{get:function(){return Ge},set:function(Lt){Ge=Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"vertical",i({},A,{get:function(){return ut},set:function(Lt){const Zt=r(Lt);if(Zt===!1)throw new SyntaxError("An invalid or illegal string was specified.");ut=Zt,this.hasBeenReset=!0}})),Object.defineProperty(b,"snapToLines",i({},A,{get:function(){return lt},set:function(Lt){lt=!!Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"line",i({},A,{get:function(){return Et},set:function(Lt){if(typeof Lt!="number"&&Lt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Et=Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"lineAlign",i({},A,{get:function(){return dt},set:function(Lt){const Zt=n(Lt);if(!Zt)throw new SyntaxError("An invalid or illegal string was specified.");dt=Zt,this.hasBeenReset=!0}})),Object.defineProperty(b,"position",i({},A,{get:function(){return Pt},set:function(Lt){if(Lt<0||Lt>100)throw new Error("Position must be between 0 and 100.");Pt=Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"positionAlign",i({},A,{get:function(){return xt},set:function(Lt){const Zt=n(Lt);if(!Zt)throw new SyntaxError("An invalid or illegal string was specified.");xt=Zt,this.hasBeenReset=!0}})),Object.defineProperty(b,"size",i({},A,{get:function(){return Vt},set:function(Lt){if(Lt<0||Lt>100)throw new Error("Size must be between 0 and 100.");Vt=Lt,this.hasBeenReset=!0}})),Object.defineProperty(b,"align",i({},A,{get:function(){return nr},set:function(Lt){const Zt=n(Lt);if(!Zt)throw new SyntaxError("An invalid or illegal string was specified.");nr=Zt,this.hasBeenReset=!0}})),b.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(o){function e(r,n,i,s){return(r|0)*3600+(n|0)*60+(i|0)+parseFloat(s||0)}const t=o.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(o,e,t,r){const n=r?o.split(r):[o];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(o,e,t){const r=o;function n(){const u=xo(o);if(u===null)throw new Error("Malformed timestamp: "+r);return o=o.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const g=new tl;Eo(u,function(z,ne){let Q;switch(z){case"region":for(let le=t.length-1;le>=0;le--)if(t[le].id===ne){g.set(z,t[le].region);break}break;case"vertical":g.alt(z,ne,["rl","lr"]);break;case"line":Q=ne.split(","),g.integer(z,Q[0]),g.percent(z,Q[0])&&g.set("snapToLines",!1),g.alt(z,Q[0],["auto"]),Q.length===2&&g.alt("lineAlign",Q[1],["start",Fa,"end"]);break;case"position":Q=ne.split(","),g.percent(z,Q[0]),Q.length===2&&g.alt("positionAlign",Q[1],["start",Fa,"end","line-left","line-right","auto"]);break;case"size":g.percent(z,ne);break;case"align":g.alt(z,ne,["start",Fa,"end","left","right"]);break}},/:/,/\s/),f.region=g.get("region",null),f.vertical=g.get("vertical","");let b=g.get("line","auto");b==="auto"&&io.line===-1&&(b=-1),f.line=b,f.lineAlign=g.get("lineAlign","start"),f.snapToLines=g.get("snapToLines",!0),f.size=g.get("size",100),f.align=g.get("align",Fa);let A=g.get("position","auto");A==="auto"&&io.position===50&&(A=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=A}function s(){o=o.replace(/^\s+/,"")}if(s(),e.startTime=n(),s(),o.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);o=o.slice(3),s(),e.endTime=n(),s(),i(o,e)}function wo(o){return o.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(!N(t)||!N(r)||!N(n)||!N(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(o,e,t){return ao(o.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(o,e,t,r,n,i,s){const u=new nl,f=ht(new Uint8Array(o)).trim().replace(il,`
|
|
`).split(`
|
|
`),g=[],b=e?La(e.baseTime,e.timescale):0;let A="00:00.000",z=0,ne=0,Q,le=!0;u.oncue=function(me){const Ge=t[r];let ut=t.ccOffset;const lt=(z-b)/9e4;if(Ge!=null&&Ge.new&&(ne!==void 0?ut=t.ccOffset=Ge.start:al(t,r,lt)),lt){if(!e){Q=new Error("Missing initPTS for VTT MPEGTS");return}ut=lt-t.presentationOffset}const Et=me.endTime-me.startTime,dt=gi((me.startTime+ut-ne)*9e4,n*9e4)/9e4;me.startTime=Math.max(dt,0),me.endTime=Math.max(dt+Et,0);const Pt=me.text.trim();me.text=decodeURIComponent(encodeURIComponent(Pt)),me.id||(me.id=oo(me.startTime,me.endTime,Pt)),me.endTime>0&&g.push(me)},u.onparsingerror=function(me){Q=me},u.onflush=function(){if(Q){s(Q);return}i(g)},f.forEach(me=>{if(le)if(so(me,"X-TIMESTAMP-MAP=")){le=!1,me.slice(16).split(",").forEach(Ge=>{so(Ge,"LOCAL:")?A=Ge.slice(6):so(Ge,"MPEGTS:")&&(z=parseInt(Ge.slice(7)))});try{ne=sl(A)/1e3}catch(Ge){Q=Ge}return}else me===""&&(le=!1);u.parse(me+`
|
|
`)}),u.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,To=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function Ao(o,e,t,r){const n=Te(new Uint8Array(o),["mdat"]);if(n.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=n.map(u=>ht(u)),s=Qa(e.baseTime,1,e.timescale);try{i.forEach(u=>t(ul(u,s)))}catch(u){r(u)}}function ul(o,e){const n=new DOMParser().parseFromString(o,"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((A,z)=>(A[z]=n.getAttribute(`ttp:${z}`)||i[z],A),{}),u=n.getAttribute("xml:space")!=="preserve",f=Co(uo(n,"styling","style")),g=Co(uo(n,"layout","region")),b=uo(n,"body","[begin]");return[].map.call(b,A=>{const z=Do(A,u);if(!z||!A.hasAttribute("begin"))return null;const ne=ho(A.getAttribute("begin"),s),Q=ho(A.getAttribute("dur"),s);let le=ho(A.getAttribute("end"),s);if(ne===null)throw Ro(A);if(le===null){if(Q===null)throw Ro(A);le=ne+Q}const me=new no(ne-e,le-e,z);me.id=oo(me.startTime,me.endTime,me.text);const Ge=g[A.getAttribute("region")],ut=f[A.getAttribute("style")],lt=cl(Ge,ut,f),{textAlign:Et}=lt;if(Et){const dt=ll[Et];dt&&(me.lineAlign=dt),me.align=Et}return a(me,lt),me}).filter(A=>A!==null)}function uo(o,e,t){const r=o.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Co(o){return o.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function Do(o,e){return[].slice.call(o.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(o,e,t){const r="http://www.w3.org/ns/ttml#styling";let n=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=o!=null&&o.hasAttribute("style")?o.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(n=t[s]),i.reduce((u,f)=>{const g=co(e,r,f)||co(o,r,f)||co(n,r,f);return g&&(u[f]=g),u},{})}function co(o,e,t){return o&&o.hasAttributeNS(e,t)?o.getAttributeNS(e,t):null}function Ro(o){return new Error(`Could not parse ttml timestamp ${o}`)}function ho(o,e){if(!o)return null;let t=xo(o);return t===null&&(So.test(o)?t=hl(o,e):To.test(o)&&(t=dl(o,e))),t}function hl(o,e){const t=So.exec(o),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 dl(o,e){const t=To.exec(o),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=Lo(),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 Ba(this,"textTrack1"),t=new Ba(this,"textTrack2"),r=new Ba(this,"textTrack3"),n=new Ba(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],g=pl(f[0],f[1],t,r);if(g>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],r),s=!0,g/(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(ko(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,Tn(r[e]),pn(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=>{Tn(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Lo(),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++)Tn(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(Rr(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,u=s?Jr(s.textTracks):null;if(this.tracks.forEach((f,g)=>{let b;if(u){let A=null;for(let z=0;z<u.length;z++)if(u[z]&&ko(u[z],f)){A=u[z],u[z]=null;break}A&&(b=A)}if(b)Tn(b);else{const A=Io(f);b=this.createTextTrack(A,f.name,f.lang),b&&(b.mode="disabled")}b&&this.textTracks.push(b)}),u!=null&&u.length){const f=u.filter(g=>g!==null).map(g=>g.label);f.length&&w.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===Ue.MAIN){var r,n;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:g}=t.frag,b=(r=(n=t.part)==null?void 0:n.index)!=null?r:-1;i&&s&&(g!==u+1||g===u&&b!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=g,this.lastPartIndex=b}}onFragLoaded(e,t){const{frag:r,payload:n}=t;if(r.type===Ue.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;Ao(t,this.initPTS[e.cc],n=>{this._appendCues(n,e.level),r.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},n=>{w.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,g=(t=r.initSegment)!=null&&t.data?Bt(r.initSegment.data,new Uint8Array(n)):n;ol(g,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,b=>{this._appendCues(b,r.level),f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},b=>{const A=b.message==="Missing initPTS for VTT MPEGTS";A?s.push(e):this._fallbackToIMSC1(r,n),w.log(`Failed to parse VTT cue: ${b}`),!(A&&u>r.cc)&&f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:b})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||Ao(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=>En(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===Ue.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===Ue.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let u=0;u<s.length;u++){const f=s[u].bytes;if(f){const g=this.extractCea608Data(f);r.addData(s[u].pts,g[0]),n.addData(s[u].pts,g[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=>_r(u[f],t,r))}if(this.config.renderTextTracksNatively&&t===0&&n!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>_r(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 b=3&s;(b===0||b===1)&&(t[b].push(u),t[b].push(f))}}return t}}function Io(o){return o.characteristics&&/transcribes-spoken-dialog/gi.test(o.characteristics)&&/describes-music-and-sound/gi.test(o.characteristics)?"captions":"subtitles"}function ko(o,e){return!!o&&o.kind===Io(e)&&mn(e,o)}function pl(o,e,t,r){return Math.min(e,r)-Math.max(o,t)}function Lo(){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&&N(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&&w.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 ml{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,g=this.hls;if(g.trigger(c.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:r}),f>0&&s>g.config.fpsDroppedMonitoringThreshold*u){let b=g.currentLevel;w.warn("drop FPS ratio greater than max allowed value for currentLevel: "+b),b>0&&(g.autoLevelCapping===-1||g.autoLevelCapping>=b)&&(b=b-1,g.trigger(c.FPS_DROP_LEVEL_CAPPING,{level:b,droppedLevel:g.currentLevel}),g.autoLevelCapping=b,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 $a="[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=w.debug.bind(w,$a),this.log=w.log.bind(w,$a),this.warn=w.warn.bind(w,$a),this.error=w.error.bind(w,$a),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=At(this.config));const u=s.map(Tt).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=at(s);let f,g;if(r==="sinf"){if(u!==Oe.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const Q=ot(new Uint8Array(n));try{const le=m(JSON.parse(Q).sinf),me=bt(le);if(!me)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=me.subarray(8,24),g=Oe.FAIRPLAY}catch(le){this.warn(`${i} Failed to parse sinf: ${le}`);return}}else{if(u!==Oe.WIDEVINE&&u!==Oe.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${u}`);return}const Q=Vr(n),le=Q.filter(Ge=>!!Ge.systemId&&rt(Ge.systemId)===u);le.length>1&&this.warn(`${i} Using first of ${le.length} pssh found for selected key-system ${u}`);const me=le[0];if(!me){Q.length===0||Q.some(Ge=>!Ge.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${Q.map(Ge=>rt(Ge.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(g=rt(me.systemId),me.version===0&&me.data)if(g===Oe.WIDEVINE){const Ge=me.data.length-22;f=me.data.subarray(Ge,Ge+16)}else g===Oe.PLAYREADY&&(f=Ct(me.data))}if(!g||!f){this.log(`Unable to handle ${i} with key-system ${u}`);return}const b=Ke.hexDump(f),{keyIdToKeySessionPromise:A,mediaKeySessions:z}=this;let ne=A[b];for(let Q=0;Q<z.length;Q++){const le=z[Q],me=le.decryptdata;if(!me.keyId)continue;const Ge=Ke.hexDump(me.keyId);if(b===Ge||me.uri.replace(/-/g,"").indexOf(b)!==-1){if(ne=A[Ge],me.pssh)break;delete A[Ge],me.pssh=new Uint8Array(n),me.keyId=f,ne=A[b]=ne.then(()=>this.generateRequestWithPreferredKeySession(le,r,n,"encrypted-event-key-match")),ne.catch(ut=>this.handleError(ut));break}}if(!ne){if(g!==u){this.log(`Ignoring "${i}" with ${g} init data for selected key-system ${u}`);return}ne=A[b]=this.getKeySystemSelectionPromise([g]).then(({keySystem:Q,mediaKeys:le})=>{var me;this.throwIfDestroyed();const Ge=new xr("ISO-23001-7",b,(me=Tt(Q))!=null?me:"");return Ge.pssh=new Uint8Array(n),Ge.keyId=f,this.attemptSetMediaKeys(Q,le).then(()=>{this.throwIfDestroyed();const ut=this.createMediaKeySessionContext({decryptdata:Ge,keySystem:Q,mediaKeys:le});return this.generateRequestWithPreferredKeySession(ut,r,n,"encrypted-event-no-match")})}),ne.catch(Q=>this.handleError(Q))}})}},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===Oe.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=g=>{const b=g.shift();this.getMediaKeysPromise(b,n,i).then(A=>s({keySystem:b,mediaKeys:A})).catch(A=>{g.length?f(g):A instanceof Pi?u(A):u(new Pi({type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_ACCESS,error:A,fatal:!0},A.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 Ot===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=yt(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 g=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(b=>(this.log(`Media-keys created for "${e}"`),g.then(A=>A?this.setMediaKeysServerCertificate(b,e,A):b))),u.mediaKeys.catch(b=>{this.error(`Failed to create media-keys for "${e}"}: ${b}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${Ke.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 Ke.hexDump(e.keyId)}updateKeySession(e,t){var r;const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyID ${Ke.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=At(this.config),i=e.map(at).filter(s=>!!s&&n.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=Tt(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 Pi?this.hls.trigger(c.ERROR,e.data):this.hls.trigger(c.ERROR,{type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const n=at(e.keyFormat),i=n?[n]:At(this.config);return this.attemptKeySystemAccess(i)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=At(this.config)),e.length===0)throw new Pi({type:y.KEY_SYSTEM_ERROR,details:x.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 Q=u.call(this.hls,t,r,e);if(!Q)throw new Error("Invalid response from configured generateRequest filter");t=Q.initDataType,r=e.decryptdata.pssh=Q.initData?new Uint8Array(Q.initData):null}catch(Q){var f;if(this.warn(Q.message),(f=this.hls)!=null&&f.config.debug)throw Q}if(r===null)return this.log(`Skipping key-session request for "${n}" (no initData)`),Promise.resolve(e);const g=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${n}": ${g} (init data type: ${t} length: ${r?r.byteLength:null})`);const b=new zt,A=e._onmessage=Q=>{const le=e.mediaKeysSession;if(!le){b.emit("error",new Error("invalid state"));return}const{messageType:me,message:Ge}=Q;this.log(`"${me}" message event for session "${le.sessionId}" message size: ${Ge.byteLength}`),me==="license-request"||me==="license-renewal"?this.renewLicense(e,Ge).catch(ut=>{this.handleError(ut),b.emit("error",ut)}):me==="license-release"?e.keySystem===Oe.FAIRPLAY&&(this.updateKeySession(e,Ie("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${me}"`)},z=e._onkeystatuseschange=Q=>{if(!e.mediaKeysSession){b.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const me=e.keyStatus;b.emit("keyStatus",me),me==="expired"&&(this.warn(`${e.keySystem} expired for key ${g}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",A),e.mediaKeysSession.addEventListener("keystatuseschange",z);const ne=new Promise((Q,le)=>{b.on("error",le),b.on("keyStatus",me=>{me.startsWith("usable")?Q():me==="output-restricted"?le(new Pi({type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):me==="internal-error"?le(new Pi({type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${me}"`)):me==="expired"?le(new Error("key expired while generating request")):this.warn(`unhandled key status change "${me}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var Q;this.log(`Request generated for key-session "${(Q=e.mediaKeysSession)==null?void 0:Q.sessionId}" keyId: ${g}`)}).catch(Q=>{throw new Pi({type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_SESSION,error:Q,fatal:!1},`Error generating key-session request: ${Q}`)}).then(()=>ne).catch(Q=>{throw b.removeAllListeners(),this.removeSession(e),Q}).then(()=>(b.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${Ke.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${Ke.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},g=t.certLoadPolicy.default,b={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},A={onSuccess:(z,ne,Q,le)=>{s(z.data)},onError:(z,ne,Q,le)=>{u(new Pi({type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Q,response:te({url:f.url,data:void 0},z)},`"${e}" certificate request failed (${i}). Status: ${z.code} (${z.text})`))},onTimeout:(z,ne,Q)=>{u(new Pi({type:y.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Q,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(z,ne,Q)=>{u(new Error("aborted"))}};n.load(f,b,A)})):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 Pi({type:y.KEY_SYSTEM_ERROR,details:x.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 Pi({type:y.KEY_SYSTEM_ERROR,details:x.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 b;for(let A=0,z=i.length;A<z;A++){var s,u;b=i[A];const ne=(s=b.querySelector("name"))==null?void 0:s.textContent,Q=(u=b.querySelector("value"))==null?void 0:u.textContent;ne&&Q&&e.setRequestHeader(ne,Q)}}const f=n.querySelector("Challenge"),g=f==null?void 0:f.textContent;if(!g)throw new Error("Cannot find <Challenge> in key message");return Ie(atob(g))}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 g=this.config.licenseResponseCallback;if(g)try{f=g.call(this.hls,u,s,e)}catch(b){this.error(b)}n(f)}else{const f=r.errorRetry,g=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>g||u.status>=400&&u.status<500)i(new Pi({type:y.KEY_SYSTEM_ERROR,details:x.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 b=g-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${b} 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:g})=>{e.keySystem==Oe.PLAYREADY&&(g=this.unpackPlayReadyKeyMessage(f,g)),f.send(g)})})}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={},xr.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 Pi 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 vi;(function(o){o.MANIFEST="m",o.AUDIO="a",o.VIDEO="v",o.MUXED="av",o.INIT="i",o.CAPTION="c",o.TIMED_TEXT="tt",o.KEY="k",o.OTHER="o"})(vi||(vi={}));var po;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(po||(po={}));var As;(function(o){o.OBJECT="CMCD-Object",o.REQUEST="CMCD-Request",o.SESSION="CMCD-Session",o.STATUS="CMCD-Status"})(As||(As={}));const gl={[As.OBJECT]:["br","d","ot","tb"],[As.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[As.SESSION]:["cid","pr","sf","sid","st","v"],[As.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(o){return Array.isArray(o)?JSON.stringify(o):o instanceof Map?"Map{}":o instanceof Set?"Set{}":typeof o=="object"?JSON.stringify(o):String(o)}function yl(o,e,t,r){return new Error(`failed to ${o} "${_l(e)}" as ${t}`,{cause:r})}const Po="Bare Item",bl="Boolean",xl="Byte Sequence",El="Decimal",wl="Integer";function Sl(o){return o<-999999999999999||999999999999999<o}const Tl=/[\x00-\x1f\x7f]+/,Al="Token",Cl="Key";function Zi(o,e,t){return yl("serialize",o,e,t)}function Dl(o){if(typeof o!="boolean")throw Zi(o,bl);return o?"?1":"?0"}function Rl(o){return btoa(String.fromCharCode(...o))}function Il(o){if(ArrayBuffer.isView(o)===!1)throw Zi(o,xl);return`:${Rl(o)}:`}function Mo(o){if(Sl(o))throw Zi(o,wl);return o.toString()}function kl(o){return`@${Mo(o.getTime()/1e3)}`}function No(o,e){if(o<0)return-No(-o,e);const t=Math.pow(10,e);if(Math.abs(o*t%1-.5)<Number.EPSILON){const n=Math.floor(o*t);return(n%2===0?n:n+1)/t}else return Math.round(o*t)/t}function Ll(o){const e=No(o,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Zi(o,El);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Ol="String";function Pl(o){if(Tl.test(o))throw Zi(o,Ol);return`"${o.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(o){return o.description||o.toString().slice(7,-1)}function Bo(o){const e=Ml(o);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Zi(e,Al);return e}function mo(o){switch(typeof o){case"number":if(!N(o))throw Zi(o,Po);return Number.isInteger(o)?Mo(o):Ll(o);case"string":return Pl(o);case"symbol":return Bo(o);case"boolean":return Dl(o);case"object":if(o instanceof Date)return kl(o);if(o instanceof Uint8Array)return Il(o);if(o instanceof Oo)return Bo(o);default:throw Zi(o,Po)}}function go(o){if(/^[a-z*][a-z0-9\-_.*]*$/.test(o)===!1)throw Zi(o,Cl);return o}function vo(o){return o==null?"":Object.entries(o).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${mo(t)}`).join("")}function Fo(o){return o instanceof Xs?`${mo(o.value)}${vo(o.params)}`:mo(o)}function Nl(o){return`(${o.value.map(Fo).join(" ")})${vo(o.params)}`}function Bl(o,e={whitespace:!0}){if(typeof o!="object")throw Zi(o,vl);const t=o instanceof Map?o.entries():Object.entries(o),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+=Nl(i):s+=Fo(i)),s}).join(`,${r}`)}function Fl(o,e){return Bl(o,e)}const $l=o=>o==="ot"||o==="sf"||o==="st",zl=o=>typeof o=="number"?N(o):o!=null&&o!==""&&o!==!1;function Ul(o,e){const t=new URL(o),r=new URL(e);if(t.origin!==r.origin)return o;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 Hl(){try{return crypto.randomUUID()}catch(o){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 za=o=>Math.round(o),Gl=(o,e)=>(e!=null&&e.baseUrl&&(o=Ul(o,e.baseUrl)),encodeURIComponent(o)),Ua=o=>za(o/100)*100,jl={br:za,d:za,bl:Ua,dl:Ua,mtp:Ua,nor:Gl,rtp:Ua,tb:za};function Kl(o,e){const t={};if(o==null||typeof o!="object")return t;const r=Object.keys(o).sort(),n=a({},jl,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=o[s];const f=n[s];f&&(u=f(u,e)),!(s==="v"&&u===1)&&(s=="pr"&&u===1||zl(u)&&($l(s)&&typeof u=="string"&&(u=new Oo(u)),t[s]=u))}),t}function $o(o,e={}){return o?Fl(Kl(o,e),a({whitespace:!1},e)):""}function Wl(o,e={}){if(!o)return{};const t=Object.entries(o),r=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),n=t.reduce((i,s)=>{var u,f;const[g,b]=s,A=((u=r.find(z=>z[1].includes(g)))==null?void 0:u[0])||As.REQUEST;return(f=i[A])!=null||(i[A]={}),i[A][g]=b,i},{});return Object.entries(n).reduce((i,[s,u])=>(i[s]=$o(u,e),i),{})}function Vl(o,e,t){return a(o,Wl(e,t))}const Zl="CMCD";function Yl(o,e={}){if(!o)return"";const t=$o(o,e);return`${Zl}=${encodeURIComponent(t)}`}const zo=/CMCD=[^&#]+/;function Xl(o,e,t){const r=Yl(e,t);if(!r)return o;if(zo.test(o))return o.replace(zo,r);const n=o.includes("?")?"&":"?";return`${o}${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:vi.MANIFEST,su:!this.initialized})}catch(i){w.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===vi.VIDEO||u===vi.AUDIO||u==vi.MUXED)&&(f.br=s.bitrate/1e3,f.tb=this.getTopBandwidth(u)/1e3,f.bl=this.getBufferLength(u)),this.apply(n,f)}catch(i){w.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||Hl(),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:po.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){a(t,this.createData());const r=t.ot===vi.INIT||t.ot===vi.VIDEO||t.ot===vi.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={}),Vl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return vi.TIMED_TEXT;if(e.sn==="initSegment")return vi.INIT;if(t==="audio")return vi.AUDIO;if(t==="main")return this.hls.audioTracks.length?vi.VIDEO:vi.MUXED}getTopBandwidth(e){let t=0,r;const n=this.hls;if(e===vi.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===vi.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:cn.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 Ql=3e5;class Jl{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=w.log.bind(w,"[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)===tr.SendAlternateToPenaltyBox&&r.flags===Kr.MoveAllAlternatesMatchingHost){const n=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:g}=t.context;u&&n?s=this.getPathwayForGroupId(u,g,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||w.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]>Ql&&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,bn(t),this.hls.trigger(c.LEVELS_UPDATED,{levels:t});const g=this.hls.levels[u];f&&g&&this.levels&&(g.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&g.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${g.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===Wt.AUDIO_TRACK&&n[i].hasAudioGroup(e)||t===Wt.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(b=>b.pathwayId===s))return;const g=this.getLevelsForPathway(u).map(b=>{const A=new X(b.attrs);A["PATHWAY-ID"]=s;const z=A.AUDIO&&`${A.AUDIO}_clone_${s}`,ne=A.SUBTITLES&&`${A.SUBTITLES}_clone_${s}`;z&&(r[A.AUDIO]=z,A.AUDIO=z),ne&&(n[A.SUBTITLES]=ne,A.SUBTITLES=ne);const Q=Ho(b.uri,A["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),le=new Gn({attrs:A,audioCodec:b.audioCodec,bitrate:b.bitrate,height:b.height,name:b.name,url:Q,videoCodec:b.videoCodec,width:b.width});if(b.audioGroups)for(let me=1;me<b.audioGroups.length;me++)le.addGroupId("audio",`${b.audioGroups[me]}_clone_${s}`);if(b.subtitleGroups)for(let me=1;me<b.subtitleGroups.length;me++)le.addGroupId("text",`${b.subtitleGroups[me]}_clone_${s}`);return le});t.push(...g),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(b){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(n.protocol!=="data:"){const b=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;n.searchParams.set("_HLS_pathway",this.pathwayId),n.searchParams.set("_HLS_throughput",""+b)}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},g={onSuccess:(b,A,z,ne)=>{this.log(`Loaded steering manifest: "${n}"`);const Q=b.data;if(Q.VERSION!==1){this.log(`Steering VERSION ${Q.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=Q.TTL;const{"RELOAD-URI":le,"PATHWAY-CLONES":me,"PATHWAY-PRIORITY":Ge}=Q;if(le)try{this.uri=new self.URL(le,n).href}catch(lt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${le}`);return}this.scheduleRefresh(this.uri||z.url),me&&this.clonePathways(me);const ut={steeringManifest:Q,url:n.toString()};this.hls.trigger(c.STEERING_MANIFEST_LOADED,ut),Ge&&this.updatePathwayPriority(Ge)},onError:(b,A,z,ne)=>{if(this.log(`Error loading steering manifest: ${b.code} ${b.text} (${A.url})`),this.stopLoad(),b.code===410){this.enabled=!1,this.log(`Steering manifest ${A.url} no longer available`);return}let Q=this.timeToLoad*1e3;if(b.code===429){const le=this.loader;if(typeof(le==null?void 0:le.getResponseHeader)=="function"){const me=le.getResponseHeader("Retry-After");me&&(Q=parseFloat(me)*1e3)}this.log(`Steering manifest ${A.url} rate limited`);return}this.scheduleRefresh(this.uri||A.url,Q)},onTimeout:(b,A,z)=>{this.log(`Timeout loading steering manifest (${A.url})`),this.scheduleRefresh(this.uri||A.url)}};this.log(`Requesting steering manifest: ${n}`),this.loader.load(i,f,g)}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(o,e,t,r){o&&Object.keys(e).forEach(n=>{const i=o.filter(s=>s.groupId===n).map(s=>{const u=a({},s);return u.details=void 0,u.attrs=new X(u.attrs),u.url=u.attrs.URI=Ho(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});o.push(...i)})}function Ho(o,e,t,r){const{HOST:n,PARAMS:i,[t]:s}=r;let u;e&&(u=s==null?void 0:s[e],u&&(o=u));const f=new self.URL(o);return n&&!u&&(f.host=n),i&&Object.keys(i).sort().forEach(g=>{g&&f.searchParams.set(g,i[g])}),f.href}const eu=/^age:\s*[\d.]+\s*$/im;class Go{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 Ce,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&&N(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 A=u!=null?u:t.response;if(A!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const z=t.responseType==="arraybuffer"?A.byteLength:A.length;if(r.loaded=r.total=z,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const ne=this.callbacks.onProgress;if(ne&&ne(r,e,A,t),!this.callbacks)return;const Q={url:t.responseURL,data:A,code:s};this.callbacks.onSuccess(Q,r,e,t);return}}const f=i.loadPolicy.errorRetry,g=r.retry,b={url:e.url,data:void 0,code:s};Mn(f,g,!1,b)?this.retry(f):(w.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(Mn(e,t,!0))this.retry(e);else{var r;w.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=Vn(e,r.retry),r.retry++,w.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(o){}return!1}const ru=/(\d+)-(\d+)\/(\d+)/;class jo{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 Ce}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:g,maxLoadTimeMs:b}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=g&&N(g)?g:b,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},t.timeout),self.fetch(this.request).then(A=>{this.response=this.loader=A;const z=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=b,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(n,e,this.response)},b-(z-n.loading.start)),!A.ok){const{status:ne,statusText:Q}=A;throw new ou(Q||"fetch, bad network response",ne,A)}return n.loading.first=z,n.total=su(A.headers)||n.total,s&&N(t.highWaterMark)?this.loadProgressively(A,n,e,t.highWaterMark,s):u?A.arrayBuffer():e.responseType==="json"?A.json():A.text()}).then(A=>{const z=this.response;if(!z)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const ne=A[f];ne&&(n.loaded=n.total=ne);const Q={url:z.url,data:A,code:z.status};s&&!N(t.highWaterMark)&&s(n,e,A,z),r.onSuccess(Q,n,e,z)}).catch(A=>{if(self.clearTimeout(this.requestTimeout),n.aborted)return;const z=A&&A.code||0,ne=A?A.message:null;r.onError({code:z,text:ne},e,A?A.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(g=>{if(g.done)return s.dataLength&&i(t,r,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const b=g.value,A=b.length;return t.loaded+=A,A<n||s.dataLength?(s.push(b),s.dataLength>=n&&i(t,r,s.flush(),e)):i(t,r,b,e),f()}).catch(()=>Promise.reject());return f()}}function nu(o,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(a({},o.headers))};return o.rangeEnd&&t.headers.set("Range","bytes="+o.rangeStart+"-"+String(o.rangeEnd-1)),t}function iu(o){const e=ru.exec(o);if(e)return parseInt(e[2])-parseInt(e[1])+1}function su(o){const e=o.get("Content-Range");if(e){const r=iu(e);if(N(r))return r}const t=o.get("Content-Length");if(t)return parseInt(t)}function au(o,e){return new self.Request(o.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(o,e,t,r){const n=[];let i,s,u,f,g;const b=self.VTTCue||self.TextTrackCue;for(let z=0;z<r.rows.length;z++)if(i=r.rows[z],u=!0,f=0,g="",!i.isEmpty()){var A;for(let le=0;le<i.chars.length;le++)lu.test(i.chars[le].uchar)&&u?f++:(g+=i.chars[le].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const ne=wo(g.trim()),Q=oo(e,t,ne);o!=null&&(A=o.cues)!=null&&A.getCueById(Q)||(s=new b(e,t,ne),s.id=Q,s.line=z+1,s.align="left",s.position=10+Math.min(80,Math.floor(f*8/32)*10),n.push(s))}return o&&n.length&&(n.sort((z,ne)=>z.line==="auto"||ne.line==="auto"?0:z.line>8&&ne.line>8?ne.line-z.line:z.line-ne.line),n.forEach(z=>En(o,z))),n}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Ko=te(te({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:Go,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ss,bufferController:Ci,capLevelController:fo,errorController:Cn,fpsController:ml,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:Ot,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},hu()),{},{subtitleStreamController:In,subtitleTrackController:si,timelineController:fl,audioStreamController:Ar,audioTrackController:gn,emeController:Ys,cmcdController:ql,contentSteeringController:Jl});function hu(){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 du(o,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(o),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(g=>{const b=`${i}Loading${g}`,A=e[b];if(A!==void 0&&u){f.push(b);const z=t[s].default;switch(e[s]={default:z},g){case"TimeOut":z.maxLoadTimeMs=A,z.maxTimeToFirstByteMs=A;break;case"MaxRetry":z.errorRetry.maxNumRetry=A,z.timeoutRetry.maxNumRetry=A;break;case"RetryDelay":z.errorRetry.retryDelayMs=A,z.timeoutRetry.retryDelayMs=A;break;case"MaxRetryTimeout":z.errorRetry.maxRetryDelayMs=A,z.timeoutRetry.maxRetryDelayMs=A;break}}}),f.length&&w.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),te(te({},t),e)}function _o(o){return o&&typeof o=="object"?Array.isArray(o)?o.map(_o):Object.keys(o).reduce((e,t)=>(e[t]=_o(o[t]),e),{}):o}function fu(o){const e=o.loader;e!==jo&&e!==Go?(w.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1):tu()&&(o.loader=jo,o.progressive=!0,o.enableSoftwareAES=!0,w.log("[config]: Progressive streaming enabled, using FetchLoader"))}let yo;class pu extends qr{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,g=!1;t.levels.forEach(b=>{var A,z;const ne=b.attrs;let{audioCodec:Q,videoCodec:le}=b;((A=Q)==null?void 0:A.indexOf("mp4a.40.34"))!==-1&&(yo||(yo=/chrome|firefox/i.test(navigator.userAgent)),yo&&(b.audioCodec=Q=void 0)),Q&&(b.audioCodec=Q=ir(Q,r)),((z=le)==null?void 0:z.indexOf("avc1"))===0&&(le=b.videoCodec=vr(le));const{width:me,height:Ge,unknownCodecs:ut}=b;if(u||(u=!!(me&&Ge)),f||(f=!!le),g||(g=!!Q),ut!=null&&ut.length||Q&&!it(Q,"audio",r)||le&&!it(le,"video",r))return;const{CODECS:lt,"FRAME-RATE":Et,"HDCP-LEVEL":dt,"PATHWAY-ID":Pt,RESOLUTION:xt,"VIDEO-RANGE":Vt}=ne,Lt=`${`${Pt||"."}-`}${b.bitrate}-${xt}-${Et}-${lt}-${Vt}-${dt}`;if(i[Lt])if(i[Lt].uri!==b.url&&!b.attrs["PATHWAY-ID"]){const Zt=s[Lt]+=1;b.attrs["PATHWAY-ID"]=new Array(Zt+1).join(".");const Nr=new Gn(b);i[Lt]=Nr,n.push(Nr)}else i[Lt].addGroupId("audio",ne.AUDIO),i[Lt].addGroupId("text",ne.SUBTITLES);else{const Zt=new Gn(b);i[Lt]=Zt,s[Lt]=1,n.push(Zt)}}),this.filterAndSortMediaOptions(n,t,u,f,g)}filterAndSortMediaOptions(e,t,r,n,i){let s=[],u=[],f=e;if((r||n)&&i&&(f=f.filter(({videoCodec:Q,videoRange:le,width:me,height:Ge})=>(!!Q||!!(me&&Ge))&&an(le))),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 Q=new Error("no level with compatible codecs found in manifest");this.hls.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Q,reason:Q.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:Q}=this.hls.config;s=t.audioTracks.filter(le=>!le.audioCodec||it(le.audioCodec,"audio",Q)),Wo(s)}t.subtitles&&(u=t.subtitles,Wo(u));const g=f.slice(0);f.sort((Q,le)=>{if(Q.attrs["HDCP-LEVEL"]!==le.attrs["HDCP-LEVEL"])return(Q.attrs["HDCP-LEVEL"]||"")>(le.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&Q.height!==le.height)return Q.height-le.height;if(Q.frameRate!==le.frameRate)return Q.frameRate-le.frameRate;if(Q.videoRange!==le.videoRange)return On.indexOf(Q.videoRange)-On.indexOf(le.videoRange);if(Q.videoCodec!==le.videoCodec){const me=St(Q.videoCodec),Ge=St(le.videoCodec);if(me!==Ge)return Ge-me}if(Q.uri===le.uri&&Q.codecSet!==le.codecSet){const me=mt(Q.codecSet),Ge=mt(le.codecSet);if(me!==Ge)return Ge-me}return Q.averageBitrate!==le.averageBitrate?Q.averageBitrate-le.averageBitrate:0});let b=g[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==g.length)){for(let Q=0;Q<g.length;Q++)if(g[Q].pathwayId===f[0].pathwayId){b=g[Q];break}}this._levels=f;for(let Q=0;Q<f.length;Q++)if(f[Q]===b){var A;this._firstLevel=Q;const le=b.bitrate,me=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${le}`),((A=this.hls.userConfig)==null?void 0:A.abrEwmaDefaultEstimate)===void 0){const Ge=Math.min(le,this.hls.config.abrEwmaDefaultEstimateMax);Ge>me&&me===Ko.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ge)}break}const z=i&&!n,ne={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:n,altAudio:!z&&s.some(Q=>!!Q.url)};this.hls.trigger(c.MANIFEST_PARSED,ne),(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 b=new Error("invalid level idx"),A=e<0;if(this.hls.trigger(c.ERROR,{type:y.OTHER_ERROR,details:x.LEVEL_SWITCH_ERROR,level:e,fatal:A,error:b,reason:b.message}),A)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 g=s.details;if(!g||g.live){const b=this.switchParams(s.uri,n==null?void 0:n.details,g);this.loadPlaylist(b)}}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===Wt.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ue.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));bn(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(o){const e={};o.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class mu{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=x.KEY_LOAD_ERROR,r,n,i){return new Nn({type:y.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 g=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,x.KEY_LOAD_ERROR,g))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,x.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(g=>(i.key=g.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,x.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},g=r.keyLoadPolicy.default,b={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},A={onSuccess:(z,ne,Q,le)=>{const{frag:me,keyInfo:Ge,url:ut}=Q;if(!me.decryptdata||Ge!==this.keyUriToKeyInfo[ut])return u(this.createKeyLoadError(me,x.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),le));Ge.decryptdata.key=me.decryptdata.key=new Uint8Array(z.data),me.keyLoader=null,Ge.loader=null,s({frag:me,keyInfo:Ge})},onError:(z,ne,Q,le)=>{this.resetLoader(ne),u(this.createKeyLoadError(t,x.KEY_LOAD_ERROR,new Error(`HTTP Error ${z.code} loading key ${z.text}`),Q,te({url:f.url,data:void 0},z)))},onTimeout:(z,ne,Q)=>{this.resetLoader(ne),u(this.createKeyLoadError(t,x.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Q))},onAbort:(z,ne,Q)=>{this.resetLoader(ne),u(this.createKeyLoadError(t,x.INTERNAL_ABORTED,new Error("key loading aborted"),Q))}};i.load(f,b,A)})}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 Vo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Zo(){if(!rn())return!1;const e=Vo();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Zo())return!1;const o=rn();return typeof(o==null?void 0:o.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>o.isTypeSupported(gt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>o.isTypeSupported(gt(e,"audio"))))}function vu(){var o;const e=Vo();return typeof(e==null||(o=e.prototype)==null?void 0:o.changeType)=="function"}const _u=250,Ha=2,yu=.1,bu=.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,g=!this.seeking&&u;if(this.seeking=u,s!==e){if(this.moved=!0,u||(this.nudgeRetry=0),i!==null){if(this.stallReported){const me=self.performance.now()-i;w.warn(`playback not stuck anymore @${s}, after ${Math.round(me)}ms`),this.stallReported=!1}this.stalled=null}return}if(g||f){this.stalled=null;return}if(n.paused&&!u||n.ended||n.playbackRate===0||!cn.getBuffered(n).length){this.nudgeRetry=0;return}const b=cn.bufferInfo(n,s,0),A=b.nextStart||0;if(u){const me=b.len>Ha,Ge=!A||t&&t.start<=s||A-s>Ha&&!this.fragmentTracker.getPartialFragment(s);if(me||Ge)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var z;if(!(b.len>0)&&!A)return;const Ge=Math.max(A,b.start||0)-s,ut=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Et=(ut==null||(z=ut.details)==null?void 0:z.live)?ut.details.targetduration*2:Ha,dt=this.fragmentTracker.getPartialFragment(s);if(Ge>0&&(Ge<=Et||dt)){n.paused||this._trySkipBufferHole(dt);return}}const ne=self.performance.now();if(i===null){this.stalled=ne;return}const Q=ne-i;if(!u&&Q>=_u&&(this._reportStall(b),!this.media))return;const le=cn.bufferInfo(n,s,r.maxBufferHole);this._tryFixBufferStall(le,Q)}_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&&(w.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)})`);w.warn(i.message),t.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.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=cn.bufferInfo(n,i,0),u=i<s.start?s.start:s.nextStart;if(u){const f=s.len<=t.maxBufferHole,g=s.len>0&&s.len<1&&n.readyState<3,b=u-i;if(b>0&&(f||g)){if(b>t.maxBufferHole){const{fragmentTracker:z}=this;let ne=!1;if(i===0){const Q=z.getAppendedFrag(0,Ue.MAIN);Q&&u<Q.end&&(ne=!0)}if(!ne){const Q=e||z.getAppendedFrag(i,Ue.MAIN);if(Q){let le=!1,me=Q.end;for(;me<u;){const Ge=z.getPartialFragment(me);if(Ge)me+=Ge.duration;else{le=!0;break}}if(le)return 0}}}const A=Math.max(u+bu,i+yu);if(w.warn(`skipping hole, adjusting currentTime from ${i} to ${A}`),this.moved=!0,this.stalled=null,n.currentTime=A,e&&!e.gap){const z=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${A}`);r.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:z,reason:z.message,frag:e})}return A}}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}`);w.warn(u.message),r.currentTime=s,t.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.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`);w.error(s.message),t.trigger(c.ERROR,{type:y.MEDIA_ERROR,details:x.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class wu extends cs{constructor(e,t,r){super(e,t,r,"[stream-controller]",Ue.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=It.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=It.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case It.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=It.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=It.IDLE;break}break}case It.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=It.IDLE}}break}this.state===It.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 le={};this.altAudio&&(le.type="video"),this.hls.trigger(c.BUFFER_EOS,le),this.state=It.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 g=s.details;if(!g||this.state===It.WAITING_LEVEL||g.live&&this.levelLastLoaded!==s){this.level=i,this.state=It.WAITING_LEVEL;return}const b=u.len,A=this.getMaxBufferLength(s.maxBitrate);if(b>=A)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const z=this.backtrackFragment?this.backtrackFragment.start:u.end;let ne=this.getNextFragment(z,g);if(this.couldBacktrack&&!this.fragPrevious&&ne&&ne.sn!=="initSegment"&&this.fragmentTracker.getState(ne)!==zn.OK){var Q;const me=((Q=this.backtrackFragment)!=null?Q:ne).sn-g.startSN,Ge=g.fragments[me-1];Ge&&ne.cc===Ge.cc&&(ne=Ge,this.fragmentTracker.removeFragment(Ge))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(ne&&this.isLoopLoading(ne,z)){if(!ne.gap){const me=this.audioOnly&&!this.altAudio?M.AUDIO:M.VIDEO,Ge=(me===M.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ge&&this.afterBufferFlushed(Ge,me,Ue.MAIN)}ne=this.getNextFragmentLoopLoading(ne,g,u,Ue.MAIN,A)}ne&&(ne.initSegment&&!ne.initSegment.data&&!this.bitrateTest&&(ne=ne.initSegment),this.loadFragment(ne,s,z))}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);this.fragCurrent=e,n===zn.NOT_LOADED||n===zn.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,Ue.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],g=this.fragLastKbps;g&&this.fragCurrent?r=this.fragCurrent.duration*f.maxBitrate/(1e3*g)+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,g=u.duration,b=Math.max(s.end,f+Math.min(Math.max(g-this.config.maxFragLookUpTolerance,g*(this.couldBacktrack?.5:.125)),g*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(b,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 It.KEY_LOADING:case It.FRAG_LOADING:case It.FRAG_LOADING_WAITING_RETRY:case It.PARSING:case It.PARSED:this.state=It.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;N(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!==It.IDLE)return;const n=r[t.level];(!n.details||n.details.live&&this.levelLastLoaded!==n||this.waitForCdnTuneIn(n.details))&&(this.state=It.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],g=this.fragCurrent;g&&(this.state===It.FRAG_LOADING||this.state===It.FRAG_LOADING_WAITING_RETRY)&&g.level!==t.level&&g.loader&&this.abortCurrentFrag();let b=0;if(s.live||(r=f.details)!=null&&r.live){var A;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;b=this.alignPlaylists(s,f.details,(A=this.levelLastLoaded)==null?void 0:A.details)}if(f.details=s,this.levelLastLoaded=f,this.hls.trigger(c.LEVEL_UPDATED,{details:s,level:i}),this.state===It.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=It.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,b),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 g=u.videoCodec,b=f.PTSKnown||!f.live,A=(t=r.initSegment)==null?void 0:t.data,z=this._getAudioCodec(u),ne=this.transmuxer=this.transmuxer||new qt(this.hls,Ue.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Q=n?n.index:-1,le=Q!==-1,me=new as(r.level,r.sn,r.stats.chunkCount,i.byteLength,Q,le),Ge=this.initPTS[r.cc];ne.push(i,A,z,g,r,n,f.totalduration,b,me,Ge)}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 g=r[u];g&&(this.videoBuffer=g.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!==Ue.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===It.PARSED&&(this.state=It.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=It.ERROR;return}switch(t.details){case x.FRAG_GAP:case x.FRAG_PARSING_ERROR:case x.FRAG_DECRYPT_ERROR:case x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ue.MAIN,t);break;case x.LEVEL_LOAD_ERROR:case x.LEVEL_LOAD_TIMEOUT:case x.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===It.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===Wt.LEVEL&&(this.state=It.IDLE);break;case x.BUFFER_APPEND_ERROR:case x.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===x.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case x.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!cn.getBuffered(e).length){const r=this.state!==It.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=It.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==M.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===M.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,Ue.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=cn.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=It.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:g,level:b}=u,{video:A,text:z,id3:ne,initSegment:Q}=i,{details:le}=b,me=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=It.PARSING,Q){if(Q!=null&&Q.tracks){const lt=f.initSegment||f;this._bufferInitSegment(b,Q.tracks,lt,s),n.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:lt,id:r,tracks:Q.tracks})}const Ge=Q.initPTS,ut=Q.timescale;N(Ge)&&(this.initPTS[f.cc]={baseTime:Ge,timescale:ut},n.trigger(c.INIT_PTS_FOUND,{frag:f,id:r,initPTS:Ge,timescale:ut}))}if(A&&le&&f.sn!=="initSegment"){const Ge=le.fragments[f.sn-1-le.startSN],ut=f.sn===le.startSN,lt=!Ge||f.cc>Ge.cc;if(i.independent!==!1){const{startPTS:Et,endPTS:dt,startDTS:Pt,endDTS:xt}=A;if(g)g.elementaryStreams[A.type]={startPTS:Et,endPTS:dt,startDTS:Pt,endDTS:xt};else if(A.firstKeyFrame&&A.independent&&s.id===1&&!lt&&(this.couldBacktrack=!0),A.dropped&&A.independent){const Vt=this.getMainFwdBufferInfo(),nr=(Vt?Vt.end:this.getLoadPosition())+this.config.maxBufferHole,Lt=A.firstKeyFramePTS?A.firstKeyFramePTS:Et;if(!ut&&nr<Lt-this.config.maxBufferHole&&!lt){this.backtrack(f);return}else lt&&(f.gap=!0);f.setElementaryStreamInfo(A.type,f.start,dt,f.start,xt,!0)}else ut&&Et>Ha&&(f.gap=!0);f.setElementaryStreamInfo(A.type,Et,dt,Pt,xt),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(A,f,g,s,ut||lt)}else if(ut||lt)f.gap=!0;else{this.backtrack(f);return}}if(me){const{startPTS:Ge,endPTS:ut,startDTS:lt,endDTS:Et}=me;g&&(g.elementaryStreams[M.AUDIO]={startPTS:Ge,endPTS:ut,startDTS:lt,endDTS:Et}),f.setElementaryStreamInfo(M.AUDIO,Ge,ut,lt,Et),this.bufferFragmentData(me,f,g,s)}if(le&&ne!=null&&(t=ne.samples)!=null&&t.length){const Ge={id:r,frag:f,details:le,samples:ne.samples};n.trigger(c.FRAG_PARSING_METADATA,Ge)}if(le&&z){const Ge={id:r,frag:f,details:le,samples:z.samples};n.trigger(c.FRAG_PARSING_USERDATA,Ge)}}_bufferInitSegment(e,t,r,n){if(this.state!==It.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 g=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const b=i.metadata;b&&"channelCount"in b&&(b.channelCount||1)!==1&&g.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&g.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 b=t[f].initSegment;b!=null&&b.byteLength&&this.hls.trigger(c.BUFFER_APPENDING,{type:f,data:b,frag:r,part:null,chunkMeta:n,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ue.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=It.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(cn.isBuffered(e,r)?t=this.getAppendedFrag(r):cn.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&&N(t)&&N(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 Cs{static get version(){return"1.5.20"}static isMSESupported(){return Zo()}static isSupported(){return gu()}static getMediaSource(){return rn()}static get Events(){return c}static get ErrorTypes(){return y}static get ErrorDetails(){return x}static get DefaultConfig(){return Cs.defaultConfig?Cs.defaultConfig:Ko}static set DefaultConfig(e){Cs.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 zt,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,oe(e.debug||!1,"Hls instance");const t=this.config=du(Cs.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),g=this.abrController=new r(this),b=this.bufferController=new n(this),A=this.capLevelController=new i(this),z=new u(this),ne=new jr(this),Q=new Ln(this),le=t.contentSteeringController,me=le?new le(this):null,Ge=this.levelController=new pu(this,me),ut=new Xi(this),lt=new mu(this.config),Et=this.streamController=new wu(this,ut,lt);A.setStreamController(Et),z.setStreamController(Et);const dt=[ne,Ge,Et];me&&dt.splice(1,0,me),this.networkControllers=dt;const Pt=[g,b,A,z,Q,ut];this.audioTrackController=this.createController(t.audioTrackController,dt);const xt=t.audioStreamController;xt&&dt.push(new xt(this,ut,lt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,dt);const Vt=t.subtitleStreamController;Vt&&dt.push(new Vt(this,ut,lt)),this.createController(t.timelineController,Pt),lt.emeController=this.emeController=this.createController(t.emeController,Pt),this.cmcdController=this.createController(t.cmcdController,Pt),this.latencyController=this.createController(fi,Pt),this.coreComponents=Pt,dt.push(f);const nr=f.onErrorOut;typeof nr=="function"&&this.on(c.ERROR,nr,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(w.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:y.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,fatal:n,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){w.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){w.log("attachMedia"),this._media=e,this.trigger(c.MEDIA_ATTACHING,{media:e})}detachMedia(){w.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=be.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,w.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){w.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(){w.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){w.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){w.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){w.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){w.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){w.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){w.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){w.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){w.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){w.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&&(w.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){_n(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}}Cs.defaultConfig=void 0},16722:function(Mt,Qe,S){"use strict";S.d(Qe,{Z:function(){return de}});const Z=a=>typeof a=="object"&&a!=null&&a.nodeType===1,ie=(a,N)=>(!N||a!=="hidden")&&a!=="visible"&&a!=="clip",be=(a,N)=>{if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){const P=getComputedStyle(a,null);return ie(P.overflowY,N)||ie(P.overflowX,N)||(E=>{const c=(y=>{if(!y.ownerDocument||!y.ownerDocument.defaultView)return null;try{return y.ownerDocument.defaultView.frameElement}catch(x){return null}})(E);return!!c&&(c.clientHeight<E.scrollHeight||c.clientWidth<E.scrollWidth)})(a)}return!1},ke=(a,N,P,E,c,y,x,H)=>y<a&&x>N||y>a&&x<N?0:y<=a&&H<=P||x>=N&&H>=P?y-a-E:x>N&&H<P||y<a&&H>P?x-N+c:0,te=a=>{const N=a.parentElement;return N==null?a.getRootNode().host||null:N},ee=(a,N)=>{var P,E,c,y;if(typeof document=="undefined")return[];const{scrollMode:x,block:H,inline:V,boundary:k,skipOverflowHiddenElements:D}=N,j=typeof k=="function"?k:Be=>Be!==k;if(!Z(a))throw new TypeError("Invalid target");const oe=document.scrollingElement||document.documentElement,w=[];let K=a;for(;Z(K)&&j(K);){if(K=te(K),K===oe){w.push(K);break}K!=null&&K===document.body&&be(K)&&!be(document.documentElement)||K!=null&&be(K,D)&&w.push(K)}const se=(E=(P=window.visualViewport)==null?void 0:P.width)!=null?E:innerWidth,X=(y=(c=window.visualViewport)==null?void 0:c.height)!=null?y:innerHeight,{scrollX:_e,scrollY:he}=window,{height:pe,width:Ce,top:M,right:I,bottom:U,left:R}=a.getBoundingClientRect(),{top:q,right:$,bottom:m,left:v}=(Be=>{const Oe=window.getComputedStyle(Be);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(a);let L=H==="start"||H==="nearest"?M-q:H==="end"?U+m:M+pe/2-q+m,re=V==="center"?R+Ce/2-v+$:V==="end"?I+$:R-v;const Ie=[];for(let Be=0;Be<w.length;Be++){const Oe=w[Be],{height:je,width:at,top:et,right:rt,bottom:Tt,left:At}=Oe.getBoundingClientRect();if(x==="if-needed"&&M>=0&&R>=0&&U<=X&&I<=se&&(Oe===oe&&!be(Oe)||M>=et&&U<=Tt&&R>=At&&I<=rt))return Ie;const Ot=getComputedStyle(Oe),yt=parseInt(Ot.borderLeftWidth,10),Rt=parseInt(Ot.borderTopWidth,10),Ct=parseInt(Ot.borderRightWidth,10),ue=parseInt(Ot.borderBottomWidth,10);let ye=0,J=0;const Pe="offsetWidth"in Oe?Oe.offsetWidth-Oe.clientWidth-yt-Ct:0,$e="offsetHeight"in Oe?Oe.offsetHeight-Oe.clientHeight-Rt-ue:0,O="offsetWidth"in Oe?Oe.offsetWidth===0?0:at/Oe.offsetWidth:0,ae="offsetHeight"in Oe?Oe.offsetHeight===0?0:je/Oe.offsetHeight:0;if(oe===Oe)ye=H==="start"?L:H==="end"?L-X:H==="nearest"?ke(he,he+X,X,Rt,ue,he+L,he+L+pe,pe):L-X/2,J=V==="start"?re:V==="center"?re-se/2:V==="end"?re-se:ke(_e,_e+se,se,yt,Ct,_e+re,_e+re+Ce,Ce),ye=Math.max(0,ye+he),J=Math.max(0,J+_e);else{ye=H==="start"?L-et-Rt:H==="end"?L-Tt+ue+$e:H==="nearest"?ke(et,Tt,je,Rt,ue+$e,L,L+pe,pe):L-(et+je/2)+$e/2,J=V==="start"?re-At-yt:V==="center"?re-(At+at/2)+Pe/2:V==="end"?re-rt+Ct+Pe:ke(At,rt,at,yt,Ct+Pe,re,re+Ce,Ce);const{scrollLeft:ve,scrollTop:we}=Oe;ye=ae===0?0:Math.max(0,Math.min(we+ye/ae,Oe.scrollHeight-je/ae+$e)),J=O===0?0:Math.max(0,Math.min(ve+J/O,Oe.scrollWidth-at/O+Pe)),L+=we-ye,re+=ve-J}Ie.push({el:Oe,top:ye,left:J})}return Ie},xe=a=>a===!1?{block:"end",inline:"nearest"}:(N=>N===Object(N)&&Object.keys(N).length!==0)(a)?a:{block:"start",inline:"nearest"};function de(a,N){if(!a.isConnected||!(c=>{let y=c;for(;y&&y.parentNode;){if(y.parentNode===document)return!0;y=y.parentNode instanceof ShadowRoot?y.parentNode.host:y.parentNode}return!1})(a))return;const P=(c=>{const y=window.getComputedStyle(c);return{top:parseFloat(y.scrollMarginTop)||0,right:parseFloat(y.scrollMarginRight)||0,bottom:parseFloat(y.scrollMarginBottom)||0,left:parseFloat(y.scrollMarginLeft)||0}})(a);if((c=>typeof c=="object"&&typeof c.behavior=="function")(N))return N.behavior(ee(a,N));const E=typeof N=="boolean"||N==null?void 0:N.behavior;for(const{el:c,top:y,left:x}of ee(a,xe(N))){const H=y-P.top+P.bottom,V=x-P.left+P.right;c.scroll({top:H,left:V,behavior:E})}}}}]);
|
|
}()); |